diff options
Diffstat (limited to 'js/Sources')
31 files changed, 248 insertions, 248 deletions
diff --git a/js/Sources/CLKINV_f.js b/js/Sources/CLKINV_f.js index 2c1d03b7..c508c199 100644 --- a/js/Sources/CLKINV_f.js +++ b/js/Sources/CLKINV_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/CLKINV_f.sci" */ function CLKINV_f() { -CLKINV_f.prototype.define = function CLKINV_f() { + CLKINV_f.prototype.define = function CLKINV_f() { prt=1; model=scicos_model(); model.sim="input"; @@ -12,12 +12,12 @@ model.dep_ut=[false,false]; exprs=string(prt); gr_i=[]; x=standard_define([1,1],model,exprs,gr_i); -} -CLKINV_f.prototype.details = function CLKINV_f() { -} -CLKINV_f.prototype.get = function CLKINV_f() { -} -CLKINV_f.prototype.set = function CLKINV_f() { + } + CLKINV_f.prototype.details = function CLKINV_f() { + } + CLKINV_f.prototype.get = function CLKINV_f() { + } + CLKINV_f.prototype.set = function CLKINV_f() { x=arg1; graphics=arg1.graphics; model=arg1.model; @@ -41,5 +41,5 @@ x.model=model; break; } } -} + } } diff --git a/js/Sources/CLKIN_f.js b/js/Sources/CLKIN_f.js index 90fe3204..8ca204ea 100644 --- a/js/Sources/CLKIN_f.js +++ b/js/Sources/CLKIN_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/CLKIN_f.sci" */ function CLKIN_f() { -CLKIN_f.prototype.define = function CLKIN_f() { + CLKIN_f.prototype.define = function CLKIN_f() { prt=1; model=scicos_model(); model.sim="input"; @@ -11,12 +11,12 @@ model.firing=-1; model.dep_ut=[false,false]; exprs=string(prt); x=standard_define([1,1],model,exprs," "); -} -CLKIN_f.prototype.details = function CLKIN_f() { -} -CLKIN_f.prototype.get = function CLKIN_f() { -} -CLKIN_f.prototype.set = function CLKIN_f() { + } + CLKIN_f.prototype.details = function CLKIN_f() { + } + CLKIN_f.prototype.get = function CLKIN_f() { + } + CLKIN_f.prototype.set = function CLKIN_f() { x=arg1; graphics=arg1.graphics; model=arg1.model; @@ -40,5 +40,5 @@ x.model=model; break; } } -} + } } diff --git a/js/Sources/CLOCK_c.js b/js/Sources/CLOCK_c.js index 95bf9650..cad67ad4 100644 --- a/js/Sources/CLOCK_c.js +++ b/js/Sources/CLOCK_c.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/CLOCK_c.sci" */ function CLOCK_c() { -CLOCK_c.prototype.define = function CLOCK_c() { + CLOCK_c.prototype.define = function CLOCK_c() { evtdly=EVTDLY_c("define"); evtdly.graphics.orig=[320,232]; evtdly.graphics.sz=[40,40]; @@ -40,12 +40,12 @@ x.model.blocktype="h"; x.model.firing=false; x.model.dep_ut=[false,false]; x.model.rpar=diagram; -} -CLOCK_c.prototype.details = function CLOCK_c() { -} -CLOCK_c.prototype.get = function CLOCK_c() { -} -CLOCK_c.prototype.set = function CLOCK_c() { + } + CLOCK_c.prototype.details = function CLOCK_c() { + } + CLOCK_c.prototype.get = function CLOCK_c() { + } + CLOCK_c.prototype.set = function CLOCK_c() { for (i=1;i<=length(arg1.model.rpar.objs);i+=1) { o=arg1.model.rpar.objs(i); if (typeof(o)=="Block"&&o.gui=="EVTDLY_c") { @@ -89,5 +89,5 @@ needcompile=0; x=arg1; y=needcompile; typ=newpar; -} + } } diff --git a/js/Sources/CLOCK_f.js b/js/Sources/CLOCK_f.js index 39a002b3..dd3a158a 100644 --- a/js/Sources/CLOCK_f.js +++ b/js/Sources/CLOCK_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/CLOCK_f.sci" */ function CLOCK_f() { -CLOCK_f.prototype.define = function CLOCK_f() { + CLOCK_f.prototype.define = function CLOCK_f() { evtdly=EVTDLY_f("define"); evtdly.graphics.orig=[320,232]; evtdly.graphics.sz=[40,40]; @@ -40,12 +40,12 @@ x.model.blocktype="h"; x.model.firing=false; x.model.dep_ut=[false,false]; x.model.rpar=diagram; -} -CLOCK_f.prototype.details = function CLOCK_f() { -} -CLOCK_f.prototype.get = function CLOCK_f() { -} -CLOCK_f.prototype.set = function CLOCK_f() { + } + CLOCK_f.prototype.details = function CLOCK_f() { + } + CLOCK_f.prototype.get = function CLOCK_f() { + } + CLOCK_f.prototype.set = function CLOCK_f() { for (i=1;i<=length(arg1.model.rpar.objs);i+=1) { o=arg1.model.rpar.objs(i); if (typeof(o)=="Block"&&o.gui=="EVTDLY_f") { @@ -89,5 +89,5 @@ needcompile=0; x=arg1; y=needcompile; typ=newpar; -} + } } diff --git a/js/Sources/CONST.js b/js/Sources/CONST.js index 096e96f7..7293695b 100644 --- a/js/Sources/CONST.js +++ b/js/Sources/CONST.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/CONST.sci" */ function CONST() { -CONST.prototype.define = function CONST() { + CONST.prototype.define = function CONST() { C=1; model=scicos_model(); model.sim=list("cstblk4",4); @@ -12,12 +12,12 @@ model.dep_ut=[false,false]; exprs=strcat(sci2exp(C)); gr_i=[]; x=standard_define([2,2],model,exprs,gr_i); -} -CONST.prototype.details = function CONST() { -} -CONST.prototype.get = function CONST() { -} -CONST.prototype.set = function CONST() { + } + CONST.prototype.details = function CONST() { + } + CONST.prototype.get = function CONST() { + } + CONST.prototype.set = function CONST() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -42,5 +42,5 @@ x.model=model; break; } } -} + } } diff --git a/js/Sources/CONST_f.js b/js/Sources/CONST_f.js index ade7e3f2..e87172fb 100644 --- a/js/Sources/CONST_f.js +++ b/js/Sources/CONST_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/CONST_f.sci" */ function CONST_f() { -CONST_f.prototype.define = function CONST_f() { + CONST_f.prototype.define = function CONST_f() { C=1; model=scicos_model(); model.sim=list("cstblk",1); @@ -12,12 +12,12 @@ model.dep_ut=[false,false]; exprs=strcat(sci2exp(C)); gr_i=[]; x=standard_define([2,2],model,exprs,gr_i); -} -CONST_f.prototype.details = function CONST_f() { -} -CONST_f.prototype.get = function CONST_f() { -} -CONST_f.prototype.set = function CONST_f() { + } + CONST_f.prototype.details = function CONST_f() { + } + CONST_f.prototype.get = function CONST_f() { + } + CONST_f.prototype.set = function CONST_f() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -39,5 +39,5 @@ x.model=model; break; } } -} + } } diff --git a/js/Sources/CONST_m.js b/js/Sources/CONST_m.js index 2bd85408..f84ab287 100644 --- a/js/Sources/CONST_m.js +++ b/js/Sources/CONST_m.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/CONST_m.sci" */ function CONST_m() { -CONST_m.prototype.define = function CONST_m() { + CONST_m.prototype.define = function CONST_m() { C=[1]; model=scicos_model(); model.sim=list("cstblk4",4); @@ -15,12 +15,12 @@ model.dep_ut=[false,false]; exprs=sci2exp(C); gr_i=[]; x=standard_define([2,2],model,exprs,gr_i); -} -CONST_m.prototype.details = function CONST_m() { -} -CONST_m.prototype.get = function CONST_m() { -} -CONST_m.prototype.set = function CONST_m() { + } + CONST_m.prototype.details = function CONST_m() { + } + CONST_m.prototype.get = function CONST_m() { + } + CONST_m.prototype.set = function CONST_m() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -68,5 +68,5 @@ break; } } } -} + } } diff --git a/js/Sources/CURV_f.js b/js/Sources/CURV_f.js index f95ae1c2..396c38b5 100644 --- a/js/Sources/CURV_f.js +++ b/js/Sources/CURV_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/CURV_f.sci" */ function CURV_f() { -CURV_f.prototype.define = function CURV_f() { + CURV_f.prototype.define = function CURV_f() { xx=[[0],[1],[2]]; yy=[[-5],[5],[0]]; rect=[0,-5,2,5]; @@ -17,12 +17,12 @@ model.blocktype="c"; model.dep_ut=[false,true]; gr_i=[]; x=standard_define([2,2],model,[],gr_i); -} -CURV_f.prototype.details = function CURV_f() { -} -CURV_f.prototype.get = function CURV_f() { -} -CURV_f.prototype.set = function CURV_f() { + } + CURV_f.prototype.details = function CURV_f() { + } + CURV_f.prototype.get = function CURV_f() { + } + CURV_f.prototype.set = function CURV_f() { x=arg1; model=arg1.model; graphics=arg1.graphics; @@ -59,5 +59,5 @@ x.model=model; break; } } -} + } } diff --git a/js/Sources/Counter.js b/js/Sources/Counter.js index 8d918694..41a4f57a 100644 --- a/js/Sources/Counter.js +++ b/js/Sources/Counter.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/Counter.sci" */ function Counter() { -Counter.prototype.define = function Counter() { + Counter.prototype.define = function Counter() { minim=0; maxim=2; rule=1; @@ -16,12 +16,12 @@ model.dep_ut=[false,false]; exprs=[[string(minim)],[string(maxim)],[string(rule)]]; gr_i=[]; x=standard_define([3,2],model,exprs,gr_i); -} -Counter.prototype.details = function Counter() { -} -Counter.prototype.get = function Counter() { -} -Counter.prototype.set = function Counter() { + } + Counter.prototype.details = function Counter() { + } + Counter.prototype.get = function Counter() { + } + Counter.prototype.set = function Counter() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -46,5 +46,5 @@ x.model=model; break; } } -} + } } diff --git a/js/Sources/FROMWSB.js b/js/Sources/FROMWSB.js index 44d6c073..9a1d2288 100644 --- a/js/Sources/FROMWSB.js +++ b/js/Sources/FROMWSB.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/FROMWSB.sci" */ function FROMWSB() { -FROMWSB.prototype.define = function FROMWSB() { + FROMWSB.prototype.define = function FROMWSB() { scs_m_1=scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[-159.096,811.104,-121.216,617.984,1323,1008,331,284,630,480,1426,231,1.4],Title="FROMWSB",tol=[0.0001,0.000001,1.000e-10,100001,0,0],tf=100000,context=" ",void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(true,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list())); scs_m_1.objs[1-1]=scicos_block(gui="FROMWS_c",graphics=scicos_graphics(orig=[260.37067,261.584],sz=[70,40],flip=true,theta=0,exprs=[["V"],["1"],["1"],["0"]],pin=[],pout=4,pein=2,peout=2,gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim=list("fromws_c",4),in1=[],in2=[],intyp=1,out=-1,out2=-2,outtyp=-1,evtin=1,evtout=1,state=[],dstate=[],odstate=list(),rpar=[],ipar=[[1],[-31],[1],[1],[0]],opar=list(),blocktype="d",firing=0,dep_ut=[false,true],label="",nzcross=0,nmode=0,equations=list()),doc=list()); scs_m_1.objs[2-1]=scicos_link(xx=[[295.37067],[295.37067],[233.23733],[233.23733],[295.37067],[295.37067]],yy=[[255.86971],[223.45067],[223.45067],[337.85067],[337.85067],[307.29829]],id="drawlink",thick=[0,0],ct=[5,-1],from=[1,1,0],to=[1,1,1]); @@ -9,12 +9,12 @@ scs_m_1.objs[4-1]=scicos_link(xx=[[338.9421],[358.9421]],yy=[[281.584],[281.584] 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()); gr_i=[]; x=standard_define([5,2],model,[],gr_i); -} -FROMWSB.prototype.details = function FROMWSB() { -} -FROMWSB.prototype.get = function FROMWSB() { -} -FROMWSB.prototype.set = function FROMWSB() { + } + FROMWSB.prototype.details = function FROMWSB() { + } + FROMWSB.prototype.get = function FROMWSB() { + } + FROMWSB.prototype.set = function FROMWSB() { for (i=1;i<=length(arg1.model.rpar.objs);i+=1) { o=arg1.model.rpar.objs(i); if (typeof(o)=="Block"&&o.gui=="FROMWS_c") { @@ -82,5 +82,5 @@ y=max(y,needcompile); } x=arg1; typ=newpar; -} + } } diff --git a/js/Sources/FROMWS_c.js b/js/Sources/FROMWS_c.js index 0607731f..caf3a034 100644 --- a/js/Sources/FROMWS_c.js +++ b/js/Sources/FROMWS_c.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/FROMWS_c.sci" */ function FROMWS_c() { -FROMWS_c.prototype.define = function FROMWS_c() { + FROMWS_c.prototype.define = function FROMWS_c() { varnam="V"; Method=1; ZC=1; @@ -19,12 +19,12 @@ model.dep_ut=[false,true]; gr_i=[]; exprs=[[string(varnam)],[string(Method)],[string(ZC)],[string(OutEnd)]]; x=standard_define([3.5,2],model,exprs,gr_i); -} -FROMWS_c.prototype.details = function FROMWS_c() { -} -FROMWS_c.prototype.get = function FROMWS_c() { -} -FROMWS_c.prototype.set = function FROMWS_c() { + } + FROMWS_c.prototype.details = function FROMWS_c() { + } + FROMWS_c.prototype.get = function FROMWS_c() { + } + FROMWS_c.prototype.set = function FROMWS_c() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -63,5 +63,5 @@ break; } } } -} + } } diff --git a/js/Sources/GENSIN_f.js b/js/Sources/GENSIN_f.js index 263fc9ee..b34da787 100644 --- a/js/Sources/GENSIN_f.js +++ b/js/Sources/GENSIN_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/GENSIN_f.sci" */ function GENSIN_f() { -GENSIN_f.prototype.define = function GENSIN_f() { + GENSIN_f.prototype.define = function GENSIN_f() { rpar=[[1],[1],[0]]; model=scicos_model(); model.sim="gensin"; @@ -14,12 +14,12 @@ model.dep_ut=[false,true]; exprs=[[string(rpar(1))],[string(rpar(2))],[string(rpar(3))]]; gr_i=[]; x=standard_define([3,2],model,exprs,gr_i); -} -GENSIN_f.prototype.details = function GENSIN_f() { -} -GENSIN_f.prototype.get = function GENSIN_f() { -} -GENSIN_f.prototype.set = function GENSIN_f() { + } + GENSIN_f.prototype.details = function GENSIN_f() { + } + GENSIN_f.prototype.get = function GENSIN_f() { + } + GENSIN_f.prototype.set = function GENSIN_f() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -44,5 +44,5 @@ x.model=model; break; } } -} + } } diff --git a/js/Sources/GENSQR_f.js b/js/Sources/GENSQR_f.js index 0584ccb7..2532c7dc 100644 --- a/js/Sources/GENSQR_f.js +++ b/js/Sources/GENSQR_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/GENSQR_f.sci" */ function GENSQR_f() { -GENSQR_f.prototype.define = function GENSQR_f() { + GENSQR_f.prototype.define = function GENSQR_f() { Amplitude=1; model=scicos_model(); model.sim="gensqr"; @@ -14,12 +14,12 @@ model.dep_ut=[false,false]; exprs=string(Amplitude); gr_i=[]; x=standard_define([3,2],model,exprs,gr_i); -} -GENSQR_f.prototype.details = function GENSQR_f() { -} -GENSQR_f.prototype.get = function GENSQR_f() { -} -GENSQR_f.prototype.set = function GENSQR_f() { + } + GENSQR_f.prototype.details = function GENSQR_f() { + } + GENSQR_f.prototype.get = function GENSQR_f() { + } + GENSQR_f.prototype.set = function GENSQR_f() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -40,5 +40,5 @@ x.graphics=graphics; x.model=model; break; } -} + } } diff --git a/js/Sources/GEN_SQR.js b/js/Sources/GEN_SQR.js index 7bab957c..040f40c4 100644 --- a/js/Sources/GEN_SQR.js +++ b/js/Sources/GEN_SQR.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/GEN_SQR.sci" */ function GEN_SQR() { -GEN_SQR.prototype.define = function GEN_SQR() { + GEN_SQR.prototype.define = function GEN_SQR() { scs_m_1=scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[-176.97473,421.18646,173.61587,524.41503,827,480,0,15,827,480,755,614,1.4],Title="SuperBlock",tol=[0.0001,0.000001,1.000e-10,100001,0,0],tf=100000,context=[["if typeof(Amin)<>typeof(Amax) then error(\'Minimum value and Maximum value must have the same type\');end"],["if and(rule<>[1;2]) then error(\'Initial Value must be 1 (for Min) or 2 (for Max)\');end"],["if Amin>Amax then error(\'Maximum value must be greater than the Minimum Value\');end"],["P=%pi/F"],[""]],void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(true,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list())); scs_m_1.objs[1-1]=scicos_block(gui="Counter",graphics=scicos_graphics(orig=[18.229901,339.5057],sz=[60,40],flip=true,theta=0,exprs=[["1"],["2"],["rule"]],pin=[],pout=8,pein=16,peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim=list("counter",4),in1=[],in2=[],intyp=1,out=1,out2=1,outtyp=1,evtin=1,evtout=[],state=[],dstate=0,odstate=list(),rpar=[],ipar=[[1],[2],[1]],opar=list(),blocktype="c",firing=[],dep_ut=[false,false],label="",nzcross=0,nmode=0,equations=list()),doc=list()); scs_m_1.objs[2-1]=scicos_block(gui="CONST_m",graphics=scicos_graphics(orig=[38.096074,293.82198],sz=[40,40],flip=true,theta=0,exprs="Amin",pin=[],pout=5,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim=list("cstblk4_m",4),in1=[],in2=[],intyp=1,out=1,out2=1,outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(-1),blocktype="d",firing=[],dep_ut=[false,false],label="",nzcross=0,nmode=0,equations=list()),doc=list()); @@ -48,12 +48,12 @@ F=1; exprs=[sci2exp(Amin),sci2exp(Amax),sci2exp(rule),sci2exp(F)]; gr_i=[]; x=standard_define([3,2],model,exprs,gr_i); -} -GEN_SQR.prototype.details = function GEN_SQR() { -} -GEN_SQR.prototype.get = function GEN_SQR() { -} -GEN_SQR.prototype.set = function GEN_SQR() { + } + GEN_SQR.prototype.details = function GEN_SQR() { + } + GEN_SQR.prototype.get = function GEN_SQR() { + } + GEN_SQR.prototype.set = function GEN_SQR() { y=needcompile; arg1.model.ipar=1; typ=list(); @@ -87,5 +87,5 @@ message(lasterror()); ok=false; } } -} + } } diff --git a/js/Sources/Ground_g.js b/js/Sources/Ground_g.js index d7bb8482..680db464 100644 --- a/js/Sources/Ground_g.js +++ b/js/Sources/Ground_g.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/Ground_g.sci" */ function Ground_g() { -Ground_g.prototype.define = function Ground_g() { + Ground_g.prototype.define = function Ground_g() { C=[0]; model=scicos_model(); model.sim=list("cstblk4_m",4); @@ -16,12 +16,12 @@ model.dep_ut=[false,false]; exprs=[]; gr_i=[]; x=standard_define([2,2],model,exprs,gr_i); -} -Ground_g.prototype.details = function Ground_g() { -} -Ground_g.prototype.get = function Ground_g() { -} -Ground_g.prototype.set = function Ground_g() { + } + Ground_g.prototype.details = function Ground_g() { + } + Ground_g.prototype.get = function Ground_g() { + } + Ground_g.prototype.set = function Ground_g() { x=arg1; -} + } } diff --git a/js/Sources/INIMPL_f.js b/js/Sources/INIMPL_f.js index c2f90f7f..bfa017a0 100644 --- a/js/Sources/INIMPL_f.js +++ b/js/Sources/INIMPL_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/INIMPL_f.sci" */ function INIMPL_f() { -INIMPL_f.prototype.define = function INIMPL_f() { + INIMPL_f.prototype.define = function INIMPL_f() { model=scicos_model(); model.sim="inimpl"; model.out=[-1]; @@ -17,12 +17,12 @@ exprs="1"; gr_i=[]; x=standard_define([1,1],model,exprs,gr_i); x.graphics.out_implicit=["I"]; -} -INIMPL_f.prototype.details = function INIMPL_f() { -} -INIMPL_f.prototype.get = function INIMPL_f() { -} -INIMPL_f.prototype.set = function INIMPL_f() { + } + INIMPL_f.prototype.details = function INIMPL_f() { + } + INIMPL_f.prototype.get = function INIMPL_f() { + } + INIMPL_f.prototype.set = function INIMPL_f() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -50,5 +50,5 @@ x.model=model; break; } } -} + } } diff --git a/js/Sources/IN_f.js b/js/Sources/IN_f.js index 30c2ea4d..53193f1a 100644 --- a/js/Sources/IN_f.js +++ b/js/Sources/IN_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/IN_f.sci" */ function IN_f() { -IN_f.prototype.define = function IN_f() { + IN_f.prototype.define = function IN_f() { prt=1; model=scicos_model(); model.sim="input"; @@ -13,12 +13,12 @@ model.dep_ut=[false,false]; exprs=sci2exp(prt); gr_i=[]; x=standard_define([1,1],model,exprs,gr_i); -} -IN_f.prototype.details = function IN_f() { -} -IN_f.prototype.get = function IN_f() { -} -IN_f.prototype.set = function IN_f() { + } + IN_f.prototype.details = function IN_f() { + } + IN_f.prototype.get = function IN_f() { + } + IN_f.prototype.set = function IN_f() { x=arg1; graphics=arg1.graphics; model=arg1.model; @@ -57,5 +57,5 @@ x.model=model; break; } } -} + } } diff --git a/js/Sources/Modulo_Count.js b/js/Sources/Modulo_Count.js index 9edd0b9d..06b77c73 100644 --- a/js/Sources/Modulo_Count.js +++ b/js/Sources/Modulo_Count.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/Modulo_Count.sci" */ function Modulo_Count() { -Modulo_Count.prototype.define = function Modulo_Count() { + Modulo_Count.prototype.define = function Modulo_Count() { ini_c=0; base=3; model=scicos_model(); @@ -14,12 +14,12 @@ model.dep_ut=[false,false]; exprs=[[string(ini_c)],[string(base)]]; gr_i=[]; x=standard_define([3,2],model,exprs,gr_i); -} -Modulo_Count.prototype.details = function Modulo_Count() { -} -Modulo_Count.prototype.get = function Modulo_Count() { -} -Modulo_Count.prototype.set = function Modulo_Count() { + } + Modulo_Count.prototype.details = function Modulo_Count() { + } + Modulo_Count.prototype.get = function Modulo_Count() { + } + Modulo_Count.prototype.set = function Modulo_Count() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -44,5 +44,5 @@ x.model=model; break; } } -} + } } diff --git a/js/Sources/PULSE_SC.js b/js/Sources/PULSE_SC.js index f7a048e4..12f227e4 100644 --- a/js/Sources/PULSE_SC.js +++ b/js/Sources/PULSE_SC.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/PULSE_SC.sci" */ function PULSE_SC() { -PULSE_SC.prototype.define = function PULSE_SC() { + PULSE_SC.prototype.define = function PULSE_SC() { scs_m_1=scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[-162.7581,435.54369,67.607292,416.67644,827,479,0,15,827,480,715,167,1.4],Title=["SuperBlock","/home/fady/Scicos_examples/"],tol=[[0.0001],[0.000001],[1.000e-10],[100001],[0],[0],[0]],tf=10,context=[["E2=E+W/100*F"],["if (W<0 | W>100) then error(\'Width must be between 0 and 100\');end"],["if (E2 >= F) then error (\'Offset must be lower than (frequency*(1-Width/100))\'); end"]],void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(true,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list())); scs_m_1.objs[1-1]=scicos_block(gui="CONST_m",graphics=scicos_graphics(orig=[30.801202,158.91733],sz=[40,40],flip=true,theta=0,exprs="A",pin=[],pout=5,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim=list("cstblk4_m",4),in1=[],in2=[],intyp=1,out=1,out2=1,outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(1),blocktype="d",firing=[],dep_ut=[false,false],label="",nzcross=0,nmode=0,equations=list()),doc=list()); scs_m_1.objs[2-1]=scicos_block(gui="Ground_g",graphics=scicos_graphics(orig=[31.534535,215.384],sz=[40,40],flip=true,theta=0,exprs=[],pin=[],pout=4,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim=list("cstblk4_m",4),in1=[],in2=[],intyp=1,out=1,out2=1,outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(0),blocktype="d",firing=[],dep_ut=[false,false],label="",nzcross=0,nmode=0,equations=list()),doc=list()); @@ -43,12 +43,12 @@ A=1; exprs=[sci2exp(E),sci2exp(W),sci2exp(F),sci2exp(A)]; gr_i=[]; x=standard_define([3,2],model,exprs,gr_i); -} -PULSE_SC.prototype.details = function PULSE_SC() { -} -PULSE_SC.prototype.get = function PULSE_SC() { -} -PULSE_SC.prototype.set = function PULSE_SC() { + } + PULSE_SC.prototype.details = function PULSE_SC() { + } + PULSE_SC.prototype.get = function PULSE_SC() { + } + PULSE_SC.prototype.set = function PULSE_SC() { y=needcompile; arg1.model.ipar=1; typ=list(); @@ -84,5 +84,5 @@ messagebox(lasterror()); ok=false; } } -} + } } diff --git a/js/Sources/RAMP.js b/js/Sources/RAMP.js index 36e051bb..2868c2f9 100644 --- a/js/Sources/RAMP.js +++ b/js/Sources/RAMP.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/RAMP.sci" */ function RAMP() { -RAMP.prototype.define = function RAMP() { + RAMP.prototype.define = function RAMP() { slope=0; iout=0; stt=0; @@ -17,12 +17,12 @@ model.dep_ut=[false,true]; exprs=[string(rpar)]; gr_i=[]; x=standard_define([2,2],model,exprs,gr_i); -} -RAMP.prototype.details = function RAMP() { -} -RAMP.prototype.get = function RAMP() { -} -RAMP.prototype.set = function RAMP() { + } + RAMP.prototype.details = function RAMP() { + } + RAMP.prototype.get = function RAMP() { + } + RAMP.prototype.set = function RAMP() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -42,5 +42,5 @@ x.model=model; break; } } -} + } } diff --git a/js/Sources/RAND_f.js b/js/Sources/RAND_f.js index 6f49228d..bf85ac44 100644 --- a/js/Sources/RAND_f.js +++ b/js/Sources/RAND_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/RAND_f.sci" */ function RAND_f() { -RAND_f.prototype.define = function RAND_f() { + RAND_f.prototype.define = function RAND_f() { a=0; b=1; dt=0; @@ -18,12 +18,12 @@ model.dep_ut=[false,false]; exprs=[[string(flag)],[sci2exp(a.slice())],[sci2exp(b.slice())],[string(model.dstate(1))]]; gr_i=[]; x=standard_define([3,2],model,exprs,gr_i); -} -RAND_f.prototype.details = function RAND_f() { -} -RAND_f.prototype.get = function RAND_f() { -} -RAND_f.prototype.set = function RAND_f() { + } + RAND_f.prototype.details = function RAND_f() { + } + RAND_f.prototype.get = function RAND_f() { + } + RAND_f.prototype.set = function RAND_f() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -53,5 +53,5 @@ x.model=model; break; } } -} + } } diff --git a/js/Sources/RAND_m.js b/js/Sources/RAND_m.js index 1573b9f3..7d9ad0e9 100644 --- a/js/Sources/RAND_m.js +++ b/js/Sources/RAND_m.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/RAND_m.sci" */ function RAND_m() { -RAND_m.prototype.define = function RAND_m() { + RAND_m.prototype.define = function RAND_m() { a=0; b=1; dt=0; @@ -27,12 +27,12 @@ model.dep_ut=[false,false]; exprs=[[sci2exp(1)],[string(flag)],[sci2exp([a])],[sci2exp([b])],[sci2exp([model.dstate(1),int(rand()*(10^7-1))])]]; gr_i=[]; x=standard_define([3,2],model,exprs,gr_i); -} -RAND_m.prototype.details = function RAND_m() { -} -RAND_m.prototype.get = function RAND_m() { -} -RAND_m.prototype.set = function RAND_m() { + } + RAND_m.prototype.details = function RAND_m() { + } + RAND_m.prototype.get = function RAND_m() { + } + RAND_m.prototype.set = function RAND_m() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -76,5 +76,5 @@ break; } } } -} + } } diff --git a/js/Sources/READAU_f.js b/js/Sources/READAU_f.js index ed891f22..da984c61 100644 --- a/js/Sources/READAU_f.js +++ b/js/Sources/READAU_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/READAU_f.sci" */ function READAU_f() { -READAU_f.prototype.define = function READAU_f() { + READAU_f.prototype.define = function READAU_f() { frmt="uc "; fname="test.au"; lunit=0; @@ -23,12 +23,12 @@ model.dep_ut=[false,false]; exprs=[[fname],[string(N)],[string(swap)]]; gr_i=[]; x=standard_define([5,2],model,exprs,gr_i); -} -READAU_f.prototype.details = function READAU_f() { -} -READAU_f.prototype.get = function READAU_f() { -} -READAU_f.prototype.set = function READAU_f() { + } + READAU_f.prototype.details = function READAU_f() { + } + READAU_f.prototype.get = function READAU_f() { + } + READAU_f.prototype.set = function READAU_f() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -79,5 +79,5 @@ break; } } } -} + } } diff --git a/js/Sources/READC_f.js b/js/Sources/READC_f.js index 60cf42d7..8d9ce6f2 100644 --- a/js/Sources/READC_f.js +++ b/js/Sources/READC_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/READC_f.sci" */ function READC_f() { -READC_f.prototype.define = function READC_f() { + READC_f.prototype.define = function READC_f() { frmt="d "; fname="foo"; lunit=0; @@ -27,12 +27,12 @@ model.dep_ut=[false,false]; exprs=[["[]"],[sci2exp(outmask)],[fname],[frmt],[string(M)],[string(N)],[string(offset)],[string(swap)]]; gr_i=[]; x=standard_define([4,2],model,exprs,gr_i); -} -READC_f.prototype.details = function READC_f() { -} -READC_f.prototype.get = function READC_f() { -} -READC_f.prototype.set = function READC_f() { + } + READC_f.prototype.details = function READC_f() { + } + READC_f.prototype.get = function READC_f() { + } + READC_f.prototype.set = function READC_f() { x=arg1; model=x.model; graphics=arg1.graphics; @@ -113,5 +113,5 @@ break; } } } -} + } } diff --git a/js/Sources/RFILE_f.js b/js/Sources/RFILE_f.js index a5e13f89..f844b789 100644 --- a/js/Sources/RFILE_f.js +++ b/js/Sources/RFILE_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/RFILE_f.sci" */ function RFILE_f() { -RFILE_f.prototype.define = function RFILE_f() { + RFILE_f.prototype.define = function RFILE_f() { out=1; nout=sum(out); frmt="(7(e10.3,1x))"; @@ -23,12 +23,12 @@ model.dep_ut=[false,false]; exprs=[[sci2exp([])],[sci2exp(outmask)],[fname],[frmt],[string(N)],[sci2exp(out)]]; gr_i=[]; x=standard_define([3,2],model,exprs,gr_i); -} -RFILE_f.prototype.details = function RFILE_f() { -} -RFILE_f.prototype.get = function RFILE_f() { -} -RFILE_f.prototype.set = function RFILE_f() { + } + RFILE_f.prototype.details = function RFILE_f() { + } + RFILE_f.prototype.get = function RFILE_f() { + } + RFILE_f.prototype.set = function RFILE_f() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -102,5 +102,5 @@ break; } } } -} + } } diff --git a/js/Sources/SAWTOOTH_f.js b/js/Sources/SAWTOOTH_f.js index cae82edb..2494971a 100644 --- a/js/Sources/SAWTOOTH_f.js +++ b/js/Sources/SAWTOOTH_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/SAWTOOTH_f.sci" */ function SAWTOOTH_f() { -SAWTOOTH_f.prototype.define = function SAWTOOTH_f() { + SAWTOOTH_f.prototype.define = function SAWTOOTH_f() { model=scicos_model(); model.sim="sawtth"; model.out=1; @@ -11,12 +11,12 @@ model.dep_ut=[false,true]; exprs=" "; gr_i=[]; x=standard_define([3,2],model,exprs,gr_i); -} -SAWTOOTH_f.prototype.details = function SAWTOOTH_f() { -} -SAWTOOTH_f.prototype.get = function SAWTOOTH_f() { -} -SAWTOOTH_f.prototype.set = function SAWTOOTH_f() { + } + SAWTOOTH_f.prototype.details = function SAWTOOTH_f() { + } + SAWTOOTH_f.prototype.get = function SAWTOOTH_f() { + } + SAWTOOTH_f.prototype.set = function SAWTOOTH_f() { x=arg1; -} + } } diff --git a/js/Sources/STEP.js b/js/Sources/STEP.js index c1b4a6be..009b7bda 100644 --- a/js/Sources/STEP.js +++ b/js/Sources/STEP.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/STEP.sci" */ function STEP() { -STEP.prototype.define = function STEP() { + STEP.prototype.define = function STEP() { rpar=[[0],[1]]; model=scicos_model(); model.sim=list("step_func",4); @@ -16,12 +16,12 @@ model.dep_ut=[false,false]; exprs=[[string(1)],[string(rpar)]]; gr_i=[]; x=standard_define([2,2],model,exprs,gr_i); -} -STEP.prototype.details = function STEP() { -} -STEP.prototype.get = function STEP() { -} -STEP.prototype.set = function STEP() { + } + STEP.prototype.details = function STEP() { + } + STEP.prototype.get = function STEP() { + } + STEP.prototype.set = function STEP() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -62,5 +62,5 @@ x.model=model; break; } } -} + } } diff --git a/js/Sources/STEP_FUNCTION.js b/js/Sources/STEP_FUNCTION.js index 54120d80..8307e904 100644 --- a/js/Sources/STEP_FUNCTION.js +++ b/js/Sources/STEP_FUNCTION.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/STEP_FUNCTION.sci" */ function STEP_FUNCTION() { -STEP_FUNCTION.prototype.define = function STEP_FUNCTION() { + STEP_FUNCTION.prototype.define = function STEP_FUNCTION() { scs_m_1=scicos_diagram(); scs_m_1.objs[1-1]=STEP("define"); scs_m_1.objs[2-1]=OUT_f("define"); @@ -49,12 +49,12 @@ model.outtyp=1; model.rpar=scs_m_1; gr_i=[]; x=standard_define([2,2],model,[],gr_i); -} -STEP_FUNCTION.prototype.details = function STEP_FUNCTION() { -} -STEP_FUNCTION.prototype.get = function STEP_FUNCTION() { -} -STEP_FUNCTION.prototype.set = function STEP_FUNCTION() { + } + STEP_FUNCTION.prototype.details = function STEP_FUNCTION() { + } + STEP_FUNCTION.prototype.get = function STEP_FUNCTION() { + } + STEP_FUNCTION.prototype.set = function STEP_FUNCTION() { for (i=1;i<=length(arg1.model.rpar.objs);i+=1) { o=arg1.model.rpar.objs(i); if (typeof(o)=="Block"&&o.gui=="STEP") { @@ -118,5 +118,5 @@ newpar[size(newpar)+1-1]=path; x=arg1; y=needcompile; typ=newpar; -} + } } diff --git a/js/Sources/SampleCLK.js b/js/Sources/SampleCLK.js index b59b7e84..3e7a81a7 100644 --- a/js/Sources/SampleCLK.js +++ b/js/Sources/SampleCLK.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/SampleCLK.sci" */ function SampleCLK() { -SampleCLK.prototype.define = function SampleCLK() { + SampleCLK.prototype.define = function SampleCLK() { model=scicos_model(); model.sim="sampleclk"; model.evtout=1; @@ -10,12 +10,12 @@ model.firing=-1; model.dep_ut=[false,false]; exprs=[[sci2exp(1)],[sci2exp(0)]]; x=standard_define([2,2],model,exprs," "); -} -SampleCLK.prototype.details = function SampleCLK() { -} -SampleCLK.prototype.get = function SampleCLK() { -} -SampleCLK.prototype.set = function SampleCLK() { + } + SampleCLK.prototype.details = function SampleCLK() { + } + SampleCLK.prototype.get = function SampleCLK() { + } + SampleCLK.prototype.set = function SampleCLK() { x=arg1; graphics=arg1.graphics; model=arg1.model; @@ -48,5 +48,5 @@ break; } } needcompile=resume(needcompile) -} + } } diff --git a/js/Sources/TIME_f.js b/js/Sources/TIME_f.js index 6e10cdda..e9dba55c 100644 --- a/js/Sources/TIME_f.js +++ b/js/Sources/TIME_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/TIME_f.sci" */ function TIME_f() { -TIME_f.prototype.define = function TIME_f() { + TIME_f.prototype.define = function TIME_f() { model=scicos_model(); model.sim="timblk"; model.out=1; @@ -8,12 +8,12 @@ model.blocktype="c"; model.dep_ut=[false,true]; gr_i=[]; x=standard_define([2,2],model,[],gr_i); -} -TIME_f.prototype.details = function TIME_f() { -} -TIME_f.prototype.get = function TIME_f() { -} -TIME_f.prototype.set = function TIME_f() { + } + TIME_f.prototype.details = function TIME_f() { + } + TIME_f.prototype.get = function TIME_f() { + } + TIME_f.prototype.set = function TIME_f() { x=arg1; -} + } } diff --git a/js/Sources/TKSCALE.js b/js/Sources/TKSCALE.js index 697a4293..3a7f0070 100644 --- a/js/Sources/TKSCALE.js +++ b/js/Sources/TKSCALE.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Sources/TKSCALE.sci" */ function TKSCALE() { -TKSCALE.prototype.define = function TKSCALE() { + TKSCALE.prototype.define = function TKSCALE() { a=-10; b=10; f=1; @@ -14,12 +14,12 @@ model.dep_ut=[false,false]; exprs=[[sci2exp(a)],[sci2exp(b)],[sci2exp(f)]]; gr_i=[]; x=standard_define([3,2],model,exprs,gr_i); -} -TKSCALE.prototype.details = function TKSCALE() { -} -TKSCALE.prototype.get = function TKSCALE() { -} -TKSCALE.prototype.set = function TKSCALE() { + } + TKSCALE.prototype.details = function TKSCALE() { + } + TKSCALE.prototype.get = function TKSCALE() { + } + TKSCALE.prototype.set = function TKSCALE() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -31,5 +31,5 @@ model.rpar=[[a],[b],[f]]; x.graphics=graphics; x.model=model; } -} + } } |