diff options
Diffstat (limited to 'js/Events/EVTDLY_f.js')
-rw-r--r-- | js/Events/EVTDLY_f.js | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/js/Events/EVTDLY_f.js b/js/Events/EVTDLY_f.js index 6086f551..80e0455b 100644 --- a/js/Events/EVTDLY_f.js +++ b/js/Events/EVTDLY_f.js @@ -3,17 +3,17 @@ function EVTDLY_f() { EVTDLY_f.prototype.define = function EVTDLY_f() { this.dt = 0.1; this.ff = this.dt; - model = scicos_model(); - model.sim = "evtdly"; - model.evtin = 1; - model.evtout = 1; - model.rpar = this.dt; - model.blocktype = "d"; - model.firing = this.ff; - model.dep_ut = [false,false]; + this.model = scicos_model(); + this.model.sim = new ScilabString("evtdly"); + this.model.evtin = new ScilabDouble(1); + this.model.evtout = new ScilabDouble(1); + this.model.rpar = new ScilabDouble(this.dt); + this.model.blocktype = new ScilabString("d"); + this.model.firing = new ScilabDouble(this.ff); + this.model.dep_ut = [false,false]; exprs = [[string(this.dt)],[sci2exp(this.ff)]]; gr_i = []; - this.x = standard_define([2,2],model,exprs,gr_i); + this.x = standard_define([2,2],this.model,exprs,gr_i); return new BasicBlock(this.x); } EVTDLY_f.prototype.details = function EVTDLY_f() { @@ -32,7 +32,7 @@ function EVTDLY_f() { this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; - model = arg1.model; + this.model = arg1.model; while (true) { [ok,this.dt,this.ff,exprs] = scicos_getvalue([["Set Event Delay block parameters"],["Delay is the delay between an input event "],[" and the generated output event"],["Block may initially generate an output event before "],[" any input event. \"Date of initial output event\""],[" gives the date of this event. Set a negative value"],[" if no initial event required"]],["Delay","Date of initial output event"],list("vec",1,"vec",1),exprs); if (!ok) { @@ -44,10 +44,10 @@ function EVTDLY_f() { } if (ok) { graphics.exprs = exprs; - model.rpar = this.dt; - model.firing = this.ff; + this.model.rpar = new ScilabDouble(this.dt); + this.model.firing = new ScilabDouble(this.ff); this.x.graphics = graphics; - this.x.model = model; + this.x.model = this.model; break; } } |