summaryrefslogtreecommitdiff
path: root/js/Linear/DOLLAR_f.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Linear/DOLLAR_f.js')
-rw-r--r--js/Linear/DOLLAR_f.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/Linear/DOLLAR_f.js b/js/Linear/DOLLAR_f.js
index bdb02f50..a892a191 100644
--- a/js/Linear/DOLLAR_f.js
+++ b/js/Linear/DOLLAR_f.js
@@ -2,14 +2,14 @@
function DOLLAR_f() {
DOLLAR_f.prototype.define = function DOLLAR_f() {
z = 0;
- inh = 0;
+ this.inh = 0;
in1 = 1;
- exprs = string([[z],[inh]]);
+ exprs = string([[z],[this.inh]]);
model = scicos_model();
model.sim = "dollar";
model.in1 = in1;
model.out = in1;
- model.evtin = 1-inh;
+ model.evtin = 1-this.inh;
model.dstate = z;
model.blocktype = "d";
model.dep_ut = [false,false];
@@ -31,21 +31,21 @@ function DOLLAR_f() {
exprs[2-1] = "0";
}
while (true) {
- [ok,a,inh,exprs] = scicos_getvalue("Set 1/z block parameters",[["initial condition"],["Inherit (no:0, yes:1)"]],list("vec",-1,"vec",-1),exprs);
+ [ok,this.a,this.inh,exprs] = scicos_getvalue("Set 1/z block parameters",[["initial condition"],["Inherit (no:0, yes:1)"]],list("vec",-1,"vec",-1),exprs);
if (!ok) {
break;
}
- out = size(a,"*");
+ out = size(this.a,"*");
if (out==0) {
out = [];
}
in1 = out;
if (ok) {
- [model,graphics,ok] = check_io(model,graphics,-1,-1,ones(1-inh,1),[]);
+ [model,graphics,ok] = check_io(model,graphics,-1,-1,ones(1-this.inh,1),[]);
}
if (ok) {
graphics.exprs = exprs;
- model.dstate = a;
+ model.dstate = this.a;
model.in1 = in1;
model.out = out;
this.x.graphics = graphics;