summaryrefslogtreecommitdiff
path: root/js/Sinks
diff options
context:
space:
mode:
Diffstat (limited to 'js/Sinks')
-rw-r--r--js/Sinks/AFFICH_m.js13
-rw-r--r--js/Sinks/AFFICH_m.pickle20
-rw-r--r--js/Sinks/BARXY.js7
-rw-r--r--js/Sinks/BARXY.pickle20
-rw-r--r--js/Sinks/CANIMXY.js13
-rw-r--r--js/Sinks/CANIMXY.pickle22
-rw-r--r--js/Sinks/CANIMXY3D.js13
-rw-r--r--js/Sinks/CANIMXY3D.pickle18
-rw-r--r--js/Sinks/CEVENTSCOPE.js13
-rw-r--r--js/Sinks/CEVENTSCOPE.pickle16
-rw-r--r--js/Sinks/CFSCOPE.js13
-rw-r--r--js/Sinks/CFSCOPE.pickle18
-rw-r--r--js/Sinks/CLKOUTV_f.js17
-rw-r--r--js/Sinks/CLKOUTV_f.pickle24
-rw-r--r--js/Sinks/CLKOUT_f.js13
-rw-r--r--js/Sinks/CLKOUT_f.pickle14
-rw-r--r--js/Sinks/CMAT3D.js13
-rw-r--r--js/Sinks/CMAT3D.pickle18
-rw-r--r--js/Sinks/CMATVIEW.js13
-rw-r--r--js/Sinks/CMATVIEW.pickle20
-rw-r--r--js/Sinks/CMSCOPE.js13
-rw-r--r--js/Sinks/CMSCOPE.pickle18
-rw-r--r--js/Sinks/CSCOPE.js13
-rw-r--r--js/Sinks/CSCOPE.pickle18
-rw-r--r--js/Sinks/CSCOPXY.js13
-rw-r--r--js/Sinks/CSCOPXY.pickle22
-rw-r--r--js/Sinks/CSCOPXY3D.js13
-rw-r--r--js/Sinks/CSCOPXY3D.pickle18
-rw-r--r--js/Sinks/OUTIMPL_f.js17
-rw-r--r--js/Sinks/OUTIMPL_f.pickle14
-rw-r--r--js/Sinks/OUT_f.js17
-rw-r--r--js/Sinks/OUT_f.pickle14
-rw-r--r--js/Sinks/TOWS_c.js13
-rw-r--r--js/Sinks/TOWS_c.pickle20
-rw-r--r--js/Sinks/TRASH_f.js6
-rw-r--r--js/Sinks/TRASH_f.pickle10
-rw-r--r--js/Sinks/WFILE_f.js17
-rw-r--r--js/Sinks/WFILE_f.pickle20
-rw-r--r--js/Sinks/WRITEAU_f.js13
-rw-r--r--js/Sinks/WRITEAU_f.pickle18
-rw-r--r--js/Sinks/WRITEC_f.js17
-rw-r--r--js/Sinks/WRITEC_f.pickle24
42 files changed, 386 insertions, 280 deletions
diff --git a/js/Sinks/AFFICH_m.js b/js/Sinks/AFFICH_m.js
index c1551c3b..257cff45 100644
--- a/js/Sinks/AFFICH_m.js
+++ b/js/Sinks/AFFICH_m.js
@@ -18,9 +18,9 @@ function AFFICH_m() {
this.model.firing = new ScilabDouble([]);
this.model.dep_ut = new ScilabDouble([true,false]);
this.model.label = new ScilabString([""]);
- var exprs = [[sci2exp([this.model.in1,this.model.in2])],[string(this.font)],[string(this.fontsize)],[string(this.colr)],[string(this.nt)],[string(this.nd)],[string(0)]];
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"AFFICH_m\",sz(1),sz(2));"]);
- this.x = standard_define([3,2],this.model,exprs,gr_i);
+ this.exprs = [[sci2exp([this.model.in1,this.model.in2])],[string(this.font)],[string(this.fontsize)],[string(this.colr)],[string(this.nt)],[string(this.nd)],[string(0)]];
+ this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"AFFICH_m\",sz(1),sz(2));"]);
+ this.x = standard_define([3,2],this.model,this.exprs,this.gr_i);
return new AfficheBlock(this.x);
}
AFFICH_m.prototype.details = function AFFICH_m() {
@@ -46,12 +46,13 @@ function AFFICH_m() {
this.nt = parseFloat(arguments[0]["nt"])
this.nd = parseFloat(arguments[0]["nd"])
this.herit = arguments[0]["herit"]
+ this.exprs = arguments[0]["exprs"]
this.x = arg1;
this.graphics = arg1.graphics;
- var exprs = this.graphics.exprs;
+ this.exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
- [ok,this.in1,this.font,this.fontsize,this.colr,this.nt,this.nd,this.herit,exprs] = scicos_getvalue("Set parameters",["Input Size","Font number","Font size","Color","Total number of digits","Number of rational part digits","Block inherits (1) or not (0)"],list("mat",[1,2],"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1),exprs);
+ [ok,this.in1,this.font,this.fontsize,this.colr,this.nt,this.nd,this.herit,this.exprs] = scicos_getvalue("Set parameters",["Input Size","Font number","Font size","Color","Total number of digits","Number of rational part digits","Block inherits (1) or not (0)"],list("mat",[1,2],"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1),this.exprs);
if (!ok) {
break;
}
@@ -92,7 +93,7 @@ function AFFICH_m() {
this.model.ipar = new ScilabDouble([this.font],[this.fontsize],[this.colr],[this.nt],[this.nd],[this.in1[1-1][1-1]]);
this.model.dstate = new ScilabDouble([-1],[0],[0],[1],[1],[0],[zeros(this.in1[1-1][1-1]*this.in1[1-1][2-1],1)]);
this.model.evtin = new ScilabDouble([ones(1-this.herit,1)]);
- this.graphics.exprs = new ScilabDouble([exprs]);
+ this.graphics.exprs = new ScilabDouble([this.exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;
diff --git a/js/Sinks/AFFICH_m.pickle b/js/Sinks/AFFICH_m.pickle
index 2ac10bbb..f2197601 100644
--- a/js/Sinks/AFFICH_m.pickle
+++ b/js/Sinks/AFFICH_m.pickle
@@ -10,20 +10,24 @@ aS'colr'
p4
aS'in1'
p5
-aS'fontsize'
+aS'exprs'
p6
-aS'graphics'
+aS'gr_i'
p7
-aS'x'
+aS'fontsize'
p8
-aS'model'
+aS'graphics'
p9
-aS'font'
+aS'x'
p10
-aS'nt'
+aS'model'
p11
-atp12
-Rp13
+aS'font'
+p12
+aS'nt'
+p13
+atp14
+Rp15
.(dp0
S'model.dstate'
p1
diff --git a/js/Sinks/BARXY.js b/js/Sinks/BARXY.js
index 2420f48a..c7f144bc 100644
--- a/js/Sinks/BARXY.js
+++ b/js/Sinks/BARXY.js
@@ -40,12 +40,13 @@ function BARXY() {
this.ymin = parseFloat(arguments[0]["ymin"])
this.ymax = parseFloat(arguments[0]["ymax"])
this.thickness = arguments[0]["thickness"]
+ this.exprs = arguments[0]["exprs"]
this.x = arg1;
this.graphics = arg1.graphics;
- var exprs = this.graphics.exprs;
+ this.exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
- [ok,this.xmin,this.xmax,this.ymin,this.ymax,this.thickness,exprs] = scicos_getvalue("Set Scope parameters",["Xmin","Xmax","Ymin","Ymax","Segs Thickness"],list("vec",1,"vec",1,"vec",1,"vec",1,"vec",1),exprs);
+ [ok,this.xmin,this.xmax,this.ymin,this.ymax,this.thickness,this.exprs] = scicos_getvalue("Set Scope parameters",["Xmin","Xmax","Ymin","Ymax","Segs Thickness"],list("vec",1,"vec",1,"vec",1,"vec",1,"vec",1),this.exprs);
if (!ok) {
break;
}
@@ -67,7 +68,7 @@ function BARXY() {
} else {
this.model.rpar = new ScilabDouble([this.xmin],[this.xmax],[this.ymin],[this.ymax]);
this.model.ipar = new ScilabDouble([this.thickness]);
- this.graphics.exprs = new ScilabDouble([exprs]);
+ this.graphics.exprs = new ScilabDouble([this.exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;
diff --git a/js/Sinks/BARXY.pickle b/js/Sinks/BARXY.pickle
index 4f52b098..324d5e98 100644
--- a/js/Sinks/BARXY.pickle
+++ b/js/Sinks/BARXY.pickle
@@ -6,20 +6,24 @@ S'ymax'
p2
aS'thickness'
p3
-aS'xmax'
+aS'exprs'
p4
-aS'graphics'
+aS'gr_i'
p5
-aS'xmin'
+aS'xmax'
p6
-aS'x'
+aS'graphics'
p7
-aS'model'
+aS'xmin'
p8
-aS'ymin'
+aS'x'
p9
-atp10
-Rp11
+aS'model'
+p10
+aS'ymin'
+p11
+atp12
+Rp13
.(dp0
S'arg1'
p1
diff --git a/js/Sinks/CANIMXY.js b/js/Sinks/CANIMXY.js
index 550fa4ae..552889b4 100644
--- a/js/Sinks/CANIMXY.js
+++ b/js/Sinks/CANIMXY.js
@@ -23,9 +23,9 @@ function CANIMXY() {
this.model.blocktype = new ScilabString(["d"]);
this.model.firing = new ScilabDouble([]);
this.model.dep_ut = new ScilabDouble([false,false]);
- var exprs = [[string(this.nbr_curves)],[string(this.clrs)],[string(this.siz)],[string(this.win)],["[]"],["[]"],[string(this.xmin)],[string(this.xmax)],[string(this.ymin)],[string(this.ymax)],[string(this.N)]];
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CANIMXY\",sz(1),sz(2));"]);
- this.x = standard_define([2,2],this.model,exprs,gr_i);
+ this.exprs = [[string(this.nbr_curves)],[string(this.clrs)],[string(this.siz)],[string(this.win)],["[]"],["[]"],[string(this.xmin)],[string(this.xmax)],[string(this.ymin)],[string(this.ymax)],[string(this.N)]];
+ this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CANIMXY\",sz(1),sz(2));"]);
+ this.x = standard_define([2,2],this.model,this.exprs,this.gr_i);
return new BasicBlock(this.x);
}
CANIMXY.prototype.details = function CANIMXY() {
@@ -59,12 +59,13 @@ function CANIMXY() {
this.ymin = parseFloat(arguments[0]["ymin"])
this.ymax = parseFloat(arguments[0]["ymax"])
this.N = parseFloat(arguments[0]["N"])
+ this.exprs = arguments[0]["exprs"]
this.x = arg1;
this.graphics = arg1.graphics;
- var exprs = this.graphics.exprs;
+ this.exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
- [ok,this.nbr_curves,this.clrs,this.siz,this.win,this.wpos,this.wdim,this.xmin,this.xmax,this.ymin,this.ymax,this.N,exprs] = scicos_getvalue("Set Scope parameters",["Number of Curves","color (>0) or mark (<0)","line or mark size","Output window number (-1 for automatic)","Output window position","Output window sizes","Xmin","Xmax","Ymin","Ymax","Buffer size"],list("vec",1,"vec",1,"vec",1,"vec",1,"vec",-1,"vec",-1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1),exprs);
+ [ok,this.nbr_curves,this.clrs,this.siz,this.win,this.wpos,this.wdim,this.xmin,this.xmax,this.ymin,this.ymax,this.N,this.exprs] = scicos_getvalue("Set Scope parameters",["Number of Curves","color (>0) or mark (<0)","line or mark size","Output window number (-1 for automatic)","Output window position","Output window sizes","Xmin","Xmax","Ymin","Ymax","Buffer size"],list("vec",1,"vec",1,"vec",1,"vec",1,"vec",-1,"vec",-1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1),this.exprs);
if (!ok) {
break;
}
@@ -120,7 +121,7 @@ function CANIMXY() {
var ipar = [[this.win],[1],[this.N],[this.clrs],[this.siz],[0],[this.wpos.slice()],[this.wdim.slice()],[this.nbr_curves]];
this.model.rpar = new ScilabDouble(rpar);
this.model.ipar = new ScilabDouble(ipar);
- this.graphics.exprs = new ScilabDouble([exprs]);
+ this.graphics.exprs = new ScilabDouble([this.exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;
diff --git a/js/Sinks/CANIMXY.pickle b/js/Sinks/CANIMXY.pickle
index 02f5d9a9..0a699534 100644
--- a/js/Sinks/CANIMXY.pickle
+++ b/js/Sinks/CANIMXY.pickle
@@ -16,22 +16,26 @@ aS'wdim'
p7
aS'N'
p8
-aS'xmax'
+aS'exprs'
p9
-aS'graphics'
+aS'gr_i'
p10
-aS'xmin'
+aS'xmax'
p11
-aS'x'
+aS'graphics'
p12
-aS'model'
+aS'xmin'
p13
-aS'nbr_curves'
+aS'x'
p14
-aS'win'
+aS'model'
p15
-atp16
-Rp17
+aS'nbr_curves'
+p16
+aS'win'
+p17
+atp18
+Rp19
.(dp0
S'clrs'
p1
diff --git a/js/Sinks/CANIMXY3D.js b/js/Sinks/CANIMXY3D.js
index 8a8f5924..9c481615 100644
--- a/js/Sinks/CANIMXY3D.js
+++ b/js/Sinks/CANIMXY3D.js
@@ -23,9 +23,9 @@ function CANIMXY3D() {
this.model.blocktype = new ScilabString(["d"]);
this.model.firing = new ScilabDouble([]);
this.model.dep_ut = new ScilabDouble([false,false]);
- var exprs = [[string(this.nbr_curves)],[strcat(string(this.clrs)," ")],[strcat(string(this.siz)," ")],[string(this.win)],["[]"],["[]"],[strcat(string(this.vec_x)," ")],[strcat(string(this.vec_y)," ")],[strcat(string(this.vec_z)," ")],[strcat(string(this.param3ds)," ")],[string(this.N)]];
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CANIMXY3D\",sz(1),sz(2));"]);
- this.x = standard_define([2,2],this.model,exprs,gr_i);
+ this.exprs = [[string(this.nbr_curves)],[strcat(string(this.clrs)," ")],[strcat(string(this.siz)," ")],[string(this.win)],["[]"],["[]"],[strcat(string(this.vec_x)," ")],[strcat(string(this.vec_y)," ")],[strcat(string(this.vec_z)," ")],[strcat(string(this.param3ds)," ")],[string(this.N)]];
+ this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CANIMXY3D\",sz(1),sz(2));"]);
+ this.x = standard_define([2,2],this.model,this.exprs,this.gr_i);
return new BasicBlock(this.x);
}
CANIMXY3D.prototype.details = function CANIMXY3D() {
@@ -59,12 +59,13 @@ function CANIMXY3D() {
this.vec_z = inverse(arguments[0]["vec_z"])
this.param3ds = inverse(arguments[0]["param3ds"])
this.N = parseFloat(arguments[0]["N"])
+ this.exprs = arguments[0]["exprs"]
this.x = arg1;
this.graphics = arg1.graphics;
- var exprs = this.graphics.exprs;
+ this.exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
- [ok,this.nbr_curves,this.clrs,this.siz,this.win,this.wpos,this.wdim,this.vec_x,this.vec_y,this.vec_z,this.param3ds,this.N,exprs] = scicos_getvalue("Set Scope parameters",["Number of curves","color (>0) or mark (<0)","line or mark size","Output window number (-1 for automatic)","Output window position","Output window sizes","Xmin and Xmax","Ymin and Ymax","Zmin and Zmax","Alpha and Theta","Buffer size"],list("vec",1,"vec",-1,"vec",-1,"vec",1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",1),exprs);
+ [ok,this.nbr_curves,this.clrs,this.siz,this.win,this.wpos,this.wdim,this.vec_x,this.vec_y,this.vec_z,this.param3ds,this.N,this.exprs] = scicos_getvalue("Set Scope parameters",["Number of curves","color (>0) or mark (<0)","line or mark size","Output window number (-1 for automatic)","Output window position","Output window sizes","Xmin and Xmax","Ymin and Ymax","Zmin and Zmax","Alpha and Theta","Buffer size"],list("vec",1,"vec",-1,"vec",-1,"vec",1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",1),this.exprs);
if (!ok) {
break;
}
@@ -137,7 +138,7 @@ function CANIMXY3D() {
var ipar = [[this.win],[size_siz],[this.N],[this.clrs.slice()],[this.siz.slice()],[1],[this.wpos.slice()],[this.wdim.slice()],[this.nbr_curves]];
this.model.rpar = new ScilabDouble(rpar);
this.model.ipar = new ScilabDouble(ipar);
- this.graphics.exprs = new ScilabDouble([exprs]);
+ this.graphics.exprs = new ScilabDouble([this.exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;
diff --git a/js/Sinks/CANIMXY3D.pickle b/js/Sinks/CANIMXY3D.pickle
index 67189920..7c476fb5 100644
--- a/js/Sinks/CANIMXY3D.pickle
+++ b/js/Sinks/CANIMXY3D.pickle
@@ -20,18 +20,22 @@ aS'param3ds'
p9
aS'N'
p10
-aS'graphics'
+aS'exprs'
p11
-aS'x'
+aS'gr_i'
p12
-aS'model'
+aS'graphics'
p13
-aS'nbr_curves'
+aS'x'
p14
-aS'win'
+aS'model'
p15
-atp16
-Rp17
+aS'nbr_curves'
+p16
+aS'win'
+p17
+atp18
+Rp19
.(dp0
S'clrs'
p1
diff --git a/js/Sinks/CEVENTSCOPE.js b/js/Sinks/CEVENTSCOPE.js
index cccb59fd..499e2e08 100644
--- a/js/Sinks/CEVENTSCOPE.js
+++ b/js/Sinks/CEVENTSCOPE.js
@@ -14,9 +14,9 @@ function CEVENTSCOPE() {
this.model.ipar = new ScilabDouble([this.win],[1],[this.clrs[this.nclock-1]],[this.wpos.slice()],[this.wdim.slice()]);
this.model.blocktype = new ScilabString(["d"]);
this.model.dep_ut = new ScilabDouble([false,false]);
- var exprs = [[sci2exp(this.nclock)],[strcat(sci2exp(this.clrs[this.nclock-1])," ")],[string(this.win)],[sci2exp([])],[sci2exp(this.wdim)],[string(this.per)]];
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CEVENTSCOPE\",sz(1),sz(2));"]);
- this.x = standard_define([2,2],this.model,exprs,gr_i);
+ this.exprs = [[sci2exp(this.nclock)],[strcat(sci2exp(this.clrs[this.nclock-1])," ")],[string(this.win)],[sci2exp([])],[sci2exp(this.wdim)],[string(this.per)]];
+ this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CEVENTSCOPE\",sz(1),sz(2));"]);
+ this.x = standard_define([2,2],this.model,this.exprs,this.gr_i);
return new BasicBlock(this.x);
}
CEVENTSCOPE.prototype.details = function CEVENTSCOPE() {
@@ -40,12 +40,13 @@ function CEVENTSCOPE() {
this.wpos = inverse(arguments[0]["wpos"])
this.wdim = inverse(arguments[0]["wdim"])
this.per = parseFloat(arguments[0]["per"])
+ this.exprs = arguments[0]["exprs"]
this.x = arg1;
this.graphics = arg1.graphics;
- var exprs = this.graphics.exprs;
+ this.exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
- [ok,this.nclock,this.clrs,this.win,this.wpos,this.wdim,this.per,exprs] = scicos_getvalue("Set Scope parameters",["Number of event inputs","colors c (>0) or mark (<0)","Output window number (-1 for automatic)","Output window position","Output window sizes","Refresh period"],list("vec",1,"vec",-1,"vec",1,"vec",-1,"vec",-1,"vec",1),exprs);
+ [ok,this.nclock,this.clrs,this.win,this.wpos,this.wdim,this.per,this.exprs] = scicos_getvalue("Set Scope parameters",["Number of event inputs","colors c (>0) or mark (<0)","Output window number (-1 for automatic)","Output window position","Output window sizes","Refresh period"],list("vec",1,"vec",-1,"vec",1,"vec",-1,"vec",-1,"vec",1),this.exprs);
this.nclock = int(this.nclock);
this.clrs = int(this.clrs);
this.win = int(this.win);
@@ -96,7 +97,7 @@ function CEVENTSCOPE() {
var ipar = [[this.win],[1],[this.clrs.slice()],[this.wpos.slice()],[this.wdim.slice()]];
this.model.rpar = new ScilabDouble([rpar]);
this.model.ipar = new ScilabDouble(ipar);
- this.graphics.exprs = new ScilabDouble([exprs]);
+ this.graphics.exprs = new ScilabDouble([this.exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;
diff --git a/js/Sinks/CEVENTSCOPE.pickle b/js/Sinks/CEVENTSCOPE.pickle
index 36f3ee38..64eb8f7d 100644
--- a/js/Sinks/CEVENTSCOPE.pickle
+++ b/js/Sinks/CEVENTSCOPE.pickle
@@ -12,16 +12,20 @@ aS'wdim'
p5
aS'per'
p6
-aS'graphics'
+aS'exprs'
p7
-aS'x'
+aS'gr_i'
p8
-aS'model'
+aS'graphics'
p9
-aS'nclock'
+aS'x'
p10
-atp11
-Rp12
+aS'model'
+p11
+aS'nclock'
+p12
+atp13
+Rp14
.(dp0
S'clrs'
p1
diff --git a/js/Sinks/CFSCOPE.js b/js/Sinks/CFSCOPE.js
index 50515568..48ed64d8 100644
--- a/js/Sinks/CFSCOPE.js
+++ b/js/Sinks/CFSCOPE.js
@@ -16,9 +16,9 @@ function CFSCOPE() {
this.model.ipar = new ScilabDouble([this.win],[1],[this.N],[this.clrs],[this.wpos],[this.wdim],[1],[1]);
this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = new ScilabDouble([true,false]);
- var exprs = [[strcat(string(this.clrs)," ")],[string(this.win)],[sci2exp([])],[sci2exp(this.wdim)],[string(this.ymin)],[string(this.ymax)],[string(this.per)],[string(this.N)],[string([1])]];
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CFSCOPE\",sz(1),sz(2));"]);
- this.x = standard_define([2,2],this.model,exprs,gr_i);
+ this.exprs = [[strcat(string(this.clrs)," ")],[string(this.win)],[sci2exp([])],[sci2exp(this.wdim)],[string(this.ymin)],[string(this.ymax)],[string(this.per)],[string(this.N)],[string([1])]];
+ this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CFSCOPE\",sz(1),sz(2));"]);
+ this.x = standard_define([2,2],this.model,this.exprs,this.gr_i);
return new BasicBlock(this.x);
}
CFSCOPE.prototype.details = function CFSCOPE() {
@@ -48,12 +48,13 @@ function CFSCOPE() {
this.per = parseFloat(arguments[0]["per"])
this.N = parseFloat(arguments[0]["N"])
this.wu = arguments[0]["wu"]
+ this.exprs = arguments[0]["exprs"]
this.x = arg1;
this.graphics = arg1.graphics;
- var exprs = this.graphics.exprs;
+ this.exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
- [ok,this.clrs,this.win,this.wpos,this.wdim,this.ymin,this.ymax,this.per,this.N,this.wu,exprs] = scicos_getvalue("Set Scope parameters",["Color (>0) or mark (<0) vector (8 entries)","Output window number (-1 for automatic)","Output window position","Output window sizes","Ymin","Ymax","Refresh period","Buffer size","Links to view"],list("vec",8,"vec",1,"vec",-1,"vec",-1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",-1),exprs);
+ [ok,this.clrs,this.win,this.wpos,this.wdim,this.ymin,this.ymax,this.per,this.N,this.wu,this.exprs] = scicos_getvalue("Set Scope parameters",["Color (>0) or mark (<0) vector (8 entries)","Output window number (-1 for automatic)","Output window position","Output window sizes","Ymin","Ymax","Refresh period","Buffer size","Links to view"],list("vec",8,"vec",1,"vec",-1,"vec",-1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",-1),this.exprs);
if (!ok) {
break;
}
@@ -108,7 +109,7 @@ function CFSCOPE() {
this.model.ipar = new ScilabDouble(ipar);
this.model.firing = new ScilabDouble([]);
this.model.dep_ut = new ScilabDouble([true,false]);
- this.graphics.exprs = new ScilabDouble([exprs]);
+ this.graphics.exprs = new ScilabDouble([this.exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;
diff --git a/js/Sinks/CFSCOPE.pickle b/js/Sinks/CFSCOPE.pickle
index ee6af05a..83bea367 100644
--- a/js/Sinks/CFSCOPE.pickle
+++ b/js/Sinks/CFSCOPE.pickle
@@ -16,18 +16,22 @@ aS'per'
p7
aS'N'
p8
-aS'wu'
+aS'exprs'
p9
-aS'graphics'
+aS'wu'
p10
-aS'x'
+aS'gr_i'
p11
-aS'model'
+aS'graphics'
p12
-aS'ymin'
+aS'x'
p13
-atp14
-Rp15
+aS'model'
+p14
+aS'ymin'
+p15
+atp16
+Rp17
.(dp0
S'clrs'
p1
diff --git a/js/Sinks/CLKOUTV_f.js b/js/Sinks/CLKOUTV_f.js
index 1b371a2b..2d336c14 100644
--- a/js/Sinks/CLKOUTV_f.js
+++ b/js/Sinks/CLKOUTV_f.js
@@ -9,8 +9,8 @@ function CLKOUTV_f() {
this.model.blocktype = new ScilabString(["d"]);
this.model.firing = new ScilabDouble([]);
this.model.dep_ut = new ScilabDouble([false,false]);
- var exprs = string(this.prt);
- this.x = standard_define([1,1],this.model,exprs," ");
+ this.exprs = string(this.prt);
+ this.x = standard_define([1,1],this.model,this.exprs," ");
return new EventOutBlock(this.x);
}
CLKOUTV_f.prototype.details = function CLKOUTV_f() {
@@ -23,12 +23,13 @@ function CLKOUTV_f() {
}
CLKOUTV_f.prototype.set = function CLKOUTV_f() {
this.prt = arguments[0]["prt"]
+ this.exprs = arguments[0]["exprs"]
this.x = arg1;
this.graphics = arg1.graphics;
this.model = arg1.model;
- var exprs = this.graphics.exprs;
+ this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.prt,exprs] = scicos_getvalue([[msprintf("Set %s block parameters","CLKOUTV_f")],[" "],["Event output port"]],"Port number",list("vec",1),exprs);
+ [ok,this.prt,this.exprs] = scicos_getvalue([[msprintf("Set %s block parameters","CLKOUTV_f")],[" "],["Event output port"]],"Port number",list("vec",1),this.exprs);
if (!ok) {
break;
}
@@ -38,7 +39,7 @@ function CLKOUTV_f() {
} else {
this.model.ipar = new ScilabDouble([this.prt]);
this.model.evtin = new ScilabDouble([1]);
- this.graphics.exprs = new ScilabDouble([exprs]);
+ this.graphics.exprs = new ScilabDouble([this.exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;
@@ -78,9 +79,9 @@ function CLKOUTV_f() {
var y = orig[2-1]+sz[2-1]*[[0],[1/3],[1],[1],[1/3]];
var xo = orig[1-1];
var yo = orig[2-1]+sz[2-1]/3;
- var gr_i = arg1.graphics.gr_i;
- if (this.type[gr_i-1]==15) {
- var coli = gr_i[2-1];
+ this.gr_i = arg1.graphics.gr_i;
+ if (this.type[this.gr_i-1]==15) {
+ var coli = this.gr_i[2-1];
var pcoli = xget("pattern");
xfpolys(this.x,y,coli);
xset("pattern",coli);
diff --git a/js/Sinks/CLKOUTV_f.pickle b/js/Sinks/CLKOUTV_f.pickle
index 7bfad8e2..755b92c2 100644
--- a/js/Sinks/CLKOUTV_f.pickle
+++ b/js/Sinks/CLKOUTV_f.pickle
@@ -2,24 +2,28 @@ c__builtin__
set
p0
((lp1
-S'diag'
+S'prt'
p2
-aS'default_color'
+aS'diag'
p3
-aS'prt'
+aS'default_color'
p4
-aS'graphics'
+aS'exprs'
p5
-aS'x'
+aS'gr_i'
p6
-aS'model'
+aS'graphics'
p7
-aS'type'
+aS'x'
p8
-aS'options'
+aS'model'
p9
-atp10
-Rp11
+aS'type'
+p10
+aS'options'
+p11
+atp12
+Rp13
.(dp0
S'xo'
p1
diff --git a/js/Sinks/CLKOUT_f.js b/js/Sinks/CLKOUT_f.js
index e94f0ce3..1dc5d670 100644
--- a/js/Sinks/CLKOUT_f.js
+++ b/js/Sinks/CLKOUT_f.js
@@ -9,8 +9,8 @@ function CLKOUT_f() {
this.model.blocktype = new ScilabString(["d"]);
this.model.firing = new ScilabDouble([]);
this.model.dep_ut = new ScilabDouble([false,false]);
- var exprs = string(this.prt);
- this.x = standard_define([1,1],this.model,exprs," ");
+ this.exprs = string(this.prt);
+ this.x = standard_define([1,1],this.model,this.exprs," ");
return new BasicBlock(this.x);
}
CLKOUT_f.prototype.details = function CLKOUT_f() {
@@ -23,13 +23,14 @@ function CLKOUT_f() {
}
CLKOUT_f.prototype.set = function CLKOUT_f() {
this.prt = parseFloat(arguments[0]["prt"])
+ this.exprs = parseFloat(arguments[0]["exprs"])
this.x = arg1;
this.graphics = arg1.graphics;
this.model = arg1.model;
- var exprs = this.graphics.exprs;
- var exprs = exprs[1-1];
+ this.exprs = this.graphics.exprs;
+ this.exprs = this.exprs[1-1];
while (true) {
- [ok,this.prt,exprs] = scicos_getvalue("Set Event Output block parameters","Port number",list("vec",1),exprs);
+ [ok,this.prt,this.exprs] = scicos_getvalue("Set Event Output block parameters","Port number",list("vec",1),this.exprs);
if (!ok) {
break;
}
@@ -40,7 +41,7 @@ function CLKOUT_f() {
this.model.ipar = new ScilabDouble([this.prt]);
this.model.evtin = new ScilabDouble([1]);
this.model.firing = new ScilabDouble([]);
- this.graphics.exprs = new ScilabDouble([exprs]);
+ this.graphics.exprs = new ScilabDouble([this.exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;
diff --git a/js/Sinks/CLKOUT_f.pickle b/js/Sinks/CLKOUT_f.pickle
index 0297746c..12ffba1c 100644
--- a/js/Sinks/CLKOUT_f.pickle
+++ b/js/Sinks/CLKOUT_f.pickle
@@ -2,16 +2,20 @@ c__builtin__
set
p0
((lp1
-S'prt'
+S'exprs'
p2
-aS'x'
+aS'prt'
p3
-aS'model'
+aS'gr_i'
p4
aS'graphics'
p5
-atp6
-Rp7
+aS'x'
+p6
+aS'model'
+p7
+atp8
+Rp9
.(dp0
S'model.sim'
p1
diff --git a/js/Sinks/CMAT3D.js b/js/Sinks/CMAT3D.js
index eb6e8e42..61bbdb86 100644
--- a/js/Sinks/CMAT3D.js
+++ b/js/Sinks/CMAT3D.js
@@ -19,9 +19,9 @@ function CMAT3D() {
this.model.rpar = new ScilabDouble([this.colormap.slice()],[this.x],[y]);
this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = new ScilabDouble([true,false]);
- var exprs = [[strcat(string(this.x)," ")],[strcat(string(y)," ")],[string("jetcolormap(25)")],[string(this.cmin)],[string(this.cmax)]];
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CMAT3D\",sz(1),sz(2));"]);
- this.x = standard_define([2,2],this.model,exprs,gr_i);
+ this.exprs = [[strcat(string(this.x)," ")],[strcat(string(y)," ")],[string("jetcolormap(25)")],[string(this.cmin)],[string(this.cmax)]];
+ this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CMAT3D\",sz(1),sz(2));"]);
+ this.x = standard_define([2,2],this.model,this.exprs,this.gr_i);
return new BasicBlock(this.x);
}
CMAT3D.prototype.details = function CMAT3D() {
@@ -43,12 +43,13 @@ function CMAT3D() {
this.colormap = parseFloat(arguments[0]["colormap"])
this.cmin = parseFloat(arguments[0]["cmin"])
this.cmax = parseFloat(arguments[0]["cmax"])
+ this.exprs = arguments[0]["exprs"]
this.x = arg1;
this.graphics = arg1.graphics;
- var exprs = this.graphics.exprs;
+ this.exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
- [ok,this.vec_x,this.vec_y,this.colormap,this.cmin,this.cmax,exprs] = scicos_getvalue("Set Scope parameters",["Bounds Vector X (-1 for standard)","Bounds Vector Y (-1 for standard)","ColorMap","Zmin","Zmax"],list("vec",-1,"vec",-1,"vec",-1,"vec",1,"vec",1),exprs);
+ [ok,this.vec_x,this.vec_y,this.colormap,this.cmin,this.cmax,this.exprs] = scicos_getvalue("Set Scope parameters",["Bounds Vector X (-1 for standard)","Bounds Vector Y (-1 for standard)","ColorMap","Zmin","Zmax"],list("vec",-1,"vec",-1,"vec",-1,"vec",1,"vec",1),this.exprs);
if (!ok) {
break;
}
@@ -71,7 +72,7 @@ function CMAT3D() {
var rpar = [[this.colormap.slice()],[this.vec_x.slice()],[this.vec_y.slice()]];
this.model.ipar = new ScilabDouble(ipar);
this.model.rpar = new ScilabDouble(rpar);
- this.graphics.exprs = new ScilabDouble([exprs]);
+ this.graphics.exprs = new ScilabDouble([this.exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;
diff --git a/js/Sinks/CMAT3D.pickle b/js/Sinks/CMAT3D.pickle
index dfee6d03..dbb67d12 100644
--- a/js/Sinks/CMAT3D.pickle
+++ b/js/Sinks/CMAT3D.pickle
@@ -8,18 +8,22 @@ aS'vec_x'
p3
aS'vec_y'
p4
-aS'graphics'
+aS'exprs'
p5
-aS'x'
+aS'gr_i'
p6
-aS'model'
+aS'graphics'
p7
-aS'cmax'
+aS'x'
p8
-aS'cmin'
+aS'model'
p9
-atp10
-Rp11
+aS'cmax'
+p10
+aS'cmin'
+p11
+atp12
+Rp13
.(dp0
S'cmin'
p1
diff --git a/js/Sinks/CMATVIEW.js b/js/Sinks/CMATVIEW.js
index 40a2edb9..e9e77c5d 100644
--- a/js/Sinks/CMATVIEW.js
+++ b/js/Sinks/CMATVIEW.js
@@ -17,9 +17,9 @@ function CMATVIEW() {
this.model.rpar = new ScilabDouble([alpha_c],[beta_c],[this.colormap.slice()]);
this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = new ScilabDouble([true,false]);
- var exprs = [[string("jetcolormap(25)")],[string(this.cmin)],[string(this.cmax)]];
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CMATVIEW\",sz(1),sz(2));"]);
- this.x = standard_define([2,2],this.model,exprs,gr_i);
+ this.exprs = [[string("jetcolormap(25)")],[string(this.cmin)],[string(this.cmax)]];
+ this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CMATVIEW\",sz(1),sz(2));"]);
+ this.x = standard_define([2,2],this.model,this.exprs,this.gr_i);
return new BasicBlock(this.x);
}
CMATVIEW.prototype.details = function CMATVIEW() {
@@ -37,12 +37,13 @@ function CMATVIEW() {
this.colormap = parseFloat(arguments[0]["colormap"])
this.cmin = parseFloat(arguments[0]["cmin"])
this.cmax = parseFloat(arguments[0]["cmax"])
+ this.exprs = arguments[0]["exprs"]
this.x = arg1;
this.graphics = arg1.graphics;
- var exprs = this.graphics.exprs;
+ this.exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
- [ok,this.colormap,this.cmin,this.cmax,exprs] = scicos_getvalue("Set Scope parameters",["ColorMap","Minimum level range","Maximum level range"],list("vec",-1,"vec",1,"vec",1),exprs);
+ [ok,this.colormap,this.cmin,this.cmax,this.exprs] = scicos_getvalue("Set Scope parameters",["ColorMap","Minimum level range","Maximum level range"],list("vec",-1,"vec",1,"vec",1),this.exprs);
if (!ok) {
break;
}
@@ -63,7 +64,7 @@ function CMATVIEW() {
var rpar = [[alpha_c],[beta_c],[this.colormap.slice()]];
this.model.ipar = new ScilabDouble(ipar);
this.model.rpar = new ScilabDouble(rpar);
- this.graphics.exprs = new ScilabDouble([exprs]);
+ this.graphics.exprs = new ScilabDouble([this.exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;
diff --git a/js/Sinks/CMATVIEW.pickle b/js/Sinks/CMATVIEW.pickle
index bd5b84e9..b5cb593d 100644
--- a/js/Sinks/CMATVIEW.pickle
+++ b/js/Sinks/CMATVIEW.pickle
@@ -2,20 +2,24 @@ c__builtin__
set
p0
((lp1
-S'cmin'
+S'colormap'
p2
-aS'graphics'
+aS'exprs'
p3
-aS'x'
+aS'gr_i'
p4
-aS'model'
+aS'graphics'
p5
-aS'cmax'
+aS'x'
p6
-aS'colormap'
+aS'model'
p7
-atp8
-Rp9
+aS'cmax'
+p8
+aS'cmin'
+p9
+atp10
+Rp11
.(dp0
S'cmin'
p1
diff --git a/js/Sinks/CMSCOPE.js b/js/Sinks/CMSCOPE.js
index a906fe15..c4811853 100644
--- a/js/Sinks/CMSCOPE.js
+++ b/js/Sinks/CMSCOPE.js
@@ -22,9 +22,9 @@ function CMSCOPE() {
this.model.ipar = new ScilabDouble([this.win],[size(this.in1,"*")],[this.N],[this.wpos.slice()],[this.wdim.slice()],[this.in1.slice()],[this.clrs.slice(1-1,sum(this.in1))]);
this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = new ScilabDouble([true,false]);
- var exprs = [[strcat(string(this.in1)," ")],[strcat(string(this.clrs)," ")],[string(this.win)],[sci2exp([])],[sci2exp([])],[strcat(string(this.ymin)," ")],[strcat(string(this.ymax)," ")],[strcat(string(this.per)," ")],[string(this.N)],[string(0)],[emptystr()]];
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CMSCOPE\",sz(1),sz(2));"]);
- this.x = standard_define([2,2],this.model,exprs,gr_i);
+ this.exprs = [[strcat(string(this.in1)," ")],[strcat(string(this.clrs)," ")],[string(this.win)],[sci2exp([])],[sci2exp([])],[strcat(string(this.ymin)," ")],[strcat(string(this.ymax)," ")],[strcat(string(this.per)," ")],[string(this.N)],[string(0)],[emptystr()]];
+ this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CMSCOPE\",sz(1),sz(2));"]);
+ this.x = standard_define([2,2],this.model,this.exprs,this.gr_i);
return new BasicBlock(this.x);
}
CMSCOPE.prototype.details = function CMSCOPE() {
@@ -58,12 +58,13 @@ function CMSCOPE() {
this.N = parseFloat(arguments[0]["N"])
this.heritance = arguments[0]["heritance"]
this.nom = arguments[0]["nom"]
+ this.exprs = arguments[0]["exprs"]
this.x = arg1;
this.graphics = arg1.graphics;
- var exprs = this.graphics.exprs;
+ this.exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
- [ok,this.in1,this.clrs,this.win,this.wpos,this.wdim,this.ymin,this.ymax,this.per,this.N,this.heritance,this.nom,exprs] = scicos_getvalue("Set Scope parameters",["Input ports sizes","Drawing colors (>0) or mark (<0)","Output window number (-1 for automatic)","Output window position","Output window sizes","Ymin vector","Ymax vector","Refresh period","Buffer size","Accept herited events 0/1","Name of Scope (label&Id)"],list("vec",-1,"vec",-1,"vec",1,"vec",-1,"vec",-1,"vec","size(%1,\'*\')","vec","size(%1,\'*\')","vec","size(%1,\'*\')","vec",1,"vec",1,"str",1),exprs);
+ [ok,this.in1,this.clrs,this.win,this.wpos,this.wdim,this.ymin,this.ymax,this.per,this.N,this.heritance,this.nom,this.exprs] = scicos_getvalue("Set Scope parameters",["Input ports sizes","Drawing colors (>0) or mark (<0)","Output window number (-1 for automatic)","Output window position","Output window sizes","Ymin vector","Ymax vector","Refresh period","Buffer size","Accept herited events 0/1","Name of Scope (label&Id)"],list("vec",-1,"vec",-1,"vec",1,"vec",-1,"vec",-1,"vec","size(%1,\'*\')","vec","size(%1,\'*\')","vec","size(%1,\'*\')","vec",1,"vec",1,"str",1),this.exprs);
if (!ok) {
break;
}
@@ -145,7 +146,7 @@ function CMSCOPE() {
this.model.ipar = new ScilabDouble(ipar);
this.model.label = new ScilabDouble([this.nom]);
this.graphics.id = new ScilabDouble([this.nom]);
- this.graphics.exprs = new ScilabDouble([exprs]);
+ this.graphics.exprs = new ScilabDouble([this.exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;
diff --git a/js/Sinks/CMSCOPE.pickle b/js/Sinks/CMSCOPE.pickle
index 40dc6977..7daa4956 100644
--- a/js/Sinks/CMSCOPE.pickle
+++ b/js/Sinks/CMSCOPE.pickle
@@ -20,18 +20,22 @@ aS'per'
p9
aS'N'
p10
-aS'graphics'
+aS'exprs'
p11
-aS'x'
+aS'gr_i'
p12
-aS'model'
+aS'graphics'
p13
-aS'ymin'
+aS'x'
p14
-aS'heritance'
+aS'model'
p15
-atp16
-Rp17
+aS'ymin'
+p16
+aS'heritance'
+p17
+atp18
+Rp19
.(dp0
S'clrs'
p1
diff --git a/js/Sinks/CSCOPE.js b/js/Sinks/CSCOPE.js
index 6944e857..f708ea28 100644
--- a/js/Sinks/CSCOPE.js
+++ b/js/Sinks/CSCOPE.js
@@ -18,9 +18,9 @@ function CSCOPE() {
this.model.ipar = new ScilabDouble([this.win],[1],[this.N],[this.clrs],[this.wpos],[this.wdim]);
this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = new ScilabDouble([true,false]);
- var exprs = [[strcat(string(this.clrs)," ")],[string(this.win)],[sci2exp([])],[sci2exp(this.wdim)],[string(this.ymin)],[string(this.ymax)],[string(this.per)],[string(this.N)],[transpose(string(0))],[emptystr()]];
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CSCOPE\",sz(1),sz(2));"]);
- this.x = standard_define([2,2],this.model,exprs,gr_i);
+ this.exprs = [[strcat(string(this.clrs)," ")],[string(this.win)],[sci2exp([])],[sci2exp(this.wdim)],[string(this.ymin)],[string(this.ymax)],[string(this.per)],[string(this.N)],[transpose(string(0))],[emptystr()]];
+ this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CSCOPE\",sz(1),sz(2));"]);
+ this.x = standard_define([2,2],this.model,this.exprs,this.gr_i);
return new BasicBlock(this.x);
}
CSCOPE.prototype.details = function CSCOPE() {
@@ -52,12 +52,13 @@ function CSCOPE() {
this.N = parseFloat(arguments[0]["N"])
this.heritance = arguments[0]["heritance"]
this.nom = arguments[0]["nom"]
+ this.exprs = arguments[0]["exprs"]
this.x = arg1;
this.graphics = arg1.graphics;
- var exprs = this.graphics.exprs;
+ this.exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
- [ok,this.clrs,this.win,this.wpos,this.wdim,this.ymin,this.ymax,this.per,this.N,this.heritance,this.nom,exprs] = scicos_getvalue("Set Scope parameters",["Color (>0) or mark (<0) vector (8 entries)","Output window number (-1 for automatic)","Output window position","Output window sizes","Ymin","Ymax","Refresh period","Buffer size","Accept herited events 0/1","Name of Scope (label&Id)"],list("vec",8,"vec",1,"vec",-1,"vec",-1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"str",1),exprs);
+ [ok,this.clrs,this.win,this.wpos,this.wdim,this.ymin,this.ymax,this.per,this.N,this.heritance,this.nom,this.exprs] = scicos_getvalue("Set Scope parameters",["Color (>0) or mark (<0) vector (8 entries)","Output window number (-1 for automatic)","Output window position","Output window sizes","Ymin","Ymax","Refresh period","Buffer size","Accept herited events 0/1","Name of Scope (label&Id)"],list("vec",8,"vec",1,"vec",-1,"vec",-1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"str",1),this.exprs);
if (!ok) {
break;
}
@@ -113,7 +114,7 @@ function CSCOPE() {
this.model.evtin = new ScilabDouble([ones(1-this.heritance,1)]);
this.model.label = new ScilabDouble([this.nom]);
this.graphics.id = new ScilabDouble([this.nom]);
- this.graphics.exprs = new ScilabDouble([exprs]);
+ this.graphics.exprs = new ScilabDouble([this.exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;
diff --git a/js/Sinks/CSCOPE.pickle b/js/Sinks/CSCOPE.pickle
index 91210470..628431d5 100644
--- a/js/Sinks/CSCOPE.pickle
+++ b/js/Sinks/CSCOPE.pickle
@@ -18,18 +18,22 @@ aS'per'
p8
aS'N'
p9
-aS'graphics'
+aS'exprs'
p10
-aS'x'
+aS'gr_i'
p11
-aS'model'
+aS'graphics'
p12
-aS'ymin'
+aS'x'
p13
-aS'heritance'
+aS'model'
p14
-atp15
-Rp16
+aS'ymin'
+p15
+aS'heritance'
+p16
+atp17
+Rp18
.(dp0
S'clrs'
p1
diff --git a/js/Sinks/CSCOPXY.js b/js/Sinks/CSCOPXY.js
index 22a8be18..7d104223 100644
--- a/js/Sinks/CSCOPXY.js
+++ b/js/Sinks/CSCOPXY.js
@@ -22,9 +22,9 @@ function CSCOPXY() {
this.model.ipar = new ScilabDouble([this.win],[1],[this.N],[this.clrs],[this.siz],[1],[this.wpos.slice()],[this.wdim.slice()],[this.nbr_curves]);
this.model.blocktype = new ScilabString(["d"]);
this.model.dep_ut = new ScilabDouble([false,false]);
- var exprs = [[string(this.nbr_curves)],[sci2exp(this.clrs)],[sci2exp(this.siz)],[string(this.win)],[sci2exp([])],[sci2exp(this.wdim)],[string(this.xmin)],[string(this.xmax)],[string(this.ymin)],[string(this.ymax)],[string(this.N)]];
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CSCOPXY\",sz(1),sz(2));"]);
- this.x = standard_define([2,2],this.model,exprs,gr_i);
+ this.exprs = [[string(this.nbr_curves)],[sci2exp(this.clrs)],[sci2exp(this.siz)],[string(this.win)],[sci2exp([])],[sci2exp(this.wdim)],[string(this.xmin)],[string(this.xmax)],[string(this.ymin)],[string(this.ymax)],[string(this.N)]];
+ this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CSCOPXY\",sz(1),sz(2));"]);
+ this.x = standard_define([2,2],this.model,this.exprs,this.gr_i);
return new BasicBlock(this.x);
}
CSCOPXY.prototype.details = function CSCOPXY() {
@@ -58,12 +58,13 @@ function CSCOPXY() {
this.ymin = parseFloat(arguments[0]["ymin"])
this.ymax = parseFloat(arguments[0]["ymax"])
this.N = parseFloat(arguments[0]["N"])
+ this.exprs = arguments[0]["exprs"]
this.x = arg1;
this.graphics = arg1.graphics;
- var exprs = this.graphics.exprs;
+ this.exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
- [ok,this.nbr_curves,this.clrs,this.siz,this.win,this.wpos,this.wdim,this.xmin,this.xmax,this.ymin,this.ymax,this.N,exprs] = scicos_getvalue("Set Scope parameters",["Number of Curves","color (>0) or mark (<0)","line or mark size","Output window number (-1 for automatic)","Output window position","Output window sizes","Xmin","Xmax","Ymin","Ymax","Buffer size"],list("vec",1,"vec",1,"vec",1,"vec",1,"vec",-1,"vec",-1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1),exprs);
+ [ok,this.nbr_curves,this.clrs,this.siz,this.win,this.wpos,this.wdim,this.xmin,this.xmax,this.ymin,this.ymax,this.N,this.exprs] = scicos_getvalue("Set Scope parameters",["Number of Curves","color (>0) or mark (<0)","line or mark size","Output window number (-1 for automatic)","Output window position","Output window sizes","Xmin","Xmax","Ymin","Ymax","Buffer size"],list("vec",1,"vec",1,"vec",1,"vec",1,"vec",-1,"vec",-1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1),this.exprs);
if (!ok) {
break;
}
@@ -119,7 +120,7 @@ function CSCOPXY() {
var ipar = [[this.win],[1],[this.N],[this.clrs],[this.siz],[1],[this.wpos.slice()],[this.wdim.slice()],[this.nbr_curves]];
this.model.rpar = new ScilabDouble(rpar);
this.model.ipar = new ScilabDouble(ipar);
- this.graphics.exprs = new ScilabDouble([exprs]);
+ this.graphics.exprs = new ScilabDouble([this.exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;
diff --git a/js/Sinks/CSCOPXY.pickle b/js/Sinks/CSCOPXY.pickle
index a11b6b9c..f16dc117 100644
--- a/js/Sinks/CSCOPXY.pickle
+++ b/js/Sinks/CSCOPXY.pickle
@@ -16,22 +16,26 @@ aS'wdim'
p7
aS'N'
p8
-aS'xmax'
+aS'exprs'
p9
-aS'graphics'
+aS'gr_i'
p10
-aS'xmin'
+aS'xmax'
p11
-aS'x'
+aS'graphics'
p12
-aS'model'
+aS'xmin'
p13
-aS'nbr_curves'
+aS'x'
p14
-aS'win'
+aS'model'
p15
-atp16
-Rp17
+aS'nbr_curves'
+p16
+aS'win'
+p17
+atp18
+Rp19
.(dp0
S'clrs'
p1
diff --git a/js/Sinks/CSCOPXY3D.js b/js/Sinks/CSCOPXY3D.js
index 88152fe3..ba2eb57d 100644
--- a/js/Sinks/CSCOPXY3D.js
+++ b/js/Sinks/CSCOPXY3D.js
@@ -22,9 +22,9 @@ function CSCOPXY3D() {
this.model.ipar = new ScilabDouble([this.win],[8],[this.N],[this.clrs.slice()],[this.siz.slice()],[8],[this.wpos.slice()],[this.wdim.slice()],[this.nbr_curves]);
this.model.blocktype = new ScilabString(["d"]);
this.model.dep_ut = new ScilabDouble([false,false]);
- var exprs = [[string(this.nbr_curves)],[strcat(string(this.clrs)," ")],[strcat(string(this.siz)," ")],[string(this.win)],[sci2exp([])],[sci2exp(this.wdim)],[strcat(string(this.vec_x)," ")],[strcat(string(this.vec_y)," ")],[strcat(string(this.vec_z)," ")],[strcat(string(this.param3ds)," ")],[string(this.N)]];
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CSCOPXY3D\",sz(1),sz(2));"]);
- this.x = standard_define([2,2],this.model,exprs,gr_i);
+ this.exprs = [[string(this.nbr_curves)],[strcat(string(this.clrs)," ")],[strcat(string(this.siz)," ")],[string(this.win)],[sci2exp([])],[sci2exp(this.wdim)],[strcat(string(this.vec_x)," ")],[strcat(string(this.vec_y)," ")],[strcat(string(this.vec_z)," ")],[strcat(string(this.param3ds)," ")],[string(this.N)]];
+ this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CSCOPXY3D\",sz(1),sz(2));"]);
+ this.x = standard_define([2,2],this.model,this.exprs,this.gr_i);
return new BasicBlock(this.x);
}
CSCOPXY3D.prototype.details = function CSCOPXY3D() {
@@ -58,12 +58,13 @@ function CSCOPXY3D() {
this.vec_z = inverse(arguments[0]["vec_z"])
this.param3ds = inverse(arguments[0]["param3ds"])
this.N = parseFloat(arguments[0]["N"])
+ this.exprs = arguments[0]["exprs"]
this.x = arg1;
this.graphics = arg1.graphics;
- var exprs = this.graphics.exprs;
+ this.exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
- [ok,this.nbr_curves,this.clrs,this.siz,this.win,this.wpos,this.wdim,this.vec_x,this.vec_y,this.vec_z,this.param3ds,this.N,exprs] = scicos_getvalue("Set Scope parameters",["Number of curves","color (>0) or mark (<0)","Line or Mark Size","Output window number (-1 for automatic)","Output window position","Output window sizes","Xmin and Xmax","Ymin and Ymax","Zmin and Zmax","Alpha and Theta","Buffer size"],list("vec",1,"vec",-1,"vec",-1,"vec",1,"vec",-1,"vec",-1,"vec",2,"vec",2,"vec",2,"vec",2,"vec",1),exprs);
+ [ok,this.nbr_curves,this.clrs,this.siz,this.win,this.wpos,this.wdim,this.vec_x,this.vec_y,this.vec_z,this.param3ds,this.N,this.exprs] = scicos_getvalue("Set Scope parameters",["Number of curves","color (>0) or mark (<0)","Line or Mark Size","Output window number (-1 for automatic)","Output window position","Output window sizes","Xmin and Xmax","Ymin and Ymax","Zmin and Zmax","Alpha and Theta","Buffer size"],list("vec",1,"vec",-1,"vec",-1,"vec",1,"vec",-1,"vec",-1,"vec",2,"vec",2,"vec",2,"vec",2,"vec",1),this.exprs);
if (!ok) {
break;
}
@@ -130,7 +131,7 @@ function CSCOPXY3D() {
var ipar = [[this.win],[size_siz],[this.N],[this.clrs.slice()],[this.siz.slice()],[1],[this.wpos.slice()],[this.wdim.slice()],[this.nbr_curves]];
this.model.rpar = new ScilabDouble(rpar);
this.model.ipar = new ScilabDouble(ipar);
- this.graphics.exprs = new ScilabDouble([exprs]);
+ this.graphics.exprs = new ScilabDouble([this.exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;
diff --git a/js/Sinks/CSCOPXY3D.pickle b/js/Sinks/CSCOPXY3D.pickle
index 3361fa70..891332f9 100644
--- a/js/Sinks/CSCOPXY3D.pickle
+++ b/js/Sinks/CSCOPXY3D.pickle
@@ -20,18 +20,22 @@ aS'param3ds'
p9
aS'N'
p10
-aS'graphics'
+aS'exprs'
p11
-aS'x'
+aS'gr_i'
p12
-aS'model'
+aS'graphics'
p13
-aS'nbr_curves'
+aS'x'
p14
-aS'win'
+aS'model'
p15
-atp16
-Rp17
+aS'nbr_curves'
+p16
+aS'win'
+p17
+atp18
+Rp19
.(dp0
S'clrs'
p1
diff --git a/js/Sinks/OUTIMPL_f.js b/js/Sinks/OUTIMPL_f.js
index 4dd97b21..de52222b 100644
--- a/js/Sinks/OUTIMPL_f.js
+++ b/js/Sinks/OUTIMPL_f.js
@@ -13,9 +13,9 @@ function OUTIMPL_f() {
mo.model = "PORT";
mo.inputs = "n";
this.model.equations = new ScilabDouble([mo]);
- var exprs = "1";
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"OUTIMPL_f\",sz(1),sz(2));"]);
- this.x = standard_define([1,1],this.model,exprs,gr_i);
+ this.exprs = "1";
+ this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"OUTIMPL_f\",sz(1),sz(2));"]);
+ this.x = standard_define([1,1],this.model,this.exprs,this.gr_i);
this.x.graphics.in_implicit = ["I"];
return new ImplicitOutBlock(this.x);
}
@@ -29,15 +29,16 @@ function OUTIMPL_f() {
}
OUTIMPL_f.prototype.set = function OUTIMPL_f() {
this.prt = parseFloat(arguments[0]["prt"])
+ this.exprs = parseFloat(arguments[0]["exprs"])
this.x = arg1;
this.graphics = arg1.graphics;
- var exprs = this.graphics.exprs;
+ this.exprs = this.graphics.exprs;
this.model = arg1.model;
- if (size(exprs,"*")==2) {
- var exprs = exprs[1-1];
+ if (size(this.exprs,"*")==2) {
+ this.exprs = this.exprs[1-1];
}
while (true) {
- [ok,this.prt,exprs] = scicos_getvalue([[msprintf("Set %s block parameters","OUTIMPL_f")],[" "],["Implicit output port"]],"Port number",list("vec",1),exprs);
+ [ok,this.prt,this.exprs] = scicos_getvalue([[msprintf("Set %s block parameters","OUTIMPL_f")],[" "],["Implicit output port"]],"Port number",list("vec",1),this.exprs);
if (!ok) {
break;
}
@@ -50,7 +51,7 @@ function OUTIMPL_f() {
var y = needcompile;
}
this.model.ipar = new ScilabDouble([this.prt]);
- this.graphics.exprs = new ScilabDouble([exprs]);
+ this.graphics.exprs = new ScilabDouble([this.exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;
diff --git a/js/Sinks/OUTIMPL_f.pickle b/js/Sinks/OUTIMPL_f.pickle
index a4f815d4..394f3d4f 100644
--- a/js/Sinks/OUTIMPL_f.pickle
+++ b/js/Sinks/OUTIMPL_f.pickle
@@ -2,16 +2,20 @@ c__builtin__
set
p0
((lp1
-S'prt'
+S'exprs'
p2
-aS'x'
+aS'prt'
p3
-aS'model'
+aS'gr_i'
p4
aS'graphics'
p5
-atp6
-Rp7
+aS'x'
+p6
+aS'model'
+p7
+atp8
+Rp9
.(dp0
S'arg1'
p1
diff --git a/js/Sinks/OUT_f.js b/js/Sinks/OUT_f.js
index bce3dd16..968ceb1b 100644
--- a/js/Sinks/OUT_f.js
+++ b/js/Sinks/OUT_f.js
@@ -11,9 +11,9 @@ function OUT_f() {
this.model.ipar = new ScilabDouble([this.prt]);
this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = new ScilabDouble([false,false]);
- var exprs = string(this.prt);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"OUT_f\",sz(1),sz(2));"]);
- this.x = standard_define([1,1],this.model,exprs,gr_i);
+ this.exprs = string(this.prt);
+ this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"OUT_f\",sz(1),sz(2));"]);
+ this.x = standard_define([1,1],this.model,this.exprs,this.gr_i);
return new ExplicitOutBlock(this.x);
}
OUT_f.prototype.details = function OUT_f() {
@@ -26,15 +26,16 @@ function OUT_f() {
}
OUT_f.prototype.set = function OUT_f() {
this.prt = parseFloat(arguments[0]["prt"])
+ this.exprs = parseFloat(arguments[0]["exprs"])
this.x = arg1;
this.graphics = arg1.graphics;
this.model = arg1.model;
- var exprs = this.graphics.exprs;
- if (size(exprs,"*")==2) {
- var exprs = exprs[1-1];
+ this.exprs = this.graphics.exprs;
+ if (size(this.exprs,"*")==2) {
+ this.exprs = this.exprs[1-1];
}
while (true) {
- [ok,this.prt,exprs] = scicos_getvalue([[msprintf("Set %s block parameters","OUT_f")],[" "],["Regular output port"]],"Port number",list("vec",1),exprs);
+ [ok,this.prt,this.exprs] = scicos_getvalue([[msprintf("Set %s block parameters","OUT_f")],[" "],["Regular output port"]],"Port number",list("vec",1),this.exprs);
if (!ok) {
break;
}
@@ -43,7 +44,7 @@ function OUT_f() {
block_parameter_error(msprintf("Wrong value for \'Port Number\' parameter: %d.",this.prt),"Strictly positive integer expected.");
} else {
this.model.ipar = new ScilabDouble([this.prt]);
- this.graphics.exprs = new ScilabDouble([exprs]);
+ this.graphics.exprs = new ScilabDouble([this.exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;
diff --git a/js/Sinks/OUT_f.pickle b/js/Sinks/OUT_f.pickle
index d77fba8a..44e3674f 100644
--- a/js/Sinks/OUT_f.pickle
+++ b/js/Sinks/OUT_f.pickle
@@ -2,16 +2,20 @@ c__builtin__
set
p0
((lp1
-S'prt'
+S'exprs'
p2
-aS'x'
+aS'prt'
p3
-aS'model'
+aS'gr_i'
p4
aS'graphics'
p5
-atp6
-Rp7
+aS'x'
+p6
+aS'model'
+p7
+atp8
+Rp9
.(dp0
S'model.in2'
p1
diff --git a/js/Sinks/TOWS_c.js b/js/Sinks/TOWS_c.js
index ad6cdcb1..8ebbb85e 100644
--- a/js/Sinks/TOWS_c.js
+++ b/js/Sinks/TOWS_c.js
@@ -18,9 +18,9 @@ function TOWS_c() {
this.model.blocktype = new ScilabString(["d"]);
this.model.firing = new ScilabDouble([]);
this.model.dep_ut = new ScilabDouble([false,false]);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"TOWS_c\",sz(1),sz(2));"]);
- var exprs = [[string(this.nz)],[string(this.varnam)],[string(this.herit)]];
- this.x = standard_define([4,2],this.model,exprs,gr_i);
+ this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"TOWS_c\",sz(1),sz(2));"]);
+ this.exprs = [[string(this.nz)],[string(this.varnam)],[string(this.herit)]];
+ this.x = standard_define([4,2],this.model,this.exprs,this.gr_i);
return new BasicBlock(this.x);
}
TOWS_c.prototype.details = function TOWS_c() {
@@ -38,12 +38,13 @@ function TOWS_c() {
this.nz = parseFloat(arguments[0]["nz"])
this.varnam = arguments[0]["varnam"]
this.herit = parseFloat(arguments[0]["herit"])
+ this.exprs = arguments[0]["exprs"]
this.x = arg1;
this.graphics = arg1.graphics;
this.model = arg1.model;
- var exprs = this.graphics.exprs;
+ this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.nz,this.varnam,this.herit,exprs] = scicos_getvalue("Set Xcos buffer block",["Size of buffer","Scilab variable name","Inherit (no:0, yes:1)"],list("vec",1,"str",1,"vec",1),exprs);
+ [ok,this.nz,this.varnam,this.herit,this.exprs] = scicos_getvalue("Set Xcos buffer block",["Size of buffer","Scilab variable name","Inherit (no:0, yes:1)"],list("vec",1,"str",1,"vec",1),this.exprs);
if (!ok) {
break;
}
@@ -69,7 +70,7 @@ function TOWS_c() {
this.model.blocktype = new ScilabString(["d"]);
}
this.model.ipar = new ScilabDouble([this.nz],[length(this.varnam)],[transpose(this.ascii[this.varnam-1])]);
- this.graphics.exprs = new ScilabDouble([exprs]);
+ this.graphics.exprs = new ScilabDouble([this.exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;
diff --git a/js/Sinks/TOWS_c.pickle b/js/Sinks/TOWS_c.pickle
index 31ff78a2..458ab931 100644
--- a/js/Sinks/TOWS_c.pickle
+++ b/js/Sinks/TOWS_c.pickle
@@ -4,20 +4,24 @@ p0
((lp1
S'herit'
p2
-aS'nz'
+aS'exprs'
p3
-aS'graphics'
+aS'nz'
p4
-aS'x'
+aS'gr_i'
p5
-aS'model'
+aS'graphics'
p6
-aS'ascii'
+aS'x'
p7
-aS'varnam'
+aS'model'
p8
-atp9
-Rp10
+aS'ascii'
+p9
+aS'varnam'
+p10
+atp11
+Rp12
.(dp0
S'arg1'
p1
diff --git a/js/Sinks/TRASH_f.js b/js/Sinks/TRASH_f.js
index 2f2bc5a5..7ef3e6ad 100644
--- a/js/Sinks/TRASH_f.js
+++ b/js/Sinks/TRASH_f.js
@@ -8,9 +8,9 @@ function TRASH_f() {
this.model.evtin = new ScilabDouble([1]);
this.model.blocktype = new ScilabString(["d"]);
this.model.dep_ut = new ScilabDouble([false,false]);
- var exprs = " ";
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"TRASH_f\",sz(1),sz(2));"]);
- this.x = standard_define([2,2],this.model,exprs,gr_i);
+ this.exprs = " ";
+ this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"TRASH_f\",sz(1),sz(2));"]);
+ this.x = standard_define([2,2],this.model,this.exprs,this.gr_i);
return new BasicBlock(this.x);
}
TRASH_f.prototype.details = function TRASH_f() {
diff --git a/js/Sinks/TRASH_f.pickle b/js/Sinks/TRASH_f.pickle
index e5dde935..12da9c14 100644
--- a/js/Sinks/TRASH_f.pickle
+++ b/js/Sinks/TRASH_f.pickle
@@ -6,8 +6,14 @@ S'x'
p2
aS'model'
p3
-atp4
-Rp5
+aS'gr_i'
+p4
+aS'exprs'
+p5
+aS'graphics'
+p6
+atp7
+Rp8
.(dp0
S'model.sim'
p1
diff --git a/js/Sinks/WFILE_f.js b/js/Sinks/WFILE_f.js
index 4c919d7a..62ea59fb 100644
--- a/js/Sinks/WFILE_f.js
+++ b/js/Sinks/WFILE_f.js
@@ -15,9 +15,9 @@ function WFILE_f() {
this.model.ipar = new ScilabDouble([length(fname)],[length(frmt)],[0],[this.N],[this._str2code[fname-1]],[this._str2code[frmt-1]]);
this.model.blocktype = new ScilabString(["d"]);
this.model.dep_ut = new ScilabDouble([true,false]);
- var exprs = [[sci2exp(this.in1)],[fname],[frmt],[string(this.N)]];
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"WFILE_f\",sz(1),sz(2));"]);
- this.x = standard_define([3,2],this.model,exprs,gr_i);
+ this.exprs = [[sci2exp(this.in1)],[fname],[frmt],[string(this.N)]];
+ this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"WFILE_f\",sz(1),sz(2));"]);
+ this.x = standard_define([3,2],this.model,this.exprs,this.gr_i);
return new BasicBlock(this.x);
}
WFILE_f.prototype.details = function WFILE_f() {
@@ -37,6 +37,7 @@ function WFILE_f() {
this.fname1 = parseFloat(arguments[0]["fname1"])
this.frmt1 = parseFloat(arguments[0]["frmt1"])
this.N = parseFloat(arguments[0]["N"])
+ this.exprs = arguments[0]["exprs"]
warnobsolete("WRITEC_f","6.0.0");
var warnMessage = msprintf(_("Feature %s is obsolete."),"WFILE_f");
var warnAdvise = msprintf(_("Please use %s instead."),"WRITEC_f");
@@ -44,14 +45,14 @@ function WFILE_f() {
warnBlockByUID(arg1.model.label,warnXcosMessage);
this.x = arg1;
this.graphics = arg1.graphics;
- var exprs = this.graphics.exprs;
+ this.exprs = this.graphics.exprs;
this.model = arg1.model;
var dstate = this.model.dstate;
var lunit = dstate[2-1];
- var fname = exprs[2-1];
- var frmt = exprs[3-1];
+ var fname = this.exprs[2-1];
+ var frmt = this.exprs[3-1];
while (true) {
- [ok,this.in1,this.fname1,this.frmt1,this.N,exprs] = scicos_getvalue([[msprintf("Set %s block parameters","WFILE_f")],[" "],["Write to output file"],[" "],["Write is done on:"],["&nbsp; - A binary file if no format given"],["&nbsp; - A formatted text file if a format (Fortran type) is given"]],["Input Size","Output File Name","Output Format","Buffer Size"],list("vec",1,"str",1,"str",1,"vec",1),exprs);
+ [ok,this.in1,this.fname1,this.frmt1,this.N,this.exprs] = scicos_getvalue([[msprintf("Set %s block parameters","WFILE_f")],[" "],["Write to output file"],[" "],["Write is done on:"],["&nbsp; - A binary file if no format given"],["&nbsp; - A formatted text file if a format (Fortran type) is given"]],["Input Size","Output File Name","Output Format","Buffer Size"],list("vec",1,"str",1,"str",1,"vec",1),this.exprs);
if (!ok) {
break;
}
@@ -96,7 +97,7 @@ function WFILE_f() {
this.model.dstate = new ScilabDouble(dstate);
this.model.ipar = new ScilabDouble(ipar);
this.model.dep_ut = new ScilabDouble([true,false]);
- this.graphics.exprs = new ScilabDouble([exprs]);
+ this.graphics.exprs = new ScilabDouble([this.exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;
diff --git a/js/Sinks/WFILE_f.pickle b/js/Sinks/WFILE_f.pickle
index 41c6ea25..2a1970d6 100644
--- a/js/Sinks/WFILE_f.pickle
+++ b/js/Sinks/WFILE_f.pickle
@@ -6,22 +6,26 @@ S'isdir'
p2
aS'_str2code'
p3
-aS'frmt1'
+aS'in1'
p4
aS'fname1'
p5
-aS'in1'
+aS'frmt1'
p6
-aS'graphics'
+aS'exprs'
p7
-aS'x'
+aS'gr_i'
p8
-aS'model'
+aS'graphics'
p9
-aS'N'
+aS'x'
p10
-atp11
-Rp12
+aS'model'
+p11
+aS'N'
+p12
+atp13
+Rp14
.(dp0
S'model.dstate'
p1
diff --git a/js/Sinks/WRITEAU_f.js b/js/Sinks/WRITEAU_f.js
index 5765e7a6..d9bfa994 100644
--- a/js/Sinks/WRITEAU_f.js
+++ b/js/Sinks/WRITEAU_f.js
@@ -16,9 +16,9 @@ function WRITEAU_f() {
this.model.ipar = new ScilabDouble([length(fname)],[this._str2code[frmt-1]],[this.N],[this.swap],[this._str2code[fname-1]]);
this.model.blocktype = new ScilabString(["d"]);
this.model.dep_ut = new ScilabDouble([true,false]);
- var exprs = [string(this.N),string(this.swap)];
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"WRITEAU_f\",sz(1),sz(2));"]);
- this.x = standard_define([4,2],this.model,exprs,gr_i);
+ this.exprs = [string(this.N),string(this.swap)];
+ this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"WRITEAU_f\",sz(1),sz(2));"]);
+ this.x = standard_define([4,2],this.model,this.exprs,this.gr_i);
return new BasicBlock(this.x);
}
WRITEAU_f.prototype.details = function WRITEAU_f() {
@@ -34,15 +34,16 @@ function WRITEAU_f() {
WRITEAU_f.prototype.set = function WRITEAU_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;
- var exprs = this.graphics.exprs;
+ this.exprs = this.graphics.exprs;
this.model = arg1.model;
var ipar = this.model.ipar;
var dstate = this.model.dstate;
var lunit = dstate[2-1];
while (true) {
- [ok,this.N,this.swap,exprs] = scicos_getvalue([[msprintf("Set %s block parameters","WRITEAU_f")],[" "],["Write \'.au\' sound file on audio device"]],["Buffer Size","Swap Mode (0:No, 1:Yes)"],list("vec",1,"vec",1),exprs);
+ [ok,this.N,this.swap,this.exprs] = scicos_getvalue([[msprintf("Set %s block parameters","WRITEAU_f")],[" "],["Write \'.au\' sound file on audio device"]],["Buffer Size","Swap Mode (0:No, 1:Yes)"],list("vec",1,"vec",1),this.exprs);
if (!ok) {
break;
}
@@ -68,7 +69,7 @@ function WRITEAU_f() {
this.model.in1 = new ScilabDouble([1]);
this.model.dstate = new ScilabDouble(dstate);
this.model.ipar = new ScilabDouble(ipar);
- this.graphics.exprs = new ScilabDouble([exprs]);
+ this.graphics.exprs = new ScilabDouble([this.exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;
diff --git a/js/Sinks/WRITEAU_f.pickle b/js/Sinks/WRITEAU_f.pickle
index 45165388..f3a19a0a 100644
--- a/js/Sinks/WRITEAU_f.pickle
+++ b/js/Sinks/WRITEAU_f.pickle
@@ -6,18 +6,22 @@ S'_str2code'
p2
aS'N'
p3
-aS'swap'
+aS'exprs'
p4
-aS'graphics'
+aS'gr_i'
p5
-aS'x'
+aS'swap'
p6
-aS'model'
+aS'graphics'
p7
-aS'alreadyran'
+aS'x'
p8
-atp9
-Rp10
+aS'model'
+p9
+aS'alreadyran'
+p10
+atp11
+Rp12
.(dp0
S'model.dstate'
p1
diff --git a/js/Sinks/WRITEC_f.js b/js/Sinks/WRITEC_f.js
index b92975c2..358c89bc 100644
--- a/js/Sinks/WRITEC_f.js
+++ b/js/Sinks/WRITEC_f.js
@@ -16,9 +16,9 @@ function WRITEC_f() {
this.model.ipar = new ScilabDouble([length(fname)],[this._str2code[frmt-1]],[this.N],[this.swap],[this._str2code[fname-1]]);
this.model.blocktype = new ScilabString(["d"]);
this.model.dep_ut = new ScilabDouble([true,false]);
- var exprs = [[sci2exp(this.in1)],[fname],[frmt],[string(this.N),string(this.swap)]];
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"WRITEC_f\",sz(1),sz(2));"]);
- this.x = standard_define([4,2],this.model,exprs,gr_i);
+ this.exprs = [[sci2exp(this.in1)],[fname],[frmt],[string(this.N),string(this.swap)]];
+ this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"WRITEC_f\",sz(1),sz(2));"]);
+ this.x = standard_define([4,2],this.model,this.exprs,this.gr_i);
return new BasicBlock(this.x);
}
WRITEC_f.prototype.details = function WRITEC_f() {
@@ -40,17 +40,18 @@ function WRITEC_f() {
this.frmt1 = arguments[0]["frmt1"]
this.N = parseFloat(arguments[0]["N"])
this.swap = parseFloat(arguments[0]["swap"])
+ this.exprs = arguments[0]["exprs"]
this.x = arg1;
this.graphics = arg1.graphics;
- var exprs = this.graphics.exprs;
+ this.exprs = this.graphics.exprs;
this.model = arg1.model;
var ipar = this.model.ipar;
var dstate = this.model.dstate;
var lunit = dstate[2-1];
- var fname = exprs[2-1];
- var frmt = exprs[3-1];
+ var fname = this.exprs[2-1];
+ var frmt = this.exprs[3-1];
while (true) {
- [ok,this.in1,this.fname1,this.frmt1,this.N,this.swap,exprs] = scicos_getvalue([[msprintf("Set %s block parameters","WRITEC_f")],[" "],["Write to C binary file"]],["Input Size","Output File Name","Output Format","Buffer Size","Swap Mode (0:No, 1:Yes)"],list("vec",1,"str",1,"str",1,"vec",1,"vec",1),exprs);
+ [ok,this.in1,this.fname1,this.frmt1,this.N,this.swap,this.exprs] = scicos_getvalue([[msprintf("Set %s block parameters","WRITEC_f")],[" "],["Write to C binary file"]],["Input Size","Output File Name","Output Format","Buffer Size","Swap Mode (0:No, 1:Yes)"],list("vec",1,"str",1,"str",1,"vec",1,"vec",1),this.exprs);
if (!ok) {
break;
}
@@ -98,7 +99,7 @@ function WRITEC_f() {
this.model.in1 = new ScilabDouble([nin]);
this.model.dstate = new ScilabDouble(dstate);
this.model.ipar = new ScilabDouble(ipar);
- this.graphics.exprs = new ScilabDouble([exprs]);
+ this.graphics.exprs = new ScilabDouble([this.exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;
diff --git a/js/Sinks/WRITEC_f.pickle b/js/Sinks/WRITEC_f.pickle
index 1aa169a0..b482fa90 100644
--- a/js/Sinks/WRITEC_f.pickle
+++ b/js/Sinks/WRITEC_f.pickle
@@ -6,26 +6,30 @@ S'isdir'
p2
aS'_str2code'
p3
-aS'frmt1'
+aS'in1'
p4
aS'fname1'
p5
-aS'in1'
+aS'frmt1'
p6
-aS'swap'
+aS'exprs'
p7
-aS'graphics'
+aS'gr_i'
p8
-aS'x'
+aS'swap'
p9
-aS'model'
+aS'graphics'
p10
-aS'N'
+aS'x'
p11
-aS'alreadyran'
+aS'model'
p12
-atp13
-Rp14
+aS'N'
+p13
+aS'alreadyran'
+p14
+atp15
+Rp16
.(dp0
S'model.dstate'
p1