summaryrefslogtreecommitdiff
path: root/data_structures/DEADBAND.js
diff options
context:
space:
mode:
Diffstat (limited to 'data_structures/DEADBAND.js')
-rw-r--r--data_structures/DEADBAND.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/data_structures/DEADBAND.js b/data_structures/DEADBAND.js
index a9867ed..b5c34e3 100644
--- a/data_structures/DEADBAND.js
+++ b/data_structures/DEADBAND.js
@@ -8,8 +8,8 @@ function DEADBAND () {
var rpar = [[maxp],[minp]];
var model = scicos_model();
- model.sim=list("deadband",4);
- model.in = new ScilabDouble([1]);
+ model.sim=list(new ScilabString(["deadband"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([1]);
model.nzcross = new ScilabDouble([2]);
model.nmode = new ScilabDouble([1]);
model.out = new ScilabDouble([1]);
@@ -17,8 +17,9 @@ function DEADBAND () {
model.blocktype = new ScilabString(["c"]);
model.dep_ut = new ScilabBoolean([true,false]);
- var exprs = [[maxp.toString()],[minp.toString()],[model.nmode.toString()]];
+ var exprs = [[string(maxp)],[string(minp)],[string(model.nmode)]];
var gr_i = [];
this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
}