/* autogenerated from "macros/Misc/EDGETRIGGER.sci" */ function EDGETRIGGER() { EDGETRIGGER.prototype.define = function EDGETRIGGER() { 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(this.edge); model.blocktype = "c"; model.dep_ut = [true,false]; exprs = [string(this.edge)]; gr_i = []; this.x = standard_define([3,2],model,exprs,gr_i); return new BasicBlock(this.x); } EDGETRIGGER.prototype.details = function EDGETRIGGER() { return this.x; } EDGETRIGGER.prototype.get = function EDGETRIGGER() { var options = { edge:["rising (1), falling (-1), both (0)",this.edge], } return options; } EDGETRIGGER.prototype.set = function EDGETRIGGER() { this.edge = parseFloat(arguments[0]["edge"]) this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; model = arg1.model; while (true) { [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(this.edge); graphics.exprs = exprs; this.x.graphics = graphics; this.x.model = model; break; } return new BasicBlock(this.x); } }