/* autogenerated from "macros/Linear/SAMPHOLD.sci" */ function SAMPHOLD() { SAMPHOLD.prototype.define = function SAMPHOLD() { var in1 = -1; this.model = scicos_model(); this.model.sim = list(new ScilabString(["samphold4"]), new ScilabDouble([4])); this.model.in = new ScilabDouble([-1]); this.model.out = new ScilabDouble([-1]); this.model.evtin = new ScilabDouble([1]); this.model.blocktype = new ScilabString(["d"]); this.model.dep_ut = new ScilabBoolean([true,false]); var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SAMPHOLD\",sz(1),sz(2));"]); this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabString([" "]),gr_i); return new BasicBlock(this.x); } SAMPHOLD.prototype.details = function SAMPHOLD() { return this.x; } SAMPHOLD.prototype.get = function SAMPHOLD() { alert("parameters cannot be modified"); } SAMPHOLD.prototype.set = function SAMPHOLD() { this.x.model.firing = []; return new BasicBlock(this.x); } SAMPHOLD.prototype.get_popup_title = function SAMPHOLD() { var set_param_popup_title = "Set parameters"; return set_param_popup_title; } }