diff options
Diffstat (limited to 'js/Misc/scifunc_block.js')
-rw-r--r-- | js/Misc/scifunc_block.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/js/Misc/scifunc_block.js b/js/Misc/scifunc_block.js index 45da6f37..a1ebbde9 100644 --- a/js/Misc/scifunc_block.js +++ b/js/Misc/scifunc_block.js @@ -11,17 +11,17 @@ function scifunc_block() { auto = []; this.rpar = []; this.model = scicos_model(); - this.model.sim = list(new ScilabString("scifunc"),new ScilabDouble(3)); - this.model.in1 = new ScilabDouble(in1); - this.model.out = new ScilabDouble(out); + this.model.sim = list(new ScilabString(["scifunc"]), new ScilabDouble([3])); + this.model.in1 = new ScilabDouble([in1]); + this.model.out = new ScilabDouble([out]); this.model.evtin = clkin; this.model.evtout = clkout; this.model.state = x0; this.model.dstate = z0; this.model.rpar = this.rpar; - this.model.ipar = new ScilabDouble(0); + this.model.ipar = new ScilabDouble([0]); this.model.opar = list(); - this.model.blocktype = new ScilabString(typ); + this.model.blocktype = new ScilabString([typ]); this.model.firing = auto; this.model.dep_ut = [true,false]; exprs = list([[sci2exp(in1)],[sci2exp(out)],[sci2exp(clkin)],[sci2exp(clkout)],[strcat(sci2exp(x0))],[strcat(sci2exp(z0))],[strcat(sci2exp(this.rpar))],[sci2exp(auto)]],list("y1=sin(u1)"," "," ","y1=sin(u1)"," "," "," ")); @@ -95,15 +95,15 @@ function scifunc_block() { this.model.dstate = this.z; this.model.rpar = this.rpar; if (this.model.ipar!=0) { - this.model.opar = new ScilabDouble(this.model.ipar); - this.model.ipar = new ScilabDouble(0); + this.model.opar = new ScilabDouble([this.model.ipar]); + this.model.ipar = new ScilabDouble([0]); } if (or(this.model.opar!=tt)) { needcompile = 4; } - this.model.opar = new ScilabDouble(tt); - this.model.firing = new ScilabDouble(auto); - this.model.dep_ut = new ScilabDouble(dep_ut); + this.model.opar = new ScilabDouble([tt]); + this.model.firing = new ScilabDouble([auto]); + this.model.dep_ut = new ScilabDouble([dep_ut]); this.x.model = this.model; exprs[2-1] = tt; graphics.exprs = exprs; |