diff options
Diffstat (limited to 'js/Linear/TIME_DELAY.js')
-rw-r--r-- | js/Linear/TIME_DELAY.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Linear/TIME_DELAY.js b/js/Linear/TIME_DELAY.js index 963504ab..657102ad 100644 --- a/js/Linear/TIME_DELAY.js +++ b/js/Linear/TIME_DELAY.js @@ -6,12 +6,12 @@ function TIME_DELAY() { this.init = 0; this.N = 1024; this.model = scicos_model(); - this.model.sim = list(new ScilabString("time_delay"),new ScilabDouble(4)); + this.model.sim = list(new ScilabString(["time_delay"]), new ScilabDouble([4])); this.model.in1 = [nin]; - this.model.out = new ScilabDouble(nin); + this.model.out = new ScilabDouble([nin]); this.model.rpar = [this.T,this.init]; - this.model.ipar = new ScilabDouble(this.N); - this.model.blocktype = new ScilabString("x"); + this.model.ipar = new ScilabDouble([this.N]); + this.model.blocktype = new ScilabString(["x"]); this.model.dep_ut = [false,true]; exprs = [[string(this.T)],[string(this.init)],[string(this.N)]]; gr_i = []; @@ -57,7 +57,7 @@ function TIME_DELAY() { if (ok) { graphics.exprs = exprs; this.model.rpar = [[this.T],[this.init]]; - this.model.ipar = new ScilabDouble(this.N); + this.model.ipar = new ScilabDouble([this.N]); this.model.dep_ut = [false,true]; this.x.graphics = graphics; this.x.model = this.model; |