summaryrefslogtreecommitdiff
path: root/js/Linear/TIME_DELAY.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-11 15:19:38 +0530
committerSunil Shetye2018-07-11 15:21:08 +0530
commit0047c3bea1d86b12a08544f6f0833c63e77f6eac (patch)
tree36fc72fa9e5ea73c64a44e061b2c9c80e0307884 /js/Linear/TIME_DELAY.js
parent079d0b4a3ec15a4d7d2644484d116df9d1c694bb (diff)
downloadsci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.tar.gz
sci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.tar.bz2
sci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.zip
support vector also
Diffstat (limited to 'js/Linear/TIME_DELAY.js')
-rw-r--r--js/Linear/TIME_DELAY.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/Linear/TIME_DELAY.js b/js/Linear/TIME_DELAY.js
index d02b26f5..a4cee6f2 100644
--- a/js/Linear/TIME_DELAY.js
+++ b/js/Linear/TIME_DELAY.js
@@ -7,12 +7,12 @@ function TIME_DELAY() {
this.N = 1024;
this.model = scicos_model();
this.model.sim = list(new ScilabString(["time_delay"]), new ScilabDouble([4]));
- this.model.in1 = [nin];
+ this.model.in1 = new ScilabDouble([nin]);
this.model.out = new ScilabDouble([nin]);
- this.model.rpar = [this.T,this.init];
+ this.model.rpar = new ScilabDouble([this.T,this.init]);
this.model.ipar = new ScilabDouble([this.N]);
this.model.blocktype = new ScilabString(["x"]);
- this.model.dep_ut = [false,true];
+ this.model.dep_ut = new ScilabDouble([false,true]);
var exprs = [[string(this.T)],[string(this.init)],[string(this.N)]];
var gr_i = [];
this.x = standard_define([3.5,2],this.model,exprs,gr_i);
@@ -61,7 +61,7 @@ function TIME_DELAY() {
graphics.exprs = exprs;
this.model.rpar = new ScilabDouble([this.T],[this.init]);
this.model.ipar = new ScilabDouble([this.N]);
- this.model.dep_ut = [false,true];
+ this.model.dep_ut = new ScilabDouble([false,true]);
this.x.graphics = graphics;
this.x.model = this.model;
break;