diff options
Diffstat (limited to 'data_structures/CSCOPXY.js')
-rw-r--r-- | data_structures/CSCOPXY.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/data_structures/CSCOPXY.js b/data_structures/CSCOPXY.js index d044b30..17808c5 100644 --- a/data_structures/CSCOPXY.js +++ b/data_structures/CSCOPXY.js @@ -22,8 +22,8 @@ function CSCOPXY () { var nbr_curves = 1; var model = scicos_model(); - model.sim=list("cscopxy",4); - model.in = new ScilabDouble([1],[1]); + model.sim=list(new ScilabString(["cscopxy"]),new ScilabDouble([4])); + model.in1 = new ScilabDouble([1],[1]); model.in2 = new ScilabDouble([1],[1]); model.intyp = new ScilabDouble([1],[1]); model.evtin = new ScilabDouble([1]); @@ -32,8 +32,9 @@ function CSCOPXY () { model.blocktype = new ScilabString(["d"]); model.dep_ut = new ScilabBoolean([false,false]); - var exprs = [[nbr_curves.toString()],[sci2exp(clrs)],[sci2exp(siz)],[win.toString()],[sci2exp([])],[sci2exp(wdim)],[xmin.toString()],[xmax.toString()],[ymin.toString()],[ymax.toString()],[N.toString()]]; + var exprs = [[string(nbr_curves)],[sci2exp(clrs)],[sci2exp(siz)],[string(win)],[sci2exp([])],[sci2exp(wdim)],[string(xmin)],[string(xmax)],[string(ymin)],[string(ymax)],[string(N)]]; var gr_i = []; this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); + return new BasicBlock(this.x) } |