diff options
Diffstat (limited to 'js/Events/END_c.js')
-rw-r--r-- | js/Events/END_c.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/js/Events/END_c.js b/js/Events/END_c.js index c9d0dec4..ec7627e1 100644 --- a/js/Events/END_c.js +++ b/js/Events/END_c.js @@ -2,16 +2,16 @@ function END_c() { END_c.prototype.define = function END_c() { this.tf = 100000000; - model = scicos_model(); - model.sim = list("scicosexit",4); - model.evtin = 1; - model.evtout = 1; - model.firing = this.tf; - model.blocktype = "d"; - model.dep_ut = [false,false]; + this.model = scicos_model(); + this.model.sim = list("scicosexit",4); + this.model.evtin = new ScilabDouble(1); + this.model.evtout = new ScilabDouble(1); + this.model.firing = new ScilabDouble(this.tf); + this.model.blocktype = new ScilabString("d"); + this.model.dep_ut = [false,false]; exprs = string(this.tf); 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); } END_c.prototype.details = function END_c() { @@ -28,7 +28,7 @@ function END_c() { this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; - model = arg1.model; + this.model = arg1.model; while (true) { [ok,this.tf,exprs] = scicos_getvalue("Set final simulation time",["Final simulation time"],list("vec",1),exprs); if (!ok) { @@ -36,9 +36,9 @@ function END_c() { } if (ok) { graphics.exprs = exprs; - model.firing = this.tf; + this.model.firing = new ScilabDouble(this.tf); this.x.graphics = graphics; - this.x.model = model; + this.x.model = this.model; break; } } |