summaryrefslogtreecommitdiff
path: root/js/Sinks/WFILE_f.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Sinks/WFILE_f.js')
-rw-r--r--js/Sinks/WFILE_f.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Sinks/WFILE_f.js b/js/Sinks/WFILE_f.js
index c09b1f9c..85226831 100644
--- a/js/Sinks/WFILE_f.js
+++ b/js/Sinks/WFILE_f.js
@@ -8,12 +8,12 @@ function WFILE_f() {
lunit = 0;
this.N = 2;
this.model = scicos_model();
- this.model.sim = new ScilabString("writef");
- this.model.in1 = new ScilabDouble(this.in1);
- this.model.evtin = new ScilabDouble(1);
+ this.model.sim = new ScilabString(["writef"]);
+ this.model.in1 = new ScilabDouble([this.in1]);
+ this.model.evtin = new ScilabDouble([1]);
this.model.dstate = [[-1],[lunit],[zeros((nin+1)*this.N,1)]];
this.model.ipar = [[length(fname)],[length(frmt)],[0],[this.N],[this._str2code[fname-1]],[this._str2code[frmt-1]]];
- this.model.blocktype = new ScilabString("d");
+ this.model.blocktype = new ScilabString(["d"]);
this.model.dep_ut = [true,false];
exprs = [[sci2exp(this.in1)],[fname],[frmt],[string(this.N)]];
gr_i = [];
@@ -89,7 +89,7 @@ function WFILE_f() {
if (prod(size(dstate))!=(nin+1)*this.N+2) {
dstate = [[-1],[lunit],[zeros((nin+1)*this.N,1)]];
}
- this.model.in1 = new ScilabDouble(nin);
+ this.model.in1 = new ScilabDouble([nin]);
this.model.dstate = dstate;
this.model.ipar = ipar;
this.model.dep_ut = [true,false];