diff options
Diffstat (limited to 'js/Sources')
31 files changed, 31 insertions, 31 deletions
diff --git a/js/Sources/CLKINV_f.js b/js/Sources/CLKINV_f.js index d86618c9..12ff04eb 100644 --- a/js/Sources/CLKINV_f.js +++ b/js/Sources/CLKINV_f.js @@ -10,7 +10,7 @@ function CLKINV_f() { this.model.firing = new ScilabDouble([-1]); this.model.dep_ut = new ScilabDouble([false,false]); var exprs = string(this.prt); - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CLKINV_f\",sz(1),sz(2));"]); this.x = standard_define([1,1],this.model,exprs,gr_i); return new EventInBlock(this.x); } diff --git a/js/Sources/CLOCK_c.js b/js/Sources/CLOCK_c.js index 1642f70c..4010f34a 100644 --- a/js/Sources/CLOCK_c.js +++ b/js/Sources/CLOCK_c.js @@ -21,7 +21,7 @@ function CLOCK_c() { split.graphics.orig = [[380.71066],[172]]; split.graphics.pein = 3; split.graphics.peout = [[5],[6]]; - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CLOCK_c\",sz(1),sz(2));"]); var diagram = scicos_diagram(); diagram.objs[1-1] = output_port; diagram.objs[2-1] = evtdly; diff --git a/js/Sources/CLOCK_f.js b/js/Sources/CLOCK_f.js index a18cfc4b..c071dc88 100644 --- a/js/Sources/CLOCK_f.js +++ b/js/Sources/CLOCK_f.js @@ -21,7 +21,7 @@ function CLOCK_f() { split.graphics.orig = [[380.71066],[172]]; split.graphics.pein = 3; split.graphics.peout = [[5],[6]]; - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CLOCK_f\",sz(1),sz(2));"]); var diagram = scicos_diagram(); diagram.objs[1-1] = output_port; diagram.objs[2-1] = evtdly; diff --git a/js/Sources/CONST.js b/js/Sources/CONST.js index 81978c23..8465ca55 100644 --- a/js/Sources/CONST.js +++ b/js/Sources/CONST.js @@ -10,7 +10,7 @@ function CONST() { this.model.blocktype = new ScilabString(["d"]); this.model.dep_ut = new ScilabDouble([false,false]); var exprs = strcat(sci2exp(this.C)); - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CONST\",sz(1),sz(2));"]); this.x = standard_define([2,2],this.model,exprs,gr_i); return new BasicBlock(this.x); } diff --git a/js/Sources/CONST_f.js b/js/Sources/CONST_f.js index 8f809d66..abe2b3c8 100644 --- a/js/Sources/CONST_f.js +++ b/js/Sources/CONST_f.js @@ -10,7 +10,7 @@ function CONST_f() { this.model.blocktype = new ScilabString(["d"]); this.model.dep_ut = new ScilabDouble([false,false]); var exprs = strcat(sci2exp(this.C)); - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CONST_f\",sz(1),sz(2));"]); this.x = standard_define([2,2],this.model,exprs,gr_i); return new BasicBlock(this.x); } diff --git a/js/Sources/CONST_m.js b/js/Sources/CONST_m.js index 69e37818..3a207f1c 100644 --- a/js/Sources/CONST_m.js +++ b/js/Sources/CONST_m.js @@ -13,7 +13,7 @@ function CONST_m() { this.model.blocktype = new ScilabString(["d"]); this.model.dep_ut = new ScilabDouble([false,false]); var exprs = sci2exp(this.C); - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CONST_m\",sz(1),sz(2));"]); this.x = standard_define([2,2],this.model,exprs,gr_i); return new BasicBlock(this.x); } diff --git a/js/Sources/CURVE_c.js b/js/Sources/CURVE_c.js index a165bcb8..a8827ea6 100644 --- a/js/Sources/CURVE_c.js +++ b/js/Sources/CURVE_c.js @@ -19,7 +19,7 @@ function CURVE_c() { this.model.evtout = new ScilabDouble([1]); this.model.firing = new ScilabDouble([0]); var exprs = [[sci2exp(this.Method)],[sci2exp(this.xx)],[sci2exp(this.yy)],[this.PeriodicOption],[Graf]]; - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CURVE_c\",sz(1),sz(2));"]); this.x = standard_define([2,2],this.model,exprs,gr_i); return new BasicBlock(this.x); } diff --git a/js/Sources/CURV_f.js b/js/Sources/CURV_f.js index e34977ec..ce2f2207 100644 --- a/js/Sources/CURV_f.js +++ b/js/Sources/CURV_f.js @@ -15,7 +15,7 @@ function CURV_f() { this.model.ipar = new ScilabDouble([size(xx,1)],[axisdata.slice()]); this.model.blocktype = new ScilabString(["c"]); this.model.dep_ut = new ScilabDouble([false,true]); - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CURV_f\",sz(1),sz(2));"]); this.x = standard_define([2,2],this.model,[],gr_i); return new BasicBlock(this.x); } diff --git a/js/Sources/Counter.js b/js/Sources/Counter.js index 6b5c835b..de94c91f 100644 --- a/js/Sources/Counter.js +++ b/js/Sources/Counter.js @@ -14,7 +14,7 @@ function Counter() { this.model.blocktype = new ScilabString(["c"]); this.model.dep_ut = new ScilabDouble([false,false]); var exprs = [[string(this.minim)],[string(this.maxim)],[string(this.rule)]]; - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Counter\",sz(1),sz(2));"]); this.x = standard_define([3,2],this.model,exprs,gr_i); return new BasicBlock(this.x); } diff --git a/js/Sources/FROMWSB.js b/js/Sources/FROMWSB.js index 31a19f1f..9d1ab635 100644 --- a/js/Sources/FROMWSB.js +++ b/js/Sources/FROMWSB.js @@ -7,7 +7,7 @@ function FROMWSB() { scs_m_1.objs[3-1] = scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[358.9421,271.584],sz=[20,20],flip=true,theta=0,exprs="1",pin=4,pout=[],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=-2,intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[false,false],label="",nzcross=0,nmode=0,equations=list()),doc=list()); scs_m_1.objs[4-1] = scicos_link(xx=[[338.9421],[358.9421]],yy=[[281.584],[281.584]],id="drawlink",thick=[0,0],ct=[1,1],from=[1,1,0],to=[3,1,1]); this.model = scicos_model(sim="csuper",in1=[],in2=[],intyp=1,out=-1,out2=-2,outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=scs_m_1,ipar=[],opar=list(),blocktype="h",firing=[],dep_ut=[false,false],label="",nzcross=0,nmode=0,equations=list()); - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"FROMWSB\",sz(1),sz(2));"]); this.x = standard_define([5,2],this.model,[],gr_i); return new BasicBlock(this.x); } diff --git a/js/Sources/FROMWS_c.js b/js/Sources/FROMWS_c.js index 678deb94..0626ae40 100644 --- a/js/Sources/FROMWS_c.js +++ b/js/Sources/FROMWS_c.js @@ -16,7 +16,7 @@ function FROMWS_c() { this.model.firing = new ScilabDouble([0]); this.model.blocktype = new ScilabString(["d"]); this.model.dep_ut = new ScilabDouble([false,true]); - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"FROMWS_c\",sz(1),sz(2));"]); var exprs = [[string(this.varnam)],[string(this.Method)],[string(this.ZC)],[string(this.OutEnd)]]; this.x = standard_define([3.5,2],this.model,exprs,gr_i); return new BasicBlock(this.x); diff --git a/js/Sources/GENSIN_f.js b/js/Sources/GENSIN_f.js index 5871d300..ff8153de 100644 --- a/js/Sources/GENSIN_f.js +++ b/js/Sources/GENSIN_f.js @@ -12,7 +12,7 @@ function GENSIN_f() { this.model.blocktype = new ScilabString(["c"]); this.model.dep_ut = new ScilabDouble([false,true]); var exprs = [[string(rpar[1-1])],[string(rpar[2-1])],[string(rpar[3-1])]]; - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GENSIN_f\",sz(1),sz(2));"]); this.x = standard_define([3,2],this.model,exprs,gr_i); return new BasicBlock(this.x); } diff --git a/js/Sources/GENSQR_f.js b/js/Sources/GENSQR_f.js index 9d5be45d..3c0b2f65 100644 --- a/js/Sources/GENSQR_f.js +++ b/js/Sources/GENSQR_f.js @@ -12,7 +12,7 @@ function GENSQR_f() { this.model.blocktype = new ScilabString(["d"]); this.model.dep_ut = new ScilabDouble([false,false]); var exprs = string(this.Amplitude); - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GENSQR_f\",sz(1),sz(2));"]); this.x = standard_define([3,2],this.model,exprs,gr_i); return new BasicBlock(this.x); } diff --git a/js/Sources/GEN_SQR.js b/js/Sources/GEN_SQR.js index e6ba542c..0ed8569e 100644 --- a/js/Sources/GEN_SQR.js +++ b/js/Sources/GEN_SQR.js @@ -46,7 +46,7 @@ function GEN_SQR() { var rule = 1; var F = 1; var exprs = [sci2exp(Amin),sci2exp(Amax),sci2exp(rule),sci2exp(F)]; - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GEN_SQR\",sz(1),sz(2));"]); this.x = standard_define([3,2],this.model,exprs,gr_i); return new BasicBlock(this.x); } diff --git a/js/Sources/Ground_g.js b/js/Sources/Ground_g.js index 98dfe03e..343fe0c4 100644 --- a/js/Sources/Ground_g.js +++ b/js/Sources/Ground_g.js @@ -14,7 +14,7 @@ function Ground_g() { this.model.blocktype = new ScilabString(["d"]); this.model.dep_ut = new ScilabDouble([false,false]); var exprs = []; - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Ground_g\",sz(1),sz(2));"]); this.x = standard_define([2,2],this.model,exprs,gr_i); return new BasicBlock(this.x); } diff --git a/js/Sources/INIMPL_f.js b/js/Sources/INIMPL_f.js index 158e9b71..bfcbde45 100644 --- a/js/Sources/INIMPL_f.js +++ b/js/Sources/INIMPL_f.js @@ -14,7 +14,7 @@ function INIMPL_f() { this.model.equations = new ScilabDouble([mo]); this.prt = 1; var exprs = "1"; - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"INIMPL_f\",sz(1),sz(2));"]); this.x = standard_define([1,1],this.model,exprs,gr_i); this.x.graphics.out_implicit = ["I"]; return new ImplicitInBlock(this.x); diff --git a/js/Sources/IN_f.js b/js/Sources/IN_f.js index 756cf5cd..d1b6534d 100644 --- a/js/Sources/IN_f.js +++ b/js/Sources/IN_f.js @@ -11,7 +11,7 @@ function IN_f() { this.model.blocktype = new ScilabString(["c"]); this.model.dep_ut = new ScilabDouble([false,false]); var exprs = sci2exp(prt); - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"IN_f\",sz(1),sz(2));"]); this.x = standard_define([1,1],this.model,exprs,gr_i); return new ExplicitInBlock(this.x); } diff --git a/js/Sources/Modulo_Count.js b/js/Sources/Modulo_Count.js index 2ac3c14f..d2ada870 100644 --- a/js/Sources/Modulo_Count.js +++ b/js/Sources/Modulo_Count.js @@ -12,7 +12,7 @@ function Modulo_Count() { this.model.blocktype = new ScilabString(["c"]); this.model.dep_ut = new ScilabDouble([false,false]); var exprs = [[string(this.ini_c)],[string(this.base)]]; - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Modulo_Count\",sz(1),sz(2));"]); this.x = standard_define([3,2],this.model,exprs,gr_i); return new BasicBlock(this.x); } diff --git a/js/Sources/PULSE_SC.js b/js/Sources/PULSE_SC.js index 802851d4..0048829d 100644 --- a/js/Sources/PULSE_SC.js +++ b/js/Sources/PULSE_SC.js @@ -41,7 +41,7 @@ function PULSE_SC() { var F = 1; var A = 1; var exprs = [sci2exp(E),sci2exp(W),sci2exp(F),sci2exp(A)]; - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"PULSE_SC\",sz(1),sz(2));"]); this.x = standard_define([3,2],this.model,exprs,gr_i); return new BasicBlock(this.x); } diff --git a/js/Sources/RAMP.js b/js/Sources/RAMP.js index 828bed9d..d0d6e161 100644 --- a/js/Sources/RAMP.js +++ b/js/Sources/RAMP.js @@ -15,7 +15,7 @@ function RAMP() { this.model.nzcross = new ScilabDouble([1]); this.model.dep_ut = new ScilabDouble([false,true]); var exprs = [string(rpar)]; - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"RAMP\",sz(1),sz(2));"]); this.x = standard_define([2,2],this.model,exprs,gr_i); return new BasicBlock(this.x); } diff --git a/js/Sources/RAND_f.js b/js/Sources/RAND_f.js index 8799018e..9e4444cb 100644 --- a/js/Sources/RAND_f.js +++ b/js/Sources/RAND_f.js @@ -16,7 +16,7 @@ function RAND_f() { this.model.blocktype = new ScilabString(["d"]); this.model.dep_ut = new ScilabDouble([false,false]); var exprs = [[string(this.flag)],[sci2exp(this.a.slice())],[sci2exp(this.b.slice())],[string(this.model.dstate[1-1])]]; - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"RAND_f\",sz(1),sz(2));"]); this.x = standard_define([3,2],this.model,exprs,gr_i); return new BasicBlock(this.x); } diff --git a/js/Sources/RAND_m.js b/js/Sources/RAND_m.js index ff748381..f7d0217b 100644 --- a/js/Sources/RAND_m.js +++ b/js/Sources/RAND_m.js @@ -25,7 +25,7 @@ function RAND_m() { this.model.firing = new ScilabDouble([]); this.model.dep_ut = new ScilabDouble([false,false]); var exprs = [[sci2exp(1)],[string(this.flag)],[sci2exp([this.a])],[sci2exp([this.b])],[sci2exp([this.model.dstate[1-1],int(rand()*(10^7-1))])]]; - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"RAND_m\",sz(1),sz(2));"]); this.x = standard_define([3,2],this.model,exprs,gr_i); return new BasicBlock(this.x); } diff --git a/js/Sources/READAU_f.js b/js/Sources/READAU_f.js index c3db2463..dd7d168d 100644 --- a/js/Sources/READAU_f.js +++ b/js/Sources/READAU_f.js @@ -21,7 +21,7 @@ function READAU_f() { this.model.blocktype = new ScilabString(["d"]); this.model.dep_ut = new ScilabDouble([false,false]); var exprs = [[fname],[string(this.N)],[string(this.swap)]]; - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"READAU_f\",sz(1),sz(2));"]); this.x = standard_define([5,2],this.model,exprs,gr_i); return new BasicBlock(this.x); } diff --git a/js/Sources/READC_f.js b/js/Sources/READC_f.js index 2f818f23..4a11e2ae 100644 --- a/js/Sources/READC_f.js +++ b/js/Sources/READC_f.js @@ -25,7 +25,7 @@ function READC_f() { this.model.firing = new ScilabDouble([-1]); this.model.dep_ut = new ScilabDouble([false,false]); var exprs = [["[]"],[sci2exp(this.outmask)],[fname],[frmt],[string(this.M)],[string(this.N)],[string(this.offset)],[string(this.swap)]]; - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"READC_f\",sz(1),sz(2));"]); this.x = standard_define([4,2],this.model,exprs,gr_i); return new BasicBlock(this.x); } diff --git a/js/Sources/RFILE_f.js b/js/Sources/RFILE_f.js index 778ebced..4c5b6c2e 100644 --- a/js/Sources/RFILE_f.js +++ b/js/Sources/RFILE_f.js @@ -21,7 +21,7 @@ function RFILE_f() { this.model.blocktype = new ScilabString(["d"]); this.model.dep_ut = new ScilabDouble([false,false]); var exprs = [[sci2exp([])],[sci2exp(this.outmask)],[fname],[frmt],[string(this.N)],[sci2exp(out)]]; - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"RFILE_f\",sz(1),sz(2));"]); this.x = standard_define([3,2],this.model,exprs,gr_i); return new BasicBlock(this.x); } diff --git a/js/Sources/SAWTOOTH_f.js b/js/Sources/SAWTOOTH_f.js index 4ba5e01c..b3ec717e 100644 --- a/js/Sources/SAWTOOTH_f.js +++ b/js/Sources/SAWTOOTH_f.js @@ -9,7 +9,7 @@ function SAWTOOTH_f() { this.model.blocktype = new ScilabString(["c"]); this.model.dep_ut = new ScilabDouble([false,true]); var exprs = " "; - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SAWTOOTH_f\",sz(1),sz(2));"]); this.x = standard_define([3,2],this.model,exprs,gr_i); return new BasicBlock(this.x); } diff --git a/js/Sources/STEP.js b/js/Sources/STEP.js index 10babc97..972a8fe3 100644 --- a/js/Sources/STEP.js +++ b/js/Sources/STEP.js @@ -14,7 +14,7 @@ function STEP() { this.model.blocktype = new ScilabString(["c"]); this.model.dep_ut = new ScilabDouble([false,false]); var exprs = [[string(1)],[string(rpar)]]; - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"STEP\",sz(1),sz(2));"]); this.x = standard_define([2,2],this.model,exprs,gr_i); return new BasicBlock(this.x); } diff --git a/js/Sources/STEP_FUNCTION.js b/js/Sources/STEP_FUNCTION.js index 7b98b38a..f79a4986 100644 --- a/js/Sources/STEP_FUNCTION.js +++ b/js/Sources/STEP_FUNCTION.js @@ -47,7 +47,7 @@ function STEP_FUNCTION() { this.model.out2 = new ScilabDouble([1]); this.model.outtyp = new ScilabDouble([1]); this.model.rpar = scs_m_1; - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"STEP_FUNCTION\",sz(1),sz(2));"]); this.x = standard_define([2,2],this.model,[],gr_i); return new BasicBlock(this.x); } diff --git a/js/Sources/Sigbuilder.js b/js/Sources/Sigbuilder.js index d1fea012..1a558e26 100644 --- a/js/Sources/Sigbuilder.js +++ b/js/Sources/Sigbuilder.js @@ -11,7 +11,7 @@ function Sigbuilder() { scs_m_1.objs[7-1] = scicos_block(gui="CLKOUTV_f",graphics=scicos_graphics(orig=[339.49528,505.10704],sz=[20,30],flip=true,theta=0,exprs="1",pin=[],pout=[],pein=8,peout=[],gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim="output",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=1,evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="d",firing=[],dep_ut=[false,false],label="",nzcross=0,nmode=0,equations=list()),doc=list()); scs_m_1.objs[8-1] = scicos_link(xx=[[349.49528],[349.49528]],yy=[[565.10704],[535.10704]],id="drawlink",thick=[0,0],ct=[5,-1],from=[3,1,0],to=[7,1,1]); this.model = scicos_model(sim="csuper",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=1,evtin=[],evtout=1,state=[],dstate=[],odstate=list(),rpar=scs_m_1,ipar=[],opar=list(),blocktype="h",firing=[],dep_ut=[false,false],label="",nzcross=0,nmode=0,equations=list()); - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Sigbuilder\",sz(1),sz(2));"]); this.x = standard_define([3,2],this.model,[],gr_i); return new BasicBlock(this.x); } diff --git a/js/Sources/TIME_f.js b/js/Sources/TIME_f.js index 4c56f9aa..86f44525 100644 --- a/js/Sources/TIME_f.js +++ b/js/Sources/TIME_f.js @@ -6,7 +6,7 @@ function TIME_f() { this.model.out = new ScilabDouble([1]); this.model.blocktype = new ScilabString(["c"]); this.model.dep_ut = new ScilabDouble([false,true]); - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"TIME_f\",sz(1),sz(2));"]); this.x = standard_define([2,2],this.model,[],gr_i); return new BasicBlock(this.x); } diff --git a/js/Sources/TKSCALE.js b/js/Sources/TKSCALE.js index 68ea3bf2..b132a0e6 100644 --- a/js/Sources/TKSCALE.js +++ b/js/Sources/TKSCALE.js @@ -12,7 +12,7 @@ function TKSCALE() { this.model.blocktype = new ScilabString(["d"]); this.model.dep_ut = new ScilabDouble([false,false]); var exprs = [[sci2exp(this.a)],[sci2exp(this.b)],[sci2exp(this.f)]]; - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"TKSCALE\",sz(1),sz(2));"]); this.x = standard_define([3,2],this.model,exprs,gr_i); return new BasicBlock(this.x); } |