diff options
author | Sunil Shetye | 2018-07-16 18:13:55 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-18 11:36:15 +0530 |
commit | 8ce53461fe09f5102deeaedbb87bfc0d4f996ed2 (patch) | |
tree | 6b766b7c32effff12fa48cff99f11b9420136610 /js/Linear/DELAY_f.js | |
parent | 5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f (diff) | |
download | sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.gz sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.bz2 sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.zip |
move the options in the loop
Diffstat (limited to 'js/Linear/DELAY_f.js')
-rw-r--r-- | js/Linear/DELAY_f.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/Linear/DELAY_f.js b/js/Linear/DELAY_f.js index 32549d82..29c1728a 100644 --- a/js/Linear/DELAY_f.js +++ b/js/Linear/DELAY_f.js @@ -76,9 +76,6 @@ function DELAY_f() { return options; } DELAY_f.prototype.set = function DELAY_f() { - this.dt = arguments[0]["dt"] - this.z0 = arguments[0]["z0"] - this.exprs = inverse(arguments[0]["exprs"]) var ppath = list(0,0); if (typeof(o)=="Block"&&o.gui=="REGISTER_f") { ppath[1-1] = i; @@ -97,7 +94,10 @@ function DELAY_f() { var evtdly_exprs = evtdly.graphics.exprs; this.exprs = [[evtdly_exprs[1-1]],[register_exprs]]; while (true) { - [ok,this.dt,this.z0,this.exprs] = scicos_getvalue([["This block implements as a discretized delay"],["it is consist of a shift register and a clock"],["value of the delay is given by;","the discretization time step multiplied by the"],["number-1 of state of the register"]],["Discretization time step","Register initial state"],list("vec",1,"vec",-1),this.exprs); + var ok = true; + this.dt = arguments[0]["dt"]; + this.z0 = arguments[0]["z0"]; + this.exprs = inverse(arguments[0]["exprs"]); if (!ok) { break; } |