diff options
author | Sunil Shetye | 2018-06-26 14:59:47 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-06-26 14:59:47 +0530 |
commit | eb7c8e0cd42d4afe02be3adda2e94b6b0dfdaa00 (patch) | |
tree | 6378935263fe5cafd389b6893ac3b37a1dd4b1a7 /js/Branching/SCALAR2VECTOR.js | |
parent | afed64f1a0eab0b2d742088186d7bc340a2c895b (diff) | |
download | sci2js-eb7c8e0cd42d4afe02be3adda2e94b6b0dfdaa00.tar.gz sci2js-eb7c8e0cd42d4afe02be3adda2e94b6b0dfdaa00.tar.bz2 sci2js-eb7c8e0cd42d4afe02be3adda2e94b6b0dfdaa00.zip |
add return value from scicos_getvalue to global vars
Diffstat (limited to 'js/Branching/SCALAR2VECTOR.js')
-rw-r--r-- | js/Branching/SCALAR2VECTOR.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/js/Branching/SCALAR2VECTOR.js b/js/Branching/SCALAR2VECTOR.js index e849edef..2ca90c29 100644 --- a/js/Branching/SCALAR2VECTOR.js +++ b/js/Branching/SCALAR2VECTOR.js @@ -1,14 +1,14 @@ /* autogenerated from "macros/Branching/SCALAR2VECTOR.sci" */ function SCALAR2VECTOR() { SCALAR2VECTOR.prototype.define = function SCALAR2VECTOR() { - nout = -1; + this.nout = -1; model = scicos_model(); model.sim = list("scalar2vector",4); - model.out = nout; + model.out = this.nout; model.in1 = 1; model.blocktype = "c"; model.dep_ut = [true,false]; - exprs = [string([nout])]; + exprs = [string([this.nout])]; gr_i = []; this.x = standard_define([3,2],model,exprs,gr_i); return new BasicBlock(this.x); @@ -24,17 +24,17 @@ function SCALAR2VECTOR() { exprs = graphics.exprs; model = arg1.model; while (true) { - [ok,nout,exprs] = scicos_getvalue("Set block parameters",["size of output (-1: if don\'t know)"],list("vec",1),exprs); + [ok,this.nout,exprs] = scicos_getvalue("Set block parameters",["size of output (-1: if don\'t know)"],list("vec",1),exprs); if (!ok) { break; } - nout = int(nout); - if ((nout!=-1&&(nout<=0))) { + this.nout = int(this.nout); + if ((this.nout!=-1&&(this.nout<=0))) { message("size of output must be -1 or >0"); ok = false; } if (ok) { - [model,graphics,ok] = check_io(model,graphics,[1],nout,[],[]); + [model,graphics,ok] = check_io(model,graphics,[1],this.nout,[],[]); } if (ok) { graphics.exprs = exprs; |