diff options
Diffstat (limited to 'js/Misc/DEADBAND.js')
-rw-r--r-- | js/Misc/DEADBAND.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/js/Misc/DEADBAND.js b/js/Misc/DEADBAND.js index 7d1dd640..9bcc5fe4 100644 --- a/js/Misc/DEADBAND.js +++ b/js/Misc/DEADBAND.js @@ -5,13 +5,13 @@ function DEADBAND() { this.maxp = .5; rpar = [[this.maxp],[this.minp]]; this.model = scicos_model(); - this.model.sim = list(new ScilabString("deadband"),new ScilabDouble(4)); - this.model.in1 = new ScilabDouble(1); - this.model.nzcross = new ScilabDouble(2); - this.model.nmode = new ScilabDouble(1); - this.model.out = new ScilabDouble(1); + this.model.sim = list(new ScilabString(["deadband"]), new ScilabDouble([4])); + this.model.in1 = new ScilabDouble([1]); + this.model.nzcross = new ScilabDouble([2]); + this.model.nmode = new ScilabDouble([1]); + this.model.out = new ScilabDouble([1]); this.model.rpar = rpar; - this.model.blocktype = new ScilabString("c"); + this.model.blocktype = new ScilabString(["c"]); this.model.dep_ut = [true,false]; exprs = [[string(this.maxp)],[string(this.minp)],[string(this.model.nmode)]]; gr_i = []; @@ -48,11 +48,11 @@ function DEADBAND() { rpar = [[this.maxp],[this.minp]]; this.model.rpar = rpar; if (this.zeroc!=0) { - this.model.nzcross = new ScilabDouble(2); - this.model.nmode = new ScilabDouble(1); + this.model.nzcross = new ScilabDouble([2]); + this.model.nmode = new ScilabDouble([1]); } else { - this.model.nzcross = new ScilabDouble(0); - this.model.nmode = new ScilabDouble(0); + this.model.nzcross = new ScilabDouble([0]); + this.model.nmode = new ScilabDouble([0]); } graphics.exprs = exprs; this.x.graphics = graphics; |