summaryrefslogtreecommitdiff
path: root/data_structures/WRITEC_f.js
diff options
context:
space:
mode:
Diffstat (limited to 'data_structures/WRITEC_f.js')
-rw-r--r--data_structures/WRITEC_f.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/data_structures/WRITEC_f.js b/data_structures/WRITEC_f.js
index 75988a4..3f8f785 100644
--- a/data_structures/WRITEC_f.js
+++ b/data_structures/WRITEC_f.js
@@ -1,9 +1,9 @@
function WRITEC_f () {
- var in = 1;
+ var in1 = 1;
- var nin = sum(in);
+ var nin = sum(in1);
var frmt = "c, ";
@@ -16,16 +16,17 @@ function WRITEC_f () {
var N = 2;
var model = scicos_model();
- model.sim=list("writec",2);
- model.in=new ScilabDouble([in]);
+ model.sim=list(new ScilabString(["writec"]),new ScilabDouble([2]));
+ model.in1.push(new ScilabDouble([in1]));
model.evtin = new ScilabDouble([1]);
model.dstate = new ScilabDouble([-1],[lunit],[zeros((nin+1)*N,1)]);
model.ipar = new ScilabDouble([length(fname)],[_str2code(frmt)],[N],[swap],[_str2code(fname)]);
model.blocktype = new ScilabString(["d"]);
model.dep_ut = new ScilabBoolean([true,false]);
- var exprs = [[sci2exp(in)],[fname],[frmt],[N.toString()swap.toString()]];
+ var exprs = [[sci2exp(in1)],[fname],[frmt],[string(N)string(swap)]];
var gr_i = [];
this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
}