diff options
Diffstat (limited to 'js/Linear/DOLLAR_f.js')
-rw-r--r-- | js/Linear/DOLLAR_f.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/js/Linear/DOLLAR_f.js b/js/Linear/DOLLAR_f.js index 806e701e..0207d703 100644 --- a/js/Linear/DOLLAR_f.js +++ b/js/Linear/DOLLAR_f.js @@ -6,12 +6,12 @@ function DOLLAR_f() { in1 = 1; exprs = string([[z],[this.inh]]); this.model = scicos_model(); - this.model.sim = new ScilabString("dollar"); - this.model.in1 = new ScilabDouble(in1); - this.model.out = new ScilabDouble(in1); - this.model.evtin = new ScilabDouble(1-this.inh); - this.model.dstate = new ScilabDouble(z); - this.model.blocktype = new ScilabString("d"); + this.model.sim = new ScilabString(["dollar"]); + this.model.in1 = new ScilabDouble([in1]); + this.model.out = new ScilabDouble([in1]); + this.model.evtin = new ScilabDouble([1-this.inh]); + this.model.dstate = new ScilabDouble([z]); + this.model.blocktype = new ScilabString(["d"]); this.model.dep_ut = [false,false]; gr_i = []; this.x = standard_define([2,2],this.model,exprs,gr_i); @@ -52,7 +52,7 @@ function DOLLAR_f() { } if (ok) { graphics.exprs = exprs; - this.model.dstate = new ScilabDouble(this.a); + this.model.dstate = new ScilabDouble([this.a]); this.model.in1 = in1; this.model.out = out; this.x.graphics = graphics; |