summaryrefslogtreecommitdiff
path: root/js/Linear/DELAYV_f.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-16 18:13:55 +0530
committerSunil Shetye2018-07-18 11:36:15 +0530
commit8ce53461fe09f5102deeaedbb87bfc0d4f996ed2 (patch)
tree6b766b7c32effff12fa48cff99f11b9420136610 /js/Linear/DELAYV_f.js
parent5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f (diff)
downloadsci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.gz
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.bz2
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.zip
move the options in the loop
Diffstat (limited to 'js/Linear/DELAYV_f.js')
-rw-r--r--js/Linear/DELAYV_f.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Linear/DELAYV_f.js b/js/Linear/DELAYV_f.js
index 7677921c..516a768a 100644
--- a/js/Linear/DELAYV_f.js
+++ b/js/Linear/DELAYV_f.js
@@ -33,17 +33,17 @@ function DELAYV_f() {
return options;
}
DELAYV_f.prototype.set = function DELAYV_f() {
- this.nin = parseFloat(arguments[0]["nin"])
- this.zz0 = inverse(arguments[0]["zz0"])
- this.T = parseFloat(arguments[0]["T"])
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
this.nin = this.model.in[1-1];
var z0 = this.model.dstate;
this.zz0 = z0.slice(1-1,$-1);
var told = z0[$-1];
while (true) {
- [ok,this.nin,this.zz0,this.T,this.exprs] = scicos_getvalue("Set delay parameters",["Number of inputs","Register initial condition","Max delay"],list("vec",1,"vec",-1,"vec",1),this.exprs);
+ var ok = true;
+ this.nin = parseFloat(arguments[0]["nin"]);
+ this.zz0 = inverse(arguments[0]["zz0"]);
+ this.T = parseFloat(arguments[0]["T"]);
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}