diff options
Diffstat (limited to 'data_structures/CONST_f.js')
-rw-r--r-- | data_structures/CONST_f.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/data_structures/CONST_f.js b/data_structures/CONST_f.js index ce13cff..1983ae4 100644 --- a/data_structures/CONST_f.js +++ b/data_structures/CONST_f.js @@ -4,8 +4,8 @@ function CONST_f () { var C = 1; var model = scicos_model(); - model.sim=list("cstblk",1); - model.in = new ScilabDouble(); + model.sim=list(new ScilabString(["cstblk"]),new ScilabDouble([1])); + model.in1 = new ScilabDouble(); model.out = new ScilabDouble([1]); model.rpar=new ScilabDouble([C]); model.blocktype = new ScilabString(["d"]); @@ -15,4 +15,5 @@ function CONST_f () { var gr_i = []; this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); + return new BasicBlock(this.x) } |