From eb7c8e0cd42d4afe02be3adda2e94b6b0dfdaa00 Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Tue, 26 Jun 2018 14:59:47 +0530 Subject: add return value from scicos_getvalue to global vars --- js/Linear/CLR.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/Linear/CLR.js') diff --git a/js/Linear/CLR.js b/js/Linear/CLR.js index 3d97e275..a985ba29 100644 --- a/js/Linear/CLR.js +++ b/js/Linear/CLR.js @@ -37,16 +37,16 @@ function CLR() { PREVAR_scicos_context = PREVAR_scicos_context; PREVAR_scicos_context.s = %s; while (true) { - [ok,num,den,exprs] = scicos_getvalue("Set continuous SISO transfer parameters",[["Numerator (s)"],["Denominator (s)"]],list("pol",1,"pol",1),exprs); + [ok,this.num,this.den,exprs] = scicos_getvalue("Set continuous SISO transfer parameters",[["Numerator (s)"],["Denominator (s)"]],list("pol",1,"pol",1),exprs); if (!ok) { break; } - if (degree(num)>degree(den)) { + if (degree(this.num)>degree(this.den)) { message("Transfer function must be proper or strictly proper."); ok = false; } if (ok) { - H = cont_frm(num,den); + H = cont_frm(this.num,this.den); [A,B,C,D] = H.slice(2-1,5); graphics.exprs = exprs; [ns1,ns1] = size(A); -- cgit