diff options
Diffstat (limited to 'src/main/webapp/history/data_structures')
228 files changed, 0 insertions, 6503 deletions
diff --git a/src/main/webapp/history/data_structures/ABS_VALUE.js b/src/main/webapp/history/data_structures/ABS_VALUE.js deleted file mode 100644 index ef569e9..0000000 --- a/src/main/webapp/history/data_structures/ABS_VALUE.js +++ /dev/null @@ -1,20 +0,0 @@ -function ABS_VALUE () { - - - var nu = -1; - - var model = scicos_model(); - model.sim=list(new ScilabString(["absolute_value"]),new ScilabDouble([4])); - model.in1.push(new ScilabDouble([nu])); - model.out=new ScilabDouble([nu]); - model.nzcross=new ScilabDouble([nu]); - model.nmode=new ScilabDouble([nu]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [string([1])]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/AFFICH_m.js b/src/main/webapp/history/data_structures/AFFICH_m.js deleted file mode 100644 index ff0b180..0000000 --- a/src/main/webapp/history/data_structures/AFFICH_m.js +++ /dev/null @@ -1,33 +0,0 @@ -function AFFICH_m () { - - - var font = 1; - - var fontsize = 1; - - var colr = 1; - - var nt = 5; - - var nd = 1; - - var in1 = [1,1]; - - var model = scicos_model(); - model.sim=list(new ScilabString(["affich2"]),new ScilabDouble([4])); - model.in1.push(in1(1,1)); - model.in2.push(in1(1,2)); - model.evtin = new ScilabDouble([1]); - model.dstate = new ScilabDouble([-1],[0],[0],[1],[1],[0],[zeros(in1(1,1)*in1(1,2),1)]); - model.ipar = new ScilabDouble([font],[fontsize],[colr],[1000],[nt],[nd],[in1(1,1)]); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - model.label = new ScilabString([""]); - - var exprs = [[,sci2exp([model.in1,model.in2])],[string(font)],[string(fontsize)],[string(colr)],[string(nt)],[string(nd)],[string(0),]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new AfficheBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/ANDBLK.js b/src/main/webapp/history/data_structures/ANDBLK.js deleted file mode 100644 index 6d88e54..0000000 --- a/src/main/webapp/history/data_structures/ANDBLK.js +++ /dev/null @@ -1,75 +0,0 @@ -function ANDBLK () { - - - var andlog = ANDLOG_f("define"); - andlog.graphics.orig = new ScilabDouble([194,133]); - andlog.graphics.sz = new ScilabDouble([60,60]); - andlog.graphics.flip = new ScilabBoolean([true]); - andlog.graphics.pout = new ScilabDouble([9]); - andlog.graphics.pein = new ScilabDouble([4],[11]); - - var input_port1 = CLKIN_f("define"); - input_port1.graphics.orig = new ScilabDouble([149,287]); - input_port1.graphics.sz = new ScilabDouble([20,20]); - input_port1.graphics.flip = new ScilabBoolean([true]); - input_port1.graphics.exprs = new ScilabString(["1"]); - input_port1.graphics.peout = new ScilabDouble([4]); - input_port1.model.ipar = new ScilabDouble([1]); - - var output_port = CLKOUT_f("define"); - output_port.graphics.orig = new ScilabDouble([450,83]); - output_port.graphics.sz = new ScilabDouble([20,20]); - output_port.graphics.flip = new ScilabBoolean([true]); - output_port.graphics.exprs = new ScilabString(["1"]); - output_port.graphics.pein = new ScilabDouble([8]); - output_port.model.ipar = new ScilabDouble([1]); - - var input_port2 = CLKIN_f("define"); - input_port2.graphics.orig = new ScilabDouble([141,330]); - input_port2.graphics.sz = new ScilabDouble([20,20]); - input_port2.graphics.flip = new ScilabBoolean([true]); - input_port2.graphics.exprs = new ScilabString(["2"]); - input_port2.graphics.peout = new ScilabDouble([6]); - input_port2.model.ipar = new ScilabDouble([2]); - - var ifthel = IFTHEL_f("define"); - ifthel.graphics.orig = new ScilabDouble([331,137]); - ifthel.graphics.sz = new ScilabDouble([60,60]); - ifthel.graphics.flip = new ScilabBoolean([true]); - ifthel.graphics.pin = new ScilabDouble([9]); - ifthel.graphics.pein = new ScilabDouble([12]); - ifthel.graphics.peout = new ScilabDouble([8],[0]); - - var split = CLKSPLIT_f("define"); - split.graphics.orig = new ScilabDouble([234],[275.78348]); - split.graphics.pein = new ScilabDouble([6]); - split.graphics.peout = new ScilabDouble([11],[12]); - - var diagram = scicos_diagram(); - diagram.objs.push(andlog); - diagram.objs.push(input_port1); - diagram.objs.push(output_port); - diagram.objs.push(scicos_link({xx: new ScilabDouble([169],[214],[214]),yy: new ScilabDouble([297],[297],[198.71]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([2,1]),to: new ScilabDouble([1,1])})); - diagram.objs.push(input_port2); - diagram.objs.push(scicos_link({xx: new ScilabDouble([161],[234],[234]),yy: new ScilabDouble([340],[340],[275.78]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([5,1]),to: new ScilabDouble([10,1])})); - diagram.objs.push(ifthel); - diagram.objs.push(scicos_link({xx: new ScilabDouble([351],[351],[450]),yy: new ScilabDouble([131.29],[93],[93]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([7,1]),to: new ScilabDouble([3,1])})); - diagram.objs.push(scicos_link({xx: new ScilabDouble([262.57],[322.43]),yy: new ScilabDouble([163],[167]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,1]),to: new ScilabDouble([7,1])})); - diagram.objs.push(split); - diagram.objs.push(scicos_link({xx: new ScilabDouble([234],[234]),yy: new ScilabDouble([275.78],[198.71]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([10,1]),to: new ScilabDouble([1,2])})); - diagram.objs.push(scicos_link({xx: new ScilabDouble([234],[361],[361]),yy: new ScilabDouble([275.78],[275.78],[202.71]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([10,2]),to: new ScilabDouble([7,1])})); - this.x=scicos_block(); - this.x.gui = new ScilabString(["ANDBLK"]); - this.x.graphics.sz = new ScilabDouble([2,2]); - this.x.graphics.gr_i = new ScilabDouble(); - this.x.graphics.pein = new ScilabDouble([0],[0]); - this.x.graphics.peout = new ScilabDouble([0]); - this.x.model.sim = new ScilabString(["csuper"]); - this.x.model.evtin = new ScilabDouble([1],[1]); - this.x.model.evtout = new ScilabDouble([1]); - this.x.model.blocktype = new ScilabString(["h"]); - this.x.model.firing = new ScilabBoolean([false]); - this.x.model.dep_ut = new ScilabBoolean([false,false]); - this.x.model.rpar=diagram; - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/ANDLOG_f.js b/src/main/webapp/history/data_structures/ANDLOG_f.js deleted file mode 100644 index b94c240..0000000 --- a/src/main/webapp/history/data_structures/ANDLOG_f.js +++ /dev/null @@ -1,15 +0,0 @@ -function ANDLOG_f () { - - - var model = scicos_model(); - model.sim = new ScilabString(["andlog"]); - model.out = new ScilabDouble([1]); - model.evtin = new ScilabDouble([1],[1]); - model.blocktype = new ScilabString(["d"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([false,false]); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,3]),model,[],gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/AUTOMAT.js b/src/main/webapp/history/data_structures/AUTOMAT.js deleted file mode 100644 index 3ceda51..0000000 --- a/src/main/webapp/history/data_structures/AUTOMAT.js +++ /dev/null @@ -1,40 +0,0 @@ -function AUTOMAT () { - - - var NMode = 2; - - var Minitial = 1; - - var NX = 1; - - var X0 = [0.0]; - - var XP = [[1],[1]]; - - var C1 = [2]; - - var C2 = [1]; - - var exprs = [[string(NMode)],[string(Minitial)],[string(NX)],[sci2exp(X0)],[sci2exp(XP)],[sci2exp(C1)],[sci2exp(C2)]]; - - var ipar = [[NMode],[Minitial],[NX],[XP],[C1],[C2]]; - - var rpar = [X0]; - - var model = scicos_model(); - model.sim=list(new ScilabString(["automat"]),new ScilabDouble([10004])); - model.in1 = new ScilabDouble([2*NX+1],[2*NX+1]); - model.out = new ScilabDouble([2],[2*NX]); - model.state=ones(2*NX,1); - model.nzcross = new ScilabDouble([1]); - model.blocktype = new ScilabString(["c"]); - model.evtout = new ScilabDouble([1]); - model.firing = new ScilabDouble([-1]); - model.dep_ut = new ScilabBoolean([false,true]); - model.ipar=ipar; - model.rpar=rpar; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/BACKLASH.js b/src/main/webapp/history/data_structures/BACKLASH.js deleted file mode 100644 index d407fd7..0000000 --- a/src/main/webapp/history/data_structures/BACKLASH.js +++ /dev/null @@ -1,18 +0,0 @@ -function BACKLASH () { - - - var exprs = ["0";"1";"1"]; - - var model = scicos_model(); - model.sim=list(new ScilabString(["backlash"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.rpar = new ScilabDouble([0],[1]); - model.nzcross = new ScilabDouble([2]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/BARXY.js b/src/main/webapp/history/data_structures/BARXY.js deleted file mode 100644 index 5c3cb6a..0000000 --- a/src/main/webapp/history/data_structures/BARXY.js +++ /dev/null @@ -1,27 +0,0 @@ -function BARXY () { - - - var model = scicos_model(); - - var xmin = -15; - - var xmax = 15; - - var ymin = -15; - - var ymax = 15; - model.sim=list(new ScilabString(["BARXY_sim"]),,new ScilabDouble([5])); - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([true,false]); - model.in1 = new ScilabDouble([-1],[-1]); - model.intyp = new ScilabDouble([1]); - model.out = new ScilabDouble(); - model.evtin = new ScilabDouble([1]); - model.rpar = new ScilabDouble([xmin,],[,xmax,],[,ymin,],[,ymax]); - model.ipar = new ScilabDouble([1]); - this.x=new standard_define(new ScilabDouble([2,2]),model,[],[]); - this.x.graphics.in_implicit = new ScilabString(["E",,"E"]); - this.x.graphics.out_implicit = new ScilabDouble(); - this.x.graphics.exprs = new ScilabString(["-15";"15";"-15";"15";"1"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/BIGSOM_f.js b/src/main/webapp/history/data_structures/BIGSOM_f.js deleted file mode 100644 index 69ce1d5..0000000 --- a/src/main/webapp/history/data_structures/BIGSOM_f.js +++ /dev/null @@ -1,19 +0,0 @@ -function BIGSOM_f () { - - - var sgn = [[1],[1]]; - - var model = scicos_model(); - model.sim=list(new ScilabString(["sum"]),new ScilabDouble([2])); - model.in1 = new ScilabDouble([-1],[-1]); - model.out = new ScilabDouble([-1]); - model.rpar=new ScilabDouble([sgn]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = sci2exp(sgn); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,3]),model,,exprs,gr_i); - return new BigSom(this.x) -} diff --git a/src/main/webapp/history/data_structures/BITCLEAR.js b/src/main/webapp/history/data_structures/BITCLEAR.js deleted file mode 100644 index 3e7aa24..0000000 --- a/src/main/webapp/history/data_structures/BITCLEAR.js +++ /dev/null @@ -1,21 +0,0 @@ -function BITCLEAR () { - - - var model = scicos_model(); - model.sim=list(new ScilabString(["bit_clear_32"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([1]); - model.in2 = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.out2 = new ScilabDouble([1]); - model.intyp = new ScilabDouble([3]); - model.outtyp = new ScilabDouble([3]); - model.opar=list(new ScilabInteger([0])); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[sci2exp(3)],[sci2exp(0)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/BITSET.js b/src/main/webapp/history/data_structures/BITSET.js deleted file mode 100644 index ed7bccf..0000000 --- a/src/main/webapp/history/data_structures/BITSET.js +++ /dev/null @@ -1,21 +0,0 @@ -function BITSET () { - - - var model = scicos_model(); - model.sim=list(new ScilabString(["bit_set_32"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([1]); - model.in2 = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.out2 = new ScilabDouble([1]); - model.intyp = new ScilabDouble([3]); - model.outtyp = new ScilabDouble([3]); - model.opar=list(new ScilabInteger([0])); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[sci2exp(3)],[sci2exp(0)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/BOUNCE.js b/src/main/webapp/history/data_structures/BOUNCE.js deleted file mode 100644 index b2b8ec9..0000000 --- a/src/main/webapp/history/data_structures/BOUNCE.js +++ /dev/null @@ -1,17 +0,0 @@ -function BOUNCE () { - - - var n = 2; - - var k = 1],[ipar=[]; - - var for i = 1:n; - - var for j = i+1:n; - - var ipar(k) = i; - k=k+1; - ipar(k)=j; - k=k+1; - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/BOUNCEXY.js b/src/main/webapp/history/data_structures/BOUNCEXY.js deleted file mode 100644 index a0b3134..0000000 --- a/src/main/webapp/history/data_structures/BOUNCEXY.js +++ /dev/null @@ -1,43 +0,0 @@ -function BOUNCEXY () { - - - var win = -1; - - var imode = 1; - - var clrs = [[1],[2]]; - - var siz = [[1],[1]]; - - var xmin = -5; - - var xmax = 5; - - var ymin = 0; - - var ymax = 15; - - var model = scicos_model(); - model.sim=list(new ScilabString(["bouncexy"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([-1],[-1]); - model.in2 = new ScilabDouble([1],[1]); - model.intyp = new ScilabDouble([1],[1]); - model.evtin = new ScilabDouble([1]); - - var z = []; - - var for i = 1:size(clrs,"*"); - - var z(6*(i-1)+1) = 0; - - var z(6*(i-1)+2) = 0; - - var z(6*(i-1)+3) = 2*siz(i); - - var z(6*(i-1)+4) = 2*siz(i); - - var z(6*(i-1)+5) = 0.000; - - var z(6*(i-1)+6) = 64.0*360.000; - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/BPLATFORM.js b/src/main/webapp/history/data_structures/BPLATFORM.js deleted file mode 100644 index a7e7da4..0000000 --- a/src/main/webapp/history/data_structures/BPLATFORM.js +++ /dev/null @@ -1,32 +0,0 @@ -function BPLATFORM () { - - - var plen = 2; - - var csiz = 2; - - var phi = 0; - - var xmin = -5; - - var xmax = 5; - - var ymin = 0; - - var ymax = 15; - - var model = scicos_model(); - model.sim=list(new ScilabString(["bplatform2"]),new ScilabDouble([5])); - model.in1 = new ScilabDouble([1],[1]); - model.evtin = new ScilabDouble([1]); - model.dstate = new ScilabDouble([0]); - model.rpar = new ScilabDouble([plen],[csiz],[phi],[xmin],[xmax],[ymin],[ymax]); - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = string(model.rpar); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/Bache.js b/src/main/webapp/history/data_structures/Bache.js deleted file mode 100644 index d7d3c4c..0000000 --- a/src/main/webapp/history/data_structures/Bache.js +++ /dev/null @@ -1,50 +0,0 @@ -function Bache () { - - - var in1 = 2; - - var out = 3; - - var model = scicos_model(); - model.in1 = new ScilabDouble([-(1:in1)']); - model.out = new ScilabDouble([-(1:out)']); - - var Patm = 1.013E5; - - var A = 1; - - var ze1 = 40; - - var ze2 = 0; - - var zs1 = 40; - - var zs2 = 0; - - var z0 = 30; - - var T0 = 290; - - var p_rho = 0; - model.rpar = new ScilabDouble([Patm],[A],[ze1],[ze2],[zs1],[zs2],[z0],[T0],[p_rho]); - model.sim = new ScilabString(["Bache"]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var mo = modelica(); - mo.model = new ScilabString(["Bache"]); - mo.inputs = new ScilabString(["Ce1" "Ce2"]); - mo.outputs = new ScilabString(["Cs1" "Cs2" "yNiveau"]); - mo.parameters=list(new ScilabString(["Patm";"A";"ze1";"ze2";"zs1";"zs2";"z0";"T0";"p_rho"]),[Patm],[A],[ze1],[ze2],[zs1],[zs2],[z0],[T0],[p_rho]); - model.equations=mo; - model.in1.push(ones(size(mo.inputs,"*"),1)); - model.out=ones(size(mo.outputs,"*"),1); - - var exprs = [[string(Patm)],[string(A)],[string(ze1)],[string(ze2)],[string(zs1)],[string(zs2)],[string(z0)],[string(T0)],[string(p_rho)]]; - - var gr_i = []; - this.x=standard_define([2,2],model,exprs,list(gr_i,0)); - this.x.graphics.in_implicit = new ScilabString(["I";"I"]); - this.x.graphics.out_implicit = new ScilabString(["I";"I";"E"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CANIMXY.js b/src/main/webapp/history/data_structures/CANIMXY.js deleted file mode 100644 index 0d1c11c..0000000 --- a/src/main/webapp/history/data_structures/CANIMXY.js +++ /dev/null @@ -1,43 +0,0 @@ -function CANIMXY () { - - - var win = -1; - - var clrs = -4; - - var N = 2; - - var siz = 1; - - var wpos = [[-1],[-1]]; - - var wdim = [[-1],[-1]]; - - var xmin = -15; - - var xmax = 15; - - var ymin = -15; - - var ymax = +15; - - var nbr_curves = 1; - - var model = scicos_model(); - model.sim=list(new ScilabString(["canimxy"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([1],[1]); - model.in2 = new ScilabDouble([1],[1]); - model.intyp = new ScilabDouble([1],[1]); - model.evtin = new ScilabDouble([1]); - model.rpar = new ScilabDouble([xmin],[xmax],[ymin],[ymax]); - model.ipar = new ScilabDouble([win],[1],[N],[clrs],[siz],[0],[...wpos],[...wdim],[nbr_curves]); - model.blocktype = new ScilabString(["d"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = [[string(nbr_curves);string(clrs);string(siz);string(win);"[]";"[]"],[string(xmin)],[string(xmax)],[string(ymin)],[string(ymax)],[string(N)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CANIMXY3D.js b/src/main/webapp/history/data_structures/CANIMXY3D.js deleted file mode 100644 index a1ec5f1..0000000 --- a/src/main/webapp/history/data_structures/CANIMXY3D.js +++ /dev/null @@ -1,43 +0,0 @@ -function CANIMXY3D () { - - - var win = -1; - - var N = 2; - - var clrs = [[1],[2],[3],[4],[5],[6],[7],[13]]; - - var siz = [[1],[1],[1],[1],[1],[1],[1],[1]]; - - var wpos = [[-1],[-1]]; - - var wdim = [[-1],[-1]]; - - var param3ds = [[50],[280]]; - - var vec_x = [[-15],[15]]; - - var vec_y = [[-15],[15]]; - - var vec_z = [[-15],[15]]; - - var nbr_curves = 1; - - var model = scicos_model(); - model.sim=list(new ScilabString(["canimxy3d"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([1],[1],[1]); - model.evtin = new ScilabDouble([1]); - model.in2 = new ScilabDouble([1],[1],[1]); - model.intyp = new ScilabDouble([1],[1],[1]); - model.rpar = new ScilabDouble([...colon_operator(vec_x,:)],[...vec_y],[vec_z(,)],[...param3ds]); - model.ipar = new ScilabDouble([win],[8],[N],[...colon_operator(clrs,:)],[...siz],[8],[wpos(,)],[...wdim],[nbr_curves]); - model.blocktype = new ScilabString(["d"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = [[string(nbr_curves);strcat(string(clrs)," ");strcat(string(siz)," ");string(win);"[]";"[]";strcat(string(vec_x)," ");strcat(string(vec_y)," ");strcat(string(vec_z)," ");strcat(string(param3ds)," ")],[string(N)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CBLOCK.js b/src/main/webapp/history/data_structures/CBLOCK.js deleted file mode 100644 index 77eb431..0000000 --- a/src/main/webapp/history/data_structures/CBLOCK.js +++ /dev/null @@ -1,48 +0,0 @@ -function CBLOCK () { - - - var in1 = 1; - - var out = 1; - - var clkin = []; - - var clkout = []; - - var x0 = []; - - var z0 = []; - - var typ = "c"; - - var auto = []; - - var rpar = []; - - var ipar = []; - - var funam = "toto"; - - var ng = 0; - - var model = scicos_model(); - model.sim=list(new ScilabString([" "]),new ScilabDouble([2004])); - model.in1.push(new ScilabDouble([in1])); - model.out=new ScilabDouble([out]); - model.evtin=clkin; - model.evtout=clkout; - model.state=x0; - model.dstate=z0; - model.rpar=rpar; - model.ipar=ipar; - model.blocktype=new ScilabString([typ]); - model.firing=auto; - model.dep_ut = new ScilabBoolean([true,false]); - model.nzcross=new ScilabDouble([ng]); - - var label = list([funam,"n",sci2exp(in1),sci2exp(out),sci2exp(clkin),sci2exp(clkout),sci2exp(x0),sci2exp(0),sci2exp(z0),sci2exp(rpar),sci2exp(ipar),sci2exp(auto),"y","n"]',[]); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([4,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CBLOCK4.js b/src/main/webapp/history/data_structures/CBLOCK4.js deleted file mode 100644 index c4cfa2c..0000000 --- a/src/main/webapp/history/data_structures/CBLOCK4.js +++ /dev/null @@ -1,39 +0,0 @@ -function CBLOCK4 () { - - - var funam = "toto"; - - var model = scicos_model(); - model.sim=list(new ScilabString([" "]),new ScilabDouble([2004])); - model.in1 = new ScilabDouble([1]); - model.in2 = new ScilabDouble([1]); - model.intyp = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.out2 = new ScilabDouble([1]); - model.outtyp = new ScilabDouble([1]); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = list([funam; - "n"; - sci2exp([model.in1 model.in2]); - sci2exp(model.intyp); - sci2exp([model.out model.out2]); - sci2exp(model.outtyp); - sci2exp(model.evtin); - sci2exp(model.evtout); - sci2exp(model.state); - sci2exp(model.dstate); - sci2exp(model.odstate); - sci2exp(model.rpar); - sci2exp(model.ipar); - sci2exp(model.opar); - sci2exp(model.nmode); - sci2exp(model.nzcross); - sci2exp(model.firing); - "y"; - "n"],[]); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([4,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CCS.js b/src/main/webapp/history/data_structures/CCS.js deleted file mode 100644 index e405427..0000000 --- a/src/main/webapp/history/data_structures/CCS.js +++ /dev/null @@ -1,30 +0,0 @@ -function CCS () { - - - var ModelName = "CCS"; - - var PrametersValue = []; - - var ParametersName = []; - - var model = scicos_model(); - - var Typein = []; - - var Typeout = []; - - var MI = []; - - var MO = []; - - var P = [[2,50,1,0],[,70,98,2,0],[70,2,-2,0]]; - - var PortName = ["Iin";"p";"n"]; - - var for i = 1:size(P,"r"); - - var if P(i,3) = =1, then; - Typein = new ScilabDouble([Typein;,"E"]); - MI = new ScilabDouble([MI],[PortName(i)]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CEVENTSCOPE.js b/src/main/webapp/history/data_structures/CEVENTSCOPE.js deleted file mode 100644 index 73a3b7e..0000000 --- a/src/main/webapp/history/data_structures/CEVENTSCOPE.js +++ /dev/null @@ -1,29 +0,0 @@ -function CEVENTSCOPE () { - - - var nclock = 1; - - var win = -1; - - var clrs = [[1],[3],[5],[7],[9],[11],[13],[15]]; - - var wdim = [[600],[400]]; - - var wpos = [[-1],[-1]]; - - var per = 30; - - var model = scicos_model(); - model.sim=list(new ScilabString(["cevscpe"]),new ScilabDouble([4])); - model.evtin = new ScilabDouble([1]); - model.rpar=new ScilabDouble([per]); - model.ipar = new ScilabDouble([win],[1],[...colon_operator(clrs,nclock)],[wpos(,)],[...wdim]); - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = [[sci2exp(nclock);strcat(sci2exp(clrs(nclock))," ")],[string(win)],[sci2exp([])],[sci2exp(wdim)],[string(per)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CFSCOPE.js b/src/main/webapp/history/data_structures/CFSCOPE.js deleted file mode 100644 index 4a0c786..0000000 --- a/src/main/webapp/history/data_structures/CFSCOPE.js +++ /dev/null @@ -1,33 +0,0 @@ -function CFSCOPE () { - - - var win = -1; - - var wdim = [[600],[400]]; - - var wpos = [[-1],[-1]]; - - var clrs = [[1],[3],[5],[7],[9],[11],[13],[15]]; - - var N = 2; - - var ymin = -15; - - var ymax = +15; - - var per = 30; - - var model = scicos_model(); - model.sim=list(new ScilabString(["cfscope"]),new ScilabDouble([4])); - model.evtin = new ScilabDouble([1]); - model.rpar = new ScilabDouble([0],[ymin],[ymax],[per]); - model.ipar = new ScilabDouble([win],[1],[N],[clrs],[wpos],[wdim],[1],[1]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[strcat(string(clrs)," ")],[string(win)],[sci2exp([])],[sci2exp(wdim)],[string(ymin)],[string(ymax)],[string(per)],[string(N)],[string([1])]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CLINDUMMY_f.js b/src/main/webapp/history/data_structures/CLINDUMMY_f.js deleted file mode 100644 index 35ca987..0000000 --- a/src/main/webapp/history/data_structures/CLINDUMMY_f.js +++ /dev/null @@ -1,16 +0,0 @@ -function CLINDUMMY_f () { - - - var x0 = 0; - - var model = scicos_model(); - model.sim=list(new ScilabString(["cdummy"]),new ScilabDouble([4])); - model.state=new ScilabDouble([x0]); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([false,true]); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,[],gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CLKFROM.js b/src/main/webapp/history/data_structures/CLKFROM.js deleted file mode 100644 index baa40ec..0000000 --- a/src/main/webapp/history/data_structures/CLKFROM.js +++ /dev/null @@ -1,16 +0,0 @@ -function CLKFROM () { - - - var model = scicos_model(); - model.sim = new ScilabString(["clkfrom"]); - model.evtout = new ScilabDouble([1]); - model.opar=list("A"); - model.blocktype = new ScilabString(["d"]); - model.firing = new ScilabDouble([-1]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = "A"; - this.x=new standard_define(new ScilabDouble([2,1]),model,exprs," "); - this.x.graphics.id = new ScilabString(["From"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CLKGOTO.js b/src/main/webapp/history/data_structures/CLKGOTO.js deleted file mode 100644 index eede81b..0000000 --- a/src/main/webapp/history/data_structures/CLKGOTO.js +++ /dev/null @@ -1,17 +0,0 @@ -function CLKGOTO () { - - - var model = scicos_model(); - model.sim = new ScilabString(["clkgoto"]); - model.evtin = new ScilabDouble([1]); - model.opar=list("A"); - model.ipar=int(1); - model.blocktype = new ScilabString(["d"]); - model.firing = new ScilabDouble([-1]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = [["A"],[sci2exp(1)]]; - this.x=new standard_define(new ScilabDouble([2,1]),model,exprs," "); - this.x.graphics.id = new ScilabString(["Goto"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CLKGotoTagVisibility.js b/src/main/webapp/history/data_structures/CLKGotoTagVisibility.js deleted file mode 100644 index 5a164cf..0000000 --- a/src/main/webapp/history/data_structures/CLKGotoTagVisibility.js +++ /dev/null @@ -1,23 +0,0 @@ -function CLKGotoTagVisibility () { - - - var model = scicos_model(); - model.sim = new ScilabString(["clkgototagvisibility"]); - model.in1 = new ScilabDouble(); - model.in2 = new ScilabDouble(); - model.out = new ScilabDouble(); - model.out2 = new ScilabDouble(); - model.evtin = new ScilabDouble(); - model.intyp = new ScilabDouble([1]); - model.outtyp = new ScilabDouble([1]); - model.opar=list("A"); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabBoolean([false]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = "A"; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CLKINV_f.js b/src/main/webapp/history/data_structures/CLKINV_f.js deleted file mode 100644 index aa2d8dc..0000000 --- a/src/main/webapp/history/data_structures/CLKINV_f.js +++ /dev/null @@ -1,19 +0,0 @@ -function CLKINV_f () { - - - var prt = 1; - - var model = scicos_model(); - model.sim = new ScilabString(["input"]); - model.evtout = new ScilabDouble([1]); - model.ipar=new ScilabDouble([prt]); - model.blocktype = new ScilabString(["d"]); - model.firing = new ScilabDouble([-1]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = string(prt); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i); - return new EventInBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CLKOUTV_f.js b/src/main/webapp/history/data_structures/CLKOUTV_f.js deleted file mode 100644 index 32f4ec9..0000000 --- a/src/main/webapp/history/data_structures/CLKOUTV_f.js +++ /dev/null @@ -1,17 +0,0 @@ -function CLKOUTV_f () { - - - var prt = 1; - - var model = scicos_model(); - model.sim = new ScilabString(["output"]); - model.evtin = new ScilabDouble([1]); - model.ipar=new ScilabDouble([prt]); - model.blocktype = new ScilabString(["d"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = string(prt); - this.x=new standard_define(new ScilabDouble([1,1]),model,exprs," "); - return new EventOutBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CLKSOMV_f.js b/src/main/webapp/history/data_structures/CLKSOMV_f.js deleted file mode 100644 index 273ebc8..0000000 --- a/src/main/webapp/history/data_structures/CLKSOMV_f.js +++ /dev/null @@ -1,15 +0,0 @@ -function CLKSOMV_f () { - - - var model = scicos_model(); - model.sim = new ScilabString(["sum"]); - model.evtin = new ScilabDouble([1],[1],[1]); - model.evtout = new ScilabDouble([1]); - model.blocktype = new ScilabString(["d"]); - model.firing = new ScilabDouble([-1]); - model.dep_ut = new ScilabBoolean([false,false]); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,[],gr_i); - return new RoundBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CLOCK_c.js b/src/main/webapp/history/data_structures/CLOCK_c.js deleted file mode 100644 index 339191e..0000000 --- a/src/main/webapp/history/data_structures/CLOCK_c.js +++ /dev/null @@ -1,48 +0,0 @@ -function CLOCK_c () { - - - var evtdly = EVTDLY_c("define"); - evtdly.graphics.orig = new ScilabDouble([320,232]); - evtdly.graphics.sz = new ScilabDouble([40,40]); - evtdly.graphics.flip = new ScilabBoolean([true]); - evtdly.graphics.exprs = new ScilabString(["0.1";"0.1"]); - evtdly.graphics.pein = new ScilabDouble([6]); - evtdly.graphics.peout = new ScilabDouble([3]); - evtdly.model.rpar = new ScilabDouble([0.1],[0.1]); - evtdly.model.firing = new ScilabDouble([0.1]); - - var output_port = CLKOUT_f("define"); - output_port.graphics.orig = new ScilabDouble([399,162]); - output_port.graphics.sz = new ScilabDouble([20,20]); - output_port.graphics.flip = new ScilabBoolean([true]); - output_port.graphics.exprs = new ScilabString(["1"]); - output_port.graphics.pein = new ScilabDouble([5]); - output_port.model.ipar = new ScilabDouble([1]); - - var split = CLKSPLIT_f("define"); - split.graphics.orig = new ScilabDouble([380.71066],[172]); - split.graphics.pein = new ScilabDouble([3]); - split.graphics.peout = new ScilabDouble([5],[6]); - - var gr_i = []; - - var diagram = scicos_diagram(); - diagram.objs.push(output_port); - diagram.objs.push(evtdly); - diagram.objs.push(scicos_link({xx: new ScilabDouble([340],[340],[380.71]),yy: new ScilabDouble([226.29],[172],[172]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([2,1]),to: new ScilabDouble([4,1])})); - diagram.objs.push(split); - diagram.objs.push(scicos_link({xx: new ScilabDouble([380.71],[399]),yy: new ScilabDouble([172],[172]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([4,1]),to: new ScilabDouble([1,1])})); - diagram.objs.push(scicos_link({xx: new ScilabDouble([380.71],[380.71],[340],[340]),yy: new ScilabDouble([172],[302],[302],[277.71]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([4,2]),to: new ScilabDouble([2,1])})); - this.x=scicos_block(); - this.x.gui = new ScilabString(["CLOCK_c"]); - this.x.graphics.sz = new ScilabDouble([2,2]); - this.x.graphics.gr_i=gr_i; - this.x.graphics.peout = new ScilabDouble([0]); - this.x.model.sim = new ScilabString(["csuper"]); - this.x.model.evtout = new ScilabDouble([1]); - this.x.model.blocktype = new ScilabString(["h"]); - this.x.model.firing = new ScilabBoolean([false]); - this.x.model.dep_ut = new ScilabBoolean([false,false]); - this.x.model.rpar=diagram; - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CLR.js b/src/main/webapp/history/data_structures/CLR.js deleted file mode 100644 index d374d40..0000000 --- a/src/main/webapp/history/data_structures/CLR.js +++ /dev/null @@ -1,28 +0,0 @@ -function CLR () { - - - var x0 = 0; - - var A = -1; - - var B = 1; - - var C = 1; - - var D = 0; - - var exprs = ["1";"1+s"]; - - var model = scicos_model(); - model.sim=list(new ScilabString(["csslti4"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.state=new ScilabDouble([x0]); - model.rpar = new ScilabDouble([...colon_operator(A,:)],[...B],[C(,)],[...D]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([false,true]); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CLSS.js b/src/main/webapp/history/data_structures/CLSS.js deleted file mode 100644 index d97157a..0000000 --- a/src/main/webapp/history/data_structures/CLSS.js +++ /dev/null @@ -1,32 +0,0 @@ -function CLSS () { - - - var x0 = 0; - - var A = -1; - - var B = 1; - - var C = 1; - - var D = 0; - - var in1 = 1; - - var out = 1; - - var model = scicos_model(); - model.sim=list(new ScilabString(["csslti4"]),new ScilabDouble([4])); - model.in1.push(new ScilabDouble([in1])); - model.out=new ScilabDouble([out]); - model.state=new ScilabDouble([x0]); - model.rpar = new ScilabDouble([...colon_operator(A,:)],[...B],[C(,)],[...D]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([false,true]); - - var exprs = [[strcat(sci2exp(A))],[strcat(sci2exp(B))],[strcat(sci2exp(C))],[strcat(sci2exp(D))],[strcat(sci2exp(x0))]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CMAT3D.js b/src/main/webapp/history/data_structures/CMAT3D.js deleted file mode 100644 index 0d2fd8d..0000000 --- a/src/main/webapp/history/data_structures/CMAT3D.js +++ /dev/null @@ -1,35 +0,0 @@ -function CMAT3D () { - - - var cmin = 0; - - var cmax = 100; - - var colormap = jetcolormap(25); - - var size_c = 25; - this.x = new ScilabDouble([-1]); - - var y = -1; - - var size_x = 1; - - var size_y = 1; - - var model = scicos_model(); - model.sim=list(new ScilabString(["cmat3d"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2]); - model.intyp = new ScilabDouble([1]); - model.evtin = new ScilabDouble([1]); - model.ipar = new ScilabDouble([cmin],[cmax],[size_c],[size_x],[size_y]); - model.rpar = new ScilabDouble([...colormap],[x],[y]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[strcat(string(x)," ");strcat(string(y)," ");string("jetcolormap(25)")],[string(cmin)],[string(cmax)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CMATVIEW.js b/src/main/webapp/history/data_structures/CMATVIEW.js deleted file mode 100644 index 3a03930..0000000 --- a/src/main/webapp/history/data_structures/CMATVIEW.js +++ /dev/null @@ -1,32 +0,0 @@ -function CMATVIEW () { - - - var cmin = 0; - - var cmax = 100; - - var size_c = 25; - - var colormap = jetcolormap(size_c); - - var alpha_c = 0.24; - - var beta_c = 1; - - var model = scicos_model(); - model.sim=list(new ScilabString(["cmatview"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2]); - model.intyp = new ScilabDouble([1]); - model.evtin = new ScilabDouble([1]); - model.ipar = new ScilabDouble([cmin],[cmax],[size_c]); - model.rpar = new ScilabDouble([alpha_c],[beta_c],[...colormap]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[string("jetcolormap(25)")],[string(cmin)],[string(cmax)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CMSCOPE.js b/src/main/webapp/history/data_structures/CMSCOPE.js deleted file mode 100644 index b4d2e3d..0000000 --- a/src/main/webapp/history/data_structures/CMSCOPE.js +++ /dev/null @@ -1,42 +0,0 @@ -function CMSCOPE () { - - - var win = -1; - - var in1 = [[1],[1]]; - - var wdim = [[-1],[-1]]; - - var wpos = [[-1],[-1]]; - - var clrs = [[1],[3],[5],[7],[9],[11],[13],[15]]; - - var N = 20; - - var ymin = [[-1],[-5]]; - - var ymax = [[1],[5]]; - - var per = [[30],[30]]; - - var yy = [[...transpose(ymin)],[...transpose(ymax)]]; - - var period = ...transpose(per); - - var model = scicos_model(); - model.sim=list(new ScilabString(["cmscope"]),new ScilabDouble([4])); - model.in1.push(new ScilabDouble([in1])); - model.in2 = new ScilabDouble([1],[1]); - model.intyp = new ScilabDouble([1],[1]); - model.evtin = new ScilabDouble([1]); - model.rpar = new ScilabDouble([0],[...period],[...yy]); - model.ipar = new ScilabDouble([win;...colon_operator(size,in1,"*")],[N],[...wpos],[...wdim],[...in1],[clrs(1,sum(in1))]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[strcat(string(in1)," ");strcat(string(clrs)," ");string(win);sci2exp([]);sci2exp([]);strcat(string(ymin)," ");strcat(string(ymax)," ");strcat(string(per)," ")],[string(N)],[string(0)],[emptystr()]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CONST.js b/src/main/webapp/history/data_structures/CONST.js deleted file mode 100644 index b34361e..0000000 --- a/src/main/webapp/history/data_structures/CONST.js +++ /dev/null @@ -1,19 +0,0 @@ -function CONST () { - - - var C = 1; - - var model = scicos_model(); - model.sim=list(new ScilabString(["cstblk4"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble(); - model.out = new ScilabDouble([1]); - model.rpar=new ScilabDouble([C]); - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = strcat(sci2exp(C)); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CONSTRAINT2_c.js b/src/main/webapp/history/data_structures/CONSTRAINT2_c.js deleted file mode 100644 index d24d40c..0000000 --- a/src/main/webapp/history/data_structures/CONSTRAINT2_c.js +++ /dev/null @@ -1,24 +0,0 @@ -function CONSTRAINT2_c () { - - - var x0 = [0]; - - var xd0 = [0]; - - var id = [0]; - - var model = scicos_model(); - model.sim=list(new ScilabString(["constraint_c"]),new ScilabDouble([10004])); - model.in1 = new ScilabDouble([1]); - model.out = new ScilabDouble([1],[1]); - model.state = new ScilabDouble([x0],[xd0]); - model.ipar=new ScilabDouble([id]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([false,true]); - - var exprs = list(strcat(sci2exp(x0)),strcat(sci2exp(xd0)),strcat(sci2exp(id))); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CONSTRAINT_c.js b/src/main/webapp/history/data_structures/CONSTRAINT_c.js deleted file mode 100644 index 567ec0f..0000000 --- a/src/main/webapp/history/data_structures/CONSTRAINT_c.js +++ /dev/null @@ -1,20 +0,0 @@ -function CONSTRAINT_c () { - - - var x0 = [[0],[0]]; - - var model = scicos_model(); - model.sim=list(new ScilabString(["constraint_c"]),new ScilabDouble([10004])); - model.in1 = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.ipar = new ScilabDouble([0]); - model.state=new ScilabDouble([x0]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([false,true]); - - var exprs = "0"; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CONST_f.js b/src/main/webapp/history/data_structures/CONST_f.js deleted file mode 100644 index 1983ae4..0000000 --- a/src/main/webapp/history/data_structures/CONST_f.js +++ /dev/null @@ -1,19 +0,0 @@ -function CONST_f () { - - - var C = 1; - - var model = scicos_model(); - model.sim=list(new ScilabString(["cstblk"]),new ScilabDouble([1])); - model.in1 = new ScilabDouble(); - model.out = new ScilabDouble([1]); - model.rpar=new ScilabDouble([C]); - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = strcat(sci2exp(C)); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CONST_m.js b/src/main/webapp/history/data_structures/CONST_m.js deleted file mode 100644 index df53c9a..0000000 --- a/src/main/webapp/history/data_structures/CONST_m.js +++ /dev/null @@ -1,22 +0,0 @@ -function CONST_m () { - - - var C = [1]; - - var model = scicos_model(); - model.sim=list(new ScilabString(["cstblk4"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble(); - model.out=size(C,1); - model.in2 = new ScilabDouble(); - model.out2.push(size(C,2)); - model.rpar=new ScilabDouble([C]); - model.opar=list(); - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = sci2exp(C); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CONVERT.js b/src/main/webapp/history/data_structures/CONVERT.js deleted file mode 100644 index 2a467eb..0000000 --- a/src/main/webapp/history/data_structures/CONVERT.js +++ /dev/null @@ -1,24 +0,0 @@ -function CONVERT () { - - - var sgn = 2; - - var model = scicos_model(); - model.sim=list(new ScilabString(["convert"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([-1]); - model.out = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2]); - model.out2 = new ScilabDouble([-2]); - model.intyp = new ScilabDouble([1]); - model.outtyp = new ScilabDouble([3]); - model.rpar = new ScilabDouble(); - model.ipar=new ScilabDouble([sgn]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[sci2exp(1)],[sci2exp(3)],[sci2exp(0)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/COSBLK_f.js b/src/main/webapp/history/data_structures/COSBLK_f.js deleted file mode 100644 index bcd2120..0000000 --- a/src/main/webapp/history/data_structures/COSBLK_f.js +++ /dev/null @@ -1,16 +0,0 @@ -function COSBLK_f () { - - - var in1 = 1; - - var model = scicos_model(); - model.sim = new ScilabString(["cosblk"]); - model.in1 = new ScilabDouble([-1]); - model.out = new ScilabDouble([-1]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,[],gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CSCOPE.js b/src/main/webapp/history/data_structures/CSCOPE.js deleted file mode 100644 index f67fec9..0000000 --- a/src/main/webapp/history/data_structures/CSCOPE.js +++ /dev/null @@ -1,35 +0,0 @@ -function CSCOPE () { - - - var win = -1; - - var wdim = [[600],[400]]; - - var wpos = [[-1],[-1]]; - - var clrs = [[1],[3],[5],[7],[9],[11],[13],[15]]; - - var N = 20; - - var ymin = -15; - - var ymax = +15; - - var per = 30; - - var model = scicos_model(); - model.sim=list(new ScilabString(["cscope"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([1]); - model.evtin = new ScilabDouble([1]); - model.rpar = new ScilabDouble([0],[ymin],[ymax],[per]); - model.ipar = new ScilabDouble([win],[1],[N],[clrs],[wpos],[wdim]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[strcat(string(clrs)," ")],[string(win)],[sci2exp([])],[sci2exp(wdim)],[string(ymin)],[string(ymax)],[string(per)],[string(N)],[string(0)'],[emptystr()]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CSCOPXY.js b/src/main/webapp/history/data_structures/CSCOPXY.js deleted file mode 100644 index 17808c5..0000000 --- a/src/main/webapp/history/data_structures/CSCOPXY.js +++ /dev/null @@ -1,40 +0,0 @@ -function CSCOPXY () { - - - var win = -1; - - var clrs = 4],[siz=1; - - var wdim = [[600],[400]]; - - var wpos = [[-1],[-1]]; - - var N = 2; - - var xmin = -15; - - var xmax = 15; - - var ymin = -15; - - var ymax = +15; - - var nbr_curves = 1; - - var model = scicos_model(); - model.sim=list(new ScilabString(["cscopxy"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([1],[1]); - model.in2 = new ScilabDouble([1],[1]); - model.intyp = new ScilabDouble([1],[1]); - model.evtin = new ScilabDouble([1]); - model.rpar = new ScilabDouble([xmin],[xmax],[ymin],[ymax]); - model.ipar = new ScilabDouble([win],[1],[N],[clrs],[siz],[1],[...wpos],[...wdim],[nbr_curves]); - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = [[string(nbr_curves)],[sci2exp(clrs)],[sci2exp(siz)],[string(win)],[sci2exp([])],[sci2exp(wdim)],[string(xmin)],[string(xmax)],[string(ymin)],[string(ymax)],[string(N)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CSCOPXY3D.js b/src/main/webapp/history/data_structures/CSCOPXY3D.js deleted file mode 100644 index 7a91623..0000000 --- a/src/main/webapp/history/data_structures/CSCOPXY3D.js +++ /dev/null @@ -1,42 +0,0 @@ -function CSCOPXY3D () { - - - var win = -1; - - var clrs = [[1],[2],[3],[4],[5],[6],[7],[13]]; - - var siz = [[1],[1],[1],[1],[1],[1],[1],[1]]; - - var wdim = [[600],[400]]; - - var wpos = [[-1],[-1]]; - - var N = 2; - - var param3ds = [[50],[280]]; - - var vec_x = [[-15],[15]]; - - var vec_y = [[-15],[15]]; - - var vec_z = [[-15],[15]]; - - var nbr_curves = 1; - - var model = scicos_model(); - model.sim=list(new ScilabString(["cscopxy3d"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([1],[1],[1]); - model.in2 = new ScilabDouble([1],[1],[1]); - model.intyp = new ScilabDouble([1],[1],[1]); - model.evtin = new ScilabDouble([1]); - model.rpar = new ScilabDouble([...colon_operator(vec_x,:)],[...vec_y],[vec_z(,)],[...param3ds]); - model.ipar = new ScilabDouble([win],[8],[N],[...colon_operator(clrs,:)],[...siz],[8],[wpos(,)],[...wdim],[nbr_curves]); - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = [[string(nbr_curves);strcat(string(clrs)," ");strcat(string(siz)," ");string(win);sci2exp([]);sci2exp(wdim);strcat(string(vec_x)," ");strcat(string(vec_y)," ");strcat(string(vec_z)," ");strcat(string(param3ds)," ")],[string(N)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CUMSUM.js b/src/main/webapp/history/data_structures/CUMSUM.js deleted file mode 100644 index 6c076cf..0000000 --- a/src/main/webapp/history/data_structures/CUMSUM.js +++ /dev/null @@ -1,31 +0,0 @@ -function CUMSUM () { - - - var model = scicos_model(); - - var function_name = "cumsum_m"; - - var funtyp = 4; - model.sim=list(function_name,funtyp); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2]); - model.intyp = new ScilabDouble([1]); - model.out = new ScilabDouble([-1]); - model.out2 = new ScilabDouble([-2]); - model.outtyp = new ScilabDouble([1]); - model.evtin = new ScilabDouble(); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble(); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = [[sci2exp(1)],[sci2exp(0)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CURV_f.js b/src/main/webapp/history/data_structures/CURV_f.js deleted file mode 100644 index 49e00bf..0000000 --- a/src/main/webapp/history/data_structures/CURV_f.js +++ /dev/null @@ -1,28 +0,0 @@ -function CURV_f () { - - - var xx = [[0],[1],[2]]; - - var yy = [[-5],[5],[0]]; - - var rect = [0,-5,2,5]; - - var axisdata = [[2],[10],[2],[10]]; - - var ipar = [[size(xx,1)],[...axisdata]]; - - var rpar = [[xx],[yy],[...rect]]; - - var model = scicos_model(); - model.sim = new ScilabString(["intplt"]); - model.in1 = new ScilabDouble(); - model.out = new ScilabDouble([1]); - model.rpar = new ScilabDouble([xx],[yy],[...rect]); - model.ipar = new ScilabDouble([size(xx,1)],[...axisdata]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([false,true]); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,[],gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CVS.js b/src/main/webapp/history/data_structures/CVS.js deleted file mode 100644 index 5bfb5f9..0000000 --- a/src/main/webapp/history/data_structures/CVS.js +++ /dev/null @@ -1,30 +0,0 @@ -function CVS () { - - - var ModelName = "CVS"; - - var PrametersValue = []; - - var ParametersName = []; - - var model = scicos_model(); - - var Typein = []; - - var Typeout = []; - - var MI = []; - - var MO = []; - - var P = [[2,50,1,0],[,70,98,2,0],[70,2,-2,0]]; - - var PortName = ["vin";"p";"n"]; - - var for i = 1:size(P,"r"); - - var if P(i,3) = =1, then; - Typein = new ScilabDouble([Typein;,"E"]); - MI = new ScilabDouble([MI],[PortName(i)]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/Capacitor.js b/src/main/webapp/history/data_structures/Capacitor.js deleted file mode 100644 index c83bb8e..0000000 --- a/src/main/webapp/history/data_structures/Capacitor.js +++ /dev/null @@ -1,28 +0,0 @@ -function Capacitor () { - - - var model = scicos_model(); - - var C = 0.01,v=0; - model.rpar = new ScilabDouble([C],[v]); - model.sim = new ScilabString(["Capacitor"]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var mo = modelica(); - mo.model = new ScilabString(["Capacitor"]); - mo.inputs = new ScilabString(["p"]); - mo.outputs = new ScilabString(["n"]); - mo.parameters=list(new ScilabString(["C"),new ScilabString(["v"]]),list(C,v),new ScilabDouble([0),new ScilabDouble([1]])); - model.equations=mo; - model.in1.push(ones(size(mo.inputs,"*"),1)); - model.out=ones(size(mo.outputs,"*"),1); - - var exprs = string([C],[v]); - - var gr_i = []; - this.x=standard_define([2,1.1],model,exprs,list(gr_i,0)); - this.x.graphics.in_implicit = new ScilabString(["I"]); - this.x.graphics.out_implicit = new ScilabString(["I"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/ConstantVoltage.js b/src/main/webapp/history/data_structures/ConstantVoltage.js deleted file mode 100644 index add8be1..0000000 --- a/src/main/webapp/history/data_structures/ConstantVoltage.js +++ /dev/null @@ -1,27 +0,0 @@ -function ConstantVoltage () { - - - var V = 0.01; - - var model = scicos_model(); - model.rpar=new ScilabDouble([V]); - model.in1 = new ScilabDouble([1],[model.out=1]); - model.sim = new ScilabString(["ConstantVoltage"]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var mo = modelica(); - mo.model = new ScilabString(["ConstantVoltage"]); - mo.inputs = new ScilabString(["p"]); - mo.outputs = new ScilabString(["n"]); - mo.parameters=list(new ScilabString(["V"]),list(V)); - model.equations=mo; - - var exprs = string(V); - - var gr_i = []; - this.x=standard_define([1.5,1.1],model,exprs,list(gr_i,0)); - this.x.graphics.in_implicit = new ScilabString(["I"]); - this.x.graphics.out_implicit = new ScilabString(["I"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/Counter.js b/src/main/webapp/history/data_structures/Counter.js deleted file mode 100644 index 9fcff45..0000000 --- a/src/main/webapp/history/data_structures/Counter.js +++ /dev/null @@ -1,25 +0,0 @@ -function Counter () { - - - var minim = 0; - - var maxim = 2; - - var rule = 1; - - var model = scicos_model(); - model.sim=list(new ScilabString(["counter"]),new ScilabDouble([4])); - model.evtin = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.out2 = new ScilabDouble([1]); - model.dstate = new ScilabDouble([0]); - model.ipar = new ScilabDouble([rule],[maxim],[minim]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = [[string(minim)],[string(maxim)],[string(rule)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/CurrentSensor.js b/src/main/webapp/history/data_structures/CurrentSensor.js deleted file mode 100644 index 386fa14..0000000 --- a/src/main/webapp/history/data_structures/CurrentSensor.js +++ /dev/null @@ -1,24 +0,0 @@ -function CurrentSensor () { - - - var model = scicos_model(); - model.in1 = new ScilabDouble([1]); - model.out = new ScilabDouble([1],[,1]); - model.sim = new ScilabString(["CurrentSensor"]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var mo = modelica(); - mo.model = new ScilabString(["CurrentSensor"]); - mo.inputs = new ScilabString(["p"]); - mo.outputs = new ScilabString(["n";"i"]); - model.equations=mo; - - var exprs = []; - - var gr_i = []; - this.x=standard_define([2,2],model,exprs,list(gr_i,0)); - this.x.graphics.in_implicit = new ScilabString(["I"]); - this.x.graphics.out_implicit = new ScilabString(["I";"E"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/DEADBAND.js b/src/main/webapp/history/data_structures/DEADBAND.js deleted file mode 100644 index b5c34e3..0000000 --- a/src/main/webapp/history/data_structures/DEADBAND.js +++ /dev/null @@ -1,25 +0,0 @@ -function DEADBAND () { - - - var minp = -.5; - - var maxp = .5; - - var rpar = [[maxp],[minp]]; - - var model = scicos_model(); - model.sim=list(new ScilabString(["deadband"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([1]); - model.nzcross = new ScilabDouble([2]); - model.nmode = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.rpar=rpar; - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[string(maxp)],[string(minp)],[string(model.nmode)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/DEBUG.js b/src/main/webapp/history/data_structures/DEBUG.js deleted file mode 100644 index 6d610ad..0000000 --- a/src/main/webapp/history/data_structures/DEBUG.js +++ /dev/null @@ -1,13 +0,0 @@ -function DEBUG () { - - - var model = scicos_model(); - model.sim=list(new ScilabString(["%debug_scicos"]),new ScilabDouble([99])); - model.blocktype = new ScilabString(["d"]); - - var exprs = list("","xcos_debug_gui(flag,block);"); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([8,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/DELAYV_f.js b/src/main/webapp/history/data_structures/DELAYV_f.js deleted file mode 100644 index f262231..0000000 --- a/src/main/webapp/history/data_structures/DELAYV_f.js +++ /dev/null @@ -1,29 +0,0 @@ -function DELAYV_f () { - - - var nin = 1; - - var z0 = zeros(11,1); - - var zz0 = ...colon_operator(z0,1,$-1); - - var T = 1; - - var model = scicos_model(); - model.sim=list(new ScilabString(["delayv"]),new ScilabDouble([1])); - model.in1 = new ScilabDouble([nin],[1]); - model.out=new ScilabDouble([nin]); - model.evtin = new ScilabDouble([1]); - model.evtout = new ScilabDouble([1],[1]); - model.dstate=z0; - model.rpar=T/(size(zz0,"*")); - model.blocktype = new ScilabString(["d"]); - model.firing = new ScilabDouble([0,-1]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[...colon_operator(string,nin);strcat(string(z0(1,$-1)),";")],[string(T)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/DELAY_f.js b/src/main/webapp/history/data_structures/DELAY_f.js deleted file mode 100644 index 9f2ea31..0000000 --- a/src/main/webapp/history/data_structures/DELAY_f.js +++ /dev/null @@ -1,72 +0,0 @@ -function DELAY_f () { - - - var evtdly = EVTDLY_f("define"); - evtdly.graphics.orig = new ScilabDouble([243,296]); - evtdly.graphics.sz = new ScilabDouble([40,40]); - evtdly.graphics.flip = new ScilabBoolean([true]); - evtdly.graphics.exprs = new ScilabString(["0.1";"0"]); - evtdly.graphics.pein = new ScilabDouble([10]); - evtdly.graphics.peout = new ScilabDouble([7]); - evtdly.model.rpar = new ScilabDouble([0.1]); - evtdly.model.firing = new ScilabDouble([0]); - - var register = REGISTER_f("define"); - register.graphics.orig = new ScilabDouble([238,195]); - register.graphics.sz = new ScilabDouble([50,50]); - register.graphics.flip = new ScilabBoolean([true]); - register.graphics.exprs = new ScilabString(["0;0;0;0;0;0;0;0;0;0"]); - register.graphics.pin = new ScilabDouble([6]); - register.graphics.pout = new ScilabDouble([5]); - register.graphics.pein = new ScilabDouble([9]); - - var input_port = IN_f("define"); - input_port.graphics.orig = new ScilabDouble([92,210]); - input_port.graphics.sz = new ScilabDouble([20,20]); - input_port.graphics.flip = new ScilabBoolean([true]); - input_port.graphics.exprs = new ScilabString(["1";"1"]); - input_port.graphics.pout = new ScilabDouble([6]); - input_port.model.ipar = new ScilabDouble([1]); - - var output_port = OUT_f("define"); - output_port.graphics.orig = new ScilabDouble([440,210]); - output_port.graphics.sz = new ScilabDouble([20,20]); - output_port.graphics.flip = new ScilabBoolean([true]); - output_port.graphics.exprs = new ScilabString(["1";"1"]); - output_port.graphics.pin = new ScilabDouble([5]); - output_port.model.ipar = new ScilabDouble([1]); - - var split = CLKSPLIT_f("define"); - split.graphics.orig = new ScilabDouble([263],[271.2]); - split.graphics.pein = new ScilabDouble([7]); - split.graphics.peout = new ScilabDouble([9],[10]); - - var diagram = scicos_diagram(); - diagram.objs.push(input_port); - diagram.objs.push(output_port); - diagram.objs.push(register); - diagram.objs.push(evtdly); - diagram.objs.push(scicos_link({xx: new ScilabDouble([296.6],[440]),yy: new ScilabDouble([220],[220]),from: new ScilabDouble([3,1]),to: new ScilabDouble([2,1])})); - diagram.objs.push(scicos_link({xx: new ScilabDouble([112],[229.4]),yy: new ScilabDouble([220],[220]),from: new ScilabDouble([1,1]),to: new ScilabDouble([3,1])})); - diagram.objs.push(scicos_link({xx: new ScilabDouble([263],[263]),yy: new ScilabDouble([290.3],[271.2]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([4,1]),to: new ScilabDouble([8,1])})); - diagram.objs.push(split); - diagram.objs.push(scicos_link({xx: new ScilabDouble([263],[263]),yy: new ScilabDouble([271.2],[250.7]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([8,1]),to: new ScilabDouble([3,1])})); - diagram.objs.push(scicos_link({xx: new ScilabDouble([263],[308.6],[308.6],[263],[263]),yy: new ScilabDouble([271.2],[271.2],[367],[367],[341.7]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([8,2]),to: new ScilabDouble([4,1])})); - this.x=scicos_block(); - this.x.gui = new ScilabString(["DELAY_f"]); - this.x.graphics.sz = new ScilabDouble([2,2]); - this.x.graphics.gr_i = new ScilabDouble(); - this.x.graphics.pin = new ScilabDouble([0]); - this.x.graphics.pout = new ScilabDouble([0]); - this.x.model.sim = new ScilabString(["csuper"]); - this.x.model.in1 = new ScilabDouble([1]); - this.x.model.out = new ScilabDouble([1]); - this.x.model.blocktype = new ScilabString(["h"]); - this.x.model.dep_ut = new ScilabBoolean([false,false]); - this.x.model.rpar=diagram; - this.x.graphics.in_implicit = new ScilabString(["E"]); - this.x.graphics.in_style = new ScilabString([""]); - this.x.graphics.out_implicit = new ScilabString(["E"]); - this.x.graphics.out_style = new ScilabString([""]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/DEMUX.js b/src/main/webapp/history/data_structures/DEMUX.js deleted file mode 100644 index 083b3ec..0000000 --- a/src/main/webapp/history/data_structures/DEMUX.js +++ /dev/null @@ -1,20 +0,0 @@ -function DEMUX () { - - - var out = 2; - - var model = scicos_model(); - model.sim=list(new ScilabString(["multiplex"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([0]); - model.out=-...transpose([1:out]); - model.ipar=new ScilabDouble([out]); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = string(out); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([.5,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/DEMUX_f.js b/src/main/webapp/history/data_structures/DEMUX_f.js deleted file mode 100644 index 161b4a1..0000000 --- a/src/main/webapp/history/data_structures/DEMUX_f.js +++ /dev/null @@ -1,20 +0,0 @@ -function DEMUX_f () { - - - var out = 2; - - var model = scicos_model(); - model.sim=list(new ScilabString(["demux"]),new ScilabDouble([1])); - model.in1 = new ScilabDouble([0]); - model.out=-...transpose([1:out]); - model.ipar=new ScilabDouble([out]); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = string(out); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([.5,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/DERIV.js b/src/main/webapp/history/data_structures/DERIV.js deleted file mode 100644 index 12f3503..0000000 --- a/src/main/webapp/history/data_structures/DERIV.js +++ /dev/null @@ -1,16 +0,0 @@ -function DERIV () { - - - var model = scicos_model(); - model.sim=list(new ScilabString(["deriv"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([-1]); - model.out = new ScilabDouble([-1]); - model.blocktype = new ScilabString(["x"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = []; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/DFLIPFLOP.js b/src/main/webapp/history/data_structures/DFLIPFLOP.js deleted file mode 100644 index ef30761..0000000 --- a/src/main/webapp/history/data_structures/DFLIPFLOP.js +++ /dev/null @@ -1,97 +0,0 @@ -function DFLIPFLOP () { - - - var scs_m = scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[600,450,0,0,600,450],Title=["DFLIPFLOP"],tol=[0.0001,0.000001,1.000E-10,100001,0,0],tf=100000,context=" ",void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list())); - scs_m.objs.push(scicos_block(gui="CONST_m",graphics=scicos_graphics(orig=[109.62561,263.44465],sz=[20;20],flip=%t,theta=0,exprs="int8(0)",pin=[],pout=6,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=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(new ScilabInteger([0])),blocktype="d",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_block(gui="IFTHEL_f",graphics=scicos_graphics(orig=[239.98293,378.2166],sz=[60,60],flip=%t,theta=0,exprs=["1";"1"],pin=29,pout=[],pein=22,peout=[16;44],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim=list("ifthel",-1),in1=1,in2=1,intyp=-1,out=[],out2=[],outtyp=1,evtin=1,evtout=[1;1],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="l",firing=[-1,-1],dep_ut=[%t,%f],label="",nzcross=1,nmode=1,equations=list()),doc=list())); - scs_m.objs.push(scicos_block(gui="LOGICAL_OP",graphics=scicos_graphics(orig=[152.88902,260.24498],sz=[60,40],flip=%t,theta=0,exprs=["2";"1";"5";"0"],pin=[11;39],pout=5,pein=[],peout=[],gr_i=[],id="",in_implicit=["E";"E"],out_implicit="E"),model=scicos_model(sim=list("logicalop_i8",4),in1=[-1;-1],in2=[-2;-2],intyp=[5;5],out=-1,out2=-2,outtyp=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[1;0],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_block(gui="SAMPHOLD_m",graphics=scicos_graphics(orig=[233.72156,260.24498],sz=[40,40],flip=%t,theta=0,exprs="5",pin=5,pout=33,pein=42,peout=[],gr_i=[],id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("samphold4_m",4),in1=-1,in2=-2,intyp=5,out=-1,out2=-2,outtyp=5,evtin=1,evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="d",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([221.46044),yy: new ScilabDouble([280.24498),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([3,1,0]),to: new ScilabDouble([4,1,1])})); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([138.19704),yy: new ScilabDouble([273.44465),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([38,1,1])})); - scs_m.objs.push(scicos_block(gui="LOGICAL_OP",graphics=scicos_graphics(orig=[373.24106,309.46812],sz=[60,40],flip=%t,theta=0,exprs=["1";"5";"5";"0"],pin=36,pout=13,pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("logicalop_i8",4),in1=-1,in2=-2,intyp=5,out=-1,out2=-2,outtyp=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[5;0],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[199.48466,398.2166],sz=[20,20],flip=%t,theta=0,exprs="3",pin=[],pout=9,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=3,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([219.48466),yy: new ScilabDouble([408.2166),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([8,1,0]),to: new ScilabDouble([28,1,1])})); - scs_m.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[104.31759,276.91165],sz=[20,20],flip=%t,theta=0,exprs="1",pin=[],pout=11,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([124.31759),yy: new ScilabDouble([286.91165),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([10,1,0]),to: new ScilabDouble([3,1,1])})); - scs_m.objs.push(scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[457.40928,320.20131],sz=[20,20],flip=%t,theta=0,exprs="2",pin=13,pout=[],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=[],intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=2,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([441.81249),yy: new ScilabDouble([329.46812),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([7,1,0]),to: new ScilabDouble([12,1,1])})); - scs_m.objs.push(scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[376.4669,270.83282],sz=[20,20],flip=%t,theta=0,exprs="1",pin=37,pout=[],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=[],intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - - var scs_m_1 = scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[600,450,0,0,600,450],Title="Untitled",tol=[0.0001,0.000001,1.000E-10,100001,0,0],tf=100000,context=[],void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list())); - scs_m_1.objs.push(scicos_block(gui="ANDLOG_f",graphics=scicos_graphics(orig=[194,133],sz=[60,60],flip=%t,theta=0,exprs=[],pin=[],pout=9,pein=[4;11],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="andlog",in1=[],in2=[],intyp=1,out=1,out2=[],outtyp=1,evtin=[1;1],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="d",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_block(gui="CLKIN_f",graphics=scicos_graphics(orig=[149,287],sz=[20,20],flip=%t,theta=0,exprs="1",pin=[],pout=[],pein=[],peout=4,gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=[],evtout=1,state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="d",firing=-1,dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_block(gui="CLKOUT_f",graphics=scicos_graphics(orig=[450,83],sz=[20,20],flip=%t,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=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([169),yy: new ScilabDouble([297),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([2,1]),to: new ScilabDouble([1,1])})); - scs_m_1.objs.push(scicos_block(gui="CLKIN_f",graphics=scicos_graphics(orig=[141,330],sz=[20,20],flip=%t,theta=0,exprs="2",pin=[],pout=[],pein=[],peout=6,gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=[],evtout=1,state=[],dstate=[],odstate=list(),rpar=[],ipar=2,opar=list(),blocktype="d",firing=-1,dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([161),yy: new ScilabDouble([340),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([5,1]),to: new ScilabDouble([10,1])})); - scs_m_1.objs.push(scicos_block(gui="IFTHEL_f",graphics=scicos_graphics(orig=[331,137],sz=[60,60],flip=%t,theta=0,exprs=["1";"1"],pin=9,pout=[],pein=12,peout=[8;0],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim=list("ifthel",-1),in1=1,in2=1,intyp=-1,out=[],out2=[],outtyp=1,evtin=1,evtout=[1;1],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="l",firing=[-1,-1],dep_ut=[%t,%f],label="",nzcross=1,nmode=1,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([351),yy: new ScilabDouble([131.29),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([7,1]),to: new ScilabDouble([3,1])})); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([262.57),yy: new ScilabDouble([163),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,1]),to: new ScilabDouble([7,1])})); - scs_m_1.objs.push(scicos_block(gui="CLKSPLIT_f",graphics=scicos_graphics(orig=[234;275.78348],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=[],pout=[],pein=6,peout=[11;12],gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim="split",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=1,evtout=[1;1],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="d",firing=[%f,%f,%f],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([234),yy: new ScilabDouble([275.78),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([10,1]),to: new ScilabDouble([1,2])})); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([234),yy: new ScilabDouble([275.78),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([10,2]),to: new ScilabDouble([7,1])})); - scs_m.objs.push(scicos_block(gui="ANDBLK",graphics=scicos_graphics(orig=[233.73039,318.74407],sz=[40,40],flip=%t,theta=0,exprs=[],pin=[],pout=[],pein=[19;16],peout=17,gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim="csuper",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=[1;1],evtout=1,state=[],dstate=[],odstate=list(),rpar=scs_m_1,ipar=[],opar=list(),blocktype="h",firing=%f,dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([259.98293),yy: new ScilabDouble([372.50232),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([2,1,0]),to: new ScilabDouble([15,2,1])})); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([253.73039),yy: new ScilabDouble([313.02978),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([15,1,0]),to: new ScilabDouble([41,1,1])})); - scs_m_1.push(tlist(new ScilabString([600,450,0,0,600,450]),props=scicos_params(wpar=,Title=,tol=,tf=30,context=" ",void1=,options=tlist(,list(%t,new ScilabDouble([33)]),,,list(,),),void2=,void3=,doc=list()))); - scs_m_1.objs.push(scicos_block(gui="EDGETRIGGER",graphics=scicos_graphics(orig=[288.58631,257.1131],sz=[60,40],flip=%t,theta=0,exprs="1",pin=5,pout=3,pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("edgetrig",4),in1=1,in2=[],intyp=1,out=1,out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=0,odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=1,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_block(gui="IFTHEL_f",graphics=scicos_graphics(orig=[388.28869,247.1131],sz=[60,60],flip=%t,theta=0,exprs=["0";"0"],pin=3,pout=[],pein=[],peout=[7;0],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim=list("ifthel",-1),in1=1,in2=[],intyp=1,out=[],out2=1,outtyp=[],evtin=[],evtout=[1;1],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="l",firing=[-1,-1],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([357.15774),yy: new ScilabDouble([277.1131),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([2,1,1])})); - scs_m_1.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[240.01488,267.1131],sz=[20,20],flip=%t,theta=0,exprs="1",pin=[],pout=5,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=-1,out=-1,out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([260.01488),yy: new ScilabDouble([277.1131),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([4,1,0]),to: new ScilabDouble([1,1,1])})); - scs_m_1.objs.push(scicos_block(gui="CLKOUTV_f",graphics=scicos_graphics(orig=[398.28869,181.39881],sz=[20,30],flip=%t,theta=0,exprs="1",pin=[],pout=[],pein=7,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=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([408.28869),yy: new ScilabDouble([241.39881),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([2,1,0]),to: new ScilabDouble([6,1,1])})); - scs_m.objs.push(scicos_block(gui="EDGE_TRIGGER",graphics=scicos_graphics(orig=[133.90637,385.342],sz=[60,40],flip=%t,theta=0,exprs=[],pin=26,pout=[],pein=[],peout=19,gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="csuper",in1=-1,in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=[],evtout=1,state=[],dstate=[],odstate=list(),rpar=scs_m_1,ipar=[],opar=list(),blocktype="h",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([163.90637),yy: new ScilabDouble([379.62771),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([18,1,0]),to: new ScilabDouble([15,1,1])})); - scs_m.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[79.594811,395.47647],sz=[20,20],flip=%t,theta=0,exprs="2",pin=[],pout=23,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=2,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.push(tlist(new ScilabString([600,450,0,0,600,450]),props=scicos_params(wpar=,Title=,tol=,tf=30,context=" ",void1=,options=tlist(,list(%t,new ScilabDouble([33)]),,,list(,),),void2=,void3=,doc=list()))); - scs_m_1.objs.push(scicos_block(gui="IFTHEL_f",graphics=scicos_graphics(orig=[150.65045,143.82208],sz=[60,60],flip=%t,theta=0,exprs=["0";"0"],pin=6,pout=[],pein=[],peout=[3;4],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim=list("ifthel",-1),in1=1,in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=[],evtout=[1;1],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="l",firing=[-1,-1],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_block(gui="CLKSOMV_f",graphics=scicos_graphics(orig=[169.82143,96.146231],sz=[16.666667,16.666667],flip=%t,theta=0,exprs=[],pin=[],pout=[],pein=[3;4;0],peout=8,gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim="sum",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=[1;1;1],evtout=1,state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="d",firing=-1,dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([170.65045),yy: new ScilabDouble([138.10779),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([2,1,1])})); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([190.65045),yy: new ScilabDouble([138.10779),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([1,2,0]),to: new ScilabDouble([2,2,1])})); - scs_m_1.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[102.07902,163.82208],sz=[20,20],flip=%t,theta=0,exprs="1",pin=[],pout=6,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=-1,out=-1,out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([122.07902),yy: new ScilabDouble([173.82208),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([5,1,0]),to: new ScilabDouble([1,1,1])})); - scs_m_1.objs.push(scicos_block(gui="CLKOUTV_f",graphics=scicos_graphics(orig=[168.15476,38.527183],sz=[20,30],flip=%t,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=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([178.15476),yy: new ScilabDouble([98.527183),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([2,1,0]),to: new ScilabDouble([7,1,1])})); - scs_m.objs.push(scicos_block(gui="Extract_Activation",graphics=scicos_graphics(orig=[239.82193,456.57677],sz=[60,40],flip=%t,theta=0,exprs=[],pin=31,pout=[],pein=[],peout=22,gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="csuper",in1=-1,in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=[],evtout=1,state=[],dstate=[],odstate=list(),rpar=scs_m_1,ipar=[],opar=list(),blocktype="h",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([269.82193),yy: new ScilabDouble([450.86248),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([21,1,0]),to: new ScilabDouble([2,1,1])})); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([99.594811),yy: new ScilabDouble([405.47647),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([20,1,0]),to: new ScilabDouble([25,1,1])})); - scs_m.objs.push(scicos_block(gui="SUM_f",graphics=scicos_graphics(orig=[200.5252,469.13173],sz=[16.666667,16.666667],flip=%t,theta=0,exprs=[],pin=[27;0;30],pout=31,pein=[],peout=[],gr_i=[],id="",in_implicit=["E";"E";"E"],out_implicit="E"),model=scicos_model(sim=list("plusblk",2),in1=[-1;-1;-1],in2=[],intyp=1,out=-1,out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_block(gui="SPLIT_f",graphics=scicos_graphics(orig=[110.25582;405.42077],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=23,pout=[26;27],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=["E";"E";"E"]),model=scicos_model(sim="lsplit",in1=-1,in2=[],intyp=1,out=[-1;-1;-1],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([110.25582),yy: new ScilabDouble([405.42077),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([25,1,0]),to: new ScilabDouble([18,1,1])})); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([110.25582),yy: new ScilabDouble([405.42077),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([25,2,0]),to: new ScilabDouble([24,1,1])})); - scs_m.objs.push(scicos_block(gui="SPLIT_f",graphics=scicos_graphics(orig=[222.54128;408.2166],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=9,pout=[29;30],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=["E";"E";"E"]),model=scicos_model(sim="lsplit",in1=-1,in2=[],intyp=1,out=[-1;-1;-1],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([222.54128),yy: new ScilabDouble([408.2166),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([28,1,0]),to: new ScilabDouble([2,1,1])})); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([222.54128),yy: new ScilabDouble([408.2166),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([28,2,0]),to: new ScilabDouble([24,3,1])})); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([219.57282),yy: new ScilabDouble([477.46506),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([24,1,0]),to: new ScilabDouble([21,1,1])})); - scs_m.objs.push(scicos_block(gui="SELECT_m",graphics=scicos_graphics(orig=[298.86371,253.57321],sz=[40,40],flip=%t,theta=0,exprs=["5";"2";"1"],pin=[33;40],pout=34,pein=[43;44],peout=[],gr_i=[],id="",in_implicit=["E";"E"],out_implicit="E"),model=scicos_model(sim=list("selector_m",4),in1=[-1;-1],in2=[-2;-2],intyp=[5;5],out=-1,out2=-2,outtyp=5,evtin=[1;1],evtout=[],state=[],dstate=1,odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([282.29299),yy: new ScilabDouble([280.24498),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([4,1,0]),to: new ScilabDouble([32,1,1])})); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([347.43514),yy: new ScilabDouble([273.57321),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([32,1,0]),to: new ScilabDouble([35,1,1])})); - scs_m.objs.push(scicos_block(gui="SPLIT_f",graphics=scicos_graphics(orig=[357.57328,280.83282],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=34,pout=[36;37],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=["E";"E";"E"]),model=scicos_model(sim="lsplit",in1=-1,in2=[],intyp=1,out=[-1;-1;-1],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([357.57328),yy: new ScilabDouble([280.83282),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([35,1,0]),to: new ScilabDouble([7,1,1])})); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([357.57328),yy: new ScilabDouble([280.83282),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([35,2,0]),to: new ScilabDouble([14,1,1])})); - scs_m.objs.push(scicos_block(gui="SPLIT_f",graphics=scicos_graphics(orig=[140.34523;273.49157],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=6,pout=[39;40],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=["E";"E";"E"]),model=scicos_model(sim="lsplit",in1=-1,in2=[],intyp=1,out=[-1;-1;-1],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([140.34523),yy: new ScilabDouble([273.49157),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([38,1,0]),to: new ScilabDouble([3,2,1])})); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([140.34523),yy: new ScilabDouble([273.49157),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([38,2,0]),to: new ScilabDouble([32,2,1])})); - scs_m.objs.push(scicos_block(gui="CLKSPLIT_f",graphics=scicos_graphics(orig=[253.72572;309.29537],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=[],pout=[],pein=17,peout=[42;43],gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim="split",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=1,evtout=[1;1],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="d",firing=[%f,%f,%f],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([253.72572),yy: new ScilabDouble([309.29537),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([41,1,0]),to: new ScilabDouble([4,1,1])})); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([253.72572),yy: new ScilabDouble([309.29537),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([41,2,0]),to: new ScilabDouble([32,1,1])})); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([279.98293),yy: new ScilabDouble([372.50232),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([2,2,0]),to: new ScilabDouble([32,2,1])})); - - var model = scicos_model(); - model.sim = new ScilabString(["csuper"]); - model.in1 = new ScilabDouble([1],[1],[1]); - model.in2 = new ScilabDouble([1],[1],[1]); - model.out = new ScilabDouble([1],[1]); - model.out2 = new ScilabDouble([1],[1]); - model.intyp = new ScilabDouble([5,1,1]); - model.outtyp = new ScilabDouble([5,5]); - model.blocktype = new ScilabString(["h"]); - model.firing = new ScilabBoolean([false]); - model.dep_ut = new ScilabBoolean([true,false]); - model.rpar=scs_m; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,3]),model,[],gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/DIFF_f.js b/src/main/webapp/history/data_structures/DIFF_f.js deleted file mode 100644 index 18b0711..0000000 --- a/src/main/webapp/history/data_structures/DIFF_f.js +++ /dev/null @@ -1,19 +0,0 @@ -function DIFF_f () { - - - var x0 = [[0],[0]]; - - var model = scicos_model(); - model.sim=list(new ScilabString(["diffblk"]),new ScilabDouble([10001])); - model.in1 = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.state=new ScilabDouble([x0]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([false,true]); - - var exprs = [[strcat(sci2exp(x0(1)))],[strcat(sci2exp(x0(2)))]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/DLATCH.js b/src/main/webapp/history/data_structures/DLATCH.js deleted file mode 100644 index f2d9e89..0000000 --- a/src/main/webapp/history/data_structures/DLATCH.js +++ /dev/null @@ -1,41 +0,0 @@ -function DLATCH () { - - - var scs_m = scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[600,450,0,0,600,450],Title=["DLATCH"],tol=[0.0001,0.000001,1.000E-10,100001,0,0],tf=100000,context=" ",void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list())); - scs_m.objs.push(scicos_block(gui="CONST_m",graphics=scicos_graphics(orig=[109.62561,263.44465],sz=[20;20],flip=%t,theta=0,exprs="int8(0)",pin=[],pout=7,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=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(new ScilabInteger([0])),blocktype="d",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_block(gui="IFTHEL_f",graphics=scicos_graphics(orig=[233.37693,320.30536],sz=[60,60],flip=%t,theta=0,exprs=["0";"1"],pin=13,pout=[],pein=[],peout=[6;0],gr_i=list(["txt=[''If,in>0'';'','';'',then, , else'']";"xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim=list("ifthel",-1),in1=1,in2=1,intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[1;1],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="l",firing=[-1,-1],dep_ut=[%t,%f],label="",nzcross=1,nmode=1,equations=list()),doc=list())); - scs_m.objs.push(scicos_block(gui="LOGICAL_OP",graphics=scicos_graphics(orig=[152.88902,260.24498],sz=[60,40],flip=%t,theta=0,exprs=["2";"1";"5";"0"],pin=[15;7],pout=5,pein=[],peout=[],gr_i=list("xstringb(orig(1),orig(2),[''Logical,Op,'';OPER],sz(1),sz(2),''fill'');",8),id="",in_implicit=["E";"E"],out_implicit="E"),model=scicos_model(sim=list("logicalop_i8",4),in1=[-1;-1],in2=[-2;-2],intyp=[5;5],out=-1,out2=-2,outtyp=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[1;0],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_block(gui="SAMPHOLD_m",graphics=scicos_graphics(orig=[233.72156,260.24498],sz=[40,40],flip=%t,theta=0,exprs="5",pin=5,pout=9,pein=6,peout=[],gr_i=list("xstringb(orig(1),orig(2),''S/H'',sz(1),sz(2),''fill'')",8),id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("samphold4_m",4),in1=-1,in2=-2,intyp=5,out=-1,out2=-2,outtyp=5,evtin=1,evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="d",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([221.46044),yy: new ScilabDouble([280.24498),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([3,1,0]),to: new ScilabDouble([4,1,1])})); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([253.37693),yy: new ScilabDouble([314.59108),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([2,1,0]),to: new ScilabDouble([4,1,1])})); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([138.19704),yy: new ScilabDouble([273.44465),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([3,2,1])})); - scs_m.objs.push(scicos_block(gui="LOGICAL_OP",graphics=scicos_graphics(orig=[317.46698,309.46812],sz=[60,40],flip=%t,theta=0,exprs=["1";"5";"5";"0"],pin=11,pout=17,pein=[],peout=[],gr_i=list("xstringb(orig(1),orig(2),[''Logical,Op,'';OPER],sz(1),sz(2),''fill'');",8),id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("logicalop_i8",4),in1=-1,in2=-2,intyp=5,out=-1,out2=-2,outtyp=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[5;0],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([282.29299),yy: new ScilabDouble([280.24498),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([4,1,0]),to: new ScilabDouble([10,1,1])})); - scs_m.objs.push(scicos_block(gui="SPLIT_f",graphics=scicos_graphics(orig=[305.09603,280.83282],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=9,pout=[11;19],pein=[],peout=[],gr_i=list([],8),id="",in_implicit="E",out_implicit=["E";"E";"E"]),model=scicos_model(sim="lsplit",in1=-1,in2=[],intyp=1,out=[-1;-1;-1],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([305.09603),yy: new ScilabDouble([280.83282),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([10,1,0]),to: new ScilabDouble([8,1,1])})); - scs_m.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[184.8055,340.30536],sz=[20,20],flip=%t,theta=0,exprs="2",pin=[],pout=13,pein=[],peout=[],gr_i=list(" ",8),id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=2,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([204.8055),yy: new ScilabDouble([350.30536),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([12,1,0]),to: new ScilabDouble([2,1,1])})); - scs_m.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[104.31759,276.91165],sz=[20,20],flip=%t,theta=0,exprs="1",pin=[],pout=15,pein=[],peout=[],gr_i=list(" ",8),id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([124.31759),yy: new ScilabDouble([286.91165),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([14,1,0]),to: new ScilabDouble([3,1,1])})); - scs_m.objs.push(scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[406.03841,319.46812],sz=[20,20],flip=%t,theta=0,exprs="2",pin=17,pout=[],pein=[],peout=[],gr_i=list(" ",8),id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=[],intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=2,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([386.03841),yy: new ScilabDouble([329.46812),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([8,1,0]),to: new ScilabDouble([16,1,1])})); - scs_m.objs.push(scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[325.09603,270.83282],sz=[20,20],flip=%t,theta=0,exprs="1",pin=19,pout=[],pein=[],peout=[],gr_i=list(" ",8),id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=[],intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([305.09603),yy: new ScilabDouble([280.83282),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([10,2,0]),to: new ScilabDouble([18,1,1])})); - - var model = scicos_model(); - model.sim = new ScilabString(["csuper"]); - model.in1 = new ScilabDouble([1],[1]); - model.in2 = new ScilabDouble([1],[1]); - model.out = new ScilabDouble([1],[1]); - model.out2 = new ScilabDouble([1],[1]); - model.intyp = new ScilabDouble([5,-1]); - model.outtyp = new ScilabDouble([5,5]); - model.blocktype = new ScilabString(["h"]); - model.firing = new ScilabBoolean([false]); - model.dep_ut = new ScilabBoolean([true,false]); - model.rpar=scs_m; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,3]),model,[],gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/DLR.js b/src/main/webapp/history/data_structures/DLR.js deleted file mode 100644 index a42f9d9..0000000 --- a/src/main/webapp/history/data_structures/DLR.js +++ /dev/null @@ -1,29 +0,0 @@ -function DLR () { - - - var x0 = 0; - - var A = -1; - - var B = 1; - - var C = 1; - - var D = 0; - - var exprs = ["1";"1+z"]; - - var model = scicos_model(); - model.sim=list(new ScilabString(["dsslti4"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.evtin = new ScilabDouble([1]); - model.dstate=...x0; - model.rpar = new ScilabDouble([...colon_operator(A,:)],[...B],[C(,)],[...D]); - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/DLRADAPT_f.js b/src/main/webapp/history/data_structures/DLRADAPT_f.js deleted file mode 100644 index 08e7047..0000000 --- a/src/main/webapp/history/data_structures/DLRADAPT_f.js +++ /dev/null @@ -1,33 +0,0 @@ -function DLRADAPT_f () { - - - var p = [[0],[1]]; - - var rn = []; - - var rd = [[0.2+0.8*%i,0.2-0.8*%i],[0.3+0.7*%i,0.3-0.7*%i]]; - - var g = [[1],[1]]; - - var last_u = []; - - var last_y = [[0],[0]]; - - var model = scicos_model(); - model.sim = new ScilabString(["dlradp"]); - model.in1 = new ScilabDouble([1],[1]); - model.out = new ScilabDouble([1]); - model.evtin = new ScilabDouble([1]); - model.dstate = new ScilabDouble([last_u],[last_y]); - model.rpar = new ScilabDouble([...colon_operator(p,:)],[real(...rn)],[imag(...rn)],[real(...rd)],[imag(rd(,))],[...g]); - model.ipar = new ScilabDouble([0],[2],[2]); - model.blocktype = new ScilabString(["d"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[sci2exp(p)],[sci2exp(rn)],[sci2exp(rd,0)],[sci2exp(g)],[sci2exp(last_u)],[sci2exp(last_y)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/DLSS.js b/src/main/webapp/history/data_structures/DLSS.js deleted file mode 100644 index e946ae2..0000000 --- a/src/main/webapp/history/data_structures/DLSS.js +++ /dev/null @@ -1,29 +0,0 @@ -function DLSS () { - - - var x0 = 0; - - var A = -1; - - var B = 1; - - var C = 1; - - var D = 0; - - var model = scicos_model(); - model.sim=list(new ScilabString(["dsslti4"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.evtin = new ScilabDouble([1]); - model.dstate=...x0; - model.rpar = new ScilabDouble([...colon_operator(A,:)],[...B],[C(,)],[...D]); - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = [[strcat(sci2exp(A))],[strcat(sci2exp(B))],[strcat(sci2exp(C))],[strcat(sci2exp(D))],[strcat(sci2exp(x0))]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/DOLLAR.js b/src/main/webapp/history/data_structures/DOLLAR.js deleted file mode 100644 index b88da24..0000000 --- a/src/main/webapp/history/data_structures/DOLLAR.js +++ /dev/null @@ -1,24 +0,0 @@ -function DOLLAR () { - - - var z = 0; - - var inh = 0; - - var in1 = 1; - - var exprs = string([z],[inh]); - - var model = scicos_model(); - model.sim=list(new ScilabString(["dollar4"]),new ScilabDouble([4])); - model.in1.push(new ScilabDouble([in1])); - model.out=new ScilabDouble([in1]); - model.evtin = new ScilabDouble([1-inh]); - model.dstate=new ScilabDouble([z]); - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/DOLLAR_f.js b/src/main/webapp/history/data_structures/DOLLAR_f.js deleted file mode 100644 index 19d03d4..0000000 --- a/src/main/webapp/history/data_structures/DOLLAR_f.js +++ /dev/null @@ -1,24 +0,0 @@ -function DOLLAR_f () { - - - var z = 0; - - var inh = 0; - - var in1 = 1; - - var exprs = string([z],[inh]); - - var model = scicos_model(); - model.sim = new ScilabString(["dollar"]); - model.in1.push(new ScilabDouble([in1])); - model.out=new ScilabDouble([in1]); - model.evtin = new ScilabDouble([1-inh]); - model.dstate=new ScilabDouble([z]); - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/DOLLAR_m.js b/src/main/webapp/history/data_structures/DOLLAR_m.js deleted file mode 100644 index 155f35b..0000000 --- a/src/main/webapp/history/data_structures/DOLLAR_m.js +++ /dev/null @@ -1,24 +0,0 @@ -function DOLLAR_m () { - - - var z = 0; - - var inh = 0; - - var in1 = 1; - - var exprs = string([z],[inh]); - - var model = scicos_model(); - model.sim=list(new ScilabString(["dollar4"]),new ScilabDouble([4])); - model.in1.push(new ScilabDouble([in1])); - model.out=new ScilabDouble([in1]); - model.evtin = new ScilabDouble([1-inh]); - model.dstate=new ScilabDouble([z]); - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/Diode.js b/src/main/webapp/history/data_structures/Diode.js deleted file mode 100644 index 3c2d979..0000000 --- a/src/main/webapp/history/data_structures/Diode.js +++ /dev/null @@ -1,34 +0,0 @@ -function Diode () { - - - var Ids = 1.e-6; - - var Vt = 0.04; - - var Maxexp = 15; - - var R = 1.e8; - - var model = scicos_model(); - model.rpar = new ScilabDouble([Ids],[Vt],[Maxexp],[R]); - model.in1 = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.sim = new ScilabString(["Diode"]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var mo = modelica(); - mo.model = new ScilabString(["Diode"]); - mo.inputs = new ScilabString(["p"]); - mo.outputs = new ScilabString(["n"]); - mo.parameters=list(new ScilabString(["Ids"),new ScilabString(["Vt"]),new ScilabString(["Maxexp"]),new ScilabString(["R"]]),list(Ids,Vt,Maxexp,R)); - model.equations=mo; - - var exprs = string([Ids],[Vt],[Maxexp],[R]); - - var gr_i = []; - this.x=standard_define([2,1],model,exprs,list(gr_i,0)); - this.x.graphics.in_implicit = new ScilabString(["I"]); - this.x.graphics.out_implicit = new ScilabString(["I"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/EDGE_TRIGGER.js b/src/main/webapp/history/data_structures/EDGE_TRIGGER.js deleted file mode 100644 index 0ca790b..0000000 --- a/src/main/webapp/history/data_structures/EDGE_TRIGGER.js +++ /dev/null @@ -1,87 +0,0 @@ -function EDGE_TRIGGER () { - - - var scs_m_1 = scicos_diagram(); - scs_m_1.objs.push(EDGETRIGGER("define")); - scs_m_1.objs.push(IFTHEL_f("define")); - scs_m_1.objs.push(IN_f("define")); - scs_m_1.objs.push(CLKOUTV_f("define")); - scs_m_1.objs.push(scicos_link({})); - scs_m_1.objs.push(scicos_link({})); - scs_m_1.objs.push(scicos_link({})); - - var blk = scs_m_1.objs(1); - - var graphics = blk.graphics; - - var model = blk.model; - graphics.orig = new ScilabDouble([60,0]); - graphics.sz = new ScilabDouble([60,40]); - graphics.exprs = new ScilabString(["0"]); - model.ipar = new ScilabDouble([0]); - graphics.pin = new ScilabDouble([5]); - graphics.pout = new ScilabDouble([6]); - blk.graphics=graphics; - blk.model=model; - scs_m_1.objs.push(blk); - blk=scs_m_1.objs(2); - graphics=blk.graphics; - model=blk.model; - graphics.orig = new ScilabDouble([160,0]); - graphics.sz = new ScilabDouble([60,40]); - graphics.exprs = new ScilabString(["0";"0"]); - model.evtin = new ScilabDouble(); - model.nzcross = new ScilabDouble([0]); - model.nmode = new ScilabDouble([0]); - graphics.pin = new ScilabDouble([6]); - graphics.peout = new ScilabDouble([7],[0]); - blk.graphics=graphics; - blk.model=model; - scs_m_1.objs.push(blk); - blk=scs_m_1.objs(3); - graphics=blk.graphics; - model=blk.model; - graphics.orig = new ScilabDouble([0,10]); - graphics.sz = new ScilabDouble([20,20]); - graphics.exprs = new ScilabString(["1"]); - model.ipar = new ScilabDouble([1]); - graphics.pout = new ScilabDouble([5]); - blk.graphics=graphics; - blk.model=model; - scs_m_1.objs.push(blk); - blk=scs_m_1.objs(4); - graphics=blk.graphics; - model=blk.model; - graphics.orig = new ScilabDouble([170,-60]); - graphics.sz = new ScilabDouble([20,20]); - graphics.exprs = new ScilabString(["1"]); - model.ipar = new ScilabDouble([1]); - graphics.pein = new ScilabDouble([7]); - blk.graphics=graphics; - blk.model=model; - scs_m_1.objs.push(blk); - - var lnk = scs_m_1.objs(5); - lnk.from = new ScilabDouble([3,1,0]); - lnk.to = new ScilabDouble([1,1,1]); - scs_m_1.objs.push(lnk); - lnk=scs_m_1.objs(6); - lnk.from = new ScilabDouble([1,1,0]); - lnk.to = new ScilabDouble([2,1,1]); - scs_m_1.objs.push(lnk); - lnk=scs_m_1.objs(7); - lnk.ct = new ScilabDouble([5,-1]); - lnk.from = new ScilabDouble([2,1,0]); - lnk.to = new ScilabDouble([4,1,1]); - scs_m_1.objs.push(lnk); - clear blk lnk - model=scicos_model(); - model.sim = new ScilabString(["csuper"]); - model.in1 = new ScilabDouble([1]); - model.evtout = new ScilabDouble([1]); - model.rpar=scs_m_1; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,[],gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/ENDBLK.js b/src/main/webapp/history/data_structures/ENDBLK.js deleted file mode 100644 index cc253ef..0000000 --- a/src/main/webapp/history/data_structures/ENDBLK.js +++ /dev/null @@ -1,13 +0,0 @@ -function ENDBLK () { - - - var 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,0,7,1.4],Title="ENDBLK",tol=[0.0001,0.000001,1.000E-10,100001,0,0],tf=100000,context=" ",void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list())); - scs_m_1.objs.push(scicos_block(gui="END_c",graphics=scicos_graphics(orig=[272.104,249.11733],sz=[40,40],flip=%t,theta=0,exprs="1.000E+08",pin=[],pout=[],pein=2,peout=2,gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim=list("scicosexit",4),in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=1,evtout=1,state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="d",firing=1.000E+08,dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([292.104),yy: new ScilabDouble([243.40305),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([1,1,1])})); - - var model = scicos_model(sim="csuper",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=scs_m_1,ipar=[],opar=list(),blocktype="h",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,[],gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/END_c.js b/src/main/webapp/history/data_structures/END_c.js deleted file mode 100644 index 027d6ca..0000000 --- a/src/main/webapp/history/data_structures/END_c.js +++ /dev/null @@ -1,19 +0,0 @@ -function END_c () { - - - var tf = 100000000; - - var model = scicos_model(); - model.sim=list(new ScilabString(["scicosexit"]),new ScilabDouble([4])); - model.evtin = new ScilabDouble([1]); - model.evtout = new ScilabDouble([1]); - model.firing=new ScilabDouble([tf]); - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = string(tf); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/ESELECT_f.js b/src/main/webapp/history/data_structures/ESELECT_f.js deleted file mode 100644 index 7831538..0000000 --- a/src/main/webapp/history/data_structures/ESELECT_f.js +++ /dev/null @@ -1,24 +0,0 @@ -function ESELECT_f () { - - - var out = 2; - - var model = scicos_model(); - model.sim=list(new ScilabString(["eselect"]),new ScilabDouble([-2])); - model.in1 = new ScilabDouble([1]); - model.in2 = new ScilabDouble([1]); - model.intyp = new ScilabDouble([-1]); - model.evtin = new ScilabDouble([1]); - model.evtout=ones(out,1); - model.blocktype = new ScilabString(["l"]); - model.firing=-ones(out,1); - model.dep_ut = new ScilabBoolean([true,false]); - model.nmode = new ScilabDouble([0]); - model.nzcross = new ScilabDouble([0]); - - var gr_i = []; - - var exprs = [[string(out)],[string(1)],[string(model.nmode)]]; - this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/EVTDLY_c.js b/src/main/webapp/history/data_structures/EVTDLY_c.js deleted file mode 100644 index 7ada20f..0000000 --- a/src/main/webapp/history/data_structures/EVTDLY_c.js +++ /dev/null @@ -1,22 +0,0 @@ -function EVTDLY_c () { - - - var dt = 0.1; - - var ff = 0.0; - - var model = scicos_model(); - model.sim=list(new ScilabString(["evtdly4"]),new ScilabDouble([4])); - model.evtin = new ScilabDouble([1]); - model.evtout = new ScilabDouble([1]); - model.rpar = new ScilabDouble([dt],[ff]); - model.blocktype = new ScilabString(["d"]); - model.firing=new ScilabDouble([ff]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = [[string(dt)],[sci2exp(ff)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/EVTGEN_f.js b/src/main/webapp/history/data_structures/EVTGEN_f.js deleted file mode 100644 index dc7754e..0000000 --- a/src/main/webapp/history/data_structures/EVTGEN_f.js +++ /dev/null @@ -1,18 +0,0 @@ -function EVTGEN_f () { - - - var tt = 0; - - var model = scicos_model(); - model.sim = new ScilabString(["trash"]); - model.evtout = new ScilabDouble([1]); - model.blocktype = new ScilabString(["d"]); - model.firing=new ScilabDouble([tt]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = string(tt); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/EVTVARDLY.js b/src/main/webapp/history/data_structures/EVTVARDLY.js deleted file mode 100644 index 075c318..0000000 --- a/src/main/webapp/history/data_structures/EVTVARDLY.js +++ /dev/null @@ -1,19 +0,0 @@ -function EVTVARDLY () { - - - var model = scicos_model(); - model.sim=list(new ScilabString(["evtvardly"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([1]); - model.evtin = new ScilabDouble([1]); - model.evtout = new ScilabDouble([1]); - model.blocktype = new ScilabString(["d"]); - model.firing = new ScilabDouble([-1]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = string(model.firing); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/EXPBLK_m.js b/src/main/webapp/history/data_structures/EXPBLK_m.js deleted file mode 100644 index 7cfd9af..0000000 --- a/src/main/webapp/history/data_structures/EXPBLK_m.js +++ /dev/null @@ -1,25 +0,0 @@ -function EXPBLK_m () { - - - var in1 = 1; - - var a = %e; - - var model = scicos_model(); - model.sim=list(new ScilabString(["expblk_m"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2]); - model.out = new ScilabDouble([-1]); - model.out2 = new ScilabDouble([-2]); - model.intyp = new ScilabDouble([1]); - model.outtyp = new ScilabDouble([1]); - model.rpar=new ScilabBoolean([a]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = ["%e"]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/EXPRESSION.js b/src/main/webapp/history/data_structures/EXPRESSION.js deleted file mode 100644 index aad864c..0000000 --- a/src/main/webapp/history/data_structures/EXPRESSION.js +++ /dev/null @@ -1,28 +0,0 @@ -function EXPRESSION () { - - - var in1 = [[1],[1]]; - - var out = 1; - - var txt = "(u1>0)*sin(u2)^2"; - deff("%foo(u1,u2)",txt) - - var [%ok1,ipar,rpar,nz] = compile_expr(%foo); - - var model = scicos_model(); - model.sim=list(new ScilabString(["evaluate_expr"]),new ScilabDouble([4])); - model.in1.push(new ScilabDouble([in1])); - model.out=new ScilabDouble([out]); - model.rpar=rpar; - model.ipar=ipar; - model.nzcross=nz; - model.nmode=nz; - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [string(size(in1,"*"));txt;"1"]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([5,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/EXTRACT.js b/src/main/webapp/history/data_structures/EXTRACT.js deleted file mode 100644 index 71f82b7..0000000 --- a/src/main/webapp/history/data_structures/EXTRACT.js +++ /dev/null @@ -1,31 +0,0 @@ -function EXTRACT () { - - - var model = scicos_model(); - - var function_name = "extract"; - - var funtyp = 4; - model.sim=list(function_name,funtyp); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2]); - model.intyp = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.out2 = new ScilabDouble([1]); - model.outtyp = new ScilabDouble([1]); - model.evtin = new ScilabDouble(); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble([1,1,1,1]); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = [[sci2exp(1)],[sci2exp([1])],[sci2exp([1])]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/EXTRACTBITS.js b/src/main/webapp/history/data_structures/EXTRACTBITS.js deleted file mode 100644 index a7e621b..0000000 --- a/src/main/webapp/history/data_structures/EXTRACTBITS.js +++ /dev/null @@ -1,23 +0,0 @@ -function EXTRACTBITS () { - - - var numb = []; - - var model = scicos_model(); - model.sim=list(new ScilabString(["extract_bit_32_UH0"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([1]); - model.in2 = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.out2 = new ScilabDouble([1]); - model.intyp = new ScilabDouble([3]); - model.outtyp = new ScilabDouble([3]); - model.ipar = new ScilabDouble([0,numb]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[sci2exp(3)],[sci2exp(1)],[sci2exp(0)],[sci2exp(0)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/EXTRACTOR.js b/src/main/webapp/history/data_structures/EXTRACTOR.js deleted file mode 100644 index fe8472d..0000000 --- a/src/main/webapp/history/data_structures/EXTRACTOR.js +++ /dev/null @@ -1,19 +0,0 @@ -function EXTRACTOR () { - - - var ind = 1; - - var model = scicos_model(); - model.sim=list(new ScilabString(["extractor"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([-1]); - model.out = new ScilabDouble([1]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - model.ipar=new ScilabDouble([ind]); - - var exprs = [sci2exp(ind)]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/EXTTRI.js b/src/main/webapp/history/data_structures/EXTTRI.js deleted file mode 100644 index 5702134..0000000 --- a/src/main/webapp/history/data_structures/EXTTRI.js +++ /dev/null @@ -1,31 +0,0 @@ -function EXTTRI () { - - - var model = scicos_model(); - - var function_name = "extrilz"; - - var funtyp = 4; - model.sim=list(function_name,funtyp); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2]); - model.intyp = new ScilabDouble([1]); - model.out = new ScilabDouble([-1]); - model.out2 = new ScilabDouble([-2]); - model.outtyp = new ScilabDouble([1]); - model.evtin = new ScilabDouble(); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble(); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = [[sci2exp(1)],[sci2exp(1)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/Extract_Activation.js b/src/main/webapp/history/data_structures/Extract_Activation.js deleted file mode 100644 index ed98bf4..0000000 --- a/src/main/webapp/history/data_structures/Extract_Activation.js +++ /dev/null @@ -1,92 +0,0 @@ -function Extract_Activation () { - - - var scs_m_1 = scicos_diagram(); - scs_m_1.objs.push(IFTHEL_f("define")); - scs_m_1.objs.push(CLKSOMV_f("define")); - scs_m_1.objs.push(IN_f("define")); - scs_m_1.objs.push(CLKOUTV_f("define")); - scs_m_1.objs.push(scicos_link({})); - scs_m_1.objs.push(scicos_link({})); - scs_m_1.objs.push(scicos_link({})); - scs_m_1.objs.push(scicos_link({})); - - var blk = scs_m_1.objs(1); - - var graphics = blk.graphics; - - var model = blk.model; - graphics.orig = new ScilabDouble([80,0]); - graphics.sz = new ScilabDouble([60,40]); - graphics.exprs = new ScilabString(["0";"0"]); - model.evtin = new ScilabDouble(); - model.nzcross = new ScilabDouble([0]); - model.nmode = new ScilabDouble([0]); - graphics.pin = new ScilabDouble([7]); - graphics.peout = new ScilabDouble([5],[6]); - blk.graphics=graphics; - blk.model=model; - scs_m_1.objs.push(blk); - blk=scs_m_1.objs(2); - graphics=blk.graphics; - model=blk.model; - graphics.orig = new ScilabDouble([80,-80]); - graphics.sz = new ScilabDouble([80,40]); - graphics.pein = new ScilabDouble([5],[6]); - graphics.peout = new ScilabDouble([8]); - blk.graphics=graphics; - blk.model=model; - scs_m_1.objs.push(blk); - blk=scs_m_1.objs(3); - graphics=blk.graphics; - model=blk.model; - graphics.orig = new ScilabDouble([0,10]); - graphics.sz = new ScilabDouble([20,20]); - graphics.exprs = new ScilabString(["1"]); - model.ipar = new ScilabDouble([1]); - graphics.pout = new ScilabDouble([7]); - blk.graphics=graphics; - blk.model=model; - scs_m_1.objs.push(blk); - blk=scs_m_1.objs(4); - graphics=blk.graphics; - model=blk.model; - graphics.orig = new ScilabDouble([110,-140]); - graphics.sz = new ScilabDouble([20,20]); - graphics.exprs = new ScilabString(["1"]); - model.ipar = new ScilabDouble([1]); - graphics.pein = new ScilabDouble([8]); - blk.graphics=graphics; - blk.model=model; - scs_m_1.objs.push(blk); - - var lnk = scs_m_1.objs(5); - lnk.ct = new ScilabDouble([5,-1]); - lnk.from = new ScilabDouble([1,1,0]); - lnk.to = new ScilabDouble([2,1,1]); - scs_m_1.objs.push(lnk); - lnk=scs_m_1.objs(6); - lnk.ct = new ScilabDouble([5,-1]); - lnk.from = new ScilabDouble([1,2,0]); - lnk.to = new ScilabDouble([2,2,1]); - scs_m_1.objs.push(lnk); - lnk=scs_m_1.objs(7); - lnk.from = new ScilabDouble([3,1,0]); - lnk.to = new ScilabDouble([1,1,1]); - scs_m_1.objs.push(lnk); - lnk=scs_m_1.objs(8); - lnk.ct = new ScilabDouble([5,-1]); - lnk.from = new ScilabDouble([2,1,0]); - lnk.to = new ScilabDouble([4,1,1]); - scs_m_1.objs.push(lnk); - clear blk lnk - model=scicos_model(); - model.sim = new ScilabString(["csuper"]); - model.in1 = new ScilabDouble([1]); - model.evtout = new ScilabDouble([1]); - model.rpar=scs_m_1; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,[],gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/FROM.js b/src/main/webapp/history/data_structures/FROM.js deleted file mode 100644 index 5a5a591..0000000 --- a/src/main/webapp/history/data_structures/FROM.js +++ /dev/null @@ -1,23 +0,0 @@ -function FROM () { - - - var model = scicos_model(); - model.sim = new ScilabString(["from"]); - model.in1 = new ScilabDouble(); - model.in2 = new ScilabDouble(); - model.intyp = new ScilabDouble([1]); - model.out = new ScilabDouble([-1]); - model.out2 = new ScilabDouble([-2]); - model.outtyp = new ScilabDouble([-1]); - model.ipar = new ScilabDouble(); - model.opar=list("A"); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = ["A"]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,1]),model,exprs,gr_i); - this.x.graphics.id = new ScilabString(["From"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/FROMMO.js b/src/main/webapp/history/data_structures/FROMMO.js deleted file mode 100644 index e8573de..0000000 --- a/src/main/webapp/history/data_structures/FROMMO.js +++ /dev/null @@ -1,27 +0,0 @@ -function FROMMO () { - - - var model = scicos_model(); - model.sim = new ScilabString(["frommo"]); - model.in1 = new ScilabDouble(); - model.in2 = new ScilabDouble(); - model.intyp = new ScilabDouble([1]); - model.out = new ScilabDouble([-1]); - model.out2 = new ScilabDouble([-2]); - model.outtyp = new ScilabDouble([-1]); - model.ipar = new ScilabDouble(); - model.opar=list("A"); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var mo = modelica(); - mo.model = new ScilabString(["frommo"]); - mo.outputs = new ScilabString(["n"]); - - var exprs = ["A"]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,1]),model,exprs,gr_i); - this.x.graphics.out_implicit = new ScilabString(["I"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/FROMWSB.js b/src/main/webapp/history/data_structures/FROMWSB.js deleted file mode 100644 index a610e91..0000000 --- a/src/main/webapp/history/data_structures/FROMWSB.js +++ /dev/null @@ -1,15 +0,0 @@ -function FROMWSB () { - - - var 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.000D-10,100001,0,0],tf=100000,context=" ",void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list())); - scs_m_1.objs.push(scicos_block(gui="FROMWS_c",graphics=scicos_graphics(orig=[260.37067,261.584],sz=[70,40],flip=%t,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=[%f,%t],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([295.37067),yy: new ScilabDouble([255.86971),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([1,1,1])})); - scs_m_1.objs.push(scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[358.9421,271.584],sz=[20,20],flip=%t,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=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([338.9421),yy: new ScilabDouble([281.584),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([3,1,1])})); - - var 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=[%f,%f],label="",nzcross=0,nmode=0,equations=list()); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([5,2]),model,[],gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/Flowmeter.js b/src/main/webapp/history/data_structures/Flowmeter.js deleted file mode 100644 index b17778b..0000000 --- a/src/main/webapp/history/data_structures/Flowmeter.js +++ /dev/null @@ -1,30 +0,0 @@ -function Flowmeter () { - - - var ModelName = "Flowmeter"; - - var PrametersValue = 1; - - var ParametersName = "Qini"; - - var model = scicos_model(); - - var Typein = []; - - var Typeout = []; - - var MI = []; - - var MO = []; - - var P = [[50,105,-1,90],[0,10,2,0],[101,10,-2,0]]; - - var PortName = ["Mesure";"C1";"C2"]; - - var for i = 1:size(P,"r"); - - var if P(i,3) = =1, then; - Typein = new ScilabDouble([Typein;,"E"]); - MI = new ScilabDouble([MI],[PortName(i)]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/GAINBLK.js b/src/main/webapp/history/data_structures/GAINBLK.js deleted file mode 100644 index c16da52..0000000 --- a/src/main/webapp/history/data_structures/GAINBLK.js +++ /dev/null @@ -1,25 +0,0 @@ -function GAINBLK () { - - - var gain = 1; - - var in1 = -1],[out=-1; - - var in2 = -2],[out2=-2; - - var model = scicos_model(); - model.sim=list(new ScilabString(["gainblk"]),new ScilabDouble([4])); - model.in1.push(new ScilabDouble([in1])); - model.out=out; - model.in2.push(new ScilabDouble([in2])); - model.out2.push(out2); - model.rpar=new ScilabDouble([gain]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [strcat(sci2exp(gain))]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/GAINBLK_f.js b/src/main/webapp/history/data_structures/GAINBLK_f.js deleted file mode 100644 index bb31112..0000000 --- a/src/main/webapp/history/data_structures/GAINBLK_f.js +++ /dev/null @@ -1,21 +0,0 @@ -function GAINBLK_f () { - - - var gain = 1; - - var in1 = 1],[out=1; - - var model = scicos_model(); - model.sim = new ScilabString(["gain"]); - model.in1.push(new ScilabDouble([in1])); - model.out=out; - model.rpar=new ScilabDouble([gain]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [strcat(sci2exp(gain))]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/GAIN_f.js b/src/main/webapp/history/data_structures/GAIN_f.js deleted file mode 100644 index 0b78d54..0000000 --- a/src/main/webapp/history/data_structures/GAIN_f.js +++ /dev/null @@ -1,19 +0,0 @@ -function GAIN_f () { - - - var gain = 1],[in1=1],[out=1; - - var model = scicos_model(); - model.sim = new ScilabString(["gain"]); - model.in1 = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.rpar=new ScilabDouble([gain]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[strcat(sci2exp(gain))],[strcat(sci2exp(in1))],[strcat(sci2exp(out))]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/GENERAL_f.js b/src/main/webapp/history/data_structures/GENERAL_f.js deleted file mode 100644 index 1db91b0..0000000 --- a/src/main/webapp/history/data_structures/GENERAL_f.js +++ /dev/null @@ -1,25 +0,0 @@ -function GENERAL_f () { - - - var rpar = [[0],[0],[0],[0]]; - - var in1 = 1; - - var out = 1; - - var model = scicos_model(); - model.sim=list(new ScilabString(["zcross"]),new ScilabDouble([1])); - model.nzcross=new ScilabDouble([in1]); - model.in1.push(new ScilabDouble([in1])); - model.evtout=ones(out,1); - model.rpar = new ScilabDouble([0],[0],[0],[0]); - model.blocktype = new ScilabString(["z"]); - model.firing=-ones(out,1); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[strcat(sci2exp(in1))],[strcat(sci2exp(out))]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/GENSIN_f.js b/src/main/webapp/history/data_structures/GENSIN_f.js deleted file mode 100644 index 13638df..0000000 --- a/src/main/webapp/history/data_structures/GENSIN_f.js +++ /dev/null @@ -1,21 +0,0 @@ -function GENSIN_f () { - - - var rpar = [[1],[1],[0]]; - - var model = scicos_model(); - model.sim = new ScilabString(["gensin"]); - model.in1 = new ScilabDouble(); - model.out = new ScilabDouble([1]); - model.out2 = new ScilabDouble([1]); - model.outtyp = new ScilabDouble([1]); - model.rpar = new ScilabDouble([1],[1],[0]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([false,true]); - - var exprs = [[string(rpar(1))],[string(rpar(2))],[string(rpar(3))]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/GENSQR_f.js b/src/main/webapp/history/data_structures/GENSQR_f.js deleted file mode 100644 index e4d52e1..0000000 --- a/src/main/webapp/history/data_structures/GENSQR_f.js +++ /dev/null @@ -1,21 +0,0 @@ -function GENSQR_f () { - - - var Amplitude = 1; - - var model = scicos_model(); - model.sim = new ScilabString(["gensqr"]); - model.out = new ScilabDouble([1]); - model.out2 = new ScilabDouble([1]); - model.outtyp = new ScilabDouble([1]); - model.evtin = new ScilabDouble([1]); - model.dstate=new ScilabDouble([Amplitude]); - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = string(Amplitude); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/GOTO.js b/src/main/webapp/history/data_structures/GOTO.js deleted file mode 100644 index 9c0c19b..0000000 --- a/src/main/webapp/history/data_structures/GOTO.js +++ /dev/null @@ -1,23 +0,0 @@ -function GOTO () { - - - var model = scicos_model(); - model.sim = new ScilabString(["goto"]); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2]); - model.intyp = new ScilabDouble([-1]); - model.out = new ScilabDouble(); - model.out2 = new ScilabDouble(); - model.outtyp = new ScilabDouble([1]); - model.ipar=int(1); - model.opar=list("A"); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = [["A"],[sci2exp(1)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,1]),model,exprs,gr_i); - this.x.graphics.id = new ScilabString(["Goto"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/GOTOMO.js b/src/main/webapp/history/data_structures/GOTOMO.js deleted file mode 100644 index 70a1907..0000000 --- a/src/main/webapp/history/data_structures/GOTOMO.js +++ /dev/null @@ -1,27 +0,0 @@ -function GOTOMO () { - - - var model = scicos_model(); - model.sim = new ScilabString(["gotomo"]); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2]); - model.intyp = new ScilabDouble(); - model.out = new ScilabDouble(); - model.out2 = new ScilabDouble(); - model.outtyp = new ScilabDouble([1]); - model.ipar=int(1); - model.opar=list("A"); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var mo = modelica(); - mo.model = new ScilabString(["gotomo"]); - mo.inputs = new ScilabString(["p"]); - - var exprs = [["A"],[sci2exp(1)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,1]),model,exprs,gr_i); - this.x.graphics.in_implicit = new ScilabString(["I"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/GotoTagVisibility.js b/src/main/webapp/history/data_structures/GotoTagVisibility.js deleted file mode 100644 index 27c4d72..0000000 --- a/src/main/webapp/history/data_structures/GotoTagVisibility.js +++ /dev/null @@ -1,23 +0,0 @@ -function GotoTagVisibility () { - - - var model = scicos_model(); - model.sim = new ScilabString(["gototagvisibility"]); - model.in1 = new ScilabDouble(); - model.in2 = new ScilabDouble(); - model.out = new ScilabDouble(); - model.out2 = new ScilabDouble(); - model.evtin = new ScilabDouble(); - model.intyp = new ScilabDouble([1]); - model.outtyp = new ScilabDouble([1]); - model.opar=list("A"); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabBoolean([false]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = "A"; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/GotoTagVisibilityMO.js b/src/main/webapp/history/data_structures/GotoTagVisibilityMO.js deleted file mode 100644 index 8ede428..0000000 --- a/src/main/webapp/history/data_structures/GotoTagVisibilityMO.js +++ /dev/null @@ -1,23 +0,0 @@ -function GotoTagVisibilityMO () { - - - var model = scicos_model(); - model.sim = new ScilabString(["gototagvisibilitymo"]); - model.in1 = new ScilabDouble(); - model.in2 = new ScilabDouble(); - model.out = new ScilabDouble(); - model.out2 = new ScilabDouble(); - model.evtin = new ScilabDouble(); - model.intyp = new ScilabDouble([1]); - model.outtyp = new ScilabDouble([1]); - model.opar=list("A"); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabBoolean([false]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = "A"; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/Ground.js b/src/main/webapp/history/data_structures/Ground.js deleted file mode 100644 index 53c0d1a..0000000 --- a/src/main/webapp/history/data_structures/Ground.js +++ /dev/null @@ -1,23 +0,0 @@ -function Ground () { - - - var model = scicos_model(); - model.in1 = new ScilabDouble([1]); - model.out = new ScilabDouble(); - model.sim = new ScilabString(["Ground"]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var mo = modelica(); - mo.model = new ScilabString(["Ground"]); - mo.inputs = new ScilabString(["p"]); - model.equations=mo; - - var exprs = ""; - - var gr_i = []; - this.x=standard_define([1,1],model,exprs,list(gr_i,0)); - this.x.graphics.in_implicit = new ScilabString(["I"]); - this.x.graphics.out_implicit = new ScilabString(["I"]); - return new GroundBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/Gyrator.js b/src/main/webapp/history/data_structures/Gyrator.js deleted file mode 100644 index 6e9b7a9..0000000 --- a/src/main/webapp/history/data_structures/Gyrator.js +++ /dev/null @@ -1,30 +0,0 @@ -function Gyrator () { - - - var ModelName = "Gyrator"; - - var PrametersValue = [[1],[1]]; - - var ParametersName = ["G1";"G2"]; - - var model = scicos_model(); - - var Typein = []; - - var Typeout = []; - - var MI = []; - - var MO = []; - - var P = [[2.5,90,2,0],[2.5,10,2,0],[97.5,90,-2,0],[97.5,10,-2,0]]; - - var PortName = ["p1";"n1";"p2";"n2"]; - - var for i = 1:size(P,"r"); - - var if P(i,3) = =1, then; - Typein = new ScilabDouble([Typein;,"E"]); - MI = new ScilabDouble([MI],[PortName(i)]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/HALT_f.js b/src/main/webapp/history/data_structures/HALT_f.js deleted file mode 100644 index 7199f8c..0000000 --- a/src/main/webapp/history/data_structures/HALT_f.js +++ /dev/null @@ -1,19 +0,0 @@ -function HALT_f () { - - - var n = 0; - - var model = scicos_model(); - model.sim = new ScilabString(["hltblk"]); - model.evtin = new ScilabDouble([1]); - model.dstate = new ScilabDouble([0]); - model.ipar = new ScilabDouble([0]); - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = string(n); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/HYSTHERESIS.js b/src/main/webapp/history/data_structures/HYSTHERESIS.js deleted file mode 100644 index 22f72d0..0000000 --- a/src/main/webapp/history/data_structures/HYSTHERESIS.js +++ /dev/null @@ -1,27 +0,0 @@ -function HYSTHERESIS () { - - - var in1 = 1; - - var ipar = [0]; - - var nzz = 2; - - var rpar = [[1],[0],[1],[0]]; - - var model = scicos_model(); - model.sim=list(new ScilabString(["hystheresis"]),new ScilabDouble([4])); - model.in1.push(new ScilabDouble([in1])); - model.out = new ScilabDouble([1]); - model.rpar=new ScilabDouble([rpar]); - model.nzcross=new ScilabDouble([nzz]); - model.nmode = new ScilabDouble([1]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[string(rpar)],[string(sign(nzz))]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/IFTHEL_f.js b/src/main/webapp/history/data_structures/IFTHEL_f.js deleted file mode 100644 index 5830a9d..0000000 --- a/src/main/webapp/history/data_structures/IFTHEL_f.js +++ /dev/null @@ -1,22 +0,0 @@ -function IFTHEL_f () { - - - var model = scicos_model(); - model.sim=list(new ScilabString(["ifthel"]),new ScilabDouble([-1])); - model.in1 = new ScilabDouble([1]); - model.in2 = new ScilabDouble([1]); - model.intyp = new ScilabDouble([-1]); - model.evtin = new ScilabDouble([1]); - model.evtout = new ScilabDouble([1],[1]); - model.blocktype = new ScilabString(["l"]); - model.firing = new ScilabDouble([-1,-1]); - model.dep_ut = new ScilabBoolean([true,false]); - model.nmode = new ScilabDouble([1]); - model.nzcross = new ScilabDouble([1]); - - var gr_i = []; - - var exprs = [[string(model.in1)],[string(model.nmode)]]; - this.x=new standard_define(new ScilabDouble([3,3]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/INIMPL_f.js b/src/main/webapp/history/data_structures/INIMPL_f.js deleted file mode 100644 index 968ebb3..0000000 --- a/src/main/webapp/history/data_structures/INIMPL_f.js +++ /dev/null @@ -1,25 +0,0 @@ -function INIMPL_f () { - - - var model = scicos_model(); - model.sim = new ScilabString(["inimpl"]); - model.out = new ScilabDouble([-1]); - model.out2 = new ScilabDouble([1]); - model.ipar = new ScilabDouble([1]); - model.dep_ut = new ScilabBoolean([false,false]); - model.blocktype = new ScilabString(["c"]); - - var mo = modelica(); - mo.model = new ScilabString(["PORT"]); - mo.outputs = new ScilabString(["n"]); - model.equations=mo; - - var prt = 1; - - var exprs = "1"; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i); - this.x.graphics.out_implicit = new ScilabString(["I"]); - return new ImplicitInBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/INTEGRAL_f.js b/src/main/webapp/history/data_structures/INTEGRAL_f.js deleted file mode 100644 index 70589f4..0000000 --- a/src/main/webapp/history/data_structures/INTEGRAL_f.js +++ /dev/null @@ -1,19 +0,0 @@ -function INTEGRAL_f () { - - - var x0 = 0; - - var model = scicos_model(); - model.sim = new ScilabString(["integr"]); - model.in1 = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.state=new ScilabDouble([x0]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([false,true]); - - var exprs = strcat(sci2exp(x0)); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/INTEGRAL_m.js b/src/main/webapp/history/data_structures/INTEGRAL_m.js deleted file mode 100644 index 1606b27..0000000 --- a/src/main/webapp/history/data_structures/INTEGRAL_m.js +++ /dev/null @@ -1,26 +0,0 @@ -function INTEGRAL_m () { - - - var maxp = 1; - - var minp = -1; - - var rpar = []; - - var model = scicos_model(); - model.state = new ScilabDouble([0]); - model.sim=list(new ScilabString(["integral_func"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.in2 = new ScilabDouble([1]); - model.out2 = new ScilabDouble([1]); - model.rpar=rpar; - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([false,true]); - - var exprs = string([0],[0],[0],[maxp],[minp]); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/INTMUL.js b/src/main/webapp/history/data_structures/INTMUL.js deleted file mode 100644 index b741d3e..0000000 --- a/src/main/webapp/history/data_structures/INTMUL.js +++ /dev/null @@ -1,24 +0,0 @@ -function INTMUL () { - - - var sgn = 0; - - var model = scicos_model(); - model.sim=list(new ScilabString(["matmul_i32"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([-1],[-2]); - model.out = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2],[-3]); - model.out2 = new ScilabDouble([-3]); - model.intyp = new ScilabDouble([3,3]); - model.outtyp = new ScilabDouble([3]); - model.rpar = new ScilabDouble(); - model.ipar=new ScilabDouble([sgn]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[sci2exp(3)],[sci2exp(0)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/INTRP2BLK_f.js b/src/main/webapp/history/data_structures/INTRP2BLK_f.js deleted file mode 100644 index a70bdec..0000000 --- a/src/main/webapp/history/data_structures/INTRP2BLK_f.js +++ /dev/null @@ -1,24 +0,0 @@ -function INTRP2BLK_f () { - - - var a = [[0],[1]]; - - var b = [[0],[1]]; - - var c = [[0,1],[1,2]]; - - var model = scicos_model(); - model.sim=list(new ScilabString(["intrp2"]),new ScilabDouble([1])); - model.in1 = new ScilabDouble([1],[1]); - model.out = new ScilabDouble([1]); - model.rpar = new ScilabDouble([a],[b],[...c]); - model.ipar = new ScilabDouble([2],[2]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[strcat(sci2exp(a))],[strcat(sci2exp(b))],[strcat(sci2exp(c,0))]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/INTRPLBLK_f.js b/src/main/webapp/history/data_structures/INTRPLBLK_f.js deleted file mode 100644 index 4cfc3f4..0000000 --- a/src/main/webapp/history/data_structures/INTRPLBLK_f.js +++ /dev/null @@ -1,21 +0,0 @@ -function INTRPLBLK_f () { - - - var a = [[0],[1]]; - - var b = [[0],[1]]; - - var model = scicos_model(); - model.sim = new ScilabString(["intrpl"]); - model.in1 = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.rpar = new ScilabDouble([a],[b]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[strcat(sci2exp(a))],[strcat(sci2exp(b))]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/INVBLK.js b/src/main/webapp/history/data_structures/INVBLK.js deleted file mode 100644 index f99b5c7..0000000 --- a/src/main/webapp/history/data_structures/INVBLK.js +++ /dev/null @@ -1,18 +0,0 @@ -function INVBLK () { - - - var in1 = -1; - - var model = scicos_model(); - model.sim=list(new ScilabString(["invblk4"]),new ScilabDouble([4])); - model.in1.push(new ScilabDouble([in1])); - model.out=new ScilabDouble([in1]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = " "; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/IN_f.js b/src/main/webapp/history/data_structures/IN_f.js deleted file mode 100644 index 8b39f0b..0000000 --- a/src/main/webapp/history/data_structures/IN_f.js +++ /dev/null @@ -1,20 +0,0 @@ -function IN_f () { - - - var prt = 1; - - var model = scicos_model(); - model.sim = new ScilabString(["input"]); - model.out = new ScilabDouble([-1]); - model.out2 = new ScilabDouble([-2]); - model.outtyp = new ScilabDouble([-1]); - model.ipar=new ScilabDouble([prt]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = sci2exp(prt); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i); - return new ExplicitInBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/ISELECT_m.js b/src/main/webapp/history/data_structures/ISELECT_m.js deleted file mode 100644 index 63322de..0000000 --- a/src/main/webapp/history/data_structures/ISELECT_m.js +++ /dev/null @@ -1,31 +0,0 @@ -function ISELECT_m () { - - - var z0 = 1; - - var nout = 2; - - var model = scicos_model(); - model.sim=list(new ScilabString(["selector_m"]),new ScilabDouble([4])); - model.out = new ScilabDouble([-1],[-1]); - model.out2 = new ScilabDouble([-2],[-2]); - model.outtyp = new ScilabDouble([1]); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2]); - model.intyp = new ScilabDouble([1]); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble(); - model.firing = new ScilabDouble(); - model.evtin=ones(nout,1); - model.dstate=new ScilabDouble([z0]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[sci2exp(1)],[sci2exp(nout)],[sci2exp(z0)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/IdealTransformer.js b/src/main/webapp/history/data_structures/IdealTransformer.js deleted file mode 100644 index 54d38f7..0000000 --- a/src/main/webapp/history/data_structures/IdealTransformer.js +++ /dev/null @@ -1,30 +0,0 @@ -function IdealTransformer () { - - - var ModelName = "IdealTransformer"; - - var PrametersValue = [1]; - - var ParametersName = ["N"]; - - var model = scicos_model(); - - var Typein = []; - - var Typeout = []; - - var MI = []; - - var MO = []; - - var P = [[2.5,90,2,0],[2.5,10,2,0],[97.5,90,-2,0],[97.5,10,-2,0]]; - - var PortName = ["p1";"n1";"p2";"n2"]; - - var for i = 1:size(P,"r"); - - var if P(i,3) = =1, then; - Typein = new ScilabDouble([Typein;,"E"]); - MI = new ScilabDouble([MI],[PortName(i)]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/Inductor.js b/src/main/webapp/history/data_structures/Inductor.js deleted file mode 100644 index 470b8db..0000000 --- a/src/main/webapp/history/data_structures/Inductor.js +++ /dev/null @@ -1,28 +0,0 @@ -function Inductor () { - - - var model = scicos_model(); - model.in1 = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - - var L = 1.d-5; - model.rpar=new ScilabDouble([L]); - model.sim = new ScilabString(["Inductor"]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var mo = modelica(); - mo.model = new ScilabString(["Inductor"]); - mo.inputs = new ScilabString(["p"]); - mo.outputs = new ScilabString(["n"]); - mo.parameters=list(new ScilabString(["L"]),list(L)); - model.equations=mo; - - var exprs = string(L); - - var gr_i = []; - this.x=standard_define([2,0.9],model,exprs,list(gr_i,0)); - this.x.graphics.in_implicit = new ScilabString(["I"]); - this.x.graphics.out_implicit = new ScilabString(["I"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/JKFLIPFLOP.js b/src/main/webapp/history/data_structures/JKFLIPFLOP.js deleted file mode 100644 index 7de61c4..0000000 --- a/src/main/webapp/history/data_structures/JKFLIPFLOP.js +++ /dev/null @@ -1,53 +0,0 @@ -function JKFLIPFLOP () { - - - var scs_m = scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[600,450,0,0,600,450],Title=["JKFLIPFLOP"],tol=[0.0001;0.000001;1.000E-10;100001;0;0;0],tf=60,context=" ",void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list())); - scs_m.objs.push(scicos_block(gui="DOLLAR_m",graphics=scicos_graphics(orig=[299.96961,261.584],sz=[40,40],flip=%f,theta=0,exprs=["int8(0)";"1"],pin=7,pout=5,pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("dollar4_m",4),in1=1,in2=1,intyp=5,out=1,out2=1,outtyp=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(new ScilabInteger([0])),rpar=[],ipar=[],opar=list(),blocktype="d",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - - var scs_m_1 = scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[600,450,0,0,600,450],Title=["EDGE_TRIGGER","./"],tol=[0.0001;0.000001;1.000E-10;100001;0;0;0],tf=30,context=" ",void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list())); - scs_m_1.objs.push(scicos_block(gui="EDGETRIGGER",graphics=scicos_graphics(orig=[288.58631,257.1131],sz=[60,40],flip=%t,theta=0,exprs="-1",pin=5,pout=3,pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("edgetrig",4),in1=1,in2=[],intyp=1,out=1,out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=0,odstate=list(),rpar=[],ipar=-1,opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=1,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_block(gui="IFTHEL_f",graphics=scicos_graphics(orig=[388.28869,247.1131],sz=[60,60],flip=%t,theta=0,exprs=["0";"0"],pin=3,pout=[],pein=[],peout=[7;0],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim=list("ifthel",-1),in1=1,in2=[],intyp=1,out=[],out2=1,outtyp=[],evtin=[],evtout=[1;1],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="l",firing=[-1,-1],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([357.15774),yy: new ScilabDouble([277.1131),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([2,1,1])})); - scs_m_1.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[240.01488,267.1131],sz=[20,20],flip=%t,theta=0,exprs="1",pin=[],pout=5,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([260.01488),yy: new ScilabDouble([277.1131),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([4,1,0]),to: new ScilabDouble([1,1,1])})); - scs_m_1.objs.push(scicos_block(gui="CLKOUTV_f",graphics=scicos_graphics(orig=[398.28869,181.39881],sz=[20,30],flip=%t,theta=0,exprs="1",pin=[],pout=[],pein=7,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=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([408.28869),yy: new ScilabDouble([241.39881),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([2,1,0]),to: new ScilabDouble([6,1,1])})); - scs_m.objs.push(scicos_block(gui="EDGE_TRIGGER",graphics=scicos_graphics(orig=[292.52452,323.54888],sz=[60,40],flip=%t,theta=0,exprs=[],pin=14,pout=[],pein=[],peout=8,gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="csuper",in1=-1,in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=[],evtout=1,state=[],dstate=[],odstate=list(),rpar=scs_m_1,ipar=[],opar=list(),blocktype="h",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_block(gui="LOGIC",graphics=scicos_graphics(orig=[302.79613,202.52782],sz=[40,40],flip=%t,theta=0,exprs=["[0;1;1;1;0;0;1;0]";"0"],pin=[5;16;18],pout=4,pein=8,peout=[],gr_i=[],id="",in_implicit=["E";"E";"E"],out_implicit="E"),model=scicos_model(sim=list("logic",4),in1=[1;1;1],in2=[1;1;1],intyp=[5;5;5],out=1,out2=1,outtyp=5,evtin=1,evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(new ScilabInteger([[0;1;1;1;0;0;1;0]])),blocktype="c",firing=%f,dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([351.36756),yy: new ScilabDouble([222.52782),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([3,1,0]),to: new ScilabDouble([10,1,1])})); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([291.39818),yy: new ScilabDouble([281.584),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([3,1,1])})); - scs_m.objs.push(scicos_block(gui="SPLIT_f",graphics=scicos_graphics(orig=[368.82793,243.45067],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=11,pout=[7;20],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=["E";"E";"E"]),model=scicos_model(sim="lsplit",in1=-1,in2=[],intyp=1,out=[-1;-1;-1],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([368.82793),yy: new ScilabDouble([243.45067),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([6,1,0]),to: new ScilabDouble([1,1,1])})); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([322.52452),yy: new ScilabDouble([317.8346),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([2,1,0]),to: new ScilabDouble([3,1,1])})); - scs_m.objs.push(scicos_block(gui="LOGICAL_OP",graphics=scicos_graphics(orig=[377.63217,159.25363],sz=[60,40],flip=%t,theta=0,exprs=["1";"5";"5";"0"],pin=12,pout=22,pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("logicalop_i8",4),in1=-1,in2=-2,intyp=5,out=-1,out2=-2,outtyp=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[5;0],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_block(gui="SPLIT_f",graphics=scicos_graphics(orig=[368.82793;223.06473],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=4,pout=[11;12],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=["E";"E";"E"]),model=scicos_model(sim="lsplit",in1=-1,in2=[],intyp=1,out=[-1;-1;-1],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([368.82793),yy: new ScilabDouble([223.06473),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([10,1,0]),to: new ScilabDouble([6,1,1])})); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([368.82793),yy: new ScilabDouble([223.06473),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([10,2,0]),to: new ScilabDouble([9,1,1])})); - scs_m.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[243.95309,333.54888],sz=[20,20],flip=%t,theta=0,exprs="2",pin=[],pout=14,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=2,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([263.95309),yy: new ScilabDouble([343.54888),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([13,1,0]),to: new ScilabDouble([2,1,1])})); - scs_m.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[254.2247,212.52782],sz=[20,20],flip=%t,theta=0,exprs="1",pin=[],pout=16,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([274.2247),yy: new ScilabDouble([222.52782),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([15,1,0]),to: new ScilabDouble([3,2,1])})); - scs_m.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[254.2247,202.52782],sz=[20,20],flip=%t,theta=0,exprs="3",pin=[],pout=18,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=3,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([274.2247),yy: new ScilabDouble([212.52782),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([17,1,0]),to: new ScilabDouble([3,3,1])})); - scs_m.objs.push(scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[388.82793,233.45067],sz=[20,20],flip=%t,theta=0,exprs="1",pin=20,pout=[],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=[],intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([368.82793),yy: new ScilabDouble([243.45067),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([6,2,0]),to: new ScilabDouble([19,1,1])})); - scs_m.objs.push(scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[466.2036,169.25363],sz=[20,20],flip=%t,theta=0,exprs="2",pin=22,pout=[],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=[],intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=2,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([446.2036),yy: new ScilabDouble([179.25363),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([9,1,0]),to: new ScilabDouble([21,1,1])})); - - var model = scicos_model(); - model.sim = new ScilabString(["csuper"]); - model.in1 = new ScilabDouble([1],[1],[1]); - model.in2 = new ScilabDouble([1],[1],[1]); - model.out = new ScilabDouble([1],[1]); - model.out2 = new ScilabDouble([1],[1]); - model.intyp = new ScilabDouble([5,1,5]); - model.outtyp = new ScilabDouble([5,5]); - model.blocktype = new ScilabString(["h"]); - model.firing = new ScilabBoolean([false]); - model.dep_ut = new ScilabBoolean([true,false]); - model.rpar=scs_m; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,3]),model,[],gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/LOGBLK_f.js b/src/main/webapp/history/data_structures/LOGBLK_f.js deleted file mode 100644 index 728dc8a..0000000 --- a/src/main/webapp/history/data_structures/LOGBLK_f.js +++ /dev/null @@ -1,21 +0,0 @@ -function LOGBLK_f () { - - - var in1 = 1; - - var a = %e; - - var model = scicos_model(); - model.sim = new ScilabString(["logblk"]); - model.in1 = new ScilabDouble([-1]); - model.out = new ScilabDouble([-1]); - model.rpar=new ScilabBoolean([a]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = "%e"; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/LOGIC.js b/src/main/webapp/history/data_structures/LOGIC.js deleted file mode 100644 index 453ecae..0000000 --- a/src/main/webapp/history/data_structures/LOGIC.js +++ /dev/null @@ -1,25 +0,0 @@ -function LOGIC () { - - - var mat = [[0],[0],[0],[1]]; - - var model = scicos_model(); - model.sim=list(new ScilabString(["logic"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([1],[1]); - model.in2 = new ScilabDouble([1],[1]); - model.out = new ScilabDouble([1]); - model.out2 = new ScilabDouble([1]); - model.evtin = new ScilabDouble([1]); - model.intyp = new ScilabDouble([5,5]); - model.outtyp = new ScilabDouble([5]); - model.opar=list(new ScilabInteger([mat])); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabBoolean([false]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[sci2exp(mat)],[sci2exp(0)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/LOGICAL_OP.js b/src/main/webapp/history/data_structures/LOGICAL_OP.js deleted file mode 100644 index 5c50e07..0000000 --- a/src/main/webapp/history/data_structures/LOGICAL_OP.js +++ /dev/null @@ -1,23 +0,0 @@ -function LOGICAL_OP () { - - - var in1 = [[-1],[-1]]; - - var ipar = [0]; - - var nin = 2; - - var model = scicos_model(); - model.sim=list(new ScilabString(["logicalop"]),new ScilabDouble([4])); - model.in1.push(in1); - model.out = new ScilabDouble([-1]); - model.ipar=new ScilabDouble([ipar]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[string(nin)],[string(ipar)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/LOOKUP_f.js b/src/main/webapp/history/data_structures/LOOKUP_f.js deleted file mode 100644 index b31e361..0000000 --- a/src/main/webapp/history/data_structures/LOOKUP_f.js +++ /dev/null @@ -1,15 +0,0 @@ -function LOOKUP_f () { - - - var model = scicos_model(); - model.sim = new ScilabString(["lookup"]); - model.in1 = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.rpar = new ScilabDouble([-2],[-1],[1],[2],[-1],[1],[-1],[1]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,[],gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MATBKSL.js b/src/main/webapp/history/data_structures/MATBKSL.js deleted file mode 100644 index 94b0ede..0000000 --- a/src/main/webapp/history/data_structures/MATBKSL.js +++ /dev/null @@ -1,31 +0,0 @@ -function MATBKSL () { - - - var model = scicos_model(); - - var function_name = "mat_bksl"; - - var funtyp = 4; - model.sim=list(function_name,funtyp); - model.in1 = new ScilabDouble([-1],[-1]); - model.in2 = new ScilabDouble([-2],[-3]); - model.intyp = new ScilabDouble([1,1]); - model.out = new ScilabDouble([-2]); - model.out2 = new ScilabDouble([-3]); - model.outtyp = new ScilabDouble([1]); - model.evtin = new ScilabDouble(); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble(); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = [sci2exp(1)]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MATCATH.js b/src/main/webapp/history/data_structures/MATCATH.js deleted file mode 100644 index 07beb4e..0000000 --- a/src/main/webapp/history/data_structures/MATCATH.js +++ /dev/null @@ -1,31 +0,0 @@ -function MATCATH () { - - - var model = scicos_model(); - - var function_name = "mat_cath"; - - var funtyp = 4; - model.sim=list(function_name,funtyp); - model.in1 = new ScilabDouble([-1],[-1]); - model.in2 = new ScilabDouble([-2],[-3]); - model.intyp = new ScilabDouble([1,1]); - model.out = new ScilabDouble([-1]); - model.out2 = new ScilabDouble([0]); - model.outtyp = new ScilabDouble([-1]); - model.evtin = new ScilabDouble(); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble(); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = [sci2exp(2)]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,3]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MATCATV.js b/src/main/webapp/history/data_structures/MATCATV.js deleted file mode 100644 index 4fd6959..0000000 --- a/src/main/webapp/history/data_structures/MATCATV.js +++ /dev/null @@ -1,33 +0,0 @@ -function MATCATV () { - - - var l1 = [[2],[2]]; - - var model = scicos_model(); - - var function_name = "mat_catv"; - - var funtyp = 4; - model.sim=list(function_name,funtyp); - model.in2 = new ScilabDouble([-1],[-1]); - model.in1 = new ScilabDouble([-2],[-3]); - model.intyp = new ScilabDouble([-1,-1]); - model.out = new ScilabDouble([0]); - model.out2 = new ScilabDouble([-1]); - model.outtyp = new ScilabDouble([-1]); - model.evtin = new ScilabDouble(); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble(); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = [sci2exp(2)]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,3]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MATDET.js b/src/main/webapp/history/data_structures/MATDET.js deleted file mode 100644 index 8912194..0000000 --- a/src/main/webapp/history/data_structures/MATDET.js +++ /dev/null @@ -1,31 +0,0 @@ -function MATDET () { - - - var model = scicos_model(); - - var function_name = "mat_det"; - - var funtyp = 4; - model.sim=list(function_name,funtyp); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-1]); - model.intyp = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.out2 = new ScilabDouble([1]); - model.outtyp = new ScilabDouble([1]); - model.evtin = new ScilabDouble(); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble(); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = [sci2exp(1)]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MATDIAG.js b/src/main/webapp/history/data_structures/MATDIAG.js deleted file mode 100644 index 0bdf382..0000000 --- a/src/main/webapp/history/data_structures/MATDIAG.js +++ /dev/null @@ -1,31 +0,0 @@ -function MATDIAG () { - - - var model = scicos_model(); - - var function_name = "mat_diag"; - - var funtyp = 4; - model.sim=list(function_name,funtyp); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([1]); - model.intyp = new ScilabDouble([1]); - model.out = new ScilabDouble([-1]); - model.out2 = new ScilabDouble([-1]); - model.outtyp = new ScilabDouble([1]); - model.evtin = new ScilabDouble(); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble(); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = [sci2exp(1)]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MATDIV.js b/src/main/webapp/history/data_structures/MATDIV.js deleted file mode 100644 index 73f1f36..0000000 --- a/src/main/webapp/history/data_structures/MATDIV.js +++ /dev/null @@ -1,31 +0,0 @@ -function MATDIV () { - - - var model = scicos_model(); - - var function_name = "mat_div"; - - var funtyp = 4; - model.sim=list(function_name,funtyp); - model.in1 = new ScilabDouble([-1],[-2]); - model.in2 = new ScilabDouble([-3],[-3]); - model.intyp = new ScilabDouble([1,1]); - model.out = new ScilabDouble([-1]); - model.out2 = new ScilabDouble([-2]); - model.outtyp = new ScilabDouble([1]); - model.evtin = new ScilabDouble(); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble(); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = [sci2exp(1)]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MATEIG.js b/src/main/webapp/history/data_structures/MATEIG.js deleted file mode 100644 index c23df30..0000000 --- a/src/main/webapp/history/data_structures/MATEIG.js +++ /dev/null @@ -1,31 +0,0 @@ -function MATEIG () { - - - var model = scicos_model(); - - var function_name = "mat_vps"; - - var funtyp = 4; - model.sim=list(function_name,funtyp); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-1]); - model.intyp = new ScilabDouble([1]); - model.out = new ScilabDouble([-1]); - model.out2 = new ScilabDouble([1]); - model.outtyp = new ScilabDouble([2]); - model.evtin = new ScilabDouble(); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble(); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = [[sci2exp(1)],[sci2exp(1)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MATEXPM.js b/src/main/webapp/history/data_structures/MATEXPM.js deleted file mode 100644 index 70734bd..0000000 --- a/src/main/webapp/history/data_structures/MATEXPM.js +++ /dev/null @@ -1,31 +0,0 @@ -function MATEXPM () { - - - var model = scicos_model(); - - var function_name = "mat_expm"; - - var funtyp = 4; - model.sim=list(function_name,funtyp); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-1]); - model.intyp = new ScilabDouble([1]); - model.out = new ScilabDouble([-1]); - model.out2 = new ScilabDouble([-1]); - model.outtyp = new ScilabDouble([1]); - model.evtin = new ScilabDouble(); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble(); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = [sci2exp(1)]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MATINV.js b/src/main/webapp/history/data_structures/MATINV.js deleted file mode 100644 index 8b45697..0000000 --- a/src/main/webapp/history/data_structures/MATINV.js +++ /dev/null @@ -1,31 +0,0 @@ -function MATINV () { - - - var model = scicos_model(); - - var function_name = "mat_inv"; - - var funtyp = 4; - model.sim=list(function_name,funtyp); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-1]); - model.intyp = new ScilabDouble([1]); - model.out = new ScilabDouble([-1]); - model.out2 = new ScilabDouble([-1]); - model.outtyp = new ScilabDouble([1]); - model.evtin = new ScilabDouble(); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble(); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = [sci2exp(1)]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MATLU.js b/src/main/webapp/history/data_structures/MATLU.js deleted file mode 100644 index 6cc94e6..0000000 --- a/src/main/webapp/history/data_structures/MATLU.js +++ /dev/null @@ -1,31 +0,0 @@ -function MATLU () { - - - var model = scicos_model(); - - var function_name = "mat_lu"; - - var funtyp = 4; - model.sim=list(function_name,funtyp); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-1]); - model.intyp = new ScilabDouble([1]); - model.out = new ScilabDouble([-1],[-1]); - model.out2 = new ScilabDouble([-1],[-1]); - model.outtyp = new ScilabDouble([1,1]); - model.evtin = new ScilabDouble(); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble(); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = sci2exp(1); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MATMAGPHI.js b/src/main/webapp/history/data_structures/MATMAGPHI.js deleted file mode 100644 index c13d1dc..0000000 --- a/src/main/webapp/history/data_structures/MATMAGPHI.js +++ /dev/null @@ -1,31 +0,0 @@ -function MATMAGPHI () { - - - var model = scicos_model(); - - var function_name = "matz_abs"; - - var funtyp = 4; - model.sim=list(function_name,funtyp); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2]); - model.intyp = new ScilabDouble([2]); - model.out = new ScilabDouble([-1],[-1]); - model.out2 = new ScilabDouble([-2],[-2]); - model.outtyp = new ScilabDouble([1,1]); - model.evtin = new ScilabDouble(); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble(); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = [sci2exp(1)]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MATMUL.js b/src/main/webapp/history/data_structures/MATMUL.js deleted file mode 100644 index 42af695..0000000 --- a/src/main/webapp/history/data_structures/MATMUL.js +++ /dev/null @@ -1,18 +0,0 @@ -function MATMUL () { - - - var model = scicos_model(); - model.sim=list(new ScilabString(["matmul_m"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([-1],[-2]); - model.in2 = new ScilabDouble([-2],[-3]); - model.out = new ScilabDouble([-1]); - model.out2 = new ScilabDouble([-3]); - model.dep_ut = new ScilabBoolean([true,false]); - model.ipar = new ScilabDouble([1]); - - var label = [sci2exp(model.ipar)]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MATPINV.js b/src/main/webapp/history/data_structures/MATPINV.js deleted file mode 100644 index 27baace..0000000 --- a/src/main/webapp/history/data_structures/MATPINV.js +++ /dev/null @@ -1,31 +0,0 @@ -function MATPINV () { - - - var model = scicos_model(); - - var function_name = "mat_pinv"; - - var funtyp = 4; - model.sim=list(function_name,funtyp); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2]); - model.intyp = new ScilabDouble([1]); - model.out = new ScilabDouble([-2]); - model.out2 = new ScilabDouble([-1]); - model.outtyp = new ScilabDouble([1]); - model.evtin = new ScilabDouble(); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble(); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = [sci2exp(1)]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MATRESH.js b/src/main/webapp/history/data_structures/MATRESH.js deleted file mode 100644 index 53b1871..0000000 --- a/src/main/webapp/history/data_structures/MATRESH.js +++ /dev/null @@ -1,31 +0,0 @@ -function MATRESH () { - - - var model = scicos_model(); - - var function_name = "mat_reshape"; - - var funtyp = 4; - model.sim=list(function_name,funtyp); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2]); - model.intyp = new ScilabDouble([1]); - model.out = new ScilabDouble([-1]); - model.out2 = new ScilabDouble([-2]); - model.outtyp = new ScilabDouble([1]); - model.evtin = new ScilabDouble(); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble(); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = [[sci2exp(1)],[sci2exp([1,1])],[sci2exp([1,1])]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MATSING.js b/src/main/webapp/history/data_structures/MATSING.js deleted file mode 100644 index 7b1f072..0000000 --- a/src/main/webapp/history/data_structures/MATSING.js +++ /dev/null @@ -1,31 +0,0 @@ -function MATSING () { - - - var model = scicos_model(); - - var function_name = "mat_sing"; - - var funtyp = 4; - model.sim=list(function_name,funtyp); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2]); - model.intyp = new ScilabDouble([1]); - model.out = new ScilabDouble([-1]); - model.out2 = new ScilabDouble([1]); - model.outtyp = new ScilabDouble([1]); - model.evtin = new ScilabDouble(); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble(); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = [[sci2exp(1)],[sci2exp(1)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MATSUM.js b/src/main/webapp/history/data_structures/MATSUM.js deleted file mode 100644 index 43f7b3b..0000000 --- a/src/main/webapp/history/data_structures/MATSUM.js +++ /dev/null @@ -1,31 +0,0 @@ -function MATSUM () { - - - var model = scicos_model(); - - var function_name = "mat_sum"; - - var funtyp = 4; - model.sim=list(function_name,funtyp); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2]); - model.intyp = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.out2 = new ScilabDouble([1]); - model.outtyp = new ScilabDouble([1]); - model.evtin = new ScilabDouble(); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble(); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = [[sci2exp(1)],[sci2exp(0)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MATTRAN.js b/src/main/webapp/history/data_structures/MATTRAN.js deleted file mode 100644 index a3a0493..0000000 --- a/src/main/webapp/history/data_structures/MATTRAN.js +++ /dev/null @@ -1,17 +0,0 @@ -function MATTRAN () { - - - var model = scicos_model(); - model.sim=list(new ScilabString(["mattran_m"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2]); - model.out = new ScilabDouble([-2]); - model.out2 = new ScilabDouble([-1]); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = [sci2exp(1)]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MATZCONJ.js b/src/main/webapp/history/data_structures/MATZCONJ.js deleted file mode 100644 index efb04cb..0000000 --- a/src/main/webapp/history/data_structures/MATZCONJ.js +++ /dev/null @@ -1,31 +0,0 @@ -function MATZCONJ () { - - - var model = scicos_model(); - - var function_name = "matz_conj"; - - var funtyp = 4; - model.sim=list(function_name,funtyp); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2]); - model.intyp = new ScilabDouble([2]); - model.out = new ScilabDouble([-1]); - model.out2 = new ScilabDouble([-2]); - model.outtyp = new ScilabDouble([2]); - model.evtin = new ScilabDouble(); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble(); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = []; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MATZREIM.js b/src/main/webapp/history/data_structures/MATZREIM.js deleted file mode 100644 index 327d303..0000000 --- a/src/main/webapp/history/data_structures/MATZREIM.js +++ /dev/null @@ -1,31 +0,0 @@ -function MATZREIM () { - - - var model = scicos_model(); - - var function_name = "matz_reim"; - - var funtyp = 4; - model.sim=list(function_name,funtyp); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2]); - model.intyp = new ScilabDouble([2]); - model.out = new ScilabDouble([-1],[-1]); - model.out2 = new ScilabDouble([-2],[-2]); - model.outtyp = new ScilabDouble([1,1]); - model.evtin = new ScilabDouble(); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble(); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = sci2exp(1); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MAXMIN.js b/src/main/webapp/history/data_structures/MAXMIN.js deleted file mode 100644 index 903a053..0000000 --- a/src/main/webapp/history/data_structures/MAXMIN.js +++ /dev/null @@ -1,18 +0,0 @@ -function MAXMIN () { - - - var model = scicos_model(); - model.sim=list(new ScilabString(["minmax"]),new ScilabDouble([4])); - model.out = new ScilabDouble([1]); - model.in1 = new ScilabDouble([-1]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - model.ipar = new ScilabDouble([0]); - - var exprs = [string([2,1,1]')]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - this.x.graphics.style = new ScilabString(["MAXMIN;displayedLabel=MAX"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MAX_f.js b/src/main/webapp/history/data_structures/MAX_f.js deleted file mode 100644 index 3623dc1..0000000 --- a/src/main/webapp/history/data_structures/MAX_f.js +++ /dev/null @@ -1,19 +0,0 @@ -function MAX_f () { - - - var in1 = -1; - - var model = scicos_model(); - model.sim = new ScilabString(["maxblk"]); - model.in1.push(new ScilabDouble([in1])); - model.out = new ScilabDouble([1]); - model.dstate = new ScilabDouble([0],[0]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = " "; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MBLOCK.js b/src/main/webapp/history/data_structures/MBLOCK.js deleted file mode 100644 index ce63569..0000000 --- a/src/main/webapp/history/data_structures/MBLOCK.js +++ /dev/null @@ -1,30 +0,0 @@ -function MBLOCK () { - - - var in1 = ["u1"]; - - var intype = ["I"]; - - var out = ["y1";"y2"]; - - var outtype = ["I";"E"]; - - var param = ["R";"L"]; - - var paramv = list(0.1,.0001); - - var pprop = [[0],[0]]; - - var nameF = "generic"; - - var exprs = ...colon_operator(tlist,["MBLOCK","in","intype","out","outtype","param","paramv","pprop","nameF","funtxt"],sci2exp(...in1),sci2exp(...intype),sci2exp(...out),sci2exp(...outtype),sci2exp(...param),list(string(0.1),string(.0001)),sci2exp(pprop(,)),nameF,[]); - - var model = scicos_model(); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([false,true]); - model.rpar = new ScilabDouble(); - - var for i = 1:lstsize(paramv); - model.rpar = new ScilabDouble([model.rpar],[paramv(i)(:)]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MCLOCK_f.js b/src/main/webapp/history/data_structures/MCLOCK_f.js deleted file mode 100644 index 0a94924..0000000 --- a/src/main/webapp/history/data_structures/MCLOCK_f.js +++ /dev/null @@ -1,81 +0,0 @@ -function MCLOCK_f () { - - - var nn = 2; - - var dt = 0.1; - - var exprs = [[string(dt)],[string(nn)]]; - - var mfclck = MFCLCK_f("define"); - mfclck.graphics.orig = new ScilabDouble([334,199]); - mfclck.graphics.sz = new ScilabDouble([40,40]); - mfclck.graphics.flip = new ScilabBoolean([true]); - mfclck.graphics.exprs=exprs; - mfclck.graphics.pein = new ScilabDouble([12]); - mfclck.graphics.peout = new ScilabDouble([4],[3]); - mfclck.model.rpar = new ScilabDouble([0.1]); - mfclck.model.ipar=new ScilabDouble([nn]); - mfclck.model.firing = new ScilabDouble([-1,0]); - - var clksom = CLKSOM_f("define"); - clksom.graphics.orig = new ScilabDouble([457,161]); - clksom.graphics.sz = new ScilabDouble([16.666667,16.666667]); - clksom.graphics.flip = new ScilabBoolean([true]); - clksom.graphics.exprs = new ScilabString(["0.1";"0.1"]); - clksom.graphics.pein = new ScilabDouble([4],[9],[0]); - clksom.graphics.peout = new ScilabDouble([5]); - - var output_port1 = CLKOUT_f("define"); - output_port1.graphics.orig = new ScilabDouble([509,261]); - output_port1.graphics.sz = new ScilabDouble([20,20]); - output_port1.graphics.flip = new ScilabBoolean([true]); - output_port1.graphics.exprs = new ScilabString(["1"]); - output_port1.graphics.pein = new ScilabDouble([10]); - output_port1.model.ipar = new ScilabDouble([1]); - - var output_port2 = CLKOUT_f("define"); - output_port2.graphics.orig = new ScilabDouble([509,142]); - output_port2.graphics.sz = new ScilabDouble([20,20]); - output_port2.graphics.flip = new ScilabBoolean([true]); - output_port2.graphics.exprs = new ScilabString(["2"]); - output_port2.graphics.pein = new ScilabDouble([13]); - output_port2.model.ipar = new ScilabDouble([2]); - - var split1 = CLKSPLIT_f("define"); - split1.graphics.orig = new ScilabDouble([411.92504],[169.33333]); - split1.graphics.pein = new ScilabDouble([3]); - split1.graphics.peout = new ScilabDouble([9],[10]); - - var split2 = CLKSPLIT_f("define"); - split2.graphics.orig = new ScilabDouble([482.45315],[169.33333]); - split2.graphics.pein = new ScilabDouble([5]); - split2.graphics.peout = new ScilabDouble([12],[13]); - - var gr_i = []; - - var diagram = scicos_diagram(); - diagram.objs.push(mfclck); - diagram.objs.push(clksom); - diagram.objs.push(scicos_link({xx: new ScilabDouble([360.7],[360.7],[411.9]),yy: new ScilabDouble([193.3],[169.3],[169.3]),ct: new ScilabDouble([10,-1]),from: new ScilabDouble([1,2]),to: new ScilabDouble([8,1])})); - diagram.objs.push(scicos_link({xx: new ScilabDouble([347.3],[347.3],[461.8],[461.8]),yy: new ScilabDouble([193.3],[155.5],[155.5],[161]),ct: new ScilabDouble([10,-1]),from: new ScilabDouble([1,1]),to: new ScilabDouble([2,1])})); - diagram.objs.push(scicos_link({xx: new ScilabDouble([468.9],[482.5]),yy: new ScilabDouble([169.3],[169.3]),ct: new ScilabDouble([10,-1]),from: new ScilabDouble([2,1]),to: new ScilabDouble([11,1])})); - diagram.objs.push(output_port1); - diagram.objs.push(output_port2); - diagram.objs.push(split1); - diagram.objs.push(scicos_link({xx: new ScilabDouble([411.9],[457]),yy: new ScilabDouble([169.3],[169.3]),ct: new ScilabDouble([10,-1]),from: new ScilabDouble([8,1]),to: new ScilabDouble([2,2])})); - diagram.objs.push(scicos_link({xx: new ScilabDouble([411.9],[411.9],[509]),yy: new ScilabDouble([169.3],[271],[271]),ct: new ScilabDouble([10,-1]),from: new ScilabDouble([8,2]),to: new ScilabDouble([6,1])})); - diagram.objs.push(split2); - diagram.objs.push(scicos_link({xx: new ScilabDouble([482.5],[489.6],[489.6],[354],[354]),yy: new ScilabDouble([169.3],[169.3],[338.3],[338.3],[244.7]),ct: new ScilabDouble([10,-1]),from: new ScilabDouble([11,1]),to: new ScilabDouble([1,1])})); - diagram.objs.push(scicos_link({xx: new ScilabDouble([482.4],[482.4],[509]),yy: new ScilabDouble([169.3],[152],[152]),ct: new ScilabDouble([10,-1]),from: new ScilabDouble([11,2]),to: new ScilabDouble([7,1])})); - this.x=scicos_block(); - this.x.gui = new ScilabString(["MCLOCK_f"]); - this.x.graphics.sz = new ScilabDouble([3,2]); - this.x.graphics.gr_i=gr_i; - this.x.model.sim = new ScilabString(["csuper"]); - this.x.model.evtout = new ScilabDouble([1],[1]); - this.x.model.blocktype = new ScilabString(["h"]); - this.x.model.rpar=diagram; - this.x.graphics.peout = new ScilabDouble([0],[0]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MFCLCK_f.js b/src/main/webapp/history/data_structures/MFCLCK_f.js deleted file mode 100644 index e7124f9..0000000 --- a/src/main/webapp/history/data_structures/MFCLCK_f.js +++ /dev/null @@ -1,24 +0,0 @@ -function MFCLCK_f () { - - - var nn = 2; - - var dt = 0.1; - - var model = scicos_model(); - model.sim = new ScilabString(["mfclck"]); - model.evtin = new ScilabDouble([1]); - model.evtout = new ScilabDouble([1],[1]); - model.dstate = new ScilabDouble([0]); - model.rpar=new ScilabDouble([dt]); - model.ipar=new ScilabDouble([nn]); - model.blocktype = new ScilabString(["d"]); - model.firing = new ScilabDouble([-1,0]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = [[string(dt)],[string(nn)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MIN_f.js b/src/main/webapp/history/data_structures/MIN_f.js deleted file mode 100644 index c71bfb9..0000000 --- a/src/main/webapp/history/data_structures/MIN_f.js +++ /dev/null @@ -1,19 +0,0 @@ -function MIN_f () { - - - var in1 = -1; - - var model = scicos_model(); - model.sim = new ScilabString(["minblk"]); - model.in1.push(new ScilabDouble([in1])); - model.out = new ScilabDouble([1]); - model.dstate = new ScilabDouble([0],[0]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = sci2exp(in1); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MUX.js b/src/main/webapp/history/data_structures/MUX.js deleted file mode 100644 index 5481f69..0000000 --- a/src/main/webapp/history/data_structures/MUX.js +++ /dev/null @@ -1,19 +0,0 @@ -function MUX () { - - - var in1 = 2; - - var model = scicos_model(); - model.sim=list(new ScilabString(["multiplex"]),new ScilabDouble([4])); - model.in1.push(-...transpose([1:in1])); - model.out = new ScilabDouble([0]); - model.ipar=new ScilabDouble([in1]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = string(in1); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([.5,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/MUX_f.js b/src/main/webapp/history/data_structures/MUX_f.js deleted file mode 100644 index 05e2343..0000000 --- a/src/main/webapp/history/data_structures/MUX_f.js +++ /dev/null @@ -1,19 +0,0 @@ -function MUX_f () { - - - var in1 = 2; - - var model = scicos_model(); - model.sim=list(new ScilabString(["mux"]),new ScilabDouble([1])); - model.in1.push(-...transpose([1:in1])); - model.out = new ScilabDouble([0]); - model.ipar=new ScilabDouble([in1]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = string(in1); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([0.5,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/M_SWITCH.js b/src/main/webapp/history/data_structures/M_SWITCH.js deleted file mode 100644 index e53c664..0000000 --- a/src/main/webapp/history/data_structures/M_SWITCH.js +++ /dev/null @@ -1,23 +0,0 @@ -function M_SWITCH () { - - - var in1 = [[1],[-1],[-1]]; - - var ipar = [[1],[3]]; - - var nin = 2; - - var model = scicos_model(); - model.sim=list(new ScilabString(["mswitch"]),new ScilabDouble([4])); - model.in1.push(new ScilabDouble([in1])); - model.out = new ScilabDouble([-1]); - model.ipar=new ScilabDouble([ipar]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[string(nin)],[string(ipar)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2.5,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/M_freq.js b/src/main/webapp/history/data_structures/M_freq.js deleted file mode 100644 index 0ab9467..0000000 --- a/src/main/webapp/history/data_structures/M_freq.js +++ /dev/null @@ -1,19 +0,0 @@ -function M_freq () { - - - var model = scicos_model(); - model.sim=list(new ScilabString(["m_frequ"]),new ScilabDouble([4])); - model.evtout = new ScilabDouble([1],[1],[1]); - model.evtin = new ScilabDouble([1]); - model.rpar = new ScilabDouble(); - model.opar=list(new ScilabDouble([1),new ScilabDouble([1]),new ScilabDouble([0]]),new ScilabDouble([1),new ScilabDouble([1]),new ScilabDouble([1]]),new ScilabDouble([1),new ScilabDouble([3]),new ScilabDouble([2]]),new ScilabDouble([1]),new ScilabDouble([0]),new ScilabDouble([0])); - model.blocktype = new ScilabString(["d"]); - model.firing = new ScilabDouble([0,-1,-1]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = [[sci2exp([1],[2])],[sci2exp([0],[0])]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/Modulo_Count.js b/src/main/webapp/history/data_structures/Modulo_Count.js deleted file mode 100644 index 62db6ad..0000000 --- a/src/main/webapp/history/data_structures/Modulo_Count.js +++ /dev/null @@ -1,22 +0,0 @@ -function Modulo_Count () { - - - var ini_c = 0; - - var base = 3; - - var model = scicos_model(); - model.sim=list(new ScilabString(["modulo_count"]),new ScilabDouble([4])); - model.evtin = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.dstate=new ScilabDouble([ini_c]); - model.ipar=new ScilabDouble([base]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = [[string(ini_c)],[string(base)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/NEGTOPOS_f.js b/src/main/webapp/history/data_structures/NEGTOPOS_f.js deleted file mode 100644 index e0e40d4..0000000 --- a/src/main/webapp/history/data_structures/NEGTOPOS_f.js +++ /dev/null @@ -1,17 +0,0 @@ -function NEGTOPOS_f () { - - - var model = scicos_model(); - model.sim=list(new ScilabString(["zcross"]),new ScilabDouble([1])); - model.nzcross = new ScilabDouble([1]); - model.in1 = new ScilabDouble([1]); - model.evtout = new ScilabDouble([1]); - model.rpar = new ScilabDouble([-1],[-1],[0],[-1]); - model.blocktype = new ScilabString(["z"]); - model.firing = new ScilabDouble([-1]); - model.dep_ut = new ScilabBoolean([true,false]); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,[],gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/NMOS.js b/src/main/webapp/history/data_structures/NMOS.js deleted file mode 100644 index 350c46c..0000000 --- a/src/main/webapp/history/data_structures/NMOS.js +++ /dev/null @@ -1,43 +0,0 @@ -function NMOS () { - - - var model = scicos_model(); - - var W = 20.e-6; - - var L = 6.e-6; - - var Beta = 0.041e-3; - - var Vt = 0.8; - - var K2 = 1.144; - - var K5 = 0.7311; - - var dW = -2.5e-6; - - var dL = -1.5e-6; - - var RDS = 1.e+7; - model.sim = new ScilabString(["NMOS"]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var mo = modelica(); - mo.model = new ScilabString(["NMOS"]); - mo.outputs = new ScilabString(["D";"B";"S"]); - mo.inputs = new ScilabString(["G"]); - mo.parameters=list(new ScilabString(["W";"L";"Beta";"Vt";"K2";"K5";"dW";"dL";"RDS"]),[W],[L],[Beta],[Vt],[K2],[K5],[dW],[dL],[RDS]); - model.equations=mo; - model.in1.push(ones(size(mo.inputs,"*"),1)); - model.out=ones(size(mo.outputs,"*"),1); - - var exprs = [[string(W)],[string(L)],[string(Beta)],[string(Vt)],[string(K2)],[string(K5)],[string(dW)],[string(dL)],[string(RDS)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - this.x.graphics.in_implicit = new ScilabString(["I"]); - this.x.graphics.out_implicit = new ScilabString(["I";"I";"I"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/NPN.js b/src/main/webapp/history/data_structures/NPN.js deleted file mode 100644 index 843e410..0000000 --- a/src/main/webapp/history/data_structures/NPN.js +++ /dev/null @@ -1,30 +0,0 @@ -function NPN () { - - - var ModelName = "NPN"; - - var PrametersValue = [[50],[0.1],[0],[0.02],[1.200D-10],[5.000D-09],[1.000D-12],[4.000D-13],[5.000D-13],[0.8],[0.4],[0.8],[0.333],[1.000D-15],[1.000D-15],[0.02585],[40]]; - - var ParametersName = ["Bf";"Br";"Is";"Vak";"Tauf";"Taur";"Ccs";"Cje";"Cjc";"Phie";"Me";"Phic";"Mc";"Gbc";"Gbe";"Vt";"EMinMax"]; - - var model = scicos_model(); - - var Typein = []; - - var Typeout = []; - - var MI = []; - - var MO = []; - - var P = [[100,90,-2,0],[,0,50,2,0],[,100,10,-2,0]]; - - var PortName = ["C";"B";"E"]; - - var for i = 1:size(P,"r"); - - var if P(i,3) = =1, then; - Typein = new ScilabDouble([Typein;,"E"]); - MI = new ScilabDouble([MI],[PortName(i)]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/NRMSOM_f.js b/src/main/webapp/history/data_structures/NRMSOM_f.js deleted file mode 100644 index f13e210..0000000 --- a/src/main/webapp/history/data_structures/NRMSOM_f.js +++ /dev/null @@ -1,20 +0,0 @@ -function NRMSOM_f () { - - - var in1 = [[-1],[-1]]; - - var nin = 2; - - var model = scicos_model(); - model.sim = new ScilabString(["junk"]); - model.in1.push(in1); - model.out = new ScilabDouble([-1]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [string(nin)]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([.2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/OUTIMPL_f.js b/src/main/webapp/history/data_structures/OUTIMPL_f.js deleted file mode 100644 index 5d4ce64..0000000 --- a/src/main/webapp/history/data_structures/OUTIMPL_f.js +++ /dev/null @@ -1,25 +0,0 @@ -function OUTIMPL_f () { - - - var model = scicos_model(); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([1]); - - var prt = 1; - model.sim = new ScilabString(["outimpl"]); - model.ipar = new ScilabDouble([1]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var mo = modelica(); - mo.model = new ScilabString(["PORT"]); - mo.inputs = new ScilabString(["n"]); - model.equations=mo; - - var exprs = "1"; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i); - this.x.graphics.in_implicit = new ScilabString(["I"]); - return new ImplicitOutBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/OUT_f.js b/src/main/webapp/history/data_structures/OUT_f.js deleted file mode 100644 index 56eaea2..0000000 --- a/src/main/webapp/history/data_structures/OUT_f.js +++ /dev/null @@ -1,22 +0,0 @@ -function OUT_f () { - - - var n = -1; - - var prt = 1; - - var model = scicos_model(); - model.sim = new ScilabString(["output"]); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2]); - model.intyp = new ScilabDouble([-1]); - model.ipar=new ScilabDouble([prt]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = string(prt); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i); - return new ExplicitOutBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/OpAmp.js b/src/main/webapp/history/data_structures/OpAmp.js deleted file mode 100644 index 120a0f6..0000000 --- a/src/main/webapp/history/data_structures/OpAmp.js +++ /dev/null @@ -1,30 +0,0 @@ -function OpAmp () { - - - var S = []; - - var Z = []; - - var model = scicos_model(); - model.sim = new ScilabString(["OpAmp"]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var mo = modelica(); - mo.model=model.sim; - mo.inputs = new ScilabString(["in_p";"in_n"]); - mo.outputs = new ScilabString(["out"]); - mo.parameters=list(S,Z); - model.equations=mo; - model.in1.push(ones(size(mo.inputs,"*"),1)); - model.out=ones(size(mo.outputs,"*"),1); - model.rpar=Z; - - var exprs = string(Z); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,5]),model,exprs,gr_i); - this.x.graphics.in_implicit = new ScilabString(["I";"I"]); - this.x.graphics.out_implicit = new ScilabString(["I"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/PDE.js b/src/main/webapp/history/data_structures/PDE.js deleted file mode 100644 index 263c715..0000000 --- a/src/main/webapp/history/data_structures/PDE.js +++ /dev/null @@ -1,19 +0,0 @@ -function PDE () { - - - var model = scicos_model(); - model.state=zeros(10,1); - model.sim=list(new ScilabString(["PDE"]),new ScilabDouble([0])); - model.in1 = new ScilabDouble([1],[1],[1],[1],[1]); - model.out = new ScilabDouble([10],[0]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([false,true]); - - var params_pde = tlist(["paramspde";"a";"b";"txt_exp";"check_op1";"a1";"b1";"check_op2";"a2";"b2";"check_op3";"a3";"b3";"check_op4";"a4";"b4";"check_op5";"a5";"b5";"check_op6";"a6";"b6";"check_op7";"a7";"b7";"discr_cst";"discr_non_cst";"signe";"rad_automatique";"rad_manuel";"methode";"ord1";"ord2";"ord3";"degre";"nnode";"txt_pas";"CI";"dCI";"CLa";"CLa_exp";"CLb";"CLb_exp";"points"],"","","","0","","IN_EDP1(t)","0","","IN_EDP2(t)","0","","IN_EDP3(t)","0","","IN_EDP4(t)","0","","IN_EDP5(t)","0","","IN_EDP6(t)","0","","IN_EDP7(t)","0","0","0","0","0","0","","","","","","","","","0","IN_CL1(t)","0","IN_CL2(t)",""); - - var label = list(params_pde,[],""); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,3]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/PID.js b/src/main/webapp/history/data_structures/PID.js deleted file mode 100644 index e3dd59e..0000000 --- a/src/main/webapp/history/data_structures/PID.js +++ /dev/null @@ -1,43 +0,0 @@ -function PID () { - - - var scs_m = scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[600,450,0,0,600,450],Title=["PID"],tol=[0.0001,0.000001,1.000E-10,100001,0,0],tf=100000,context=" ",void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list())); - scs_m.objs.push(scicos_block(gui="INTEGRAL_m",graphics=scicos_graphics(orig=[318.304,183.11733],sz=[40,40],flip=%t,theta=0,exprs=["0";"0";"0";"1";"-1"],pin=7,pout=9,pein=[],peout=[],gr_i=[],id="1/s",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("integral_func",4),in1=1,in2=1,intyp=1,out=1,out2=1,outtyp=1,evtin=[],evtout=[],state=0,dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%f,%t],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_block(gui="SUMMATION",graphics=scicos_graphics(orig=[387.97067,172.85067],sz=[40,60],flip=%t,theta=0,exprs=["1";"[1;1;1]"],pin=[10;9;11],pout=19,pein=[],peout=[],gr_i=[],id="",in_implicit=["E";"E";"E"],out_implicit="E"),model=scicos_model(sim=list("summation",4),in1=[-1;-1;-1],in2=[-2;-2;-2],intyp=[1;1;1],out=-1,out2=-2,outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[1;1;1],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_block(gui="GAINBLK",graphics=scicos_graphics(orig=[321.23733,235.91733],sz=[40,40],flip=%t,theta=0,exprs="1",pin=17,pout=10,pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("gainblk",4),in1=-1,in2=-2,intyp=1,out=-1,out2=-2,outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=1,ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_block(gui="DERIV",graphics=scicos_graphics(orig=[319.03733,135.45067],sz=[40,40],flip=%t,theta=0,exprs=[],pin=8,pout=11,pein=[],peout=[],gr_i=[],id="s",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("deriv",4),in1=-1,in2=-2,intyp=1,out=-1,out2=-2,outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="x",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_block(gui="GAINBLK",graphics=scicos_graphics(orig=[255.23733,183.11733],sz=[40,40],flip=%t,theta=0,exprs="1",pin=13,pout=7,pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("gainblk",4),in1=-1,in2=-2,intyp=1,out=-1,out2=-2,outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=1,ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_block(gui="GAINBLK",graphics=scicos_graphics(orig=[255.23733,135.45067],sz=[40,40],flip=%t,theta=0,exprs="1",pin=14,pout=8,pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("gainblk",4),in1=-1,in2=-2,intyp=1,out=-1,out2=-2,outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=1,ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([303.80876),yy: new ScilabDouble([203.11733),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([5,1,0]),to: new ScilabDouble([1,1,1])})); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([303.80876),yy: new ScilabDouble([155.45067),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([6,1,0]),to: new ScilabDouble([4,1,1])})); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([366.87543),yy: new ScilabDouble([203.11733),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([2,2,1])})); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([369.80876),yy: new ScilabDouble([255.91733),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([3,1,0]),to: new ScilabDouble([2,1,1])})); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([367.60876),yy: new ScilabDouble([155.45067),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([4,1,0]),to: new ScilabDouble([2,3,1])})); - scs_m.objs.push(scicos_block(gui="SPLIT_f",graphics=scicos_graphics(orig=[234.704;203.11733],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=16,pout=[13;14],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=["E";"E";"E"]),model=scicos_model(sim="lsplit",in1=-1,in2=[],intyp=1,out=[-1;-1;-1],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([234.704),yy: new ScilabDouble([203.11733),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([12,1,0]),to: new ScilabDouble([5,1,1])})); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([234.704),yy: new ScilabDouble([203.11733),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([12,2,0]),to: new ScilabDouble([6,1,1])})); - scs_m.objs.push(scicos_block(gui="SPLIT_f",graphics=scicos_graphics(orig=[233.97067;203.11733],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=21,pout=[16;17],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=["E";"E";"E"]),model=scicos_model(sim="lsplit",in1=-1,in2=[],intyp=1,out=[-1;-1;-1],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([233.97067),yy: new ScilabDouble([203.11733),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([15,1,0]),to: new ScilabDouble([12,1,1])})); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([233.97067),yy: new ScilabDouble([203.11733),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([15,2,0]),to: new ScilabDouble([3,1,1])})); - scs_m.objs.push(scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[456.5421,192.85067],sz=[20,20],flip=%t,theta=0,exprs="1",pin=19,pout=[],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=[],intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([436.5421),yy: new ScilabDouble([202.85067),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([2,1,0]),to: new ScilabDouble([18,1,1])})); - scs_m.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[193.97067,193.11733],sz=[20,20],flip=%t,theta=0,exprs="1",pin=[],pout=21,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([213.97067),yy: new ScilabDouble([203.11733),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([20,1,0]),to: new ScilabDouble([15,1,1])})); - - var model = scicos_model(); - model.sim = new ScilabString(["csuper"]); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2]); - model.out = new ScilabDouble([-1]); - model.out2 = new ScilabDouble([-2]); - model.intyp = new ScilabDouble([1]); - model.outtyp = new ScilabDouble([1]); - model.blocktype = new ScilabString(["h"]); - model.firing = new ScilabBoolean([false]); - model.dep_ut = new ScilabBoolean([false,false]); - model.rpar=scs_m; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,[],gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/PMOS.js b/src/main/webapp/history/data_structures/PMOS.js deleted file mode 100644 index 5a9ff67..0000000 --- a/src/main/webapp/history/data_structures/PMOS.js +++ /dev/null @@ -1,43 +0,0 @@ -function PMOS () { - - - var model = scicos_model(); - - var W = 50.0e-6; - - var L = 6.0e-6; - - var Beta = 0.0105e-3; - - var Vt = -1; - - var K2 = 0.41; - - var K5 = 0.839; - - var dW = -2.5e-6; - - var dL = -2.1e-6; - - var RDS = 1.e+7; - model.sim = new ScilabString(["PMOS"]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var mo = modelica(); - mo.model = new ScilabString(["PMOS"]); - mo.outputs = new ScilabString(["D";"B";"S"]); - mo.inputs = new ScilabString(["G"]); - mo.parameters=list(new ScilabString(["W";"L";"Beta";"Vt";"K2";"K5";"dW";"dL";"RDS"]),[W],[L],[Beta],[Vt],[K2],[K5],[dW],[dL],[RDS]); - model.equations=mo; - model.in1.push(ones(size(mo.inputs,"*"),1)); - model.out=ones(size(mo.outputs,"*"),1); - - var exprs = [[string(W)],[string(L)],[string(Beta)],[string(Vt)],[string(K2)],[string(K5)],[string(dW)],[string(dL)],[string(RDS)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - this.x.graphics.in_implicit = new ScilabString(["I"]); - this.x.graphics.out_implicit = new ScilabString(["I";"I";"I"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/PNP.js b/src/main/webapp/history/data_structures/PNP.js deleted file mode 100644 index b9108e6..0000000 --- a/src/main/webapp/history/data_structures/PNP.js +++ /dev/null @@ -1,30 +0,0 @@ -function PNP () { - - - var ModelName = "PNP"; - - var PrametersValue = [[50],[0.1],[0],[0.02],[1.200D-10],[5.000D-09],[1.000D-12],[4.000D-13],[5.000D-13],[0.8],[0.4],[0.8],[0.333],[1.000D-15],[1.000D-15],[0.02585],[40]]; - - var ParametersName = ["Bf";"Br";"Is";"Vak";"Tauf";"Taur";"Ccs";"Cje";"Cjc";"Phie";"Me";"Phic";"Mc";"Gbc";"Gbe";"Vt";"EMinMax"]; - - var model = scicos_model(); - - var Typein = []; - - var Typeout = []; - - var MI = []; - - var MO = []; - - var P = [[100,90,-2,0],[0,50,2,0],[100,10,-2,0]]; - - var PortName = ["C";"B";"E"]; - - var for i = 1:size(P,"r"); - - var if P(i,3) = =1, then; - Typein = new ScilabDouble([Typein;,"E"]); - MI = new ScilabDouble([MI],[PortName(i)]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/POSTONEG_f.js b/src/main/webapp/history/data_structures/POSTONEG_f.js deleted file mode 100644 index 53c941b..0000000 --- a/src/main/webapp/history/data_structures/POSTONEG_f.js +++ /dev/null @@ -1,19 +0,0 @@ -function POSTONEG_f () { - - - var rpar = [[-1],[-1],[-1],[0]]; - - var model = scicos_model(); - model.sim=list(new ScilabString(["zcross"]),new ScilabDouble([1])); - model.nzcross = new ScilabDouble([1]); - model.in1 = new ScilabDouble([1]); - model.evtout = new ScilabDouble([1]); - model.rpar = new ScilabDouble([-1],[-1],[-1],[0]); - model.blocktype = new ScilabString(["z"]); - model.dep_ut = new ScilabBoolean([true,false]); - model.firing = new ScilabDouble([-1]); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,[],gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/POWBLK_f.js b/src/main/webapp/history/data_structures/POWBLK_f.js deleted file mode 100644 index fe907b7..0000000 --- a/src/main/webapp/history/data_structures/POWBLK_f.js +++ /dev/null @@ -1,21 +0,0 @@ -function POWBLK_f () { - - - var in1 = 1; - - var a = 1.5; - - var model = scicos_model(); - model.sim = new ScilabString(["powblk"]); - model.in1 = new ScilabDouble([-1]); - model.out = new ScilabDouble([-1]); - model.rpar=new ScilabDouble([a]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = string(a); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/PRODUCT.js b/src/main/webapp/history/data_structures/PRODUCT.js deleted file mode 100644 index 3fc6a08..0000000 --- a/src/main/webapp/history/data_structures/PRODUCT.js +++ /dev/null @@ -1,19 +0,0 @@ -function PRODUCT () { - - - var sgn = [[1],[-1]]; - - var model = scicos_model(); - model.sim=list(new ScilabString(["product"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([-1],[-1]); - model.out = new ScilabDouble([-1]); - model.ipar=new ScilabDouble([sgn]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = sci2exp(sgn); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,3]),model,,exprs,gr_i); - return new Product(this.x) -} diff --git a/src/main/webapp/history/data_structures/PROD_f.js b/src/main/webapp/history/data_structures/PROD_f.js deleted file mode 100644 index 5e1f69b..0000000 --- a/src/main/webapp/history/data_structures/PROD_f.js +++ /dev/null @@ -1,12 +0,0 @@ -function PROD_f () { - - - var model = scicos_model(); - model.sim=list(new ScilabString(["prod"]),new ScilabDouble([2])); - model.in1 = new ScilabDouble([-1],[-1]); - model.out = new ScilabDouble([-1]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - this.x=new standard_define(new ScilabDouble([1,1]),model,[],[]); - return new RoundBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/PULSE_SC.js b/src/main/webapp/history/data_structures/PULSE_SC.js deleted file mode 100644 index ba73528..0000000 --- a/src/main/webapp/history/data_structures/PULSE_SC.js +++ /dev/null @@ -1,57 +0,0 @@ -function PULSE_SC () { - - - var 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.000D-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"; - - var "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(%t,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list())); - scs_m_1.objs.push(scicos_block(gui="CONST_m",graphics=scicos_graphics(orig=[30.801202,158.91733],sz=[40,40],flip=%t,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=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_block(gui="Ground_g",graphics=scicos_graphics(orig=[31.534535,215.384],sz=[40,40],flip=%t,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=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_block(gui="SELECT_m",graphics=scicos_graphics(orig=[106.00652,186.09381],sz=[40,40],flip=%t,theta=0,exprs=["-1";"2";"1"],pin=[4;5],pout=11,pein=[9;8],peout=[],gr_i=[],id="",in_implicit=["E";"E"],out_implicit="E"),model=scicos_model(sim=list("selector_m",4),in1=[-1;-1],in2=[-2;-2],intyp=[-1;-1],out=-1,out2=-2,outtyp=-1,evtin=[1;1],evtout=[],state=[],dstate=1,odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([80.105964),yy: new ScilabDouble([235.384),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([2,1,0]),to: new ScilabDouble([3,1,1])})); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([79.372631),yy: new ScilabDouble([178.91733),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([3,2,1])})); - scs_m_1.objs.push(scicos_block(gui="SampleCLK",graphics=scicos_graphics(orig=[82.349744,274.21741],sz=[60,40],flip=%t,theta=0,exprs=["F";"E2"],pin=[],pout=[],pein=[],peout=9,gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim="sampleclk",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=[],evtout=1,state=[],dstate=[],odstate=list(),rpar=[1;0.4],ipar=[],opar=list(),blocktype="d",firing=-1,dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_block(gui="SampleCLK",graphics=scicos_graphics(orig=[160.48879,274.21741],sz=[60,40],flip=%t,theta=0,exprs=["F";"E"],pin=[],pout=[],pein=[],peout=8,gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim="sampleclk",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=[],evtout=1,state=[],dstate=[],odstate=list(),rpar=[1;0.1],ipar=[],opar=list(),blocktype="d",firing=-1,dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([190.48879),yy: new ScilabDouble([274.21741),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([7,1,0]),to: new ScilabDouble([3,2,1])})); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([112.34974),yy: new ScilabDouble([274.21741),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([6,1,0]),to: new ScilabDouble([3,1,1])})); - scs_m_1.objs.push(scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[174.57795,196.09381],sz=[20,20],flip=%t,theta=0,exprs="1",pin=11,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=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([154.57795),yy: new ScilabDouble([206.09381),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([3,1,0]),to: new ScilabDouble([10,1,1])})); - - var model = scicos_model(); - model.sim = new ScilabString(["csuper"]); - model.in1 = new ScilabDouble(); - model.in2 = new ScilabDouble(); - model.intyp = new ScilabDouble([1]); - model.out = new ScilabDouble([-1]); - model.out2 = new ScilabDouble([-2]); - model.outtyp = new ScilabDouble([-1]); - model.evtin = new ScilabDouble(); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble(); - model.odstate=list(); - model.rpar=scs_m_1; - model.ipar = new ScilabDouble([1]); - model.opar=list(); - model.blocktype = new ScilabString(["h"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([false,false]); - model.label = new ScilabString([""]); - model.nzcross = new ScilabDouble([0]); - model.nmode = new ScilabDouble([0]); - model.equations=list(); - - var E = 0.1; - - var W = 30; - - var F = 1; - - var A = 1; - - var exprs = [sci2exp(E)sci2exp(W)sci2exp(F)sci2exp(A)]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/PerteDP.js b/src/main/webapp/history/data_structures/PerteDP.js deleted file mode 100644 index b1b5616..0000000 --- a/src/main/webapp/history/data_structures/PerteDP.js +++ /dev/null @@ -1,40 +0,0 @@ -function PerteDP () { - - - var model = scicos_model(); - model.in1 = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - - var L = 10; - - var D = 0.2; - - var lambda = 0.03; - - var z1 = 0; - - var z2 = 0; - - var p_rho = 0; - model.rpar = new ScilabDouble([L],[D],[lambda],[z1],[z2],[p_rho]); - model.sim = new ScilabString(["PerteDP"]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var mo = modelica(); - mo.model = new ScilabString(["PerteDP"]); - mo.inputs = new ScilabString(["C1"]); - mo.outputs = new ScilabString(["C2"]); - mo.parameters=list(new ScilabString(["L";"D";"lambda";"z1";"z2";"p_rho"]),[L],[D],[lambda],[z1],[z2],[p_rho]); - model.equations=mo; - model.in1.push(ones(size(mo.inputs,"*"),1)); - model.out=ones(size(mo.outputs,"*"),1); - - var exprs = [[string(L)],[string(D)],[string(lambda)],[string(z1)],[string(z2)],[string(p_rho)]]; - - var gr_i = []; - this.x=standard_define([2,1],model,exprs,list(gr_i,0)); - this.x.graphics.in_implicit = new ScilabString(["I"]); - this.x.graphics.out_implicit = new ScilabString(["I"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/PotentialSensor.js b/src/main/webapp/history/data_structures/PotentialSensor.js deleted file mode 100644 index 1edfa55..0000000 --- a/src/main/webapp/history/data_structures/PotentialSensor.js +++ /dev/null @@ -1,23 +0,0 @@ -function PotentialSensor () { - - - var model = scicos_model(); - model.in1 = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.rpar = new ScilabDouble(); - model.sim = new ScilabString(["PotentialSensor"]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var mo = modelica(); - mo.model = new ScilabString(["PotentialSensor"]); - mo.inputs = new ScilabString(["p"]); - mo.outputs = new ScilabString(["v"]); - model.equations=mo; - - var gr_i = []; - this.x=standard_define([2,2],model,"",list(gr_i,0)); - this.x.graphics.in_implicit = new ScilabString(["I"]); - this.x.graphics.out_implicit = new ScilabString(["E"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/PuitsP.js b/src/main/webapp/history/data_structures/PuitsP.js deleted file mode 100644 index 550acd9..0000000 --- a/src/main/webapp/history/data_structures/PuitsP.js +++ /dev/null @@ -1,31 +0,0 @@ -function PuitsP () { - - - var model = scicos_model(); - - var P0 = 100000; - - var T0 = 290; - - var H0 = 100000; - - var option_temperature = 1; - model.rpar = new ScilabDouble([P0],[T0],[H0],[option_temperature]); - model.sim = new ScilabString(["Puits"]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var mo = modelica(); - mo.model = new ScilabString(["Puits"]); - mo.inputs = new ScilabString(["C"]); - mo.parameters=list(new ScilabString(["P0";"T0";"H0";"option_temperature"]),[P0],[T0],[H0],[option_temperature]); - model.equations=mo; - model.in1.push(ones(size(mo.inputs,"*"),1)); - - var exprs = [[string(P0)],[string(T0)],[string(H0)],[string(option_temperature)]]; - - var gr_i = []; - this.x=standard_define([2.5,2],model,exprs,list(gr_i,0)); - this.x.graphics.in_implicit = new ScilabString(["I"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/QUANT_f.js b/src/main/webapp/history/data_structures/QUANT_f.js deleted file mode 100644 index 02d0830..0000000 --- a/src/main/webapp/history/data_structures/QUANT_f.js +++ /dev/null @@ -1,22 +0,0 @@ -function QUANT_f () { - - - var pas = 0.1; - - var meth = 1; - - var model = scicos_model(); - model.sim = new ScilabString(["qzrnd"]); - model.in1 = new ScilabDouble([-1]); - model.out = new ScilabDouble([-1]); - model.rpar=new ScilabDouble([pas]); - model.ipar=new ScilabDouble([meth]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[string(pas)],[string(meth)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/RAMP.js b/src/main/webapp/history/data_structures/RAMP.js deleted file mode 100644 index 3ff9355..0000000 --- a/src/main/webapp/history/data_structures/RAMP.js +++ /dev/null @@ -1,27 +0,0 @@ -function RAMP () { - - - var slope = 0; - - var iout = 0; - - var stt = 0; - - var rpar = [[slope],[stt],[iout]]; - - var model = scicos_model(); - model.sim=list(new ScilabString(["ramp"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble(); - model.out = new ScilabDouble([1]); - model.rpar=rpar; - model.blocktype = new ScilabString(["c"]); - model.nmode = new ScilabDouble([1]); - model.nzcross = new ScilabDouble([1]); - model.dep_ut = new ScilabBoolean([false,true]); - - var exprs = [string(rpar)]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/RAND_m.js b/src/main/webapp/history/data_structures/RAND_m.js deleted file mode 100644 index f017471..0000000 --- a/src/main/webapp/history/data_structures/RAND_m.js +++ /dev/null @@ -1,39 +0,0 @@ -function RAND_m () { - - - var a = 0; - - var b = 1; - - var dt = 0; - - var flag = 0; - - var function_name = "rndblk_m"; - - var funtyp = 4; - - var model = scicos_model(); - model.sim=list(function_name,funtyp); - model.in1 = new ScilabDouble(); - model.in2 = new ScilabDouble(); - model.intyp = new ScilabDouble(); - model.out = new ScilabDouble([1]); - model.out2 = new ScilabDouble([1]); - model.outtyp = new ScilabDouble([1]); - model.evtin = new ScilabDouble([1]); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble([int(rand()*(10^7-1))],[0*...a]); - model.rpar = new ScilabDouble([...a,...b]); - model.ipar=new ScilabDouble([flag]); - model.blocktype = new ScilabString(["d"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = [[sci2exp(1)],[string(flag)],[sci2exp([a])],[sci2exp([b])],[sci2exp([model.dstate(1),int(rand()*(10^7-1))])]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/RATELIMITER.js b/src/main/webapp/history/data_structures/RATELIMITER.js deleted file mode 100644 index 3c859f8..0000000 --- a/src/main/webapp/history/data_structures/RATELIMITER.js +++ /dev/null @@ -1,23 +0,0 @@ -function RATELIMITER () { - - - var minp = -1; - - var maxp = 1; - - var rpar = [[maxp],[minp]]; - - var model = scicos_model(); - model.sim=list(new ScilabString(["ratelimiter"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.rpar=rpar; - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[string(maxp)],[string(minp)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3.5,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/READAU_f.js b/src/main/webapp/history/data_structures/READAU_f.js deleted file mode 100644 index a7ef985..0000000 --- a/src/main/webapp/history/data_structures/READAU_f.js +++ /dev/null @@ -1,40 +0,0 @@ -function READAU_f () { - - - var frmt = "uc,"; - - var fname = "test.au"; - - var lunit = 0; - - var N = 20; - - var M = 1; - - var tmask = []; - - var swap = 0; - - var offset = 1; - - var outmask = 1; - - var ievt = 0; - - var nout = size(outmask,"*"); - - var model = scicos_model(); - model.sim=list(new ScilabString(["readau"]),new ScilabDouble([2])); - model.out=nout; - model.evtin = new ScilabDouble([1]); - model.dstate = new ScilabDouble([1],[1],[lunit],[zeros(N*M,1)]); - model.ipar = new ScilabDouble([length(fname)],[_str2code(frmt)],[ievt],[N],[M],[swap],[offset],[_str2code(fname)],[tmask],[outmask]); - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = [[fname],[string(N)],[string(swap)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([5,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/READC_f.js b/src/main/webapp/history/data_structures/READC_f.js deleted file mode 100644 index cc406db..0000000 --- a/src/main/webapp/history/data_structures/READC_f.js +++ /dev/null @@ -1,46 +0,0 @@ -function READC_f () { - - - var frmt = "d, "; - - var fname = "foo"; - - var lunit = 0; - - var N = 20; - - var M = 1; - - var rpar = []; - - var tmask = 0; - - var swap = 0; - - var offset = 1; - - var outmask = 1; - - var ievt = 0; - - var nout = size(outmask,"*"); - - var ipar = [[,length(fname)],[,_str2code(frmt)],[,ievt],[,N],[,M],[,swap],[offset],[,_str2code(fname)],[,tmask],[,outmask,]]; - - var model = scicos_model(); - model.sim=list(new ScilabString(["readc"]),new ScilabDouble([2])); - model.out=nout; - model.evtin = new ScilabDouble([1]); - model.evtout = new ScilabDouble(); - model.dstate = new ScilabDouble([1],[,1],[,lunit],[,zeros(N*M,1)]); - model.ipar = new ScilabDouble([,length(fname)],[,_str2code(frmt)],[,ievt],[,N],[,M],[,swap],[,offset],[_str2code(fname)],[,tmask],[,outmask,]); - model.blocktype = new ScilabString(["d"]); - model.firing = new ScilabDouble([-1]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = [[,"[]"],[,sci2exp(outmask)],[,fname],[,frmt],[,string(M)],[,string(N)],[,string(offset)],[string(swap),]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/REGISTER.js b/src/main/webapp/history/data_structures/REGISTER.js deleted file mode 100644 index 6b9b247..0000000 --- a/src/main/webapp/history/data_structures/REGISTER.js +++ /dev/null @@ -1,20 +0,0 @@ -function REGISTER () { - - - var z0 = zeros(10,1); - - var model = scicos_model(); - model.sim=list(new ScilabString(["delay4"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.evtin = new ScilabDouble([1]); - model.dstate=z0; - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = strcat(string(z0),,";"); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/RELATIONALOP.js b/src/main/webapp/history/data_structures/RELATIONALOP.js deleted file mode 100644 index 72fd81c..0000000 --- a/src/main/webapp/history/data_structures/RELATIONALOP.js +++ /dev/null @@ -1,22 +0,0 @@ -function RELATIONALOP () { - - - var ipar = [2]; - - var label = "<"; - - var model = scicos_model(); - model.sim=list(new ScilabString(["relationalop"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([1],[1]); - model.out = new ScilabDouble([1]); - model.ipar=new ScilabDouble([ipar]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[string(ipar)],[string(0)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - this.x.graphics.style = new ScilabString(["fontSize=13;fontStyle=1;displayedLabel="+label]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/RELAY_f.js b/src/main/webapp/history/data_structures/RELAY_f.js deleted file mode 100644 index 56000db..0000000 --- a/src/main/webapp/history/data_structures/RELAY_f.js +++ /dev/null @@ -1,25 +0,0 @@ -function RELAY_f () { - - - var i0 = 0; - - var in1 = [[-1],[-1]]; - - var nin = 2; - - var model = scicos_model(); - model.sim=list(new ScilabString(["relay"]),new ScilabDouble([2])); - model.in1.push(in1); - model.out = new ScilabDouble([-1]); - model.evtin=ones(in1); - model.dstate=new ScilabDouble([i0]); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,true]); - - var exprs = [[string(nin)],[string(i0+1)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/RFILE_f.js b/src/main/webapp/history/data_structures/RFILE_f.js deleted file mode 100644 index 10fbc93..0000000 --- a/src/main/webapp/history/data_structures/RFILE_f.js +++ /dev/null @@ -1,40 +0,0 @@ -function RFILE_f () { - - - var out = 1; - - var nout = sum(out); - - var frmt = "(7(e10.3,1x))"; - - var fname = "foo"; - - var lunit = 0; - - var N = 2; - - var rpar = []; - - var tmask = 0; - - var outmask = 1; - - var ipar = [[,length(fname)],[length(frmt)],[0],[N],[,_str2code(fname)],[_str2code(frmt)],[,tmask],[outmask,]]; - - var dstate = [[1],[,1],[,lunit],[,zeros((nout)*N,,1)]]; - - var model = scicos_model(); - model.sim = new ScilabString(["readf"]); - model.out=nout; - model.evtin = new ScilabDouble([1]); - model.dstate=new ScilabDouble([dstate]); - model.ipar = new ScilabDouble([,length(fname)],[length(frmt)],[0],[N],[,_str2code(fname)],[_str2code(frmt)],[,tmask],[outmask,]); - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = [[sci2exp([])],[sci2exp(outmask)],[fname],[frmt],[string(N)],[sci2exp(out)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/RICC.js b/src/main/webapp/history/data_structures/RICC.js deleted file mode 100644 index 1eaf89b..0000000 --- a/src/main/webapp/history/data_structures/RICC.js +++ /dev/null @@ -1,31 +0,0 @@ -function RICC () { - - - var model = scicos_model(); - - var function_name = "ricc_m"; - - var funtyp = 4; - model.sim=list(function_name,funtyp); - model.in1 = new ScilabDouble([-1],[-1],[-1]); - model.in2 = new ScilabDouble([-1],[-1],[-1]); - model.intyp = new ScilabDouble([1,1,1]); - model.out = new ScilabDouble([-1]); - model.out2 = new ScilabDouble([-1]); - model.outtyp = new ScilabDouble([1]); - model.evtin = new ScilabDouble(); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble([1],[1]); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = [[sci2exp(1)],[sci2exp(1)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/ROOTCOEF.js b/src/main/webapp/history/data_structures/ROOTCOEF.js deleted file mode 100644 index df1eaad..0000000 --- a/src/main/webapp/history/data_structures/ROOTCOEF.js +++ /dev/null @@ -1,31 +0,0 @@ -function ROOTCOEF () { - - - var model = scicos_model(); - - var function_name = "root_coef"; - - var funtyp = 4; - model.sim=list(function_name,funtyp); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([1]); - model.intyp = new ScilabDouble([1]); - model.out = new ScilabDouble([-2]); - model.out2 = new ScilabDouble([1]); - model.outtyp = new ScilabDouble([1]); - model.evtin = new ScilabDouble(); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble(); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = [[sci2exp(1)],[sci2exp(1)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/Resistor.js b/src/main/webapp/history/data_structures/Resistor.js deleted file mode 100644 index 10b72c3..0000000 --- a/src/main/webapp/history/data_structures/Resistor.js +++ /dev/null @@ -1,28 +0,0 @@ -function Resistor () { - - - var model = scicos_model(); - - var R = 0.01; - model.rpar=new ScilabDouble([R]); - model.sim = new ScilabString(["resistor"]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var mo = modelica(); - mo.model = new ScilabString(["Resistor"]); - mo.inputs = new ScilabString(["p"]); - mo.outputs = new ScilabString(["n"]); - mo.parameters=list(new ScilabString(["R"]),list(R)); - model.equations=mo; - model.in1.push(ones(size(mo.inputs,"*"),1)); - model.out=ones(size(mo.outputs,"*"),1); - - var exprs = string(R); - - var gr_i = []; - this.x=standard_define([2,1],model,exprs,list(gr_i,0)); - this.x.graphics.in_implicit = new ScilabString(["I"]); - this.x.graphics.out_implicit = new ScilabString(["I"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/SAMPHOLD_m.js b/src/main/webapp/history/data_structures/SAMPHOLD_m.js deleted file mode 100644 index 0a52809..0000000 --- a/src/main/webapp/history/data_structures/SAMPHOLD_m.js +++ /dev/null @@ -1,21 +0,0 @@ -function SAMPHOLD_m () { - - - var model = scicos_model(); - model.sim=list(new ScilabString(["samphold4_m"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2]); - model.intyp = new ScilabDouble([1]); - model.outtyp = new ScilabDouble([1]); - model.out = new ScilabDouble([-1]); - model.out2 = new ScilabDouble([-2]); - model.evtin = new ScilabDouble([1]); - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = [sci2exp(1)]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/SATURATION.js b/src/main/webapp/history/data_structures/SATURATION.js deleted file mode 100644 index 37a218a..0000000 --- a/src/main/webapp/history/data_structures/SATURATION.js +++ /dev/null @@ -1,25 +0,0 @@ -function SATURATION () { - - - var minp = -1; - - var maxp = 1; - - var rpar = [[maxp],[minp]]; - - var model = scicos_model(); - model.sim=list(new ScilabString(["satur"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([1]); - model.nzcross = new ScilabDouble([2]); - model.nmode = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.rpar=rpar; - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[string(maxp)],[string(minp)],[string(model.nmode)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/SAWTOOTH_f.js b/src/main/webapp/history/data_structures/SAWTOOTH_f.js deleted file mode 100644 index fcbe8e6..0000000 --- a/src/main/webapp/history/data_structures/SAWTOOTH_f.js +++ /dev/null @@ -1,17 +0,0 @@ -function SAWTOOTH_f () { - - - var model = scicos_model(); - model.sim = new ScilabString(["sawtth"]); - model.out = new ScilabDouble([1]); - model.evtin = new ScilabDouble([1]); - model.dstate = new ScilabDouble([0]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([false,true]); - - var exprs = " "; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/SCALAR2VECTOR.js b/src/main/webapp/history/data_structures/SCALAR2VECTOR.js deleted file mode 100644 index 67c696c..0000000 --- a/src/main/webapp/history/data_structures/SCALAR2VECTOR.js +++ /dev/null @@ -1,18 +0,0 @@ -function SCALAR2VECTOR () { - - - var nout = -1; - - var model = scicos_model(); - model.sim=list(new ScilabString(["scalar2vector"]),new ScilabDouble([4])); - model.out=new ScilabDouble([nout]); - model.in1 = new ScilabDouble([1]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [string([nout])]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/SELECT_m.js b/src/main/webapp/history/data_structures/SELECT_m.js deleted file mode 100644 index e4970c8..0000000 --- a/src/main/webapp/history/data_structures/SELECT_m.js +++ /dev/null @@ -1,31 +0,0 @@ -function SELECT_m () { - - - var z0 = 1; - - var nin = 2; - - var model = scicos_model(); - model.sim=list(new ScilabString(["selector_m"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([-1],[-1]); - model.in2 = new ScilabDouble([-2],[-2]); - model.intyp = new ScilabDouble([1]); - model.out = new ScilabDouble([-1]); - model.out2 = new ScilabDouble([-2]); - model.outtyp = new ScilabDouble([1]); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble(); - model.firing = new ScilabDouble(); - model.evtin=ones(nin,1); - model.dstate=new ScilabDouble([z0]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[sci2exp(1)],[sci2exp(nin)],[sci2exp(z0)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/SELF_SWITCH.js b/src/main/webapp/history/data_structures/SELF_SWITCH.js deleted file mode 100644 index 0966f74..0000000 --- a/src/main/webapp/history/data_structures/SELF_SWITCH.js +++ /dev/null @@ -1,24 +0,0 @@ -function SELF_SWITCH () { - - - var stateOpen = %t; - this.x=scicos_block(); - this.x.gui = new ScilabString(["SELF_SWITCH"]); - this.x.graphics.sz = new ScilabDouble([2,2]); - this.x.graphics.gr_i = new ScilabDouble(); - this.x.graphics.pin = new ScilabDouble([0]); - this.x.graphics.pout = new ScilabDouble([0]); - this.x.model.sim = new ScilabString(["csuper"]); - this.x.model.in1 = new ScilabDouble([1]); - this.x.model.out = new ScilabDouble([1]); - this.x.model.blocktype = new ScilabString(["h"]); - this.x.model.dep_ut = new ScilabBoolean([false,false]); - this.x.model.rpar=genSwitchInnerDiagram(stateOpen); - this.x.model.opar=list(stateOpen); - this.x.graphics.in_implicit = new ScilabString(["E"]); - this.x.graphics.in_style = new ScilabString([""]); - this.x.graphics.out_implicit = new ScilabString(["E"]); - this.x.graphics.out_style = new ScilabString([""]); - this.x.graphics.style = new ScilabString(["SELF_SWITCH_OFF"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/SHIFT.js b/src/main/webapp/history/data_structures/SHIFT.js deleted file mode 100644 index 9d94041..0000000 --- a/src/main/webapp/history/data_structures/SHIFT.js +++ /dev/null @@ -1,26 +0,0 @@ -function SHIFT () { - - - var sgn = [[0],[0]]; - - var OPER = 0; - - var model = scicos_model(); - model.sim=list(new ScilabString(["shift_32_LA"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([-1]); - model.out = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2]); - model.out2 = new ScilabDouble([-2]); - model.intyp = new ScilabDouble([3]); - model.outtyp = new ScilabDouble([3]); - model.rpar = new ScilabDouble(); - model.ipar=new ScilabDouble([sgn]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[sci2exp(3)],[sci2exp(0)],[sci2exp(0)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/SIGNUM.js b/src/main/webapp/history/data_structures/SIGNUM.js deleted file mode 100644 index 39133f5..0000000 --- a/src/main/webapp/history/data_structures/SIGNUM.js +++ /dev/null @@ -1,20 +0,0 @@ -function SIGNUM () { - - - var nu = -1; - - var model = scicos_model(); - model.sim=list(new ScilabString(["signum"]),new ScilabDouble([4])); - model.in1.push(new ScilabDouble([nu])); - model.out=new ScilabDouble([nu]); - model.nzcross=new ScilabDouble([nu]); - model.nmode=new ScilabDouble([nu]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [string([1])]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/SINBLK_f.js b/src/main/webapp/history/data_structures/SINBLK_f.js deleted file mode 100644 index eda3ed0..0000000 --- a/src/main/webapp/history/data_structures/SINBLK_f.js +++ /dev/null @@ -1,16 +0,0 @@ -function SINBLK_f () { - - - var model = scicos_model(); - model.sim = new ScilabString(["sinblk"]); - model.in1 = new ScilabDouble([-1]); - model.out = new ScilabDouble([-1]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = " "; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/SOM_f.js b/src/main/webapp/history/data_structures/SOM_f.js deleted file mode 100644 index d17adbe..0000000 --- a/src/main/webapp/history/data_structures/SOM_f.js +++ /dev/null @@ -1,19 +0,0 @@ -function SOM_f () { - - - var sgn = [[1],[1],[1]]; - - var model = scicos_model(); - model.sim=list(new ScilabString(["sum"]),new ScilabDouble([2])); - model.in1 = new ScilabDouble([-1],[-1],[-1]); - model.out = new ScilabDouble([-1]); - model.rpar=new ScilabDouble([sgn]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[sci2exp(1)],[sci2exp(sgn)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/SQRT.js b/src/main/webapp/history/data_structures/SQRT.js deleted file mode 100644 index 9988080..0000000 --- a/src/main/webapp/history/data_structures/SQRT.js +++ /dev/null @@ -1,19 +0,0 @@ -function SQRT () { - - - var model = scicos_model(); - model.sim=list(new ScilabString(["mat_sqrt"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2]); - model.intyp = new ScilabDouble([1]); - model.outtyp = new ScilabDouble([1]); - model.out = new ScilabDouble([-1]); - model.out2 = new ScilabDouble([-2]); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = [sci2exp(1)]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/SRFLIPFLOP.js b/src/main/webapp/history/data_structures/SRFLIPFLOP.js deleted file mode 100644 index ae291fd..0000000 --- a/src/main/webapp/history/data_structures/SRFLIPFLOP.js +++ /dev/null @@ -1,44 +0,0 @@ -function SRFLIPFLOP () { - - - var scs_m = scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[600,450,0,0,600,450],Title=["SRFLIPFLOP"],tol=[0.0001;0.000001;1.000E-10;100001;0;0;0],tf=60,context=" ",void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list())); - scs_m.objs.push(scicos_block(gui="LOGIC",graphics=scicos_graphics(orig=[298.504,201.45067],sz=[40,40],flip=%t,theta=0,exprs=["[0,1;1,0;1,0;1,0;0,1;0,1;0,0;0,0]";"1"],pin=[4;10;12],pout=[3;8],pein=[],peout=[],gr_i=[],id="",in_implicit=["E";"E";"E"],out_implicit=["E";"E"]),model=scicos_model(sim=list("logic",4),in1=[1],[1],[1],in2=[1],[1],[1],intyp=[5],[5],[5],out=[1],[1],out2=[1],[1],outtyp=[5],[5],evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(int8([0,1); - 1,0; - 1,0; - 1,0; - 0,1; - 0,1; - 0,0; - - var 0,0])),blocktype = "c",firing=%f,dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()); - scs_m.objs.push(scicos_block(gui="DOLLAR_m",graphics=scicos_graphics(orig=[299.23733,254.25067],sz=[40,40],flip=%f,theta=0,exprs=["int8(0)";"1"],pin=6,pout=4,pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("dollar4_m",4),in1=1,in2=1,intyp=5,out=1,out2=1,outtyp=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(new ScilabInteger([0])),rpar=[],ipar=[],opar=list(),blocktype="d",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([347.07543),yy: new ScilabDouble([228.11733),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([5,1,1])})); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([290.6659),yy: new ScilabDouble([274.25067),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([2,1,0]),to: new ScilabDouble([1,1,1])})); - scs_m.objs.push(scicos_block(gui="SPLIT_f",graphics=scicos_graphics(orig=[363.03733,248.584],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=3,pout=[6;14],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=["E";"E";"E"]),model=scicos_model(sim="lsplit",in1=-1,in2=[],intyp=1,out=[-1;-1;-1],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([363.03733),yy: new ScilabDouble([248.584),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([5,1,0]),to: new ScilabDouble([2,1,1])})); - scs_m.objs.push(scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[367.07543,204.784],sz=[20,20],flip=%t,theta=0,exprs="2",pin=8,pout=[],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=[],intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=2,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([347.07543),yy: new ScilabDouble([214.784),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,2,0]),to: new ScilabDouble([7,1,1])})); - scs_m.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[249.93257,211.45067],sz=[20,20],flip=%t,theta=0,exprs="1",pin=[],pout=10,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([269.93257),yy: new ScilabDouble([221.45067),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([9,1,0]),to: new ScilabDouble([1,2,1])})); - scs_m.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[249.93257,201.45067],sz=[20,20],flip=%t,theta=0,exprs="2",pin=[],pout=12,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=2,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([269.93257),yy: new ScilabDouble([211.45067),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([11,1,0]),to: new ScilabDouble([1,3,1])})); - scs_m.objs.push(scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[383.03733,238.584],sz=[20,20],flip=%t,theta=0,exprs="1",pin=14,pout=[],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=[],intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m.objs.push(scicos_link({xx: new ScilabDouble([363.03733),yy: new ScilabDouble([248.584),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([5,2,0]),to: new ScilabDouble([13,1,1])})); - - var model = scicos_model(); - model.sim = new ScilabString(["csuper"]); - model.in1 = new ScilabDouble([1],[1]); - model.in2 = new ScilabDouble([1],[1]); - model.out = new ScilabDouble([1],[1]); - model.out2 = new ScilabDouble([1],[1]); - model.intyp = new ScilabDouble([5,5]); - model.outtyp = new ScilabDouble([5,5]); - model.blocktype = new ScilabString(["h"]); - model.firing = new ScilabBoolean([false]); - model.dep_ut = new ScilabBoolean([true,false]); - model.rpar=scs_m; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,3]),model,[],gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/STEP_FUNCTION.js b/src/main/webapp/history/data_structures/STEP_FUNCTION.js deleted file mode 100644 index 483a4c2..0000000 --- a/src/main/webapp/history/data_structures/STEP_FUNCTION.js +++ /dev/null @@ -1,57 +0,0 @@ -function STEP_FUNCTION () { - - - var scs_m_1 = scicos_diagram(); - scs_m_1.objs.push(STEP("define")); - scs_m_1.objs.push(OUT_f("define")); - scs_m_1.objs.push(scicos_link({})); - scs_m_1.objs.push(scicos_link({})); - - var blk = scs_m_1.objs(1); - - var graphics = blk.graphics; - - var model = blk.model; - graphics.orig = new ScilabDouble([0,0]); - graphics.sz = new ScilabDouble([40,40]); - graphics.pein = new ScilabDouble([4]); - graphics.peout = new ScilabDouble([4]); - graphics.pout = new ScilabDouble([3]); - blk.graphics=graphics; - blk.model=model; - scs_m_1.objs.push(blk); - blk=scs_m_1.objs(2); - graphics=blk.graphics; - model=blk.model; - graphics.orig = new ScilabDouble([80,10]); - graphics.sz = new ScilabDouble([20,20]); - graphics.exprs = new ScilabString(["1"]); - model.ipar = new ScilabDouble([1]); - graphics.pin = new ScilabDouble([3]); - blk.graphics=graphics; - blk.model=model; - scs_m_1.objs.push(blk); - - var lnk = scs_m_1.objs(3); - lnk.from = new ScilabDouble([1,1,0]); - lnk.to = new ScilabDouble([2,1,1]); - scs_m_1.objs.push(lnk); - lnk=scs_m_1.objs(4); - lnk.xx = new ScilabDouble([0,20, -20,-20,20,1]); - lnk.yy = new ScilabDouble([0,-20,-20, 60,60,1]); - lnk.ct = new ScilabDouble([5,-1]); - lnk.from = new ScilabDouble([1,1,0]); - lnk.to = new ScilabDouble([1,1,1]); - scs_m_1.objs.push(lnk); - clear blk lnk - model=scicos_model(); - model.sim = new ScilabString(["csuper"]); - model.out = new ScilabDouble([1]); - model.out2 = new ScilabDouble([1]); - model.outtyp = new ScilabDouble([1]); - model.rpar=scs_m_1; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,[],gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/SUBMAT.js b/src/main/webapp/history/data_structures/SUBMAT.js deleted file mode 100644 index b8cea53..0000000 --- a/src/main/webapp/history/data_structures/SUBMAT.js +++ /dev/null @@ -1,31 +0,0 @@ -function SUBMAT () { - - - var model = scicos_model(); - - var function_name = "submat"; - - var funtyp = 4; - model.sim=list(function_name,funtyp); - model.in1 = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2]); - model.intyp = new ScilabDouble([1]); - model.out = new ScilabDouble([-1]); - model.out2 = new ScilabDouble([-2]); - model.outtyp = new ScilabDouble([1]); - model.evtin = new ScilabDouble(); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble([1],[1],[1],[1]); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = [[sci2exp(1)],[sci2exp(1)],[sci2exp(1)],[sci2exp(1)],[sci2exp(1)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2.5,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/SUMMATION.js b/src/main/webapp/history/data_structures/SUMMATION.js deleted file mode 100644 index 4c7fe1b..0000000 --- a/src/main/webapp/history/data_structures/SUMMATION.js +++ /dev/null @@ -1,21 +0,0 @@ -function SUMMATION () { - - - var sgn = [[1],[-1]]; - - var model = scicos_model(); - model.sim=list(new ScilabString(["summation"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([-1],[-1]); - model.out = new ScilabDouble([-1]); - model.in2 = new ScilabDouble([-2],[-2]); - model.out2 = new ScilabDouble([-2]); - model.ipar=new ScilabDouble([sgn]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = sci2exp(sgn); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,3]),model,,exprs,gr_i); - return new Summation(this.x) -} diff --git a/src/main/webapp/history/data_structures/SUM_f.js b/src/main/webapp/history/data_structures/SUM_f.js deleted file mode 100644 index 2497a34..0000000 --- a/src/main/webapp/history/data_structures/SUM_f.js +++ /dev/null @@ -1,16 +0,0 @@ -function SUM_f () { - - - var model = scicos_model(); - model.sim=list(new ScilabString(["plusblk"]),new ScilabDouble([2])); - model.in1 = new ScilabDouble([-1],[-1],[-1]); - model.out = new ScilabDouble([-1]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var gr_i = []; - - var exprs = []; - this.x=new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i); - return new RoundBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/SUPER_f.js b/src/main/webapp/history/data_structures/SUPER_f.js deleted file mode 100644 index 5ed120a..0000000 --- a/src/main/webapp/history/data_structures/SUPER_f.js +++ /dev/null @@ -1,28 +0,0 @@ -function SUPER_f () { - - - var scs = scicos_diagram(); - scs.props.title = new ScilabString(["Super,Block"]); - - var in1 = IN_f("define"); - in1.graphics.orig = new ScilabDouble([40,,40]); - in1.graphics.sz = new ScilabDouble([20,,20]); - - var out = OUT_f("define"); - out.graphics.orig = new ScilabDouble([240,,40]); - out.graphics.sz = new ScilabDouble([20,,20]); - scs.objs.push(in1); - scs.objs.push(out); - - var model = scicos_model(); - model.sim = new ScilabString(["super"]); - model.in1 = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.rpar=scs; - model.blocktype = new ScilabString(["h"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,[],gr_i); - return new SuperBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/SWITCH2_m.js b/src/main/webapp/history/data_structures/SWITCH2_m.js deleted file mode 100644 index 4c1934a..0000000 --- a/src/main/webapp/history/data_structures/SWITCH2_m.js +++ /dev/null @@ -1,30 +0,0 @@ -function SWITCH2_m () { - - - var ipar = [0]; - - var nzz = 1; - - var rpar = 0; - - var model = scicos_model(); - model.sim=list(new ScilabString(["switch2_m"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([-1],[1],[-1]); - model.in2 = new ScilabDouble([-2],[1],[-2]); - model.intyp = new ScilabDouble([1]); - model.out = new ScilabDouble([-1]); - model.out2 = new ScilabDouble([-2]); - model.outtyp = new ScilabDouble([1]); - model.ipar=new ScilabDouble([ipar]); - model.rpar=new ScilabDouble([rpar]); - model.nzcross=new ScilabDouble([nzz]); - model.nmode = new ScilabDouble([1]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[sci2exp(1)],[string(ipar)],[string(rpar)],[string(nzz)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/SWITCH_f.js b/src/main/webapp/history/data_structures/SWITCH_f.js deleted file mode 100644 index f9a4f5e..0000000 --- a/src/main/webapp/history/data_structures/SWITCH_f.js +++ /dev/null @@ -1,24 +0,0 @@ -function SWITCH_f () { - - - var i0 = 0; - - var in1 = [[-1],[-1]]; - - var nin = 2; - - var model = scicos_model(); - model.sim=list(new ScilabString(["switchn"]),new ScilabDouble([2])); - model.in1.push(in1); - model.out = new ScilabDouble([-1]); - model.ipar=new ScilabDouble([i0]); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,true]); - - var exprs = [[string(nin)],[string(i0+1)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/SampleCLK.js b/src/main/webapp/history/data_structures/SampleCLK.js deleted file mode 100644 index 51bf28a..0000000 --- a/src/main/webapp/history/data_structures/SampleCLK.js +++ /dev/null @@ -1,15 +0,0 @@ -function SampleCLK () { - - - var model = scicos_model(); - model.sim = new ScilabString(["sampleclk"]); - model.evtout = new ScilabDouble([1]); - model.rpar = new ScilabDouble([1,0]); - model.blocktype = new ScilabString(["d"]); - model.firing = new ScilabDouble([-1]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = [[sci2exp(1)],[sci2exp(0)]]; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs," "); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/Sigbuilder.js b/src/main/webapp/history/data_structures/Sigbuilder.js deleted file mode 100644 index a4c176c..0000000 --- a/src/main/webapp/history/data_structures/Sigbuilder.js +++ /dev/null @@ -1,19 +0,0 @@ -function Sigbuilder () { - - - var scs_m_1 = scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[600,450,0,0,600,450],Title=["Sigbuilder","./"],tol=[0.0001;0.000001;1.000D-10;100001;0;0;0],tf=100,context=" ",void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list())); - scs_m_1.objs.push(scicos_block(gui="CURVE_c",graphics=scicos_graphics(orig=[329.63473,606.18517],sz=[40,40],flip=%t,theta=0,exprs=["3";"[0,1,2]";"[10,20,-30]";"y";"n"],pin=[],pout=6,pein=4,peout=2,gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim=list("curve_c",4),in1=[],in2=[],intyp=1,out=1,out2=[],outtyp=1,evtin=1,evtout=1,state=[],dstate=[],odstate=list(),rpar=[0;1;2;10;20;-30],ipar=[3;3;1],opar=list(),blocktype="c",firing=0,dep_ut=[%f,%t],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([349.63473),yy: new ScilabDouble([600.47089),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([3,1,1])})); - scs_m_1.objs.push(scicos_block(gui="CLKSPLIT_f",graphics=scicos_graphics(orig=[349.49528;565.10704],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=[],pout=[],pein=2,peout=[8;4],gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim="split",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=1,evtout=[1;1],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="d",firing=[%f,%f,%f],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([349.49528),yy: new ScilabDouble([565.10704),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([3,2,0]),to: new ScilabDouble([1,1,1])})); - scs_m_1.objs.push(scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[398.20616,616.18517],sz=[20,20],flip=%t,theta=0,exprs="1",pin=6,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=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([378.20616),yy: new ScilabDouble([626.18517),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([5,1,1])})); - scs_m_1.objs.push(scicos_block(gui="CLKOUTV_f",graphics=scicos_graphics(orig=[339.49528,505.10704],sz=[20,30],flip=%t,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=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list())); - scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([349.49528),yy: new ScilabDouble([565.10704),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([3,1,0]),to: new ScilabDouble([7,1,1])})); - - var 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=[%f,%f],label="",nzcross=0,nmode=0,equations=list()); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,[],gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/SineVoltage.js b/src/main/webapp/history/data_structures/SineVoltage.js deleted file mode 100644 index 99e8b10..0000000 --- a/src/main/webapp/history/data_structures/SineVoltage.js +++ /dev/null @@ -1,36 +0,0 @@ -function SineVoltage () { - - - var model = scicos_model(); - model.in1 = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - - var V = 1; - - var ph = 0; - - var frq = 1; - - var offset = 0; - - var start = 0; - model.rpar = new ScilabDouble([V],[ph],[frq],[offset],[start]); - model.sim = new ScilabString(["SineVoltage"]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var mo = modelica(); - mo.model = new ScilabString(["SineVoltage"]); - mo.inputs = new ScilabString(["p"]); - mo.outputs = new ScilabString(["n"]); - mo.parameters=list(new ScilabString(["V";"phase";"freqHz";"offset";"startTime"]),list(V,ph,frq,offset,start)); - model.equations=mo; - - var exprs = [[string(V)],[string(ph)],[string(frq)],[string(offset)],[string(start)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - this.x.graphics.in_implicit = new ScilabString(["I"]); - this.x.graphics.out_implicit = new ScilabString(["I"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/SourceP.js b/src/main/webapp/history/data_structures/SourceP.js deleted file mode 100644 index fa2cd52..0000000 --- a/src/main/webapp/history/data_structures/SourceP.js +++ /dev/null @@ -1,33 +0,0 @@ -function SourceP () { - - - var model = scicos_model(); - - var P0 = 300000; - - var T0 = 290; - - var H0 = 100000; - - var option_temperature = 1; - model.rpar = new ScilabDouble([P0],[T0],[H0],[option_temperature]); - model.sim = new ScilabString(["Source"]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var mo = modelica(); - mo.model = new ScilabString(["Source"]); - mo.inputs = new ScilabDouble(); - mo.outputs = new ScilabString(["C"]); - mo.parameters=list(new ScilabString(["P0";"T0";"H0";"option_temperature"]),[P0],[T0],[H0],[option_temperature]); - model.equations=mo; - model.in1.push(ones(size(mo.inputs,"*"),1)); - model.out=ones(size(mo.outputs,"*"),1); - - var exprs = [[string(P0)],[string(T0)],[string(H0)],[string(option_temperature)]]; - - var gr_i = []; - this.x=standard_define([2.5,2],model,exprs,list(gr_i,0)); - this.x.graphics.out_implicit = new ScilabString(["I"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/Switch.js b/src/main/webapp/history/data_structures/Switch.js deleted file mode 100644 index 3b7d196..0000000 --- a/src/main/webapp/history/data_structures/Switch.js +++ /dev/null @@ -1,34 +0,0 @@ -function Switch () { - - - var model = scicos_model(); - - var Ron = 0.01; - - var Roff = 1e5; - - var S = ["Ron";"Roff"]; - - var Z = eval(S); - model.sim = new ScilabString(["Switch"]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var mo = modelica(); - mo.model=model.sim; - mo.inputs = new ScilabString(["p";"inp"]); - mo.outputs = new ScilabString(["n"]); - mo.parameters=list(S,Z); - model.equations=mo; - model.in1.push(ones(size(mo.inputs,"*"),1)); - model.out=ones(size(mo.outputs,"*"),1); - model.rpar=Z; - - var exprs = string(Z); - - var gr_i = []; - this.x=standard_define([2,2],model,exprs,list(gr_i,0)); - this.x.graphics.in_implicit = new ScilabString(["I";"E"]); - this.x.graphics.out_implicit = new ScilabString(["I"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/TANBLK_f.js b/src/main/webapp/history/data_structures/TANBLK_f.js deleted file mode 100644 index e20343a..0000000 --- a/src/main/webapp/history/data_structures/TANBLK_f.js +++ /dev/null @@ -1,18 +0,0 @@ -function TANBLK_f () { - - - var in1 = -1; - - var model = scicos_model(); - model.sim = new ScilabString(["tanblk"]); - model.in1.push(new ScilabDouble([in1])); - model.out=new ScilabDouble([in1]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = sci2exp(in1); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/TCLSS.js b/src/main/webapp/history/data_structures/TCLSS.js deleted file mode 100644 index f472447..0000000 --- a/src/main/webapp/history/data_structures/TCLSS.js +++ /dev/null @@ -1,27 +0,0 @@ -function TCLSS () { - - - var x0 = 0],[A=0],[B=1],[C=1],[D=0; - - var in1 = 1; - - var nx = size(x0,"*"); - - var out = 1; - - var model = scicos_model(); - model.sim=list(new ScilabString(["tcslti4"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([in1],[nx]); - model.out=new ScilabDouble([out]); - model.evtin = new ScilabDouble([1]); - model.state=new ScilabDouble([x0]); - model.rpar = new ScilabDouble([...colon_operator(A,:)],[...B],[C(,)],[...D]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([false,true]); - - var exprs = [[strcat(sci2exp(A))],[strcat(sci2exp(B))],[strcat(sci2exp(C))],[strcat(sci2exp(D))],[strcat(sci2exp(x0))]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/TEXT_f.js b/src/main/webapp/history/data_structures/TEXT_f.js deleted file mode 100644 index 4ca293e..0000000 --- a/src/main/webapp/history/data_structures/TEXT_f.js +++ /dev/null @@ -1,21 +0,0 @@ -function TEXT_f () { - - - var font = 2; - - var siz = 1; - - var model = scicos_model(); - model.sim = new ScilabString(["text"]); - model.rpar = new ScilabString(["Text"]); - model.ipar = new ScilabDouble([font],[siz]); - - var exprs = [["Text"],[string(font)],[,string(siz)]]; - - var graphics = scicos_graphics(); - graphics.orig = new ScilabDouble([0,0]); - graphics.sz = new ScilabDouble([2,1]); - graphics.exprs=new ScilabString([exprs]); - this.x=mlist(new ScilabString(["Text","graphics","model","void","gui"]),graphics,model,new ScilabString([" "]),new ScilabString(["TEXT_f"])); - return new TextBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/TIME_DELAY.js b/src/main/webapp/history/data_structures/TIME_DELAY.js deleted file mode 100644 index 82a1e99..0000000 --- a/src/main/webapp/history/data_structures/TIME_DELAY.js +++ /dev/null @@ -1,26 +0,0 @@ -function TIME_DELAY () { - - - var nin = 1; - - var T = 1; - - var init = 0; - - var N = 1024; - - var model = scicos_model(); - model.sim=list(new ScilabString(["time_delay"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([nin]); - model.out=new ScilabDouble([nin]); - model.rpar = new ScilabDouble([T,init]); - model.ipar=new ScilabDouble([N]); - model.blocktype = new ScilabString(["x"]); - model.dep_ut = new ScilabBoolean([false,true]); - - var exprs = [[string(T)],[string(init)],[string(N)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3.5,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/TIME_f.js b/src/main/webapp/history/data_structures/TIME_f.js deleted file mode 100644 index 69d4312..0000000 --- a/src/main/webapp/history/data_structures/TIME_f.js +++ /dev/null @@ -1,13 +0,0 @@ -function TIME_f () { - - - var model = scicos_model(); - model.sim = new ScilabString(["timblk"]); - model.out = new ScilabDouble([1]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([false,true]); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,[],gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/TKSCALE.js b/src/main/webapp/history/data_structures/TKSCALE.js deleted file mode 100644 index 5c7bd8e..0000000 --- a/src/main/webapp/history/data_structures/TKSCALE.js +++ /dev/null @@ -1,23 +0,0 @@ -function TKSCALE () { - - - var a = -10; - - var b = 10; - - var f = 1; - - var model = scicos_model(); - model.sim=list(new ScilabString(["tkscaleblk"]),new ScilabDouble([5])); - model.out = new ScilabDouble([1]); - model.evtin = new ScilabDouble([1]); - model.rpar = new ScilabDouble([a],[b],[f]); - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = [[sci2exp(a)],[sci2exp(b)],[sci2exp(f)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/TOWS_c.js b/src/main/webapp/history/data_structures/TOWS_c.js deleted file mode 100644 index 6094f11..0000000 --- a/src/main/webapp/history/data_structures/TOWS_c.js +++ /dev/null @@ -1,31 +0,0 @@ -function TOWS_c () { - - - var nu = -1; - - var nz = 128; - - var varnam = "A"; - - var herit = 0; - - var model = scicos_model(); - model.sim=list(new ScilabString(["tows_c"]),,new ScilabDouble([4])); - model.in1 = new ScilabDouble([nu]); - model.in2 = new ScilabDouble([-2]); - model.intyp = new ScilabDouble([-1]); - model.out = new ScilabDouble(); - model.evtin = new ScilabDouble([1]); - model.evtout = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble([nz],[,length(varnam)],[,ascii(varnam)']); - model.blocktype = new ScilabString(["d"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([false,false]); - - var gr_i = []; - - var exprs = [[string(nz)],[,string(varnam)],[,string(herit)]]; - this.x=new standard_define(new ScilabDouble([4,2]),,model,,exprs,,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/TRASH_f.js b/src/main/webapp/history/data_structures/TRASH_f.js deleted file mode 100644 index c9e4ac4..0000000 --- a/src/main/webapp/history/data_structures/TRASH_f.js +++ /dev/null @@ -1,18 +0,0 @@ -function TRASH_f () { - - - var in1 = -1; - - var model = scicos_model(); - model.sim = new ScilabString(["trash"]); - model.in1.push(new ScilabDouble([in1])); - model.evtin = new ScilabDouble([1]); - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = " "; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/TrigFun.js b/src/main/webapp/history/data_structures/TrigFun.js deleted file mode 100644 index 736a8c2..0000000 --- a/src/main/webapp/history/data_structures/TrigFun.js +++ /dev/null @@ -1,16 +0,0 @@ -function TrigFun () { - - - var model = scicos_model(); - model.sim=list(new ScilabString(["sin_blk"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([-1]); - model.out = new ScilabDouble([-1]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = "sin"; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/VARIABLE_DELAY.js b/src/main/webapp/history/data_structures/VARIABLE_DELAY.js deleted file mode 100644 index 81d29f1..0000000 --- a/src/main/webapp/history/data_structures/VARIABLE_DELAY.js +++ /dev/null @@ -1,26 +0,0 @@ -function VARIABLE_DELAY () { - - - var nin = 1; - - var T = 1; - - var init = 0; - - var N = 1024; - - var model = scicos_model(); - model.sim=list(new ScilabString(["variable_delay"]),new ScilabDouble([4])); - model.in1 = new ScilabDouble([nin],[1]); - model.out=new ScilabDouble([nin]); - model.rpar = new ScilabDouble([T,init]); - model.ipar=new ScilabDouble([N]); - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = [[string(T)],[string(init)],[string(N)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/VVsourceAC.js b/src/main/webapp/history/data_structures/VVsourceAC.js deleted file mode 100644 index 78dcc38..0000000 --- a/src/main/webapp/history/data_structures/VVsourceAC.js +++ /dev/null @@ -1,30 +0,0 @@ -function VVsourceAC () { - - - var model = scicos_model(); - model.in1 = new ScilabDouble([1],[1]); - model.out = new ScilabDouble([1]); - - var VA = 220; - - var FR = 50; - model.rpar = new ScilabDouble([FR]); - model.sim = new ScilabString(["VVsourceAC"]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var mo = modelica(); - mo.model = new ScilabString(["VVsourceAC"]); - mo.inputs = new ScilabString(["p","VA"]); - mo.outputs = new ScilabString(["n"]); - mo.parameters=list(new ScilabString(["f"]),list(FR)); - model.equations=mo; - - var exprs = [string(FR)]; - - var gr_i = []; - this.x=standard_define([2,2],model,exprs,list(gr_i,0)); - this.x.graphics.in_implicit = new ScilabString(["I","E"]); - this.x.graphics.out_implicit = new ScilabString(["I"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/VanneReglante.js b/src/main/webapp/history/data_structures/VanneReglante.js deleted file mode 100644 index 8e3dc25..0000000 --- a/src/main/webapp/history/data_structures/VanneReglante.js +++ /dev/null @@ -1,32 +0,0 @@ -function VanneReglante () { - - - var model = scicos_model(); - model.in1 = new ScilabDouble([1],[1]); - model.out = new ScilabDouble([1]); - - var Cvmax = 8005.42; - - var p_rho = 0; - model.rpar = new ScilabDouble([Cvmax],[p_rho]); - model.sim = new ScilabString(["VanneReglante"]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var mo = modelica(); - mo.model = new ScilabString(["VanneReglante"]); - mo.inputs = new ScilabString(["C1" "Ouv"]); - mo.outputs = new ScilabString(["C2"]); - mo.parameters=list(new ScilabString(["Cvmax";"p_rho"]),[Cvmax],[p_rho]); - model.equations=mo; - model.in1.push(ones(size(mo.inputs,"*"),1)); - model.out=ones(size(mo.outputs,"*"),1); - - var exprs = [[string(Cvmax)],[string(p_rho)]]; - - var gr_i = []; - this.x=standard_define([2,2],model,exprs,list(gr_i,0)); - this.x.graphics.in_implicit = new ScilabString(["I";"E"]); - this.x.graphics.out_implicit = new ScilabString(["I"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/VariableResistor.js b/src/main/webapp/history/data_structures/VariableResistor.js deleted file mode 100644 index bfb7914..0000000 --- a/src/main/webapp/history/data_structures/VariableResistor.js +++ /dev/null @@ -1,24 +0,0 @@ -function VariableResistor () { - - - var model = scicos_model(); - model.sim = new ScilabString(["VariableResistor"]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var mo = modelica(); - mo.model = new ScilabString(["VariableResistor"]); - mo.inputs = new ScilabString(["p","R"]); - mo.outputs = new ScilabString(["n"]); - model.equations=mo; - model.in1.push(ones(size(mo.inputs,"*"),1)); - model.out=ones(size(mo.outputs,"*"),1); - - var exprs = []; - - var gr_i = []; - this.x=standard_define([2,2],model,exprs,list(gr_i,0)); - this.x.graphics.in_implicit = new ScilabString(["I","E"]); - this.x.graphics.out_implicit = new ScilabString(["I"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/VirtualCLK0.js b/src/main/webapp/history/data_structures/VirtualCLK0.js deleted file mode 100644 index 82fa621..0000000 --- a/src/main/webapp/history/data_structures/VirtualCLK0.js +++ /dev/null @@ -1,16 +0,0 @@ -function VirtualCLK0 () { - - - var model = scicos_model(); - model.sim = new ScilabString(["vrtclk0"]); - model.evtin = new ScilabDouble([1]); - model.opar=list(); - model.ipar = new ScilabDouble(); - model.blocktype = new ScilabString(["d"]); - model.firing = new ScilabDouble([-1]); - model.dep_ut = new ScilabBoolean([false,false]); - - var exprs = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs," "); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/VoltageSensor.js b/src/main/webapp/history/data_structures/VoltageSensor.js deleted file mode 100644 index 3eab08a..0000000 --- a/src/main/webapp/history/data_structures/VoltageSensor.js +++ /dev/null @@ -1,24 +0,0 @@ -function VoltageSensor () { - - - var model = scicos_model(); - model.in1 = new ScilabDouble([1]); - model.out = new ScilabDouble([1],[,1]); - model.sim = new ScilabString(["VoltageSensor"]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var mo = modelica(); - mo.model = new ScilabString(["VoltageSensor"]); - mo.inputs = new ScilabString(["p"]); - mo.outputs = new ScilabString(["n";"v"]); - model.equations=mo; - - var exprs = []; - - var gr_i = []; - this.x=standard_define([2,2],model,exprs,list(gr_i,0)); - this.x.graphics.in_implicit = new ScilabString(["I"]); - this.x.graphics.out_implicit = new ScilabString(["I";"E"]); - return new VoltageSensorBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/VsourceAC.js b/src/main/webapp/history/data_structures/VsourceAC.js deleted file mode 100644 index fa02afd..0000000 --- a/src/main/webapp/history/data_structures/VsourceAC.js +++ /dev/null @@ -1,30 +0,0 @@ -function VsourceAC () { - - - var model = scicos_model(); - model.in1 = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - - var VA = 220; - - var FR = 50; - model.rpar = new ScilabDouble([VA],[FR]); - model.sim = new ScilabString(["VsourceAC"]); - model.blocktype = new ScilabString(["c"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var mo = modelica(); - mo.model = new ScilabString(["VsourceAC"]); - mo.inputs = new ScilabString(["p"]); - mo.outputs = new ScilabString(["n"]); - mo.parameters=list(new ScilabString(["VA";"f"]),list(VA,FR)); - model.equations=mo; - - var exprs = [[string(VA)],[string(FR)]]; - - var gr_i = []; - this.x=standard_define([2,2],model,exprs,list(gr_i,0)); - this.x.graphics.in_implicit = new ScilabString(["I"]); - this.x.graphics.out_implicit = new ScilabString(["I"]); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/WFILE_f.js b/src/main/webapp/history/data_structures/WFILE_f.js deleted file mode 100644 index 7e9a4ed..0000000 --- a/src/main/webapp/history/data_structures/WFILE_f.js +++ /dev/null @@ -1,30 +0,0 @@ -function WFILE_f () { - - - var in1 = 1; - - var nin = sum(in1); - - var frmt = "(7(e10.3,1x))"; - - var fname = "foo"; - - var lunit = 0; - - var N = 2; - - var model = scicos_model(); - model.sim = new ScilabString(["writef"]); - model.in1.push(new ScilabDouble([in1])); - model.evtin = new ScilabDouble([1]); - model.dstate = new ScilabDouble([-1],[lunit],[zeros((nin+1)*N,1)]); - model.ipar = new ScilabDouble([length(fname)],[length(frmt)],[0],[N],[_str2code(fname)],[_str2code(frmt)]); - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[sci2exp(in1)],[fname],[frmt],[string(N)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/WRITEAU_f.js b/src/main/webapp/history/data_structures/WRITEAU_f.js deleted file mode 100644 index d831faf..0000000 --- a/src/main/webapp/history/data_structures/WRITEAU_f.js +++ /dev/null @@ -1,32 +0,0 @@ -function WRITEAU_f () { - - - var in1 = 1; - - var nin = sum(in1); - - var frmt = "uc,"; - - var fname = "/dev/audio"; - - var swap = 0; - - var lunit = 0; - - var N = 2; - - var model = scicos_model(); - model.sim=list(new ScilabString(["writeau"]),new ScilabDouble([2])); - model.in1.push(new ScilabDouble([in1])); - model.evtin = new ScilabDouble([1]); - model.dstate = new ScilabDouble([-1],[lunit],[zeros((nin+1)*N,1)]); - model.ipar = new ScilabDouble([length(fname)],[_str2code(frmt)],[N],[swap],[_str2code(fname)]); - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [string(N)string(swap)]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/WRITEC_f.js b/src/main/webapp/history/data_structures/WRITEC_f.js deleted file mode 100644 index 3f8f785..0000000 --- a/src/main/webapp/history/data_structures/WRITEC_f.js +++ /dev/null @@ -1,32 +0,0 @@ -function WRITEC_f () { - - - var in1 = 1; - - var nin = sum(in1); - - var frmt = "c, "; - - var fname = "foo"; - - var swap = 0; - - var lunit = 0; - - var N = 2; - - var model = scicos_model(); - model.sim=list(new ScilabString(["writec"]),new ScilabDouble([2])); - model.in1.push(new ScilabDouble([in1])); - model.evtin = new ScilabDouble([1]); - model.dstate = new ScilabDouble([-1],[lunit],[zeros((nin+1)*N,1)]); - model.ipar = new ScilabDouble([length(fname)],[_str2code(frmt)],[N],[swap],[_str2code(fname)]); - model.blocktype = new ScilabString(["d"]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = [[sci2exp(in1)],[fname],[frmt],[string(N)string(swap)]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/ZCROSS_f.js b/src/main/webapp/history/data_structures/ZCROSS_f.js deleted file mode 100644 index de4b8d9..0000000 --- a/src/main/webapp/history/data_structures/ZCROSS_f.js +++ /dev/null @@ -1,23 +0,0 @@ -function ZCROSS_f () { - - - var rpar = [[-1],[-1],[0],[0]]; - - var in1 = 1; - - var model = scicos_model(); - model.sim=list(new ScilabString(["zcross"]),new ScilabDouble([1])); - model.in1.push(new ScilabDouble([in1])); - model.nzcross=new ScilabDouble([in1]); - model.evtout = new ScilabDouble([1]); - model.rpar = new ScilabDouble([-1],[-1],[0],[0]); - model.blocktype = new ScilabString(["z"]); - model.firing = new ScilabDouble([-1]); - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = strcat(sci2exp(in1)); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/c_block.js b/src/main/webapp/history/data_structures/c_block.js deleted file mode 100644 index 97c9cae..0000000 --- a/src/main/webapp/history/data_structures/c_block.js +++ /dev/null @@ -1,43 +0,0 @@ -function c_block () { - - - var in1 = 1; - - var out = 1; - - var clkin = []; - - var clkout = []; - - var x0 = []; - - var z0 = []; - - var typ = "c"; - - var auto = []; - - var rpar = []; - - var funam = "toto"; - - var model = scicos_model(); - model.sim=list(new ScilabString([" "]),new ScilabDouble([2001])); - model.in1.push(new ScilabDouble([in1])); - model.out=new ScilabDouble([out]); - model.evtin=clkin; - model.evtout=clkout; - model.state=x0; - model.dstate=z0; - model.rpar=rpar; - model.ipar = new ScilabDouble([0]); - model.blocktype=new ScilabString([typ]); - model.firing=auto; - model.dep_ut = new ScilabBoolean([true,false]); - - var label = list([sci2exp(in1)],[sci2exp(out)],[ strcat(sci2exp(rpar))],[funam],list([])); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/fortran_block.js b/src/main/webapp/history/data_structures/fortran_block.js deleted file mode 100644 index 5abf2b0..0000000 --- a/src/main/webapp/history/data_structures/fortran_block.js +++ /dev/null @@ -1,25 +0,0 @@ -function fortran_block () { - - - var model = scicos_model(); - model.sim=list(new ScilabString([" "]),new ScilabDouble([1001])); - model.in1 = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.evtin = new ScilabDouble(); - model.evtout = new ScilabDouble(); - model.state = new ScilabDouble(); - model.dstate = new ScilabDouble(); - model.rpar = new ScilabDouble(); - model.ipar = new ScilabDouble([0]); - model.blocktype = new ScilabString(["c"]); - model.firing = new ScilabDouble(); - model.dep_ut = new ScilabBoolean([true,false]); - - var funam = "forty"; - - var label = list([sci2exp(model.in1)],[sci2exp(model.out)],[strcat(sci2exp(model.rpar))],[funam],list([])); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([4,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/freq_div.js b/src/main/webapp/history/data_structures/freq_div.js deleted file mode 100644 index 47bdf8a..0000000 --- a/src/main/webapp/history/data_structures/freq_div.js +++ /dev/null @@ -1,113 +0,0 @@ -function freq_div () { - - - var scs_m_1 = scicos_diagram(); - scs_m_1.objs.push(Modulo_Count("define")); - scs_m_1.objs.push(CLKINV_f("define")); - scs_m_1.objs.push(CLKOUTV_f("define")); - scs_m_1.objs.push(IFTHEL_f("define")); - scs_m_1.objs.push(CLKSPLIT_f("define")); - scs_m_1.objs.push(scicos_link({})); - scs_m_1.objs.push(scicos_link({})); - scs_m_1.objs.push(scicos_link({})); - scs_m_1.objs.push(scicos_link({})); - scs_m_1.objs.push(scicos_link({})); - - var blk = scs_m_1.objs(1); - - var graphics = blk.graphics; - - var model = blk.model; - graphics.orig = new ScilabDouble([0,-100]); - graphics.sz = new ScilabDouble([60,40]); - graphics.exprs = new ScilabString(["0";"3"]); - model.dstate = new ScilabDouble([3]); - model.ipar = new ScilabDouble([3]); - graphics.pout = new ScilabDouble([7]); - graphics.pein = new ScilabDouble([10]); - blk.graphics=graphics; - blk.model=model; - scs_m_1.objs.push(blk); - blk=scs_m_1.objs(2); - graphics=blk.graphics; - model=blk.model; - graphics.orig = new ScilabDouble([120,0]); - graphics.sz = new ScilabDouble([20,20]); - graphics.exprs = new ScilabString(["1"]); - model.ipar = new ScilabDouble([1]); - graphics.peout = new ScilabDouble([6]); - blk.graphics=graphics; - blk.model=model; - scs_m_1.objs.push(blk); - blk=scs_m_1.objs(3); - graphics=blk.graphics; - model=blk.model; - graphics.orig = new ScilabDouble([130,-160]); - graphics.sz = new ScilabDouble([20,20]); - graphics.exprs = new ScilabString(["1"]); - model.ipar = new ScilabDouble([1]); - graphics.pein = new ScilabDouble([8]); - blk.graphics=graphics; - blk.model=model; - scs_m_1.objs.push(blk); - blk=scs_m_1.objs(4); - graphics=blk.graphics; - model=blk.model; - graphics.orig = new ScilabDouble([100,-100]); - graphics.sz = new ScilabDouble([60,40]); - graphics.exprs = new ScilabString(["1";"0"]); - model.ipar = new ScilabDouble([1]); - graphics.pin = new ScilabDouble([7]); - graphics.pein = new ScilabDouble([9]); - graphics.peout = new ScilabDouble([0],[8]); - blk.graphics=graphics; - blk.model=model; - scs_m_1.objs.push(blk); - blk=scs_m_1.objs(5); - graphics=blk.graphics; - model=blk.model; - graphics.orig = new ScilabDouble([127,-33]); - graphics.sz = new ScilabDouble([7,7]); - graphics.pein = new ScilabDouble([6]); - graphics.peout = new ScilabDouble([9],[10]); - blk.graphics=graphics; - blk.model=model; - scs_m_1.objs.push(blk); - - var lnk = scs_m_1.objs(6); - lnk.ct = new ScilabDouble([5,-1]); - lnk.from = new ScilabDouble([2,1,0]); - lnk.to = new ScilabDouble([5,1,1]); - scs_m_1.objs.push(lnk); - lnk=scs_m_1.objs(7); - lnk.from = new ScilabDouble([1,1,0]); - lnk.to = new ScilabDouble([4,1,1]); - scs_m_1.objs.push(lnk); - lnk=scs_m_1.objs(8); - lnk.ct = new ScilabDouble([5,-1]); - lnk.from = new ScilabDouble([4,2,0]); - lnk.to = new ScilabDouble([3,1,1]); - scs_m_1.objs.push(lnk); - lnk=scs_m_1.objs(9); - lnk.ct = new ScilabDouble([5,-1]); - lnk.from = new ScilabDouble([5,1,0]); - lnk.to = new ScilabDouble([4,1,1]); - scs_m_1.objs.push(lnk); - lnk=scs_m_1.objs(10); - lnk.xx = new ScilabDouble([0,30,1]); - lnk.yy = new ScilabDouble([0,-30,1]); - lnk.ct = new ScilabDouble([5,-1]); - lnk.from = new ScilabDouble([5,2,0]); - lnk.to = new ScilabDouble([1,1,1]); - scs_m_1.objs.push(lnk); - clear blk lnk - model=scicos_model(); - model.sim = new ScilabString(["csuper"]); - model.evtin = new ScilabDouble([1]); - model.evtout = new ScilabDouble([1]); - model.rpar=scs_m_1; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([3,2]),model,[],gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/generic_block3.js b/src/main/webapp/history/data_structures/generic_block3.js deleted file mode 100644 index 82804f0..0000000 --- a/src/main/webapp/history/data_structures/generic_block3.js +++ /dev/null @@ -1,23 +0,0 @@ -function generic_block3 () { - - - var model = scicos_model(); - - var function_name = "sinblk"; - - var funtyp = 4; - model.sim=list(function_name,funtyp); - model.in1 = new ScilabDouble([1]); - model.in2 = new ScilabDouble([1]); - model.intyp = new ScilabDouble([1]); - model.out = new ScilabDouble([1]); - model.out2 = new ScilabDouble([1]); - model.outtyp = new ScilabDouble([1]); - model.dep_ut = new ScilabBoolean([true,false]); - - var label = [[function_name;sci2exp(funtyp);sci2exp([model.in1,model.in2]);sci2exp(model.intyp);sci2exp([model.out,model.out2])sci2exp(model.outtyp);sci2exp(model.evtin);sci2exp(model.evtout);sci2exp(model.state);sci2exp(model.dstate);sci2exp(model.odstate);sci2exp(model.rpar);sci2exp(model.ipar);sci2exp(model.opar);sci2exp(model.nmode);sci2exp(model.nzcross);sci2exp(model.firing);"y";"n"]]; - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([4,2]),model,label,gr_i); - return new BasicBlock(this.x) -} diff --git a/src/main/webapp/history/data_structures/scifunc_block_m.js b/src/main/webapp/history/data_structures/scifunc_block_m.js deleted file mode 100644 index 20d082c..0000000 --- a/src/main/webapp/history/data_structures/scifunc_block_m.js +++ /dev/null @@ -1,51 +0,0 @@ -function scifunc_block_m () { - - - var in1 = 1; - - var out = 1; - - var clkin = []; - - var clkout = []; - - var x0 = []; - - var z0 = []; - - var typ = "c"; - - var auto = []; - - var rpar = []; - - var it = 1; - - var model = scicos_model(); - model.sim=list(new ScilabString(["scifunc"]),new ScilabDouble([3])); - model.in1.push(new ScilabDouble([in1])); - model.in2.push(new ScilabDouble([in1])); - model.intyp=new ScilabDouble([it]); - model.out=new ScilabDouble([out]); - model.out2.push(new ScilabDouble([out])); - model.outtyp=new ScilabDouble([it]); - model.evtin=clkin; - model.evtout=clkout; - model.state=x0; - model.dstate=z0; - model.rpar=rpar; - model.ipar = new ScilabDouble([0]); - model.opar=list(); - model.blocktype=new ScilabString([typ]); - model.firing=auto; - model.dep_ut = new ScilabBoolean([true,false]); - - var exprs = list([sci2exp([in1,in1])],[sci2exp([out,out])],[sci2exp(clkin)],[sci2exp(clkout); - strcat(sci2exp(x0));strcat(sci2exp(z0)); - - var strcat(sci2exp(rpar));sci2exp(auto);sci2exp(0)],list("y1 = sin(u1)"," "," ","y1=sin(u1)"," "," "," ")); - - var gr_i = []; - this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i); - return new BasicBlock(this.x) -} |