diff options
Diffstat (limited to 'js/Electrical/CurrentSensor.js')
-rw-r--r-- | js/Electrical/CurrentSensor.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/Electrical/CurrentSensor.js b/js/Electrical/CurrentSensor.js index 2736b21f..012f2595 100644 --- a/js/Electrical/CurrentSensor.js +++ b/js/Electrical/CurrentSensor.js @@ -2,16 +2,16 @@ function CurrentSensor() { CurrentSensor.prototype.define = function CurrentSensor() { this.model = scicos_model(); - this.model.in1 = new ScilabDouble(1); + this.model.in1 = new ScilabDouble([1]); this.model.out = [[1],[1]]; - this.model.sim = new ScilabString("CurrentSensor"); - this.model.blocktype = new ScilabString("c"); + this.model.sim = new ScilabString(["CurrentSensor"]); + this.model.blocktype = new ScilabString(["c"]); this.model.dep_ut = [true,false]; mo = modelica(); mo.model = "CurrentSensor"; mo.inputs = "p"; mo.outputs = [["n"],["i"]]; - this.model.equations = new ScilabDouble(mo); + this.model.equations = new ScilabDouble([mo]); exprs = []; gr_i = []; this.x = standard_define([2,2],this.model,exprs,list(gr_i,0)); |