diff options
Diffstat (limited to 'data_structures/GAINBLK.js')
-rw-r--r-- | data_structures/GAINBLK.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/data_structures/GAINBLK.js b/data_structures/GAINBLK.js index 4627818..c16da52 100644 --- a/data_structures/GAINBLK.js +++ b/data_structures/GAINBLK.js @@ -3,13 +3,13 @@ function GAINBLK () { var gain = 1; - var in = -1],[out=-1; + var in1 = -1],[out=-1; var in2 = -2],[out2=-2; var model = scicos_model(); - model.sim=list("gainblk",4); - model.in=new ScilabDouble([in]); + model.sim=list(new ScilabString(["gainblk"]),new ScilabDouble([4])); + model.in1.push(new ScilabDouble([in1])); model.out=out; model.in2.push(new ScilabDouble([in2])); model.out2.push(out2); @@ -21,4 +21,5 @@ function GAINBLK () { var gr_i = []; this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); + return new BasicBlock(this.x) } |