summaryrefslogtreecommitdiff
path: root/data_structures/DOLLAR_m.js
diff options
context:
space:
mode:
Diffstat (limited to 'data_structures/DOLLAR_m.js')
-rw-r--r--data_structures/DOLLAR_m.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/data_structures/DOLLAR_m.js b/data_structures/DOLLAR_m.js
index bc45e45..155f35b 100644
--- a/data_structures/DOLLAR_m.js
+++ b/data_structures/DOLLAR_m.js
@@ -5,14 +5,14 @@ function DOLLAR_m () {
var inh = 0;
- var in = 1;
+ var in1 = 1;
- var exprs = [[z],[inh].toString()];
+ var exprs = string([z],[inh]);
var model = scicos_model();
- model.sim=list("dollar4",4);
- model.in=new ScilabDouble([in]);
- model.out=new ScilabDouble([in]);
+ model.sim=list(new ScilabString(["dollar4"]),new ScilabDouble([4]));
+ model.in1.push(new ScilabDouble([in1]));
+ model.out=new ScilabDouble([in1]);
model.evtin = new ScilabDouble([1-inh]);
model.dstate=new ScilabDouble([z]);
model.blocktype = new ScilabString(["d"]);
@@ -20,4 +20,5 @@ function DOLLAR_m () {
var gr_i = [];
this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
}