summaryrefslogtreecommitdiff
path: root/js/Linear/SAMPHOLD_m.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Linear/SAMPHOLD_m.js')
-rw-r--r--js/Linear/SAMPHOLD_m.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/js/Linear/SAMPHOLD_m.js b/js/Linear/SAMPHOLD_m.js
index 07015edf..c9b51b93 100644
--- a/js/Linear/SAMPHOLD_m.js
+++ b/js/Linear/SAMPHOLD_m.js
@@ -3,7 +3,7 @@ function SAMPHOLD_m() {
SAMPHOLD_m.prototype.define = function SAMPHOLD_m() {
this.model = scicos_model();
this.model.sim = list(new ScilabString(["samphold4_m"]), new ScilabDouble([4]));
- this.model.in1 = new ScilabDouble([-1]);
+ this.model.in = new ScilabDouble([-1]);
this.model.in2 = new ScilabDouble([-2]);
this.model.intyp = new ScilabDouble([1]);
this.model.outtyp = new ScilabDouble([1]);
@@ -29,11 +29,8 @@ function SAMPHOLD_m() {
SAMPHOLD_m.prototype.set = function SAMPHOLD_m() {
this.it = arguments[0]["it"]
this.exprs = arguments[0]["exprs"]
- this.x = arg1;
this.x.model.firing = [];
- this.graphics = arg1.graphics;
var label = this.graphics.exprs;
- this.model = arg1.model;
while (true) {
[ok,this.it,this.exprs] = scicos_getvalue("Set parameters Block",["Datatype(1=real double 2=Complex 3=int32 ...)"],list("vec",1),label);
if (!ok) {
@@ -44,16 +41,13 @@ function SAMPHOLD_m() {
var ok = false;
}
if (ok) {
- var in1 = [this.model.in1,this.model.in2];
+ var in1 = [this.model.in,this.model.in2];
var tmpvar0 = set_io(this.model,this.graphics,list(in1,this.it),list(in1,this.it),1,[]);
this.model = tmpvar0[0];
this.graphics = tmpvar0[1];
var ok = tmpvar0[2];
if (ok) {
this.graphics.exprs = new ScilabDouble([this.exprs]);
- arg1.graphics = this.graphics;
- arg1.model = this.model;
- this.x = arg1;
break;
}
}