diff options
Diffstat (limited to 'data_structures/EVTDLY_c.js')
-rw-r--r-- | data_structures/EVTDLY_c.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/data_structures/EVTDLY_c.js b/data_structures/EVTDLY_c.js index 7c573aa..7ada20f 100644 --- a/data_structures/EVTDLY_c.js +++ b/data_structures/EVTDLY_c.js @@ -6,7 +6,7 @@ function EVTDLY_c () { var ff = 0.0; var model = scicos_model(); - model.sim=list("evtdly4",4); + model.sim=list(new ScilabString(["evtdly4"]),new ScilabDouble([4])); model.evtin = new ScilabDouble([1]); model.evtout = new ScilabDouble([1]); model.rpar = new ScilabDouble([dt],[ff]); @@ -14,8 +14,9 @@ function EVTDLY_c () { model.firing=new ScilabDouble([ff]); model.dep_ut = new ScilabBoolean([false,false]); - var exprs = [[dt.toString()],[sci2exp(ff)]]; + var exprs = [[string(dt)],[sci2exp(ff)]]; var gr_i = []; this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); + return new BasicBlock(this.x) } |