diff options
Diffstat (limited to 'js/Sources/PULSE_SC.js')
-rw-r--r-- | js/Sources/PULSE_SC.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Sources/PULSE_SC.js b/js/Sources/PULSE_SC.js index a24a6696..9a07b14e 100644 --- a/js/Sources/PULSE_SC.js +++ b/js/Sources/PULSE_SC.js @@ -40,9 +40,9 @@ function PULSE_SC() { var W = 30; var F = 1; var A = 1; - this.exprs = [sci2exp(E),sci2exp(W),sci2exp(F),sci2exp(A)]; - this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"PULSE_SC\",sz(1),sz(2));"]); - this.x = new standard_define(new ScilabDouble([3,2]),this.model,new ScilabString(this.exprs),this.gr_i); + var exprs = [sci2exp(E),sci2exp(W),sci2exp(F),sci2exp(A)]; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"PULSE_SC\",sz(1),sz(2));"]); + this.x = new standard_define(new ScilabDouble([3,2]),this.model,new ScilabString(exprs),gr_i); return new BasicBlock(this.x); } PULSE_SC.prototype.details = function PULSE_SC() { @@ -60,7 +60,7 @@ function PULSE_SC() { PULSE_SC.prototype.set = function PULSE_SC() { var y = this.needcompile; var typ = list(); - this.exprs = this.graphics.exprs; + var exprs = this.graphics.exprs; var Btitre = "Set Pulse Generator parameters"; var Exprs0 = [["E"],["W"],["F"],["A"]]; this.Bitems = [["Phase delay (secs):"],["Pulse Width (% of period):"],["Period (secs):"],["Amplitude:"]]; @@ -89,7 +89,7 @@ function PULSE_SC() { var ok = tmpvar1[3]; if (ok) { var y = max(2,this.needcompile,needcompile2); - this.x.graphics.exprs = this.exprs; + this.x.graphics.exprs = exprs; this.x.model.rpar = sblock; break; } |