diff options
Diffstat (limited to 'js/Linear/REGISTER_f.js')
-rw-r--r-- | js/Linear/REGISTER_f.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/js/Linear/REGISTER_f.js b/js/Linear/REGISTER_f.js index 9297f41b..7b00bd94 100644 --- a/js/Linear/REGISTER_f.js +++ b/js/Linear/REGISTER_f.js @@ -1,16 +1,16 @@ /* autogenerated from "macros/Linear/REGISTER_f.sci" */ function REGISTER_f() { REGISTER_f.prototype.define = function REGISTER_f() { - z0 = zeros(10,1); + this.z0 = zeros(10,1); model = scicos_model(); model.sim = "delay"; model.in1 = 1; model.out = 1; model.evtin = 1; - model.dstate = z0; + model.dstate = this.z0; model.blocktype = "d"; model.dep_ut = [false,false]; - exprs = strcat(string(z0),";"); + exprs = strcat(string(this.z0),";"); gr_i = []; this.x = standard_define([2.5,2.5],model,exprs,gr_i); return new BasicBlock(this.x); @@ -26,17 +26,17 @@ function REGISTER_f() { exprs = graphics.exprs; model = arg1.model; while (true) { - [ok,z0,exprs] = scicos_getvalue("Set delay parameters","Register initial condition",list("vec",-1),exprs); + [ok,this.z0,exprs] = scicos_getvalue("Set delay parameters","Register initial condition",list("vec",-1),exprs); if (!ok) { break; } - if (prod(size(z0))<1) { + if (prod(size(this.z0))<1) { message("Register length must be at least 1"); ok = false; } if (ok) { graphics.exprs = exprs; - model.dstate = z0; + model.dstate = this.z0; this.x.graphics = graphics; this.x.model = model; break; |