diff options
author | Sunil Shetye | 2018-07-09 18:10:31 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-10 11:24:53 +0530 |
commit | 9b18945e2e2348db85595fb096a1e1eba04f9baf (patch) | |
tree | bb13cffc501f152b1d33870bdeff6f274aecbf7b /js/Linear/REGISTER.js | |
parent | f19304a4fe99556c5ddc35024c818d00ffe7e23a (diff) | |
download | sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.tar.gz sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.tar.bz2 sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.zip |
remove type from list
Diffstat (limited to 'js/Linear/REGISTER.js')
-rw-r--r-- | js/Linear/REGISTER.js | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/js/Linear/REGISTER.js b/js/Linear/REGISTER.js index ee8118c3..80852342 100644 --- a/js/Linear/REGISTER.js +++ b/js/Linear/REGISTER.js @@ -3,12 +3,12 @@ function REGISTER() { REGISTER.prototype.define = function REGISTER() { this.z0 = zeros(10,1); this.model = scicos_model(); - this.model.sim = list(new ScilabString("delay4"),new ScilabDouble(4)); - this.model.in1 = new ScilabDouble(1); - this.model.out = new ScilabDouble(1); - this.model.evtin = new ScilabDouble(1); - this.model.dstate = new ScilabDouble(this.z0); - this.model.blocktype = new ScilabString("d"); + this.model.sim = list(new ScilabString(["delay4"]), new ScilabDouble([4])); + this.model.in1 = new ScilabDouble([1]); + this.model.out = new ScilabDouble([1]); + this.model.evtin = new ScilabDouble([1]); + this.model.dstate = new ScilabDouble([this.z0]); + this.model.blocktype = new ScilabString(["d"]); this.model.dep_ut = [false,false]; exprs = strcat(string(this.z0),";"); gr_i = []; @@ -45,34 +45,34 @@ function REGISTER() { ok = false; } if (this.it==1) { - this.model.sim = list(new ScilabString("delay4"),new ScilabDouble(4)); + this.model.sim = list(new ScilabString(["delay4"]), new ScilabDouble([4])); this.z0 = double(this.z0); - this.model.dstate = new ScilabDouble(this.z0); + this.model.dstate = new ScilabDouble([this.z0]); this.model.odstate = list(); } else { if (this.it==3) { - this.model.sim = list(new ScilabString("delay4_i32"),new ScilabDouble(4)); + this.model.sim = list(new ScilabString(["delay4_i32"]), new ScilabDouble([4])); this.z0 = int32(this.z0); } else if (this.it==4) { - this.model.sim = list(new ScilabString("delay4_i16"),new ScilabDouble(4)); + this.model.sim = list(new ScilabString(["delay4_i16"]), new ScilabDouble([4])); this.z0 = int16(this.z0); } else if (this.it==5) { - this.model.sim = list(new ScilabString("delay4_i8"),new ScilabDouble(4)); + this.model.sim = list(new ScilabString(["delay4_i8"]), new ScilabDouble([4])); this.z0 = int8(this.z0); } else if (this.it==6) { - this.model.sim = list(new ScilabString("delay4_ui32"),new ScilabDouble(4)); + this.model.sim = list(new ScilabString(["delay4_ui32"]), new ScilabDouble([4])); this.z0 = uint32(this.z0); } else if (this.it==7) { - this.model.sim = list(new ScilabString("delay4_ui16"),new ScilabDouble(4)); + this.model.sim = list(new ScilabString(["delay4_ui16"]), new ScilabDouble([4])); this.z0 = uint16(this.z0); } else if (this.it==8) { - this.model.sim = list(new ScilabString("delay4_ui8"),new ScilabDouble(4)); + this.model.sim = list(new ScilabString(["delay4_ui8"]), new ScilabDouble([4])); this.z0 = uint8(this.z0); } else { message("Datatype is not supported"); ok = false; } - this.model.odstate = list(new ScilabDouble(this.z0)); + this.model.odstate = list(new ScilabDouble([this.z0])); this.model.dstate = []; } if (ok) { |