summaryrefslogtreecommitdiff
path: root/js/Linear/DELAYV_f.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Linear/DELAYV_f.js')
-rw-r--r--js/Linear/DELAYV_f.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/Linear/DELAYV_f.js b/js/Linear/DELAYV_f.js
index 1f569d9b..882d20ee 100644
--- a/js/Linear/DELAYV_f.js
+++ b/js/Linear/DELAYV_f.js
@@ -6,14 +6,14 @@ function DELAYV_f() {
this.zz0 = z0.slice(1-1,$-1);
this.T = 1;
this.model = scicos_model();
- this.model.sim = list(new ScilabString("delayv"),new ScilabDouble(1));
+ this.model.sim = list(new ScilabString(["delayv"]), new ScilabDouble([1]));
this.model.in1 = [[this.nin],[1]];
- this.model.out = new ScilabDouble(this.nin);
- this.model.evtin = new ScilabDouble(1);
+ this.model.out = new ScilabDouble([this.nin]);
+ this.model.evtin = new ScilabDouble([1]);
this.model.evtout = [[1],[1]];
- this.model.dstate = new ScilabDouble(z0);
- this.model.rpar = new ScilabDouble(this.T/(size(this.zz0,"*")));
- this.model.blocktype = new ScilabString("d");
+ this.model.dstate = new ScilabDouble([z0]);
+ this.model.rpar = new ScilabDouble([this.T/(size(this.zz0,"*"))]);
+ this.model.blocktype = new ScilabString(["d"]);
this.model.firing = [0,-1];
this.model.dep_ut = [true,false];
exprs = [[string(this.nin)],[strcat(string(z0.slice(1-1,$-1)),";")],[string(this.T)]];
@@ -63,7 +63,7 @@ function DELAYV_f() {
if (ok) {
graphics.exprs = exprs;
this.model.dstate = [[this.zz0.slice()],[told]];
- this.model.rpar = new ScilabDouble(this.T/(size(this.zz0,"*")));
+ this.model.rpar = new ScilabDouble([this.T/(size(this.zz0,"*"))]);
this.x.graphics = graphics;
this.x.model = this.model;
break;