summaryrefslogtreecommitdiff
path: root/data_structures/RAMP.js
diff options
context:
space:
mode:
Diffstat (limited to 'data_structures/RAMP.js')
-rw-r--r--data_structures/RAMP.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/data_structures/RAMP.js b/data_structures/RAMP.js
index f6f442b..3ff9355 100644
--- a/data_structures/RAMP.js
+++ b/data_structures/RAMP.js
@@ -10,8 +10,8 @@ function RAMP () {
var rpar = [[slope],[stt],[iout]];
var model = scicos_model();
- model.sim=list("ramp",4);
- model.in = new ScilabDouble();
+ model.sim=list(new ScilabString(["ramp"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble();
model.out = new ScilabDouble([1]);
model.rpar=rpar;
model.blocktype = new ScilabString(["c"]);
@@ -19,8 +19,9 @@ function RAMP () {
model.nzcross = new ScilabDouble([1]);
model.dep_ut = new ScilabBoolean([false,true]);
- var exprs = [rpar.toString()];
+ var exprs = [string(rpar)];
var gr_i = [];
this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
}