summaryrefslogtreecommitdiff
path: root/js/Electrical
diff options
context:
space:
mode:
Diffstat (limited to 'js/Electrical')
-rw-r--r--js/Electrical/Capacitor.js8
-rw-r--r--js/Electrical/ConstantVoltage.js6
-rw-r--r--js/Electrical/Diode.js12
-rw-r--r--js/Electrical/Gyrator.js8
-rw-r--r--js/Electrical/IdealTransformer.js6
-rw-r--r--js/Electrical/Inductor.js6
-rw-r--r--js/Electrical/NMOS.js22
-rw-r--r--js/Electrical/NPN.js38
-rw-r--r--js/Electrical/OpAmp.js10
-rw-r--r--js/Electrical/PMOS.js22
-rw-r--r--js/Electrical/PNP.js38
-rw-r--r--js/Electrical/Resistor.js6
-rw-r--r--js/Electrical/SineVoltage.js14
-rw-r--r--js/Electrical/Switch.js8
-rw-r--r--js/Electrical/VVsourceAC.js6
-rw-r--r--js/Electrical/VsourceAC.js8
16 files changed, 109 insertions, 109 deletions
diff --git a/js/Electrical/Capacitor.js b/js/Electrical/Capacitor.js
index a890eedf..af4e2829 100644
--- a/js/Electrical/Capacitor.js
+++ b/js/Electrical/Capacitor.js
@@ -34,12 +34,12 @@ function Capacitor() {
return options;
}
Capacitor.prototype.set = function Capacitor() {
- this.C = parseFloat(arguments[0]["C"])
- this.v = parseFloat(arguments[0]["v"])
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.C,this.v,this.exprs] = scicos_getvalue("Set Capacitor block parameter",["C (F)","Initial Voltage"],list("vec",1,"vec",1),this.exprs);
+ var ok = true;
+ this.C = parseFloat(arguments[0]["C"]);
+ this.v = parseFloat(arguments[0]["v"]);
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}
diff --git a/js/Electrical/ConstantVoltage.js b/js/Electrical/ConstantVoltage.js
index bebb9c4e..d8127ea2 100644
--- a/js/Electrical/ConstantVoltage.js
+++ b/js/Electrical/ConstantVoltage.js
@@ -31,11 +31,11 @@ function ConstantVoltage() {
return options;
}
ConstantVoltage.prototype.set = function ConstantVoltage() {
- this.V = parseFloat(arguments[0]["V"])
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.V,this.exprs] = scicos_getvalue("Set ConstantVoltage block parameter","V (volt)",list("vec",1),this.exprs);
+ var ok = true;
+ this.V = parseFloat(arguments[0]["V"]);
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}
diff --git a/js/Electrical/Diode.js b/js/Electrical/Diode.js
index b6bdc083..d982f380 100644
--- a/js/Electrical/Diode.js
+++ b/js/Electrical/Diode.js
@@ -38,14 +38,14 @@ function Diode() {
return options;
}
Diode.prototype.set = function Diode() {
- this.Ids = parseFloat(arguments[0]["Ids"])
- this.Vt = parseFloat(arguments[0]["Vt"])
- this.Maxexp = parseFloat(arguments[0]["Maxexp"])
- this.R = parseFloat(arguments[0]["R"])
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.Ids,this.Vt,this.Maxexp,this.R,this.exprs] = scicos_getvalue("Set Diode block parameter",["Saturation cuurent (A)","Voltage equivalent to temperature (Volt)","Max exponent for linear continuation","R (ohm)"],list("vec",1,"vec",1,"vec",1,"vec",1),this.exprs);
+ var ok = true;
+ this.Ids = parseFloat(arguments[0]["Ids"]);
+ this.Vt = parseFloat(arguments[0]["Vt"]);
+ this.Maxexp = parseFloat(arguments[0]["Maxexp"]);
+ this.R = parseFloat(arguments[0]["R"]);
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}
diff --git a/js/Electrical/Gyrator.js b/js/Electrical/Gyrator.js
index fa5879d8..d3f2a192 100644
--- a/js/Electrical/Gyrator.js
+++ b/js/Electrical/Gyrator.js
@@ -60,13 +60,13 @@ function Gyrator() {
return options;
}
Gyrator.prototype.set = function Gyrator() {
- this.G1 = arguments[0]["G1"]
- this.G2 = arguments[0]["G2"]
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
this.exprs = this.x.graphics.exprs;
while (true) {
- [ok,this.G1,this.G2,this.exprs] = scicos_getvalue([["Set Gyrator block parameters:"],[""],["G1: Gyration conductance"],["G2: Gyration conductance"]],["G1","G2"],list("vec",1,"vec",1),this.exprs);
+ var ok = true;
+ this.G1 = arguments[0]["G1"];
+ this.G2 = arguments[0]["G2"];
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}
diff --git a/js/Electrical/IdealTransformer.js b/js/Electrical/IdealTransformer.js
index 2d7284b9..9444a558 100644
--- a/js/Electrical/IdealTransformer.js
+++ b/js/Electrical/IdealTransformer.js
@@ -59,12 +59,12 @@ function IdealTransformer() {
return options;
}
IdealTransformer.prototype.set = function IdealTransformer() {
- this.N = arguments[0]["N"]
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
this.exprs = this.x.graphics.exprs;
while (true) {
- [ok,this.N,this.exprs] = scicos_getvalue([["Set Transformer block parameters:"],[""],["N:"+" Turn ratio (N1/N2)"]],["N"],list("vec",1),this.exprs);
+ var ok = true;
+ this.N = arguments[0]["N"];
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}
diff --git a/js/Electrical/Inductor.js b/js/Electrical/Inductor.js
index e2efde59..0e4824fc 100644
--- a/js/Electrical/Inductor.js
+++ b/js/Electrical/Inductor.js
@@ -31,11 +31,11 @@ function Inductor() {
return options;
}
Inductor.prototype.set = function Inductor() {
- this.L = parseFloat(arguments[0]["L"])
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.L,this.exprs] = scicos_getvalue("Set Inductor block parameter","L (H)",list("vec",1),this.exprs);
+ var ok = true;
+ this.L = parseFloat(arguments[0]["L"]);
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}
diff --git a/js/Electrical/NMOS.js b/js/Electrical/NMOS.js
index 9976ae99..38700e9a 100644
--- a/js/Electrical/NMOS.js
+++ b/js/Electrical/NMOS.js
@@ -47,19 +47,19 @@ function NMOS() {
return options;
}
NMOS.prototype.set = function NMOS() {
- this.W = parseFloat(arguments[0]["W"])
- this.L = parseFloat(arguments[0]["L"])
- this.Beta = parseFloat(arguments[0]["Beta"])
- this.Vt = parseFloat(arguments[0]["Vt"])
- this.K2 = parseFloat(arguments[0]["K2"])
- this.K5 = parseFloat(arguments[0]["K5"])
- this.dW = parseFloat(arguments[0]["dW"])
- this.dL = parseFloat(arguments[0]["dL"])
- this.RDS = parseFloat(arguments[0]["RDS"])
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.W,this.L,this.Beta,this.Vt,this.K2,this.K5,this.dW,this.dL,this.RDS,this.exprs] = scicos_getvalue("Set NMOS Transistor block parameters",["Width [m]","Length [m]","Transconductance parameter [A/(V*V)]","Zero bias threshold voltage [V]","Bulk threshold parameter","Reduction of pinch-off region","Narrowing of channel [m]","Shortening of channel [m]","Drain-Source-Resistance [Ohm]"],list("vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1),this.exprs);
+ var ok = true;
+ this.W = parseFloat(arguments[0]["W"]);
+ this.L = parseFloat(arguments[0]["L"]);
+ this.Beta = parseFloat(arguments[0]["Beta"]);
+ this.Vt = parseFloat(arguments[0]["Vt"]);
+ this.K2 = parseFloat(arguments[0]["K2"]);
+ this.K5 = parseFloat(arguments[0]["K5"]);
+ this.dW = parseFloat(arguments[0]["dW"]);
+ this.dL = parseFloat(arguments[0]["dL"]);
+ this.RDS = parseFloat(arguments[0]["RDS"]);
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}
diff --git a/js/Electrical/NPN.js b/js/Electrical/NPN.js
index 665dbda0..8a69f831 100644
--- a/js/Electrical/NPN.js
+++ b/js/Electrical/NPN.js
@@ -75,28 +75,28 @@ function NPN() {
return options;
}
NPN.prototype.set = function NPN() {
- this.Bf = arguments[0]["Bf"]
- this.Br = arguments[0]["Br"]
- this.Is = arguments[0]["Is"]
- this.Vak = arguments[0]["Vak"]
- this.Tauf = arguments[0]["Tauf"]
- this.Taur = arguments[0]["Taur"]
- this.Ccs = arguments[0]["Ccs"]
- this.Cje = arguments[0]["Cje"]
- this.Cjc = arguments[0]["Cjc"]
- this.Phie = arguments[0]["Phie"]
- this.Me = arguments[0]["Me"]
- this.Phic = arguments[0]["Phic"]
- this.Mc = arguments[0]["Mc"]
- this.Gbc = arguments[0]["Gbc"]
- this.Gbe = arguments[0]["Gbe"]
- this.Vt = arguments[0]["Vt"]
- this.EMinMax = arguments[0]["EMinMax"]
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
this.exprs = this.x.graphics.exprs;
while (true) {
- [ok,this.Bf,this.Br,this.Is,this.Vak,this.Tauf,this.Taur,this.Ccs,this.Cje,this.Cjc,this.Phie,this.Me,this.Phic,this.Mc,this.Gbc,this.Gbe,this.Vt,this.EMinMax,this.exprs] = scicos_getvalue([["Set NPN block parameters:"],[""]],["Bf : Forward beta","Br : Reverse beta","Is : Transport saturation current","Vak : Early voltage (inverse), 1/Volt","Tauf: Ideal forward transit time","Taur: Ideal reverse transit time","Ccs : Collector-substrat(ground) cap.","Cje : Base-emitter zero bias depletion cap.","Cjc : Base-coll. zero bias depletion cap.","Phie: Base-emitter diffusion voltage","Me : Base-emitter gradation exponent","Phic: Base-collector diffusion voltage","Mc : Base-collector gradation exponent","Gbc : Base-collector conductance","Gbe : Base-emitter conductance","Vt : Voltage equivalent of temperature","EMinmax: if x > EMinMax, the exp(x) is linearized"],list("vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1),this.exprs);
+ var ok = true;
+ this.Bf = arguments[0]["Bf"];
+ this.Br = arguments[0]["Br"];
+ this.Is = arguments[0]["Is"];
+ this.Vak = arguments[0]["Vak"];
+ this.Tauf = arguments[0]["Tauf"];
+ this.Taur = arguments[0]["Taur"];
+ this.Ccs = arguments[0]["Ccs"];
+ this.Cje = arguments[0]["Cje"];
+ this.Cjc = arguments[0]["Cjc"];
+ this.Phie = arguments[0]["Phie"];
+ this.Me = arguments[0]["Me"];
+ this.Phic = arguments[0]["Phic"];
+ this.Mc = arguments[0]["Mc"];
+ this.Gbc = arguments[0]["Gbc"];
+ this.Gbe = arguments[0]["Gbe"];
+ this.Vt = arguments[0]["Vt"];
+ this.EMinMax = arguments[0]["EMinMax"];
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}
diff --git a/js/Electrical/OpAmp.js b/js/Electrical/OpAmp.js
index 469ab014..ac58c8d0 100644
--- a/js/Electrical/OpAmp.js
+++ b/js/Electrical/OpAmp.js
@@ -35,13 +35,13 @@ function OpAmp() {
return options;
}
OpAmp.prototype.set = function OpAmp() {
- this.OLGain = arguments[0]["OLGain"]
- this.SatH = arguments[0]["SatH"]
- this.SatL = arguments[0]["SatL"]
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (false) {
- [ok,this.OLGain,this.SatH,this.SatL,this.exprs] = scicos_getvalue("Set the Operational Amplifier parameters",["Open Loop Gain","Positive saturation voltage","Negative saturation voltage"],list("vec",1,"vec",1,"vec",1),this.exprs);
+ var ok = true;
+ this.OLGain = arguments[0]["OLGain"];
+ this.SatH = arguments[0]["SatH"];
+ this.SatL = arguments[0]["SatL"];
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}
diff --git a/js/Electrical/PMOS.js b/js/Electrical/PMOS.js
index f031f236..bd88da1a 100644
--- a/js/Electrical/PMOS.js
+++ b/js/Electrical/PMOS.js
@@ -47,19 +47,19 @@ function PMOS() {
return options;
}
PMOS.prototype.set = function PMOS() {
- this.W = parseFloat(arguments[0]["W"])
- this.L = parseFloat(arguments[0]["L"])
- this.Beta = parseFloat(arguments[0]["Beta"])
- this.Vt = parseFloat(arguments[0]["Vt"])
- this.K2 = parseFloat(arguments[0]["K2"])
- this.K5 = parseFloat(arguments[0]["K5"])
- this.dW = parseFloat(arguments[0]["dW"])
- this.dL = parseFloat(arguments[0]["dL"])
- this.RDS = parseFloat(arguments[0]["RDS"])
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.W,this.L,this.Beta,this.Vt,this.K2,this.K5,this.dW,this.dL,this.RDS,this.exprs] = scicos_getvalue("Set PMOS Transistor parameters",["Width [m]","Length [m]","Transconductance parameter [A/(V*V)]","Zero bias threshold voltage [V]","Bulk threshold parameter","Reduction of pinch-off region","Narrowing of channel [m]","Shortening of channel [m]","Drain-Source-Resistance [Ohm]"],list("vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1),this.exprs);
+ var ok = true;
+ this.W = parseFloat(arguments[0]["W"]);
+ this.L = parseFloat(arguments[0]["L"]);
+ this.Beta = parseFloat(arguments[0]["Beta"]);
+ this.Vt = parseFloat(arguments[0]["Vt"]);
+ this.K2 = parseFloat(arguments[0]["K2"]);
+ this.K5 = parseFloat(arguments[0]["K5"]);
+ this.dW = parseFloat(arguments[0]["dW"]);
+ this.dL = parseFloat(arguments[0]["dL"]);
+ this.RDS = parseFloat(arguments[0]["RDS"]);
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}
diff --git a/js/Electrical/PNP.js b/js/Electrical/PNP.js
index ef2e280b..d745ab00 100644
--- a/js/Electrical/PNP.js
+++ b/js/Electrical/PNP.js
@@ -75,28 +75,28 @@ function PNP() {
return options;
}
PNP.prototype.set = function PNP() {
- this.Bf = arguments[0]["Bf"]
- this.Br = arguments[0]["Br"]
- this.Is = arguments[0]["Is"]
- this.Vak = arguments[0]["Vak"]
- this.Tauf = arguments[0]["Tauf"]
- this.Taur = arguments[0]["Taur"]
- this.Ccs = arguments[0]["Ccs"]
- this.Cje = arguments[0]["Cje"]
- this.Cjc = arguments[0]["Cjc"]
- this.Phie = arguments[0]["Phie"]
- this.Me = arguments[0]["Me"]
- this.Phic = arguments[0]["Phic"]
- this.Mc = arguments[0]["Mc"]
- this.Gbc = arguments[0]["Gbc"]
- this.Gbe = arguments[0]["Gbe"]
- this.Vt = arguments[0]["Vt"]
- this.EMinMax = arguments[0]["EMinMax"]
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
this.exprs = this.x.graphics.exprs;
while (true) {
- [ok,this.Bf,this.Br,this.Is,this.Vak,this.Tauf,this.Taur,this.Ccs,this.Cje,this.Cjc,this.Phie,this.Me,this.Phic,this.Mc,this.Gbc,this.Gbe,this.Vt,this.EMinMax,this.exprs] = scicos_getvalue([["Set PNP block parameters:"],[""]],["Bf : Forward beta","Br : Reverse beta","Is : Transport saturation current","Vak : Early voltage (inverse), 1/Volt","Tauf: Ideal forward transit time","Taur: Ideal reverse transit time","Ccs : Collector-substrat(ground) cap.","Cje : Base-emitter zero bias depletion cap.","Cjc : Base-coll. zero bias depletion cap.","Phie: Base-emitter diffusion voltage","Me : Base-emitter gradation exponent","Phic: Base-collector diffusion voltage","Mc : Base-collector gradation exponent","Gbc : Base-collector conductance","Gbe : Base-emitter conductance","Vt : Voltage equivalent of temperature","EMinMax: if x > EMinMax, the exp(x) function is linearized"],list("vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1),this.exprs);
+ var ok = true;
+ this.Bf = arguments[0]["Bf"];
+ this.Br = arguments[0]["Br"];
+ this.Is = arguments[0]["Is"];
+ this.Vak = arguments[0]["Vak"];
+ this.Tauf = arguments[0]["Tauf"];
+ this.Taur = arguments[0]["Taur"];
+ this.Ccs = arguments[0]["Ccs"];
+ this.Cje = arguments[0]["Cje"];
+ this.Cjc = arguments[0]["Cjc"];
+ this.Phie = arguments[0]["Phie"];
+ this.Me = arguments[0]["Me"];
+ this.Phic = arguments[0]["Phic"];
+ this.Mc = arguments[0]["Mc"];
+ this.Gbc = arguments[0]["Gbc"];
+ this.Gbe = arguments[0]["Gbe"];
+ this.Vt = arguments[0]["Vt"];
+ this.EMinMax = arguments[0]["EMinMax"];
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}
diff --git a/js/Electrical/Resistor.js b/js/Electrical/Resistor.js
index 383e2735..9b62ccee 100644
--- a/js/Electrical/Resistor.js
+++ b/js/Electrical/Resistor.js
@@ -31,11 +31,11 @@ function Resistor() {
return options;
}
Resistor.prototype.set = function Resistor() {
- this.R = parseFloat(arguments[0]["R"])
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.R,this.exprs] = scicos_getvalue("Set Resistor block parameter","R (ohm)",list("vec",1),this.exprs);
+ var ok = true;
+ this.R = parseFloat(arguments[0]["R"]);
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}
diff --git a/js/Electrical/SineVoltage.js b/js/Electrical/SineVoltage.js
index f4c18f51..b5b287aa 100644
--- a/js/Electrical/SineVoltage.js
+++ b/js/Electrical/SineVoltage.js
@@ -40,15 +40,15 @@ function SineVoltage() {
return options;
}
SineVoltage.prototype.set = function SineVoltage() {
- this.V = parseFloat(arguments[0]["V"])
- this.ph = parseFloat(arguments[0]["ph"])
- this.frq = parseFloat(arguments[0]["frq"])
- this.offset = parseFloat(arguments[0]["offset"])
- this.start = parseFloat(arguments[0]["start"])
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.V,this.ph,this.frq,this.offset,this.start,this.exprs] = scicos_getvalue("Set voltage source parameter",["Amplitude (Volt)","phase (rad)","Frequency (Hz)","Voltageoffset (V)","Timeoffset (s)"],list("vec",1,"vec",1,"vec",1,"vec",1,"vec",1),this.exprs);
+ var ok = true;
+ this.V = parseFloat(arguments[0]["V"]);
+ this.ph = parseFloat(arguments[0]["ph"]);
+ this.frq = parseFloat(arguments[0]["frq"]);
+ this.offset = parseFloat(arguments[0]["offset"]);
+ this.start = parseFloat(arguments[0]["start"]);
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}
diff --git a/js/Electrical/Switch.js b/js/Electrical/Switch.js
index 35407ac3..d55c62cd 100644
--- a/js/Electrical/Switch.js
+++ b/js/Electrical/Switch.js
@@ -36,12 +36,12 @@ function Switch() {
return options;
}
Switch.prototype.set = function Switch() {
- this.Ron = parseFloat(arguments[0]["Ron"])
- this.Roff = parseFloat(arguments[0]["Roff"])
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.Ron,this.Roff,this.exprs] = scicos_getvalue("Set non-ideal electrical switch parameters",["Resistance in On state (Ohm)","Resistance in Off state (Ohm)"],list("vec",1,"vec",1),this.exprs);
+ var ok = true;
+ this.Ron = parseFloat(arguments[0]["Ron"]);
+ this.Roff = parseFloat(arguments[0]["Roff"]);
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}
diff --git a/js/Electrical/VVsourceAC.js b/js/Electrical/VVsourceAC.js
index 49e9325c..b09eb9a8 100644
--- a/js/Electrical/VVsourceAC.js
+++ b/js/Electrical/VVsourceAC.js
@@ -33,11 +33,11 @@ function VVsourceAC() {
return options;
}
VVsourceAC.prototype.set = function VVsourceAC() {
- this.FR = parseFloat(arguments[0]["FR"])
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.FR,this.exprs] = scicos_getvalue("Set voltage source parameter",["Frequency (Hz)"],list("vec",-1),this.exprs);
+ var ok = true;
+ this.FR = parseFloat(arguments[0]["FR"]);
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}
diff --git a/js/Electrical/VsourceAC.js b/js/Electrical/VsourceAC.js
index 549b2b5e..69149d14 100644
--- a/js/Electrical/VsourceAC.js
+++ b/js/Electrical/VsourceAC.js
@@ -34,12 +34,12 @@ function VsourceAC() {
return options;
}
VsourceAC.prototype.set = function VsourceAC() {
- this.VA = parseFloat(arguments[0]["VA"])
- this.FR = parseFloat(arguments[0]["FR"])
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.VA,this.FR,this.exprs] = scicos_getvalue("Set voltage source parameter",["Amplitude (Volt)","Frequency (Hz)"],list("vec",-1,"vec",-1),this.exprs);
+ var ok = true;
+ this.VA = parseFloat(arguments[0]["VA"]);
+ this.FR = parseFloat(arguments[0]["FR"]);
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}