summaryrefslogtreecommitdiff
path: root/js/Electrical/Diode.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-09 18:10:31 +0530
committerSunil Shetye2018-07-10 11:24:53 +0530
commit9b18945e2e2348db85595fb096a1e1eba04f9baf (patch)
treebb13cffc501f152b1d33870bdeff6f274aecbf7b /js/Electrical/Diode.js
parentf19304a4fe99556c5ddc35024c818d00ffe7e23a (diff)
downloadsci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.tar.gz
sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.tar.bz2
sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.zip
remove type from list
Diffstat (limited to 'js/Electrical/Diode.js')
-rw-r--r--js/Electrical/Diode.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Electrical/Diode.js b/js/Electrical/Diode.js
index 318a1d5e..1b0e2795 100644
--- a/js/Electrical/Diode.js
+++ b/js/Electrical/Diode.js
@@ -7,17 +7,17 @@ function Diode() {
this.R = 1.e8;
this.model = scicos_model();
this.model.rpar = [[this.Ids],[this.Vt],[this.Maxexp],[this.R]];
- this.model.in1 = new ScilabDouble(1);
- this.model.out = new ScilabDouble(1);
- this.model.sim = new ScilabString("Diode");
- this.model.blocktype = new ScilabString("c");
+ this.model.in1 = new ScilabDouble([1]);
+ this.model.out = new ScilabDouble([1]);
+ this.model.sim = new ScilabString(["Diode"]);
+ this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = [true,false];
mo = modelica();
mo.model = "Diode";
mo.inputs = "p";
mo.outputs = "n";
mo.parameters = list(["Ids","Vt","Maxexp","R"],list(this.Ids,this.Vt,this.Maxexp,this.R));
- this.model.equations = new ScilabDouble(mo);
+ this.model.equations = new ScilabDouble([mo]);
exprs = string([[this.Ids],[this.Vt],[this.Maxexp],[this.R]]);
gr_i = [];
this.x = standard_define([2,1],this.model,exprs,list(gr_i,0));