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/Misc/BACKLASH.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/Misc/BACKLASH.js')
-rw-r--r-- | js/Misc/BACKLASH.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/Misc/BACKLASH.js b/js/Misc/BACKLASH.js index 3f3b3c3d..e08062fc 100644 --- a/js/Misc/BACKLASH.js +++ b/js/Misc/BACKLASH.js @@ -26,15 +26,15 @@ function BACKLASH() { model = arg1.model; rpar = model.rpar; while (true) { - [ok,ini,gap,zcr,exprs] = scicos_getvalue("Set backlash parameters",[["initial output"],["gap"],["use zero-crossing (0:no, 1:yes)"]],list("vec",1,"vec",1,"vec",1),exprs); + [ok,this.ini,this.gap,this.zcr,exprs] = scicos_getvalue("Set backlash parameters",[["initial output"],["gap"],["use zero-crossing (0:no, 1:yes)"]],list("vec",1,"vec",1,"vec",1),exprs); if (!ok) { break; } if (ok) { graphics.exprs = exprs; - rpar[1-1] = ini; - rpar[2-1] = gap; - if (zcr!=0) { + rpar[1-1] = this.ini; + rpar[2-1] = this.gap; + if (this.zcr!=0) { model.nzcross = 2; } else { model.nzcross = 0; |