diff options
Diffstat (limited to 'js/Misc/CONSTRAINT2_c.js')
-rw-r--r-- | js/Misc/CONSTRAINT2_c.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/Misc/CONSTRAINT2_c.js b/js/Misc/CONSTRAINT2_c.js index 88363986..4e80c864 100644 --- a/js/Misc/CONSTRAINT2_c.js +++ b/js/Misc/CONSTRAINT2_c.js @@ -5,12 +5,12 @@ function CONSTRAINT2_c() { this.xd0 = [0]; this.id = [0]; this.model = scicos_model(); - this.model.sim = list(new ScilabString("constraint_c"),new ScilabDouble(10004)); - this.model.in1 = new ScilabDouble(1); + this.model.sim = list(new ScilabString(["constraint_c"]), new ScilabDouble([10004])); + this.model.in1 = new ScilabDouble([1]); this.model.out = [[1],[1]]; this.model.state = [[this.x0],[this.xd0]]; this.model.ipar = this.id; - this.model.blocktype = new ScilabString("c"); + this.model.blocktype = new ScilabString(["c"]); this.model.dep_ut = [false,true]; exprs = list(strcat(sci2exp(this.x0)),strcat(sci2exp(this.xd0)),strcat(sci2exp(this.id))); gr_i = []; @@ -72,7 +72,7 @@ function CONSTRAINT2_c() { graphics.exprs = exprs; this.model.state = [[this.x0],[this.xd0]]; this.model.out = [[N],[N]]; - this.model.in1 = new ScilabDouble(N); + this.model.in1 = new ScilabDouble([N]); this.model.ipar = this.id; this.x.graphics = graphics; this.x.model = this.model; |