diff options
Diffstat (limited to 'js/Branching')
-rw-r--r-- | js/Branching/M_SWITCH.js | 2 | ||||
-rw-r--r-- | js/Branching/NRMSOM_f.js | 2 | ||||
-rw-r--r-- | js/Branching/RELAY_f.js | 2 | ||||
-rw-r--r-- | js/Branching/SELECT_f.js | 2 | ||||
-rw-r--r-- | js/Branching/SELECT_m.js | 2 | ||||
-rw-r--r-- | js/Branching/SWITCH2.js | 2 | ||||
-rw-r--r-- | js/Branching/SWITCH2_m.js | 2 | ||||
-rw-r--r-- | js/Branching/SWITCH_f.js | 2 |
8 files changed, 8 insertions, 8 deletions
diff --git a/js/Branching/M_SWITCH.js b/js/Branching/M_SWITCH.js index c7e681d1..093f2f54 100644 --- a/js/Branching/M_SWITCH.js +++ b/js/Branching/M_SWITCH.js @@ -6,7 +6,7 @@ function M_SWITCH() { this.nin = 2; this.model = scicos_model(); this.model.sim = list(new ScilabString(["mswitch"]), new ScilabDouble([4])); - this.model.in1 = in1; + this.model.in1 = new ScilabDouble(in1); this.model.out = new ScilabDouble([-1]); this.model.ipar = new ScilabDouble(ipar); this.model.blocktype = new ScilabString(["c"]); diff --git a/js/Branching/NRMSOM_f.js b/js/Branching/NRMSOM_f.js index 21cbd5ce..8414f30f 100644 --- a/js/Branching/NRMSOM_f.js +++ b/js/Branching/NRMSOM_f.js @@ -5,7 +5,7 @@ function NRMSOM_f() { this.nin = 2; this.model = scicos_model(); this.model.sim = new ScilabString(["junk"]); - this.model.in1 = in1; + this.model.in1 = new ScilabDouble(in1); this.model.out = new ScilabDouble([-1]); this.model.blocktype = new ScilabString(["c"]); this.model.dep_ut = [true,false]; diff --git a/js/Branching/RELAY_f.js b/js/Branching/RELAY_f.js index 910ce11e..a6e811d7 100644 --- a/js/Branching/RELAY_f.js +++ b/js/Branching/RELAY_f.js @@ -6,7 +6,7 @@ function RELAY_f() { this.nin = 2; this.model = scicos_model(); this.model.sim = list(new ScilabString(["relay"]), new ScilabDouble([2])); - this.model.in1 = in1; + this.model.in1 = new ScilabDouble(in1); this.model.out = new ScilabDouble([-1]); this.model.evtin = new ScilabDouble([ones(in1)]); this.model.dstate = new ScilabDouble([i0]); diff --git a/js/Branching/SELECT_f.js b/js/Branching/SELECT_f.js index bf3a26de..a5527aa8 100644 --- a/js/Branching/SELECT_f.js +++ b/js/Branching/SELECT_f.js @@ -6,7 +6,7 @@ function SELECT_f() { this.nin = 2; this.model = scicos_model(); this.model.sim = list(new ScilabString(["selector"]), new ScilabDouble([2])); - this.model.in1 = in1; + this.model.in1 = new ScilabDouble(in1); this.model.out = new ScilabDouble([-1]); this.model.evtin = new ScilabDouble([ones(in1)]); this.model.dstate = new ScilabDouble([this.z0]); diff --git a/js/Branching/SELECT_m.js b/js/Branching/SELECT_m.js index 31529172..6f05f7ca 100644 --- a/js/Branching/SELECT_m.js +++ b/js/Branching/SELECT_m.js @@ -5,7 +5,7 @@ function SELECT_m() { this.nin = 2; this.model = scicos_model(); this.model.sim = list(new ScilabString(["selector_m"]), new ScilabDouble([4])); - this.model.in1 = [[-1],[-1]]; + this.model.in1 = new ScilabDouble([-1],[-1]); this.model.in2 = new ScilabDouble([-2],[-2]); this.model.intyp = new ScilabDouble([1]); this.model.out = new ScilabDouble([-1]); diff --git a/js/Branching/SWITCH2.js b/js/Branching/SWITCH2.js index 8c1270d3..5b80f243 100644 --- a/js/Branching/SWITCH2.js +++ b/js/Branching/SWITCH2.js @@ -7,7 +7,7 @@ function SWITCH2() { rpar = 0; this.model = scicos_model(); this.model.sim = list(new ScilabString(["switch2"]), new ScilabDouble([4])); - this.model.in1 = in1; + this.model.in1 = new ScilabDouble(in1); this.model.out = new ScilabDouble([-1]); this.model.ipar = ipar; this.model.rpar = new ScilabDouble([rpar]); diff --git a/js/Branching/SWITCH2_m.js b/js/Branching/SWITCH2_m.js index 4f78bc26..8dbaa1e6 100644 --- a/js/Branching/SWITCH2_m.js +++ b/js/Branching/SWITCH2_m.js @@ -6,7 +6,7 @@ function SWITCH2_m() { rpar = 0; this.model = scicos_model(); this.model.sim = list(new ScilabString(["switch2_m"]), new ScilabDouble([4])); - this.model.in1 = [[-1],[1],[-1]]; + this.model.in1 = new ScilabDouble([-1],[1],[-1]); this.model.in2 = new ScilabDouble([-2],[1],[-2]); this.model.intyp = new ScilabDouble([1]); this.model.out = new ScilabDouble([-1]); diff --git a/js/Branching/SWITCH_f.js b/js/Branching/SWITCH_f.js index dbd37d01..1b4846f9 100644 --- a/js/Branching/SWITCH_f.js +++ b/js/Branching/SWITCH_f.js @@ -6,7 +6,7 @@ function SWITCH_f() { this.nin = 2; this.model = scicos_model(); this.model.sim = list(new ScilabString(["switchn"]), new ScilabDouble([2])); - this.model.in1 = in1; + this.model.in1 = new ScilabDouble(in1); this.model.out = new ScilabDouble([-1]); this.model.ipar = new ScilabDouble([i0]); this.model.blocktype = new ScilabString(["c"]); |