summaryrefslogtreecommitdiff
path: root/data_structures/CurrentSensor.js
diff options
context:
space:
mode:
Diffstat (limited to 'data_structures/CurrentSensor.js')
-rw-r--r--data_structures/CurrentSensor.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/data_structures/CurrentSensor.js b/data_structures/CurrentSensor.js
index 8bb3dde..386fa14 100644
--- a/data_structures/CurrentSensor.js
+++ b/data_structures/CurrentSensor.js
@@ -2,7 +2,7 @@ function CurrentSensor () {
var model = scicos_model();
- model.in = new ScilabDouble([1]);
+ model.in1 = new ScilabDouble([1]);
model.out = new ScilabDouble([1],[,1]);
model.sim = new ScilabString(["CurrentSensor"]);
model.blocktype = new ScilabString(["c"]);
@@ -17,7 +17,8 @@ function CurrentSensor () {
var exprs = [];
var gr_i = [];
- this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,list(gr_i,0));
+ this.x=standard_define([2,2],model,exprs,list(gr_i,0));
this.x.graphics.in_implicit = new ScilabString(["I"]);
this.x.graphics.out_implicit = new ScilabString(["I";"E"]);
+ return new BasicBlock(this.x)
}