summaryrefslogtreecommitdiff
path: root/data_structures/Counter.js
diff options
context:
space:
mode:
Diffstat (limited to 'data_structures/Counter.js')
-rw-r--r--data_structures/Counter.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/data_structures/Counter.js b/data_structures/Counter.js
index d4daec1..9fcff45 100644
--- a/data_structures/Counter.js
+++ b/data_structures/Counter.js
@@ -8,7 +8,7 @@ function Counter () {
var rule = 1;
var model = scicos_model();
- model.sim=list("counter",4);
+ model.sim=list(new ScilabString(["counter"]),new ScilabDouble([4]));
model.evtin = new ScilabDouble([1]);
model.out = new ScilabDouble([1]);
model.out2 = new ScilabDouble([1]);
@@ -17,8 +17,9 @@ function Counter () {
model.blocktype = new ScilabString(["c"]);
model.dep_ut = new ScilabBoolean([false,false]);
- var exprs = [[minim.toString()],[maxim.toString()],[rule.toString()]];
+ var exprs = [[string(minim)],[string(maxim)],[string(rule)]];
var gr_i = [];
this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
}