diff options
Diffstat (limited to 'js/Branching')
-rw-r--r-- | js/Branching/ISELECT_f.js | 2 | ||||
-rw-r--r-- | js/Branching/ISELECT_m.js | 4 | ||||
-rw-r--r-- | js/Branching/M_SWITCH.js | 4 | ||||
-rw-r--r-- | js/Branching/SELECT_m.js | 2 | ||||
-rw-r--r-- | js/Branching/SWITCH2_m.js | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/js/Branching/ISELECT_f.js b/js/Branching/ISELECT_f.js index 1ed5f874..456dd661 100644 --- a/js/Branching/ISELECT_f.js +++ b/js/Branching/ISELECT_f.js @@ -7,7 +7,7 @@ function ISELECT_f() { this.model = scicos_model(); this.model.sim = list(new ScilabString(["selector"]), new ScilabDouble([2])); this.model.in1 = new ScilabDouble([-1]); - this.model.out = out; + this.model.out = new ScilabDouble(out); this.model.evtin = new ScilabDouble([ones(out)]); this.model.dstate = new ScilabDouble([this.z0]); this.model.blocktype = new ScilabString(["c"]); diff --git a/js/Branching/ISELECT_m.js b/js/Branching/ISELECT_m.js index c7506d3a..5ec93016 100644 --- a/js/Branching/ISELECT_m.js +++ b/js/Branching/ISELECT_m.js @@ -5,8 +5,8 @@ function ISELECT_m() { this.nout = 2; this.model = scicos_model(); this.model.sim = list(new ScilabString(["selector_m"]), new ScilabDouble([4])); - this.model.out = [[-1],[-1]]; - this.model.out2 = [[-2],[-2]]; + this.model.out = new ScilabDouble([-1],[-1]); + this.model.out2 = new ScilabDouble([-2],[-2]); this.model.outtyp = new ScilabDouble([1]); this.model.in1 = new ScilabDouble([-1]); this.model.in2 = new ScilabDouble([-2]); diff --git a/js/Branching/M_SWITCH.js b/js/Branching/M_SWITCH.js index e62e2877..c7e681d1 100644 --- a/js/Branching/M_SWITCH.js +++ b/js/Branching/M_SWITCH.js @@ -8,7 +8,7 @@ function M_SWITCH() { this.model.sim = list(new ScilabString(["mswitch"]), new ScilabDouble([4])); this.model.in1 = in1; this.model.out = new ScilabDouble([-1]); - this.model.ipar = ipar; + this.model.ipar = new ScilabDouble(ipar); this.model.blocktype = new ScilabString(["c"]); this.model.dep_ut = [true,false]; exprs = [[string(this.nin)],[string(ipar)]]; @@ -63,7 +63,7 @@ function M_SWITCH() { [this.model,graphics,ok] = set_io(this.model,graphics,list(in1,it),list(out,ot),[],[]); if (ok) { graphics.exprs = exprs; - this.model.ipar = [[this.base],[this.rule]]; + this.model.ipar = new ScilabDouble([this.base],[this.rule]); this.x.graphics = graphics; this.x.model = this.model; break; diff --git a/js/Branching/SELECT_m.js b/js/Branching/SELECT_m.js index 97f56b9e..31529172 100644 --- a/js/Branching/SELECT_m.js +++ b/js/Branching/SELECT_m.js @@ -6,7 +6,7 @@ function SELECT_m() { this.model = scicos_model(); this.model.sim = list(new ScilabString(["selector_m"]), new ScilabDouble([4])); this.model.in1 = [[-1],[-1]]; - this.model.in2 = [[-2],[-2]]; + this.model.in2 = new ScilabDouble([-2],[-2]); this.model.intyp = new ScilabDouble([1]); this.model.out = new ScilabDouble([-1]); this.model.out2 = new ScilabDouble([-2]); diff --git a/js/Branching/SWITCH2_m.js b/js/Branching/SWITCH2_m.js index c557205a..4f78bc26 100644 --- a/js/Branching/SWITCH2_m.js +++ b/js/Branching/SWITCH2_m.js @@ -7,7 +7,7 @@ function SWITCH2_m() { this.model = scicos_model(); this.model.sim = list(new ScilabString(["switch2_m"]), new ScilabDouble([4])); this.model.in1 = [[-1],[1],[-1]]; - this.model.in2 = [[-2],[1],[-2]]; + this.model.in2 = new ScilabDouble([-2],[1],[-2]); this.model.intyp = new ScilabDouble([1]); this.model.out = new ScilabDouble([-1]); this.model.out2 = new ScilabDouble([-2]); |