diff options
Diffstat (limited to 'js/Misc/HYSTHERESIS.js')
-rw-r--r-- | js/Misc/HYSTHERESIS.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/js/Misc/HYSTHERESIS.js b/js/Misc/HYSTHERESIS.js index 2f0a6d56..b4e1421b 100644 --- a/js/Misc/HYSTHERESIS.js +++ b/js/Misc/HYSTHERESIS.js @@ -6,13 +6,13 @@ function HYSTHERESIS() { this.nzz = 2; rpar = [[1],[0],[1],[0]]; this.model = scicos_model(); - this.model.sim = list(new ScilabString("hystheresis"),new ScilabDouble(4)); - this.model.in1 = new ScilabDouble(in1); - this.model.out = new ScilabDouble(1); + this.model.sim = list(new ScilabString(["hystheresis"]), new ScilabDouble([4])); + this.model.in1 = new ScilabDouble([in1]); + this.model.out = new ScilabDouble([1]); this.model.rpar = rpar; - this.model.nzcross = new ScilabDouble(this.nzz); - this.model.nmode = new ScilabDouble(1); - this.model.blocktype = new ScilabString("c"); + this.model.nzcross = new ScilabDouble([this.nzz]); + this.model.nmode = new ScilabDouble([1]); + this.model.blocktype = new ScilabString(["c"]); this.model.dep_ut = [true,false]; exprs = [[string(rpar)],[string(sign(this.nzz))]]; gr_i = []; @@ -55,7 +55,7 @@ function HYSTHERESIS() { if (this.nzz>0) { this.nzz = 2; } - this.model.nzcross = new ScilabDouble(this.nzz); + this.model.nzcross = new ScilabDouble([this.nzz]); this.x.graphics = graphics; this.x.model = this.model; break; |