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