diff options
Diffstat (limited to 'js/Misc/EDGETRIGGER.js')
-rw-r--r-- | js/Misc/EDGETRIGGER.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Misc/EDGETRIGGER.js b/js/Misc/EDGETRIGGER.js index 5cffb67e..1f9a65a8 100644 --- a/js/Misc/EDGETRIGGER.js +++ b/js/Misc/EDGETRIGGER.js @@ -1,17 +1,17 @@ /* autogenerated from "macros/Misc/EDGETRIGGER.sci" */ function EDGETRIGGER() { EDGETRIGGER.prototype.define = function EDGETRIGGER() { - edge = 1; + this.edge = 1; model = scicos_model(); model.sim = list("edgetrig",4); model.in1 = 1; model.out = 1; model.dstate = 0; model.nzcross = 1; - model.ipar = sign(edge); + model.ipar = sign(this.edge); model.blocktype = "c"; model.dep_ut = [true,false]; - exprs = [string(edge)]; + exprs = [string(this.edge)]; gr_i = []; this.x = standard_define([3,2],model,exprs,gr_i); return new BasicBlock(this.x); @@ -27,11 +27,11 @@ function EDGETRIGGER() { exprs = graphics.exprs; model = arg1.model; while (true) { - [ok,edge,exprs] = scicos_getvalue("Set edge trigger block parameters",["rising (1), falling (-1), both (0)"],list("vec",1),exprs); + [ok,this.edge,exprs] = scicos_getvalue("Set edge trigger block parameters",["rising (1), falling (-1), both (0)"],list("vec",1),exprs); if (!ok) { break; } - model.ipar = sign(edge); + model.ipar = sign(this.edge); graphics.exprs = exprs; this.x.graphics = graphics; this.x.model = model; |