diff options
Diffstat (limited to 'data_structures/SUM_f.js')
-rw-r--r-- | data_structures/SUM_f.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/data_structures/SUM_f.js b/data_structures/SUM_f.js index 4ee32df..2497a34 100644 --- a/data_structures/SUM_f.js +++ b/data_structures/SUM_f.js @@ -2,8 +2,8 @@ function SUM_f () { var model = scicos_model(); - model.sim=list("plusblk",2); - model.in = new ScilabDouble([-1],[-1],[-1]); + model.sim=list(new ScilabString(["plusblk"]),new ScilabDouble([2])); + model.in1 = new ScilabDouble([-1],[-1],[-1]); model.out = new ScilabDouble([-1]); model.blocktype = new ScilabString(["c"]); model.dep_ut = new ScilabBoolean([true,false]); @@ -12,4 +12,5 @@ function SUM_f () { var exprs = []; this.x=new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i); + return new RoundBlock(this.x) } |