diff options
Diffstat (limited to 'js/Linear/GAINBLK_f.js')
-rw-r--r-- | js/Linear/GAINBLK_f.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/js/Linear/GAINBLK_f.js b/js/Linear/GAINBLK_f.js index 614fc461..a2525140 100644 --- a/js/Linear/GAINBLK_f.js +++ b/js/Linear/GAINBLK_f.js @@ -28,8 +28,8 @@ function GAINBLK_f() { GAINBLK_f.prototype.set = function GAINBLK_f() { this.gain = parseFloat(arguments[0]["gain"]) this.x = arg1; - var graphics = arg1.graphics; - var exprs = graphics.exprs; + this.graphics = arg1.graphics; + var exprs = this.graphics.exprs; this.model = arg1.model; while (true) { [ok,this.gain,exprs] = scicos_getvalue("Set gain block parameters",["Gain"],list("mat",[-1,-1]),exprs[1-1]); @@ -39,17 +39,17 @@ function GAINBLK_f() { if (this.gain==[]) { message("Gain must have at least one element"); } else { - var tmpvar0 = size(this.gain) - var out = tmpvar0[0] + var tmpvar0 = size(this.gain); + var out = tmpvar0[0]; var in1 = tmpvar0[1]; - var tmpvar1 = check_io(this.model,graphics,in1,out,[],[]) - this.model = tmpvar1[0] - var graphics = tmpvar1[1] + var tmpvar1 = check_io(this.model,this.graphics,in1,out,[],[]); + this.model = tmpvar1[0]; + this.graphics = tmpvar1[1]; var ok = tmpvar1[2]; if (ok) { - graphics.exprs = exprs; + this.graphics.exprs = new ScilabDouble([exprs]); this.model.rpar = new ScilabDouble(this.gain.slice()); - this.x.graphics = graphics; + this.x.graphics = this.graphics; this.x.model = this.model; break; } |