summaryrefslogtreecommitdiff
path: root/data_structures/SIGNUM.js
diff options
context:
space:
mode:
Diffstat (limited to 'data_structures/SIGNUM.js')
-rw-r--r--data_structures/SIGNUM.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/data_structures/SIGNUM.js b/data_structures/SIGNUM.js
index 6c0cda6..39133f5 100644
--- a/data_structures/SIGNUM.js
+++ b/data_structures/SIGNUM.js
@@ -4,16 +4,17 @@ function SIGNUM () {
var nu = -1;
var model = scicos_model();
- model.sim=list("signum",4);
- model.in=new ScilabDouble([nu]);
+ model.sim=list(new ScilabString(["signum"]),new ScilabDouble([4]));
+ model.in1.push(new ScilabDouble([nu]));
model.out=new ScilabDouble([nu]);
model.nzcross=new ScilabDouble([nu]);
model.nmode=new ScilabDouble([nu]);
model.blocktype = new ScilabString(["c"]);
model.dep_ut = new ScilabBoolean([true,false]);
- var exprs = [[1].toString()];
+ var exprs = [string([1])];
var gr_i = [];
this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
}