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