summaryrefslogtreecommitdiff
path: root/js/Misc/HYSTHERESIS.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Misc/HYSTHERESIS.js')
-rw-r--r--js/Misc/HYSTHERESIS.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/Misc/HYSTHERESIS.js b/js/Misc/HYSTHERESIS.js
index 981bbdfe..c3018391 100644
--- a/js/Misc/HYSTHERESIS.js
+++ b/js/Misc/HYSTHERESIS.js
@@ -39,8 +39,8 @@ function HYSTHERESIS() {
this.out_low = arguments[0]["out_low"]
this.nzz = parseFloat(arguments[0]["nzz"])
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
[ok,this.high_lim,this.low_lim,this.out_high,this.out_low,this.nzz,exprs] = scicos_getvalue("Set parameters",["switch on at","switch off at","output when on","output when off","use zero crossing: yes (1), no (0)"],list("vec",1,"vec",1,"vec",1,"vec",1,"vec",1),exprs);
@@ -50,13 +50,13 @@ function HYSTHERESIS() {
if (this.low_lim>this.high_lim) {
message("switch on value must be larger than switch off value");
} else {
- graphics.exprs = exprs;
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.rpar = new ScilabDouble(transpose([this.high_lim,this.low_lim,this.out_high,this.out_low]));
if (this.nzz>0) {
this.nzz = 2;
}
this.model.nzcross = new ScilabDouble([this.nzz]);
- this.x.graphics = graphics;
+ this.x.graphics = this.graphics;
this.x.model = this.model;
break;
}