diff options
Diffstat (limited to 'data_structures/CONST.js')
-rw-r--r-- | data_structures/CONST.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/data_structures/CONST.js b/data_structures/CONST.js index 0c0d368..b34361e 100644 --- a/data_structures/CONST.js +++ b/data_structures/CONST.js @@ -4,8 +4,8 @@ function CONST () { var C = 1; var model = scicos_model(); - model.sim=list("cstblk4",4); - model.in = new ScilabDouble(); + model.sim=list(new ScilabString(["cstblk4"]),new ScilabDouble([4])); + 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 () { var gr_i = []; this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); + return new BasicBlock(this.x) } |