summaryrefslogtreecommitdiff
path: root/js/Sinks/WRITEC_f.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Sinks/WRITEC_f.js')
-rw-r--r--js/Sinks/WRITEC_f.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/js/Sinks/WRITEC_f.js b/js/Sinks/WRITEC_f.js
index 358c89bc..1a602fa9 100644
--- a/js/Sinks/WRITEC_f.js
+++ b/js/Sinks/WRITEC_f.js
@@ -10,7 +10,7 @@ function WRITEC_f() {
this.N = 2;
this.model = scicos_model();
this.model.sim = list(new ScilabString(["writec"]), new ScilabDouble([2]));
- this.model.in1 = new ScilabDouble([this.in1]);
+ this.model.in = new ScilabDouble([this.in1]);
this.model.evtin = new ScilabDouble([1]);
this.model.dstate = new ScilabDouble([-1],[lunit],[zeros((nin+1)*this.N,1)]);
this.model.ipar = new ScilabDouble([length(fname)],[this._str2code[frmt-1]],[this.N],[this.swap],[this._str2code[fname-1]]);
@@ -41,10 +41,7 @@ function WRITEC_f() {
this.N = parseFloat(arguments[0]["N"])
this.swap = parseFloat(arguments[0]["swap"])
this.exprs = arguments[0]["exprs"]
- this.x = arg1;
- this.graphics = arg1.graphics;
this.exprs = this.graphics.exprs;
- this.model = arg1.model;
var ipar = this.model.ipar;
var dstate = this.model.dstate;
var lunit = dstate[2-1];
@@ -96,7 +93,7 @@ function WRITEC_f() {
if (prod(size(dstate))!=(nin+1)*this.N+2) {
var dstate = [[-1],[lunit],[zeros((nin+1)*this.N,1)]];
}
- this.model.in1 = new ScilabDouble([nin]);
+ this.model.in = new ScilabDouble([nin]);
this.model.dstate = new ScilabDouble(dstate);
this.model.ipar = new ScilabDouble(ipar);
this.graphics.exprs = new ScilabDouble([this.exprs]);