diff options
Diffstat (limited to 'js/Electrical/VVsourceAC.js')
-rw-r--r-- | js/Electrical/VVsourceAC.js | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/js/Electrical/VVsourceAC.js b/js/Electrical/VVsourceAC.js index 24cc91d2..fe630ff6 100644 --- a/js/Electrical/VVsourceAC.js +++ b/js/Electrical/VVsourceAC.js @@ -1,25 +1,5 @@ /* autogenerated from "macros/Electrical/VVsourceAC.sci" */ function VVsourceAC() { -VVsourceAC.prototype.get = function VVsourceAC() { -} -VVsourceAC.prototype.set = function VVsourceAC() { -x=arg1; -graphics=arg1.graphics; -exprs=graphics.exprs; -model=arg1.model; -while (true) { -[ok,FR,exprs]=scicos_getvalue("Set voltage source parameter",["Frequency (Hz)"],list("vec",-1),exprs); -if (!ok) { -break -} -model.rpar=[FR]; -model.equations.parameters[2-1]=list(FR); -graphics.exprs=exprs; -x.graphics=graphics; -x.model=model; -break -} -} VVsourceAC.prototype.define = function VVsourceAC() { model=scicos_model(); model.in1=[1,1]; @@ -44,4 +24,24 @@ x.graphics.out_implicit=["I"]; } VVsourceAC.prototype.details = function VVsourceAC() { } +VVsourceAC.prototype.get = function VVsourceAC() { +} +VVsourceAC.prototype.set = function VVsourceAC() { +x=arg1; +graphics=arg1.graphics; +exprs=graphics.exprs; +model=arg1.model; +while (true) { +[ok,FR,exprs]=scicos_getvalue("Set voltage source parameter",["Frequency (Hz)"],list("vec",-1),exprs); +if (!ok) { +break +} +model.rpar=[FR]; +model.equations.parameters[2-1]=list(FR); +graphics.exprs=exprs; +x.graphics=graphics; +x.model=model; +break +} +} } |