summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data_structures/ABS_VALUE.js19
-rw-r--r--data_structures/AFFICH_m.js31
-rw-r--r--data_structures/ANDBLK.js74
-rw-r--r--data_structures/ANDLOG_f.js14
-rw-r--r--data_structures/AUTOMAT.js39
-rw-r--r--data_structures/BACKLASH.js17
-rw-r--r--data_structures/BARXY.js26
-rw-r--r--data_structures/BIGSOM_f.js18
-rw-r--r--data_structures/BITCLEAR.js20
-rw-r--r--data_structures/BITSET.js20
-rw-r--r--data_structures/BOUNCE.js16
-rw-r--r--data_structures/BOUNCEXY.js42
-rw-r--r--data_structures/BPLATFORM.js31
-rw-r--r--data_structures/Bache.js49
-rw-r--r--data_structures/CANIMXY.js42
-rw-r--r--data_structures/CANIMXY3D.js42
-rw-r--r--data_structures/CBLOCK.js47
-rw-r--r--data_structures/CBLOCK4.js38
-rw-r--r--data_structures/CCS.js29
-rw-r--r--data_structures/CEVENTSCOPE.js28
-rw-r--r--data_structures/CFSCOPE.js32
-rw-r--r--data_structures/CLINDUMMY_f.js15
-rw-r--r--data_structures/CLKFROM.js15
-rw-r--r--data_structures/CLKGOTO.js16
-rw-r--r--data_structures/CLKGotoTagVisibility.js22
-rw-r--r--data_structures/CLKINV_f.js18
-rw-r--r--data_structures/CLKOUTV_f.js16
-rw-r--r--data_structures/CLKSOMV_f.js14
-rw-r--r--data_structures/CLOCK_c.js47
-rw-r--r--data_structures/CLR.js27
-rw-r--r--data_structures/CLSS.js31
-rw-r--r--data_structures/CMAT3D.js34
-rw-r--r--data_structures/CMATVIEW.js31
-rw-r--r--data_structures/CMSCOPE.js41
-rw-r--r--data_structures/CONST.js18
-rw-r--r--data_structures/CONSTRAINT2_c.js23
-rw-r--r--data_structures/CONSTRAINT_c.js19
-rw-r--r--data_structures/CONST_f.js18
-rw-r--r--data_structures/CONST_m.js21
-rw-r--r--data_structures/CONVERT.js23
-rw-r--r--data_structures/COSBLK_f.js15
-rw-r--r--data_structures/CSCOPE.js34
-rw-r--r--data_structures/CSCOPXY.js39
-rw-r--r--data_structures/CSCOPXY3D.js41
-rw-r--r--data_structures/CUMSUM.js30
-rw-r--r--data_structures/CURV_f.js27
-rw-r--r--data_structures/CVS.js29
-rw-r--r--data_structures/Capacitor.js27
-rw-r--r--data_structures/ConstantVoltage.js26
-rw-r--r--data_structures/Counter.js24
-rw-r--r--data_structures/CurrentSensor.js23
-rw-r--r--data_structures/DEADBAND.js24
-rw-r--r--data_structures/DEBUG.js12
-rw-r--r--data_structures/DELAYV_f.js28
-rw-r--r--data_structures/DELAY_f.js71
-rw-r--r--data_structures/DEMUX.js19
-rw-r--r--data_structures/DEMUX_f.js19
-rw-r--r--data_structures/DERIV.js15
-rw-r--r--data_structures/DFLIPFLOP.js96
-rw-r--r--data_structures/DIFF_f.js18
-rw-r--r--data_structures/DLATCH.js40
-rw-r--r--data_structures/DLR.js28
-rw-r--r--data_structures/DLRADAPT_f.js32
-rw-r--r--data_structures/DLSS.js28
-rw-r--r--data_structures/DOLLAR.js23
-rw-r--r--data_structures/DOLLAR_f.js23
-rw-r--r--data_structures/DOLLAR_m.js23
-rw-r--r--data_structures/Diode.js33
-rw-r--r--data_structures/EDGE_TRIGGER.js86
-rw-r--r--data_structures/ENDBLK.js12
-rw-r--r--data_structures/END_c.js18
-rw-r--r--data_structures/ESELECT_f.js23
-rw-r--r--data_structures/EVTDLY_c.js21
-rw-r--r--data_structures/EVTGEN_f.js17
-rw-r--r--data_structures/EVTVARDLY.js18
-rw-r--r--data_structures/EXPBLK_m.js24
-rw-r--r--data_structures/EXPRESSION.js27
-rw-r--r--data_structures/EXTRACT.js30
-rw-r--r--data_structures/EXTRACTBITS.js22
-rw-r--r--data_structures/EXTRACTOR.js18
-rw-r--r--data_structures/EXTTRI.js30
-rw-r--r--data_structures/Extract_Activation.js91
-rw-r--r--data_structures/FROM.js22
-rw-r--r--data_structures/FROMMO.js26
-rw-r--r--data_structures/FROMWSB.js14
-rw-r--r--data_structures/Flowmeter.js29
-rw-r--r--data_structures/GAINBLK.js24
-rw-r--r--data_structures/GAINBLK_f.js20
-rw-r--r--data_structures/GAIN_f.js18
-rw-r--r--data_structures/GENERAL_f.js24
-rw-r--r--data_structures/GENSIN_f.js20
-rw-r--r--data_structures/GENSQR_f.js20
-rw-r--r--data_structures/GOTO.js22
-rw-r--r--data_structures/GOTOMO.js26
-rw-r--r--data_structures/GotoTagVisibility.js22
-rw-r--r--data_structures/GotoTagVisibilityMO.js22
-rw-r--r--data_structures/Ground.js22
-rw-r--r--data_structures/Gyrator.js29
-rw-r--r--data_structures/HALT_f.js18
-rw-r--r--data_structures/HYSTHERESIS.js26
-rw-r--r--data_structures/IFTHEL_f.js21
-rw-r--r--data_structures/INIMPL_f.js24
-rw-r--r--data_structures/INTEGRAL_f.js18
-rw-r--r--data_structures/INTEGRAL_m.js25
-rw-r--r--data_structures/INTMUL.js23
-rw-r--r--data_structures/INTRP2BLK_f.js23
-rw-r--r--data_structures/INTRPLBLK_f.js20
-rw-r--r--data_structures/INVBLK.js17
-rw-r--r--data_structures/IN_f.js19
-rw-r--r--data_structures/ISELECT_m.js30
-rw-r--r--data_structures/IdealTransformer.js29
-rw-r--r--data_structures/Inductor.js27
-rw-r--r--data_structures/JKFLIPFLOP.js52
-rw-r--r--data_structures/LOGBLK_f.js20
-rw-r--r--data_structures/LOGIC.js24
-rw-r--r--data_structures/LOGICAL_OP.js22
-rw-r--r--data_structures/LOOKUP_f.js14
-rw-r--r--data_structures/MATBKSL.js30
-rw-r--r--data_structures/MATCATH.js30
-rw-r--r--data_structures/MATCATV.js32
-rw-r--r--data_structures/MATDET.js30
-rw-r--r--data_structures/MATDIAG.js30
-rw-r--r--data_structures/MATDIV.js30
-rw-r--r--data_structures/MATEIG.js30
-rw-r--r--data_structures/MATEXPM.js30
-rw-r--r--data_structures/MATINV.js30
-rw-r--r--data_structures/MATLU.js30
-rw-r--r--data_structures/MATMAGPHI.js30
-rw-r--r--data_structures/MATMUL.js17
-rw-r--r--data_structures/MATPINV.js30
-rw-r--r--data_structures/MATRESH.js30
-rw-r--r--data_structures/MATSING.js30
-rw-r--r--data_structures/MATSUM.js30
-rw-r--r--data_structures/MATTRAN.js16
-rw-r--r--data_structures/MATZCONJ.js30
-rw-r--r--data_structures/MATZREIM.js30
-rw-r--r--data_structures/MAXMIN.js17
-rw-r--r--data_structures/MAX_f.js18
-rw-r--r--data_structures/MBLOCK.js29
-rw-r--r--data_structures/MCLOCK_f.js80
-rw-r--r--data_structures/MFCLCK_f.js23
-rw-r--r--data_structures/MIN_f.js18
-rw-r--r--data_structures/MUX.js18
-rw-r--r--data_structures/MUX_f.js18
-rw-r--r--data_structures/M_SWITCH.js22
-rw-r--r--data_structures/M_freq.js18
-rw-r--r--data_structures/Modulo_Count.js21
-rw-r--r--data_structures/NEGTOPOS_f.js16
-rw-r--r--data_structures/NMOS.js42
-rw-r--r--data_structures/NPN.js29
-rw-r--r--data_structures/NRMSOM_f.js19
-rw-r--r--data_structures/OUTIMPL_f.js24
-rw-r--r--data_structures/OUT_f.js21
-rw-r--r--data_structures/OpAmp.js29
-rw-r--r--data_structures/PDE.js18
-rw-r--r--data_structures/PID.js42
-rw-r--r--data_structures/PMOS.js42
-rw-r--r--data_structures/PNP.js29
-rw-r--r--data_structures/POSTONEG_f.js18
-rw-r--r--data_structures/POWBLK_f.js20
-rw-r--r--data_structures/PRODUCT.js18
-rw-r--r--data_structures/PROD_f.js11
-rw-r--r--data_structures/PULSE_SC.js56
-rw-r--r--data_structures/PerteDP.js39
-rw-r--r--data_structures/PotentialSensor.js22
-rw-r--r--data_structures/PuitsP.js30
-rw-r--r--data_structures/QUANT_f.js21
-rw-r--r--data_structures/RAMP.js26
-rw-r--r--data_structures/RAND_m.js38
-rw-r--r--data_structures/RATELIMITER.js22
-rw-r--r--data_structures/READAU_f.js39
-rw-r--r--data_structures/READC_f.js45
-rw-r--r--data_structures/REGISTER.js19
-rw-r--r--data_structures/RELATIONALOP.js21
-rw-r--r--data_structures/RELAY_f.js24
-rw-r--r--data_structures/RFILE_f.js39
-rw-r--r--data_structures/RICC.js30
-rw-r--r--data_structures/ROOTCOEF.js30
-rw-r--r--data_structures/Resistor.js27
-rw-r--r--data_structures/SAMPHOLD_m.js20
-rw-r--r--data_structures/SATURATION.js24
-rw-r--r--data_structures/SAWTOOTH_f.js16
-rw-r--r--data_structures/SCALAR2VECTOR.js17
-rw-r--r--data_structures/SELECT_m.js30
-rw-r--r--data_structures/SELF_SWITCH.js23
-rw-r--r--data_structures/SHIFT.js25
-rw-r--r--data_structures/SIGNUM.js19
-rw-r--r--data_structures/SINBLK_f.js15
-rw-r--r--data_structures/SOM_f.js18
-rw-r--r--data_structures/SQRT.js18
-rw-r--r--data_structures/SRFLIPFLOP.js43
-rw-r--r--data_structures/STEP_FUNCTION.js56
-rw-r--r--data_structures/SUBMAT.js30
-rw-r--r--data_structures/SUMMATION.js20
-rw-r--r--data_structures/SUM_f.js15
-rw-r--r--data_structures/SUPER_f.js27
-rw-r--r--data_structures/SWITCH2_m.js29
-rw-r--r--data_structures/SWITCH_f.js23
-rw-r--r--data_structures/SampleCLK.js14
-rw-r--r--data_structures/Sigbuilder.js18
-rw-r--r--data_structures/SineVoltage.js35
-rw-r--r--data_structures/SourceP.js32
-rw-r--r--data_structures/Switch.js33
-rw-r--r--data_structures/TANBLK_f.js17
-rw-r--r--data_structures/TCLSS.js26
-rw-r--r--data_structures/TEXT_f.js20
-rw-r--r--data_structures/TIME_DELAY.js25
-rw-r--r--data_structures/TIME_f.js12
-rw-r--r--data_structures/TKSCALE.js22
-rw-r--r--data_structures/TOWS_c.js30
-rw-r--r--data_structures/TRASH_f.js17
-rw-r--r--data_structures/TrigFun.js15
-rw-r--r--data_structures/VARIABLE_DELAY.js25
-rw-r--r--data_structures/VVsourceAC.js29
-rw-r--r--data_structures/VanneReglante.js31
-rw-r--r--data_structures/VariableResistor.js23
-rw-r--r--data_structures/VirtualCLK0.js15
-rw-r--r--data_structures/VoltageSensor.js23
-rw-r--r--data_structures/VsourceAC.js29
-rw-r--r--data_structures/WFILE_f.js29
-rw-r--r--data_structures/WRITEAU_f.js31
-rw-r--r--data_structures/WRITEC_f.js31
-rw-r--r--data_structures/ZCROSS_f.js22
-rw-r--r--data_structures/c_block.js42
-rw-r--r--data_structures/fortran_block.js24
-rw-r--r--data_structures/freq_div.js112
-rw-r--r--data_structures/generic_block3.js22
-rw-r--r--data_structures/scifunc_block_m.js50
228 files changed, 6274 insertions, 0 deletions
diff --git a/data_structures/ABS_VALUE.js b/data_structures/ABS_VALUE.js
new file mode 100644
index 0000000..65c6df1
--- /dev/null
+++ b/data_structures/ABS_VALUE.js
@@ -0,0 +1,19 @@
+function ABS_VALUE () {
+
+
+ var nu = -1;
+
+ var model = scicos_model();
+ model.sim=list("absolute_value",4);
+ model.in=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 = [[1].toString()];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/AFFICH_m.js b/data_structures/AFFICH_m.js
new file mode 100644
index 0000000..ae338a8
--- /dev/null
+++ b/data_structures/AFFICH_m.js
@@ -0,0 +1,31 @@
+function AFFICH_m () {
+
+
+ var font = 1;
+
+ var fontsize = 1;
+
+ var colr = 1;
+
+ var nt = 5;
+
+ var nd = 1;
+
+ var in = [1,1];
+
+ var model = scicos_model();
+ model.sim=list("affich2",4);
+ model.in=in(1,1);
+ model.in2.push(in(1,2));
+ model.evtin = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble([-1],[0],[0],[1],[1],[0],[zeros(in(1,1)*in(1,2),1)]);
+ model.ipar = new ScilabDouble([font],[fontsize],[colr],[1000],[nt],[nd],[in(1,1)]);
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble(, , ,],[model.dep_ut,=,[%t,%f]);
+ model.label = new ScilabString([""]);
+
+ var exprs = [[,sci2exp([model.in,model.in2])],[font.toString()],[fontsize.toString()],[colr.toString()],[nt.toString()],[nd.toString()],[0.toString(),]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/ANDBLK.js b/data_structures/ANDBLK.js
new file mode 100644
index 0000000..335a286
--- /dev/null
+++ b/data_structures/ANDBLK.js
@@ -0,0 +1,74 @@
+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;
+}
diff --git a/data_structures/ANDLOG_f.js b/data_structures/ANDLOG_f.js
new file mode 100644
index 0000000..ea8f55d
--- /dev/null
+++ b/data_structures/ANDLOG_f.js
@@ -0,0 +1,14 @@
+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);
+}
diff --git a/data_structures/AUTOMAT.js b/data_structures/AUTOMAT.js
new file mode 100644
index 0000000..e1848cb
--- /dev/null
+++ b/data_structures/AUTOMAT.js
@@ -0,0 +1,39 @@
+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 = [[NMode.toString()],[Minitial.toString()],[NX.toString()],[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("automat",10004);
+ model.in = 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);
+}
diff --git a/data_structures/BACKLASH.js b/data_structures/BACKLASH.js
new file mode 100644
index 0000000..ad129b9
--- /dev/null
+++ b/data_structures/BACKLASH.js
@@ -0,0 +1,17 @@
+function BACKLASH () {
+
+
+ var exprs = ["0";"1";"1"];
+
+ var model = scicos_model();
+ model.sim=list("backlash",4);
+ model.in = 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);
+}
diff --git a/data_structures/BARXY.js b/data_structures/BARXY.js
new file mode 100644
index 0000000..4915cf7
--- /dev/null
+++ b/data_structures/BARXY.js
@@ -0,0 +1,26 @@
+function BARXY () {
+
+
+ var model = scicos_model();
+
+ var xmin = -15;
+
+ var xmax = 15;
+
+ var ymin = -15;
+
+ var ymax = 15;
+ model.sim=list("BARXY_sim",,5);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+ model.in = 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"]);
+}
diff --git a/data_structures/BIGSOM_f.js b/data_structures/BIGSOM_f.js
new file mode 100644
index 0000000..4466cca
--- /dev/null
+++ b/data_structures/BIGSOM_f.js
@@ -0,0 +1,18 @@
+function BIGSOM_f () {
+
+
+ var sgn = [[1],[1]];
+
+ var model = scicos_model();
+ model.sim=list("sum",2);
+ model.in = 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);
+}
diff --git a/data_structures/BITCLEAR.js b/data_structures/BITCLEAR.js
new file mode 100644
index 0000000..31ce291
--- /dev/null
+++ b/data_structures/BITCLEAR.js
@@ -0,0 +1,20 @@
+function BITCLEAR () {
+
+
+ var model = scicos_model();
+ model.sim=list("bit_clear_32",4);
+ model.in = 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(int32(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);
+}
diff --git a/data_structures/BITSET.js b/data_structures/BITSET.js
new file mode 100644
index 0000000..278460b
--- /dev/null
+++ b/data_structures/BITSET.js
@@ -0,0 +1,20 @@
+function BITSET () {
+
+
+ var model = scicos_model();
+ model.sim=list("bit_set_32",4);
+ model.in = 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(uint32(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);
+}
diff --git a/data_structures/BOUNCE.js b/data_structures/BOUNCE.js
new file mode 100644
index 0000000..fd447db
--- /dev/null
+++ b/data_structures/BOUNCE.js
@@ -0,0 +1,16 @@
+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;
+}
diff --git a/data_structures/BOUNCEXY.js b/data_structures/BOUNCEXY.js
new file mode 100644
index 0000000..b081730
--- /dev/null
+++ b/data_structures/BOUNCEXY.js
@@ -0,0 +1,42 @@
+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("bouncexy",4);
+ model.in = 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;
+}
diff --git a/data_structures/BPLATFORM.js b/data_structures/BPLATFORM.js
new file mode 100644
index 0000000..7a1a394
--- /dev/null
+++ b/data_structures/BPLATFORM.js
@@ -0,0 +1,31 @@
+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("bplatform2",5);
+ model.in = 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 = model.rpar.toString();
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/Bache.js b/data_structures/Bache.js
new file mode 100644
index 0000000..8e46d06
--- /dev/null
+++ b/data_structures/Bache.js
@@ -0,0 +1,49 @@
+function Bache () {
+
+
+ var in = 2;
+
+ var out = 3;
+
+ var model = scicos_model();
+ model.in = new ScilabDouble([-(1:in)']);
+ 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(["Patm";"A";"ze1";"ze2";"zs1";"zs2";"z0";"T0";"p_rho"],[Patm],[A],[ze1],[ze2],[zs1],[zs2],[z0],[T0],[p_rho]);
+ model.equations=mo;
+ model.in=ones(size(mo.inputs,"*"),1);
+ model.out=ones(size(mo.outputs,"*"),1);
+
+ var exprs = [[Patm.toString()],[A.toString()],[ze1.toString()],[ze2.toString()],[zs1.toString()],[zs2.toString()],[z0.toString()],[T0.toString()],[p_rho.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([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"]);
+}
diff --git a/data_structures/CANIMXY.js b/data_structures/CANIMXY.js
new file mode 100644
index 0000000..3c07d5f
--- /dev/null
+++ b/data_structures/CANIMXY.js
@@ -0,0 +1,42 @@
+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("canimxy",4);
+ model.in = 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 = [[nbr_curves.toString();clrs.toString();siz.toString();win.toString();"[]";"[]"],[xmin.toString()],[xmax.toString()],[ymin.toString()],[ymax.toString()],[N.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/CANIMXY3D.js b/data_structures/CANIMXY3D.js
new file mode 100644
index 0000000..927f6ad
--- /dev/null
+++ b/data_structures/CANIMXY3D.js
@@ -0,0 +1,42 @@
+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("canimxy3d",4);
+ model.in = 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 = [[nbr_curves.toString();strcat(clrs.toString()," ");strcat(siz.toString()," ");win.toString();"[]";"[]";strcat(vec_x.toString()," ");strcat(vec_y.toString()," ");strcat(vec_z.toString()," ");strcat(param3ds.toString()," ")],[N.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/CBLOCK.js b/data_structures/CBLOCK.js
new file mode 100644
index 0000000..791c08f
--- /dev/null
+++ b/data_structures/CBLOCK.js
@@ -0,0 +1,47 @@
+function CBLOCK () {
+
+
+ var in = 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(" ",2004);
+ model.in=new ScilabDouble([in]);
+ 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(in),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);
+}
diff --git a/data_structures/CBLOCK4.js b/data_structures/CBLOCK4.js
new file mode 100644
index 0000000..d8eaffd
--- /dev/null
+++ b/data_structures/CBLOCK4.js
@@ -0,0 +1,38 @@
+function CBLOCK4 () {
+
+
+ var funam = "toto";
+
+ var model = scicos_model();
+ model.sim=list(" ",2004);
+ model.in = 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.in 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);
+}
diff --git a/data_structures/CCS.js b/data_structures/CCS.js
new file mode 100644
index 0000000..9505e4f
--- /dev/null
+++ b/data_structures/CCS.js
@@ -0,0 +1,29 @@
+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)]);
+}
diff --git a/data_structures/CEVENTSCOPE.js b/data_structures/CEVENTSCOPE.js
new file mode 100644
index 0000000..0f1c4d1
--- /dev/null
+++ b/data_structures/CEVENTSCOPE.js
@@ -0,0 +1,28 @@
+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("cevscpe",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))," ")],[win.toString()],[sci2exp([])],[sci2exp(wdim)],[per.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/CFSCOPE.js b/data_structures/CFSCOPE.js
new file mode 100644
index 0000000..f2f6bde
--- /dev/null
+++ b/data_structures/CFSCOPE.js
@@ -0,0 +1,32 @@
+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("cfscope",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(clrs.toString()," ")],[win.toString()],[sci2exp([])],[sci2exp(wdim)],[ymin.toString()],[ymax.toString()],[per.toString()],[N.toString()],[[1].toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/CLINDUMMY_f.js b/data_structures/CLINDUMMY_f.js
new file mode 100644
index 0000000..1c6b9e5
--- /dev/null
+++ b/data_structures/CLINDUMMY_f.js
@@ -0,0 +1,15 @@
+function CLINDUMMY_f () {
+
+
+ var x0 = 0;
+
+ var model = scicos_model();
+ model.sim=list("cdummy",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);
+}
diff --git a/data_structures/CLKFROM.js b/data_structures/CLKFROM.js
new file mode 100644
index 0000000..500a395
--- /dev/null
+++ b/data_structures/CLKFROM.js
@@ -0,0 +1,15 @@
+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"]);
+}
diff --git a/data_structures/CLKGOTO.js b/data_structures/CLKGOTO.js
new file mode 100644
index 0000000..0a827f8
--- /dev/null
+++ b/data_structures/CLKGOTO.js
@@ -0,0 +1,16 @@
+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"]);
+}
diff --git a/data_structures/CLKGotoTagVisibility.js b/data_structures/CLKGotoTagVisibility.js
new file mode 100644
index 0000000..fec19b6
--- /dev/null
+++ b/data_structures/CLKGotoTagVisibility.js
@@ -0,0 +1,22 @@
+function CLKGotoTagVisibility () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["clkgototagvisibility"]);
+ model.in = 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);
+}
diff --git a/data_structures/CLKINV_f.js b/data_structures/CLKINV_f.js
new file mode 100644
index 0000000..843b959
--- /dev/null
+++ b/data_structures/CLKINV_f.js
@@ -0,0 +1,18 @@
+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 = prt.toString();
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i);
+}
diff --git a/data_structures/CLKOUTV_f.js b/data_structures/CLKOUTV_f.js
new file mode 100644
index 0000000..da550dc
--- /dev/null
+++ b/data_structures/CLKOUTV_f.js
@@ -0,0 +1,16 @@
+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 = prt.toString();
+ this.x=new standard_define(new ScilabDouble([1,1]),model,exprs," ");
+}
diff --git a/data_structures/CLKSOMV_f.js b/data_structures/CLKSOMV_f.js
new file mode 100644
index 0000000..9ff476d
--- /dev/null
+++ b/data_structures/CLKSOMV_f.js
@@ -0,0 +1,14 @@
+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);
+}
diff --git a/data_structures/CLOCK_c.js b/data_structures/CLOCK_c.js
new file mode 100644
index 0000000..5b7dc81
--- /dev/null
+++ b/data_structures/CLOCK_c.js
@@ -0,0 +1,47 @@
+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;
+}
diff --git a/data_structures/CLR.js b/data_structures/CLR.js
new file mode 100644
index 0000000..20cce87
--- /dev/null
+++ b/data_structures/CLR.js
@@ -0,0 +1,27 @@
+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("csslti4",4);
+ model.in = 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);
+}
diff --git a/data_structures/CLSS.js b/data_structures/CLSS.js
new file mode 100644
index 0000000..84f636a
--- /dev/null
+++ b/data_structures/CLSS.js
@@ -0,0 +1,31 @@
+function CLSS () {
+
+
+ var x0 = 0;
+
+ var A = -1;
+
+ var B = 1;
+
+ var C = 1;
+
+ var D = 0;
+
+ var in = 1;
+
+ var out = 1;
+
+ var model = scicos_model();
+ model.sim=list("csslti4",4);
+ model.in=new ScilabDouble([in]);
+ 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);
+}
diff --git a/data_structures/CMAT3D.js b/data_structures/CMAT3D.js
new file mode 100644
index 0000000..42e9d78
--- /dev/null
+++ b/data_structures/CMAT3D.js
@@ -0,0 +1,34 @@
+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("cmat3d",4);
+ model.in = 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(x.toString()," ");strcat(y.toString()," ");"jetcolormap(25.toString()")],[cmin.toString()],[cmax.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/CMATVIEW.js b/data_structures/CMATVIEW.js
new file mode 100644
index 0000000..55b5dbc
--- /dev/null
+++ b/data_structures/CMATVIEW.js
@@ -0,0 +1,31 @@
+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("cmatview",4);
+ model.in = 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 = [["jetcolormap(25.toString()")],[cmin.toString()],[cmax.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/CMSCOPE.js b/data_structures/CMSCOPE.js
new file mode 100644
index 0000000..578eb3c
--- /dev/null
+++ b/data_structures/CMSCOPE.js
@@ -0,0 +1,41 @@
+function CMSCOPE () {
+
+
+ var win = -1;
+
+ var in = [[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("cmscope",4);
+ model.in=new ScilabDouble([in]);
+ 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,in,"*")],[N],[...wpos],[...wdim],[...in],[clrs(1,sum(in))]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[strcat(in.toString()," ");strcat(clrs.toString()," ");win.toString();sci2exp([]);sci2exp([]);strcat(ymin.toString()," ");strcat(ymax.toString()," ");strcat(per.toString()," ")],[N.toString()],[0.toString()],[emptystr()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/CONST.js b/data_structures/CONST.js
new file mode 100644
index 0000000..0c0d368
--- /dev/null
+++ b/data_structures/CONST.js
@@ -0,0 +1,18 @@
+function CONST () {
+
+
+ var C = 1;
+
+ var model = scicos_model();
+ model.sim=list("cstblk4",4);
+ model.in = 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);
+}
diff --git a/data_structures/CONSTRAINT2_c.js b/data_structures/CONSTRAINT2_c.js
new file mode 100644
index 0000000..fc49e38
--- /dev/null
+++ b/data_structures/CONSTRAINT2_c.js
@@ -0,0 +1,23 @@
+function CONSTRAINT2_c () {
+
+
+ var x0 = [0];
+
+ var xd0 = [0];
+
+ var id = [0];
+
+ var model = scicos_model();
+ model.sim=list("constraint_c",10004);
+ model.in = 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);
+}
diff --git a/data_structures/CONSTRAINT_c.js b/data_structures/CONSTRAINT_c.js
new file mode 100644
index 0000000..e986197
--- /dev/null
+++ b/data_structures/CONSTRAINT_c.js
@@ -0,0 +1,19 @@
+function CONSTRAINT_c () {
+
+
+ var x0 = [[0],[0]];
+
+ var model = scicos_model();
+ model.sim=list("constraint_c",10004);
+ model.in = 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);
+}
diff --git a/data_structures/CONST_f.js b/data_structures/CONST_f.js
new file mode 100644
index 0000000..ce13cff
--- /dev/null
+++ b/data_structures/CONST_f.js
@@ -0,0 +1,18 @@
+function CONST_f () {
+
+
+ var C = 1;
+
+ var model = scicos_model();
+ model.sim=list("cstblk",1);
+ model.in = 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);
+}
diff --git a/data_structures/CONST_m.js b/data_structures/CONST_m.js
new file mode 100644
index 0000000..963e1be
--- /dev/null
+++ b/data_structures/CONST_m.js
@@ -0,0 +1,21 @@
+function CONST_m () {
+
+
+ var C = [1];
+
+ var model = scicos_model();
+ model.sim=list("cstblk4",4);
+ model.in = 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);
+}
diff --git a/data_structures/CONVERT.js b/data_structures/CONVERT.js
new file mode 100644
index 0000000..1d7cb50
--- /dev/null
+++ b/data_structures/CONVERT.js
@@ -0,0 +1,23 @@
+function CONVERT () {
+
+
+ var sgn = 2;
+
+ var model = scicos_model();
+ model.sim=list("convert",4);
+ model.in = 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);
+}
diff --git a/data_structures/COSBLK_f.js b/data_structures/COSBLK_f.js
new file mode 100644
index 0000000..fe213ee
--- /dev/null
+++ b/data_structures/COSBLK_f.js
@@ -0,0 +1,15 @@
+function COSBLK_f () {
+
+
+ var in = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["cosblk"]);
+ model.in = 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);
+}
diff --git a/data_structures/CSCOPE.js b/data_structures/CSCOPE.js
new file mode 100644
index 0000000..fdac275
--- /dev/null
+++ b/data_structures/CSCOPE.js
@@ -0,0 +1,34 @@
+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("cscope",4);
+ model.in = 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(clrs.toString()," ")],[win.toString()],[sci2exp([])],[sci2exp(wdim)],[ymin.toString()],[ymax.toString()],[per.toString()],[N.toString()],[0.toString()'],[emptystr()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/CSCOPXY.js b/data_structures/CSCOPXY.js
new file mode 100644
index 0000000..d044b30
--- /dev/null
+++ b/data_structures/CSCOPXY.js
@@ -0,0 +1,39 @@
+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("cscopxy",4);
+ model.in = 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 = [[nbr_curves.toString()],[sci2exp(clrs)],[sci2exp(siz)],[win.toString()],[sci2exp([])],[sci2exp(wdim)],[xmin.toString()],[xmax.toString()],[ymin.toString()],[ymax.toString()],[N.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/CSCOPXY3D.js b/data_structures/CSCOPXY3D.js
new file mode 100644
index 0000000..849e687
--- /dev/null
+++ b/data_structures/CSCOPXY3D.js
@@ -0,0 +1,41 @@
+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("cscopxy3d",4);
+ model.in = 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 = [[nbr_curves.toString();strcat(clrs.toString()," ");strcat(siz.toString()," ");win.toString();sci2exp([]);sci2exp(wdim);strcat(vec_x.toString()," ");strcat(vec_y.toString()," ");strcat(vec_z.toString()," ");strcat(param3ds.toString()," ")],[N.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/CUMSUM.js b/data_structures/CUMSUM.js
new file mode 100644
index 0000000..7523d2a
--- /dev/null
+++ b/data_structures/CUMSUM.js
@@ -0,0 +1,30 @@
+function CUMSUM () {
+
+
+ var model = scicos_model();
+
+ var function_name = "cumsum_m";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in = 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);
+}
diff --git a/data_structures/CURV_f.js b/data_structures/CURV_f.js
new file mode 100644
index 0000000..7cece9a
--- /dev/null
+++ b/data_structures/CURV_f.js
@@ -0,0 +1,27 @@
+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.in = 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);
+}
diff --git a/data_structures/CVS.js b/data_structures/CVS.js
new file mode 100644
index 0000000..2bbd53b
--- /dev/null
+++ b/data_structures/CVS.js
@@ -0,0 +1,29 @@
+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)]);
+}
diff --git a/data_structures/Capacitor.js b/data_structures/Capacitor.js
new file mode 100644
index 0000000..12760cb
--- /dev/null
+++ b/data_structures/Capacitor.js
@@ -0,0 +1,27 @@
+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(["C","v"],list(C,v),[0,1]);
+ model.equations=mo;
+ model.in=ones(size(mo.inputs,"*"),1);
+ model.out=ones(size(mo.outputs,"*"),1);
+
+ var exprs = [[C],[v].toString()];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([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"]);
+}
diff --git a/data_structures/ConstantVoltage.js b/data_structures/ConstantVoltage.js
new file mode 100644
index 0000000..de2d653
--- /dev/null
+++ b/data_structures/ConstantVoltage.js
@@ -0,0 +1,26 @@
+function ConstantVoltage () {
+
+
+ var V = 0.01;
+
+ var model = scicos_model();
+ model.rpar=new ScilabDouble([V]);
+ model.in = 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("V",list(V));
+ model.equations=mo;
+
+ var exprs = V.toString();
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([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"]);
+}
diff --git a/data_structures/Counter.js b/data_structures/Counter.js
new file mode 100644
index 0000000..d4daec1
--- /dev/null
+++ b/data_structures/Counter.js
@@ -0,0 +1,24 @@
+function Counter () {
+
+
+ var minim = 0;
+
+ var maxim = 2;
+
+ var rule = 1;
+
+ var model = scicos_model();
+ model.sim=list("counter",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 = [[minim.toString()],[maxim.toString()],[rule.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/CurrentSensor.js b/data_structures/CurrentSensor.js
new file mode 100644
index 0000000..8bb3dde
--- /dev/null
+++ b/data_structures/CurrentSensor.js
@@ -0,0 +1,23 @@
+function CurrentSensor () {
+
+
+ var model = scicos_model();
+ model.in = 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=new standard_define(new ScilabDouble([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"]);
+}
diff --git a/data_structures/DEADBAND.js b/data_structures/DEADBAND.js
new file mode 100644
index 0000000..a9867ed
--- /dev/null
+++ b/data_structures/DEADBAND.js
@@ -0,0 +1,24 @@
+function DEADBAND () {
+
+
+ var minp = -.5;
+
+ var maxp = .5;
+
+ var rpar = [[maxp],[minp]];
+
+ var model = scicos_model();
+ model.sim=list("deadband",4);
+ model.in = 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 = [[maxp.toString()],[minp.toString()],[model.nmode.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/DEBUG.js b/data_structures/DEBUG.js
new file mode 100644
index 0000000..e34387c
--- /dev/null
+++ b/data_structures/DEBUG.js
@@ -0,0 +1,12 @@
+function DEBUG () {
+
+
+ var model = scicos_model();
+ model.sim=list("%debug_scicos",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);
+}
diff --git a/data_structures/DELAYV_f.js b/data_structures/DELAYV_f.js
new file mode 100644
index 0000000..3141ce6
--- /dev/null
+++ b/data_structures/DELAYV_f.js
@@ -0,0 +1,28 @@
+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("delayv",1);
+ model.in = 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 = [[nin....colon_operator(toString,);strcat(z0(1,$-1.toString()),";")],[T.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/DELAY_f.js b/data_structures/DELAY_f.js
new file mode 100644
index 0000000..a323a8f
--- /dev/null
+++ b/data_structures/DELAY_f.js
@@ -0,0 +1,71 @@
+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.in = 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([""]);
+}
diff --git a/data_structures/DEMUX.js b/data_structures/DEMUX.js
new file mode 100644
index 0000000..b84b2cf
--- /dev/null
+++ b/data_structures/DEMUX.js
@@ -0,0 +1,19 @@
+function DEMUX () {
+
+
+ var out = 2;
+
+ var model = scicos_model();
+ model.sim=list("multiplex",4);
+ model.in = 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 = out.toString();
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([.5,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/DEMUX_f.js b/data_structures/DEMUX_f.js
new file mode 100644
index 0000000..0b6a938
--- /dev/null
+++ b/data_structures/DEMUX_f.js
@@ -0,0 +1,19 @@
+function DEMUX_f () {
+
+
+ var out = 2;
+
+ var model = scicos_model();
+ model.sim=list("demux",1);
+ model.in = 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 = out.toString();
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([.5,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/DERIV.js b/data_structures/DERIV.js
new file mode 100644
index 0000000..7a358ad
--- /dev/null
+++ b/data_structures/DERIV.js
@@ -0,0 +1,15 @@
+function DERIV () {
+
+
+ var model = scicos_model();
+ model.sim=list("deriv",4);
+ model.in = 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);
+}
diff --git a/data_structures/DFLIPFLOP.js b/data_structures/DFLIPFLOP.js
new file mode 100644
index 0000000..72616e4
--- /dev/null
+++ b/data_structures/DFLIPFLOP.js
@@ -0,0 +1,96 @@
+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),in=[],in2=[],intyp=1,out=1,out2=1,outtyp=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(int8(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),in=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),in=[-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),in=-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),in=-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",in=[],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",in=[],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",in=-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",in=-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",in=[],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",in=[],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",in=[],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",in=[],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),in=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",in=[],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",in=[],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(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),in=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),in=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",in=[],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",in=[],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",in=-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",in=[],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(scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[600,450,0,0,600,450],Title=["Extract_Activation","./"],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="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),in=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",in=[],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",in=[],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",in=[],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",in=-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),in=[-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",in=-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",in=-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),in=[-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",in=-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",in=-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",in=[],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.in = 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);
+}
diff --git a/data_structures/DIFF_f.js b/data_structures/DIFF_f.js
new file mode 100644
index 0000000..c14528b
--- /dev/null
+++ b/data_structures/DIFF_f.js
@@ -0,0 +1,18 @@
+function DIFF_f () {
+
+
+ var x0 = [[0],[0]];
+
+ var model = scicos_model();
+ model.sim=list("diffblk",10001);
+ model.in = 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);
+}
diff --git a/data_structures/DLATCH.js b/data_structures/DLATCH.js
new file mode 100644
index 0000000..e7402f2
--- /dev/null
+++ b/data_structures/DLATCH.js
@@ -0,0 +1,40 @@
+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),in=[],in2=[],intyp=1,out=1,out2=1,outtyp=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(int8(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),in=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),in=[-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),in=-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),in=-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",in=-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",in=[],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",in=[],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",in=-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",in=-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.in = 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);
+}
diff --git a/data_structures/DLR.js b/data_structures/DLR.js
new file mode 100644
index 0000000..27471c8
--- /dev/null
+++ b/data_structures/DLR.js
@@ -0,0 +1,28 @@
+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("dsslti4",4);
+ model.in = 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);
+}
diff --git a/data_structures/DLRADAPT_f.js b/data_structures/DLRADAPT_f.js
new file mode 100644
index 0000000..0b420b7
--- /dev/null
+++ b/data_structures/DLRADAPT_f.js
@@ -0,0 +1,32 @@
+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.in = 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);
+}
diff --git a/data_structures/DLSS.js b/data_structures/DLSS.js
new file mode 100644
index 0000000..9dbfc7b
--- /dev/null
+++ b/data_structures/DLSS.js
@@ -0,0 +1,28 @@
+function DLSS () {
+
+
+ var x0 = 0;
+
+ var A = -1;
+
+ var B = 1;
+
+ var C = 1;
+
+ var D = 0;
+
+ var model = scicos_model();
+ model.sim=list("dsslti4",4);
+ model.in = 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);
+}
diff --git a/data_structures/DOLLAR.js b/data_structures/DOLLAR.js
new file mode 100644
index 0000000..d30c644
--- /dev/null
+++ b/data_structures/DOLLAR.js
@@ -0,0 +1,23 @@
+function DOLLAR () {
+
+
+ var z = 0;
+
+ var inh = 0;
+
+ var in = 1;
+
+ var exprs = [[z],[inh].toString()];
+
+ var model = scicos_model();
+ model.sim=list("dollar4",4);
+ model.in=new ScilabDouble([in]);
+ model.out=new ScilabDouble([in]);
+ 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);
+}
diff --git a/data_structures/DOLLAR_f.js b/data_structures/DOLLAR_f.js
new file mode 100644
index 0000000..b1b3013
--- /dev/null
+++ b/data_structures/DOLLAR_f.js
@@ -0,0 +1,23 @@
+function DOLLAR_f () {
+
+
+ var z = 0;
+
+ var inh = 0;
+
+ var in = 1;
+
+ var exprs = [[z],[inh].toString()];
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["dollar"]);
+ model.in=new ScilabDouble([in]);
+ model.out=new ScilabDouble([in]);
+ 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);
+}
diff --git a/data_structures/DOLLAR_m.js b/data_structures/DOLLAR_m.js
new file mode 100644
index 0000000..bc45e45
--- /dev/null
+++ b/data_structures/DOLLAR_m.js
@@ -0,0 +1,23 @@
+function DOLLAR_m () {
+
+
+ var z = 0;
+
+ var inh = 0;
+
+ var in = 1;
+
+ var exprs = [[z],[inh].toString()];
+
+ var model = scicos_model();
+ model.sim=list("dollar4",4);
+ model.in=new ScilabDouble([in]);
+ model.out=new ScilabDouble([in]);
+ 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);
+}
diff --git a/data_structures/Diode.js b/data_structures/Diode.js
new file mode 100644
index 0000000..8806591
--- /dev/null
+++ b/data_structures/Diode.js
@@ -0,0 +1,33 @@
+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.in = 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(["Ids","Vt","Maxexp","R"],list(Ids,Vt,Maxexp,R));
+ model.equations=mo;
+
+ var exprs = [[Ids],[Vt],[Maxexp],[R].toString()];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,1]),model,exprs,list(gr_i,0));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+}
diff --git a/data_structures/EDGE_TRIGGER.js b/data_structures/EDGE_TRIGGER.js
new file mode 100644
index 0000000..5125194
--- /dev/null
+++ b/data_structures/EDGE_TRIGGER.js
@@ -0,0 +1,86 @@
+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.in = 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);
+}
diff --git a/data_structures/ENDBLK.js b/data_structures/ENDBLK.js
new file mode 100644
index 0000000..9d29f10
--- /dev/null
+++ b/data_structures/ENDBLK.js
@@ -0,0 +1,12 @@
+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),in=[],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",in=[],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);
+}
diff --git a/data_structures/END_c.js b/data_structures/END_c.js
new file mode 100644
index 0000000..51aac62
--- /dev/null
+++ b/data_structures/END_c.js
@@ -0,0 +1,18 @@
+function END_c () {
+
+
+ var tf = 100000000;
+
+ var model = scicos_model();
+ model.sim=list("scicosexit",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 = tf.toString();
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/ESELECT_f.js b/data_structures/ESELECT_f.js
new file mode 100644
index 0000000..6428ceb
--- /dev/null
+++ b/data_structures/ESELECT_f.js
@@ -0,0 +1,23 @@
+function ESELECT_f () {
+
+
+ var out = 2;
+
+ var model = scicos_model();
+ model.sim=list("eselect",-2);
+ model.in = 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 = [[out.toString()],[1.toString()],[model.nmode.toString()]];
+ this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/EVTDLY_c.js b/data_structures/EVTDLY_c.js
new file mode 100644
index 0000000..7c573aa
--- /dev/null
+++ b/data_structures/EVTDLY_c.js
@@ -0,0 +1,21 @@
+function EVTDLY_c () {
+
+
+ var dt = 0.1;
+
+ var ff = 0.0;
+
+ var model = scicos_model();
+ model.sim=list("evtdly4",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 = [[dt.toString()],[sci2exp(ff)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/EVTGEN_f.js b/data_structures/EVTGEN_f.js
new file mode 100644
index 0000000..a7a2d26
--- /dev/null
+++ b/data_structures/EVTGEN_f.js
@@ -0,0 +1,17 @@
+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 = tt.toString();
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/EVTVARDLY.js b/data_structures/EVTVARDLY.js
new file mode 100644
index 0000000..99ff4f9
--- /dev/null
+++ b/data_structures/EVTVARDLY.js
@@ -0,0 +1,18 @@
+function EVTVARDLY () {
+
+
+ var model = scicos_model();
+ model.sim=list("evtvardly",4);
+ model.in = 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 = model.firing.toString();
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/EXPBLK_m.js b/data_structures/EXPBLK_m.js
new file mode 100644
index 0000000..b85018c
--- /dev/null
+++ b/data_structures/EXPBLK_m.js
@@ -0,0 +1,24 @@
+function EXPBLK_m () {
+
+
+ var in = 1;
+
+ var a = %e;
+
+ var model = scicos_model();
+ model.sim=list("expblk_m",4);
+ model.in = 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);
+}
diff --git a/data_structures/EXPRESSION.js b/data_structures/EXPRESSION.js
new file mode 100644
index 0000000..bbb3b5e
--- /dev/null
+++ b/data_structures/EXPRESSION.js
@@ -0,0 +1,27 @@
+function EXPRESSION () {
+
+
+ var in = [[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("evaluate_expr",4);
+ model.in=new ScilabDouble([in]);
+ 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 = [size(in,"*".toString());txt;"1"];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([5,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/EXTRACT.js b/data_structures/EXTRACT.js
new file mode 100644
index 0000000..7ca3df9
--- /dev/null
+++ b/data_structures/EXTRACT.js
@@ -0,0 +1,30 @@
+function EXTRACT () {
+
+
+ var model = scicos_model();
+
+ var function_name = "extract";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in = 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);
+}
diff --git a/data_structures/EXTRACTBITS.js b/data_structures/EXTRACTBITS.js
new file mode 100644
index 0000000..ccd2899
--- /dev/null
+++ b/data_structures/EXTRACTBITS.js
@@ -0,0 +1,22 @@
+function EXTRACTBITS () {
+
+
+ var numb = [];
+
+ var model = scicos_model();
+ model.sim=list("extract_bit_32_UH0",4);
+ model.in = 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);
+}
diff --git a/data_structures/EXTRACTOR.js b/data_structures/EXTRACTOR.js
new file mode 100644
index 0000000..ca50a59
--- /dev/null
+++ b/data_structures/EXTRACTOR.js
@@ -0,0 +1,18 @@
+function EXTRACTOR () {
+
+
+ var ind = 1;
+
+ var model = scicos_model();
+ model.sim=list("extractor",4);
+ model.in = 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);
+}
diff --git a/data_structures/EXTTRI.js b/data_structures/EXTTRI.js
new file mode 100644
index 0000000..4ccef96
--- /dev/null
+++ b/data_structures/EXTTRI.js
@@ -0,0 +1,30 @@
+function EXTTRI () {
+
+
+ var model = scicos_model();
+
+ var function_name = "extrilz";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in = 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);
+}
diff --git a/data_structures/Extract_Activation.js b/data_structures/Extract_Activation.js
new file mode 100644
index 0000000..399e3f7
--- /dev/null
+++ b/data_structures/Extract_Activation.js
@@ -0,0 +1,91 @@
+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.in = 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);
+}
diff --git a/data_structures/FROM.js b/data_structures/FROM.js
new file mode 100644
index 0000000..d08304b
--- /dev/null
+++ b/data_structures/FROM.js
@@ -0,0 +1,22 @@
+function FROM () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["from"]);
+ model.in = 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"]);
+}
diff --git a/data_structures/FROMMO.js b/data_structures/FROMMO.js
new file mode 100644
index 0000000..db224ee
--- /dev/null
+++ b/data_structures/FROMMO.js
@@ -0,0 +1,26 @@
+function FROMMO () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["frommo"]);
+ model.in = 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"]);
+}
diff --git a/data_structures/FROMWSB.js b/data_structures/FROMWSB.js
new file mode 100644
index 0000000..90830e5
--- /dev/null
+++ b/data_structures/FROMWSB.js
@@ -0,0 +1,14 @@
+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),in=[],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",in=-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",in=[],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);
+}
diff --git a/data_structures/Flowmeter.js b/data_structures/Flowmeter.js
new file mode 100644
index 0000000..dc3f7de
--- /dev/null
+++ b/data_structures/Flowmeter.js
@@ -0,0 +1,29 @@
+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)]);
+}
diff --git a/data_structures/GAINBLK.js b/data_structures/GAINBLK.js
new file mode 100644
index 0000000..4627818
--- /dev/null
+++ b/data_structures/GAINBLK.js
@@ -0,0 +1,24 @@
+function GAINBLK () {
+
+
+ var gain = 1;
+
+ var in = -1],[out=-1;
+
+ var in2 = -2],[out2=-2;
+
+ var model = scicos_model();
+ model.sim=list("gainblk",4);
+ model.in=new ScilabDouble([in]);
+ 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);
+}
diff --git a/data_structures/GAINBLK_f.js b/data_structures/GAINBLK_f.js
new file mode 100644
index 0000000..0a51cbf
--- /dev/null
+++ b/data_structures/GAINBLK_f.js
@@ -0,0 +1,20 @@
+function GAINBLK_f () {
+
+
+ var gain = 1;
+
+ var in = 1],[out=1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["gain"]);
+ model.in=new ScilabDouble([in]);
+ 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);
+}
diff --git a/data_structures/GAIN_f.js b/data_structures/GAIN_f.js
new file mode 100644
index 0000000..29ded41
--- /dev/null
+++ b/data_structures/GAIN_f.js
@@ -0,0 +1,18 @@
+function GAIN_f () {
+
+
+ var gain = 1],[in=1],[out=1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["gain"]);
+ model.in = 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(in))],[strcat(sci2exp(out))]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/GENERAL_f.js b/data_structures/GENERAL_f.js
new file mode 100644
index 0000000..e23f1b1
--- /dev/null
+++ b/data_structures/GENERAL_f.js
@@ -0,0 +1,24 @@
+function GENERAL_f () {
+
+
+ var rpar = [[0],[0],[0],[0]];
+
+ var in = 1;
+
+ var out = 1;
+
+ var model = scicos_model();
+ model.sim=list("zcross",1);
+ model.nzcross=new ScilabDouble([in]);
+ model.in=new ScilabDouble([in]);
+ 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(in))],[strcat(sci2exp(out))]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,,gr_i);
+}
diff --git a/data_structures/GENSIN_f.js b/data_structures/GENSIN_f.js
new file mode 100644
index 0000000..6a3cb04
--- /dev/null
+++ b/data_structures/GENSIN_f.js
@@ -0,0 +1,20 @@
+function GENSIN_f () {
+
+
+ var rpar = [[1],[1],[0]];
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["gensin"]);
+ model.in = 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 = [[rpar(1.toString())],[rpar(2.toString())],[rpar(3.toString())]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/GENSQR_f.js b/data_structures/GENSQR_f.js
new file mode 100644
index 0000000..595e96b
--- /dev/null
+++ b/data_structures/GENSQR_f.js
@@ -0,0 +1,20 @@
+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 = Amplitude.toString();
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/GOTO.js b/data_structures/GOTO.js
new file mode 100644
index 0000000..21f625f
--- /dev/null
+++ b/data_structures/GOTO.js
@@ -0,0 +1,22 @@
+function GOTO () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["goto"]);
+ model.in = 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"]);
+}
diff --git a/data_structures/GOTOMO.js b/data_structures/GOTOMO.js
new file mode 100644
index 0000000..5b7d6e1
--- /dev/null
+++ b/data_structures/GOTOMO.js
@@ -0,0 +1,26 @@
+function GOTOMO () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["gotomo"]);
+ model.in = 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"]);
+}
diff --git a/data_structures/GotoTagVisibility.js b/data_structures/GotoTagVisibility.js
new file mode 100644
index 0000000..2318924
--- /dev/null
+++ b/data_structures/GotoTagVisibility.js
@@ -0,0 +1,22 @@
+function GotoTagVisibility () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["gototagvisibility"]);
+ model.in = 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);
+}
diff --git a/data_structures/GotoTagVisibilityMO.js b/data_structures/GotoTagVisibilityMO.js
new file mode 100644
index 0000000..125bb29
--- /dev/null
+++ b/data_structures/GotoTagVisibilityMO.js
@@ -0,0 +1,22 @@
+function GotoTagVisibilityMO () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["gototagvisibilitymo"]);
+ model.in = 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);
+}
diff --git a/data_structures/Ground.js b/data_structures/Ground.js
new file mode 100644
index 0000000..d3a0f12
--- /dev/null
+++ b/data_structures/Ground.js
@@ -0,0 +1,22 @@
+function Ground () {
+
+
+ var model = scicos_model();
+ model.in = 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=new standard_define(new ScilabDouble([1,1]),model,exprs,list(gr_i,0));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+}
diff --git a/data_structures/Gyrator.js b/data_structures/Gyrator.js
new file mode 100644
index 0000000..24d6ae4
--- /dev/null
+++ b/data_structures/Gyrator.js
@@ -0,0 +1,29 @@
+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)]);
+}
diff --git a/data_structures/HALT_f.js b/data_structures/HALT_f.js
new file mode 100644
index 0000000..578204a
--- /dev/null
+++ b/data_structures/HALT_f.js
@@ -0,0 +1,18 @@
+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 = n.toString();
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/HYSTHERESIS.js b/data_structures/HYSTHERESIS.js
new file mode 100644
index 0000000..cf03644
--- /dev/null
+++ b/data_structures/HYSTHERESIS.js
@@ -0,0 +1,26 @@
+function HYSTHERESIS () {
+
+
+ var in = 1;
+
+ var ipar = [0];
+
+ var nzz = 2;
+
+ var rpar = [[1],[0],[1],[0]];
+
+ var model = scicos_model();
+ model.sim=list("hystheresis",4);
+ model.in=new ScilabDouble([in]);
+ 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 = [[rpar.toString()],[sign(nzz.toString())]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/IFTHEL_f.js b/data_structures/IFTHEL_f.js
new file mode 100644
index 0000000..4076d94
--- /dev/null
+++ b/data_structures/IFTHEL_f.js
@@ -0,0 +1,21 @@
+function IFTHEL_f () {
+
+
+ var model = scicos_model();
+ model.sim=list("ifthel",-1);
+ model.in = 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 = [[model.in.toString()],[model.nmode.toString()]];
+ this.x=new standard_define(new ScilabDouble([3,3]),model,exprs,gr_i);
+}
diff --git a/data_structures/INIMPL_f.js b/data_structures/INIMPL_f.js
new file mode 100644
index 0000000..d333e4f
--- /dev/null
+++ b/data_structures/INIMPL_f.js
@@ -0,0 +1,24 @@
+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"]);
+}
diff --git a/data_structures/INTEGRAL_f.js b/data_structures/INTEGRAL_f.js
new file mode 100644
index 0000000..9e99491
--- /dev/null
+++ b/data_structures/INTEGRAL_f.js
@@ -0,0 +1,18 @@
+function INTEGRAL_f () {
+
+
+ var x0 = 0;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["integr"]);
+ model.in = 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);
+}
diff --git a/data_structures/INTEGRAL_m.js b/data_structures/INTEGRAL_m.js
new file mode 100644
index 0000000..7c3666c
--- /dev/null
+++ b/data_structures/INTEGRAL_m.js
@@ -0,0 +1,25 @@
+function INTEGRAL_m () {
+
+
+ var maxp = 1;
+
+ var minp = -1;
+
+ var rpar = [];
+
+ var model = scicos_model();
+ model.state = new ScilabDouble([0]);
+ model.sim=list("integral_func",4);
+ model.in = 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 = [[0],[0],[0],[maxp],[minp].toString()];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/INTMUL.js b/data_structures/INTMUL.js
new file mode 100644
index 0000000..8c55e33
--- /dev/null
+++ b/data_structures/INTMUL.js
@@ -0,0 +1,23 @@
+function INTMUL () {
+
+
+ var sgn = 0;
+
+ var model = scicos_model();
+ model.sim=list("matmul_i32",4);
+ model.in = 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);
+}
diff --git a/data_structures/INTRP2BLK_f.js b/data_structures/INTRP2BLK_f.js
new file mode 100644
index 0000000..983a799
--- /dev/null
+++ b/data_structures/INTRP2BLK_f.js
@@ -0,0 +1,23 @@
+function INTRP2BLK_f () {
+
+
+ var a = [[0],[1]];
+
+ var b = [[0],[1]];
+
+ var c = [[0,1],[1,2]];
+
+ var model = scicos_model();
+ model.sim=list("intrp2",1);
+ model.in = 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);
+}
diff --git a/data_structures/INTRPLBLK_f.js b/data_structures/INTRPLBLK_f.js
new file mode 100644
index 0000000..5fc6776
--- /dev/null
+++ b/data_structures/INTRPLBLK_f.js
@@ -0,0 +1,20 @@
+function INTRPLBLK_f () {
+
+
+ var a = [[0],[1]];
+
+ var b = [[0],[1]];
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["intrpl"]);
+ model.in = 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);
+}
diff --git a/data_structures/INVBLK.js b/data_structures/INVBLK.js
new file mode 100644
index 0000000..dcf1114
--- /dev/null
+++ b/data_structures/INVBLK.js
@@ -0,0 +1,17 @@
+function INVBLK () {
+
+
+ var in = -1;
+
+ var model = scicos_model();
+ model.sim=list("invblk4",4);
+ model.in=new ScilabDouble([in]);
+ model.out=new ScilabDouble([in]);
+ 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);
+}
diff --git a/data_structures/IN_f.js b/data_structures/IN_f.js
new file mode 100644
index 0000000..fd098e3
--- /dev/null
+++ b/data_structures/IN_f.js
@@ -0,0 +1,19 @@
+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);
+}
diff --git a/data_structures/ISELECT_m.js b/data_structures/ISELECT_m.js
new file mode 100644
index 0000000..070c0eb
--- /dev/null
+++ b/data_structures/ISELECT_m.js
@@ -0,0 +1,30 @@
+function ISELECT_m () {
+
+
+ var z0 = 1;
+
+ var nout = 2;
+
+ var model = scicos_model();
+ model.sim=list("selector_m",4);
+ model.out = new ScilabDouble([-1],[-1]);
+ model.out2 = new ScilabDouble([-2],[-2]);
+ model.outtyp = new ScilabDouble([1]);
+ model.in = 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);
+}
diff --git a/data_structures/IdealTransformer.js b/data_structures/IdealTransformer.js
new file mode 100644
index 0000000..bd23ce5
--- /dev/null
+++ b/data_structures/IdealTransformer.js
@@ -0,0 +1,29 @@
+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)]);
+}
diff --git a/data_structures/Inductor.js b/data_structures/Inductor.js
new file mode 100644
index 0000000..7bcca77
--- /dev/null
+++ b/data_structures/Inductor.js
@@ -0,0 +1,27 @@
+function Inductor () {
+
+
+ var model = scicos_model();
+ model.in = 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("L",list(L));
+ model.equations=mo;
+
+ var exprs = L.toString();
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([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"]);
+}
diff --git a/data_structures/JKFLIPFLOP.js b/data_structures/JKFLIPFLOP.js
new file mode 100644
index 0000000..7bc7731
--- /dev/null
+++ b/data_structures/JKFLIPFLOP.js
@@ -0,0 +1,52 @@
+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),in=1,in2=1,intyp=5,out=1,out2=1,outtyp=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(int8(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),in=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),in=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",in=[],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",in=[],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",in=-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),in=[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(int8([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",in=-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),in=-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",in=-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",in=[],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",in=[],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",in=[],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",in=-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",in=-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.in = 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);
+}
diff --git a/data_structures/LOGBLK_f.js b/data_structures/LOGBLK_f.js
new file mode 100644
index 0000000..e8f043f
--- /dev/null
+++ b/data_structures/LOGBLK_f.js
@@ -0,0 +1,20 @@
+function LOGBLK_f () {
+
+
+ var in = 1;
+
+ var a = %e;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["logblk"]);
+ model.in = 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);
+}
diff --git a/data_structures/LOGIC.js b/data_structures/LOGIC.js
new file mode 100644
index 0000000..6565242
--- /dev/null
+++ b/data_structures/LOGIC.js
@@ -0,0 +1,24 @@
+function LOGIC () {
+
+
+ var mat = [[0],[0],[0],[1]];
+
+ var model = scicos_model();
+ model.sim=list("logic",4);
+ model.in = 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(int8(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);
+}
diff --git a/data_structures/LOGICAL_OP.js b/data_structures/LOGICAL_OP.js
new file mode 100644
index 0000000..cbaa1a1
--- /dev/null
+++ b/data_structures/LOGICAL_OP.js
@@ -0,0 +1,22 @@
+function LOGICAL_OP () {
+
+
+ var in = [[-1],[-1]];
+
+ var ipar = [0];
+
+ var nin = 2;
+
+ var model = scicos_model();
+ model.sim=list("logicalop",4);
+ model.in=in;
+ model.out = new ScilabDouble([-1]);
+ model.ipar=new ScilabDouble([ipar]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[nin.toString()],[ipar.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/LOOKUP_f.js b/data_structures/LOOKUP_f.js
new file mode 100644
index 0000000..b6a242f
--- /dev/null
+++ b/data_structures/LOOKUP_f.js
@@ -0,0 +1,14 @@
+function LOOKUP_f () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["lookup"]);
+ model.in = 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);
+}
diff --git a/data_structures/MATBKSL.js b/data_structures/MATBKSL.js
new file mode 100644
index 0000000..0f40803
--- /dev/null
+++ b/data_structures/MATBKSL.js
@@ -0,0 +1,30 @@
+function MATBKSL () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_bksl";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in = 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);
+}
diff --git a/data_structures/MATCATH.js b/data_structures/MATCATH.js
new file mode 100644
index 0000000..6f5d6e3
--- /dev/null
+++ b/data_structures/MATCATH.js
@@ -0,0 +1,30 @@
+function MATCATH () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_cath";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in = 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);
+}
diff --git a/data_structures/MATCATV.js b/data_structures/MATCATV.js
new file mode 100644
index 0000000..f8f1bf8
--- /dev/null
+++ b/data_structures/MATCATV.js
@@ -0,0 +1,32 @@
+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.in = 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);
+}
diff --git a/data_structures/MATDET.js b/data_structures/MATDET.js
new file mode 100644
index 0000000..d83a472
--- /dev/null
+++ b/data_structures/MATDET.js
@@ -0,0 +1,30 @@
+function MATDET () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_det";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in = 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);
+}
diff --git a/data_structures/MATDIAG.js b/data_structures/MATDIAG.js
new file mode 100644
index 0000000..9285d04
--- /dev/null
+++ b/data_structures/MATDIAG.js
@@ -0,0 +1,30 @@
+function MATDIAG () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_diag";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in = 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);
+}
diff --git a/data_structures/MATDIV.js b/data_structures/MATDIV.js
new file mode 100644
index 0000000..3689f6e
--- /dev/null
+++ b/data_structures/MATDIV.js
@@ -0,0 +1,30 @@
+function MATDIV () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_div";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in = 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);
+}
diff --git a/data_structures/MATEIG.js b/data_structures/MATEIG.js
new file mode 100644
index 0000000..96762a6
--- /dev/null
+++ b/data_structures/MATEIG.js
@@ -0,0 +1,30 @@
+function MATEIG () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_vps";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in = 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);
+}
diff --git a/data_structures/MATEXPM.js b/data_structures/MATEXPM.js
new file mode 100644
index 0000000..92effa6
--- /dev/null
+++ b/data_structures/MATEXPM.js
@@ -0,0 +1,30 @@
+function MATEXPM () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_expm";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in = 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);
+}
diff --git a/data_structures/MATINV.js b/data_structures/MATINV.js
new file mode 100644
index 0000000..50d23e4
--- /dev/null
+++ b/data_structures/MATINV.js
@@ -0,0 +1,30 @@
+function MATINV () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_inv";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in = 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);
+}
diff --git a/data_structures/MATLU.js b/data_structures/MATLU.js
new file mode 100644
index 0000000..ca10a72
--- /dev/null
+++ b/data_structures/MATLU.js
@@ -0,0 +1,30 @@
+function MATLU () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_lu";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in = 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);
+}
diff --git a/data_structures/MATMAGPHI.js b/data_structures/MATMAGPHI.js
new file mode 100644
index 0000000..7af7bac
--- /dev/null
+++ b/data_structures/MATMAGPHI.js
@@ -0,0 +1,30 @@
+function MATMAGPHI () {
+
+
+ var model = scicos_model();
+
+ var function_name = "matz_abs";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in = 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);
+}
diff --git a/data_structures/MATMUL.js b/data_structures/MATMUL.js
new file mode 100644
index 0000000..1891c6e
--- /dev/null
+++ b/data_structures/MATMUL.js
@@ -0,0 +1,17 @@
+function MATMUL () {
+
+
+ var model = scicos_model();
+ model.sim=list("matmul_m",4);
+ model.in = 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);
+}
diff --git a/data_structures/MATPINV.js b/data_structures/MATPINV.js
new file mode 100644
index 0000000..136f117
--- /dev/null
+++ b/data_structures/MATPINV.js
@@ -0,0 +1,30 @@
+function MATPINV () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_pinv";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in = 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);
+}
diff --git a/data_structures/MATRESH.js b/data_structures/MATRESH.js
new file mode 100644
index 0000000..ca557a7
--- /dev/null
+++ b/data_structures/MATRESH.js
@@ -0,0 +1,30 @@
+function MATRESH () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_reshape";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in = 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);
+}
diff --git a/data_structures/MATSING.js b/data_structures/MATSING.js
new file mode 100644
index 0000000..0c28840
--- /dev/null
+++ b/data_structures/MATSING.js
@@ -0,0 +1,30 @@
+function MATSING () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_sing";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in = 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);
+}
diff --git a/data_structures/MATSUM.js b/data_structures/MATSUM.js
new file mode 100644
index 0000000..2f06343
--- /dev/null
+++ b/data_structures/MATSUM.js
@@ -0,0 +1,30 @@
+function MATSUM () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_sum";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in = 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);
+}
diff --git a/data_structures/MATTRAN.js b/data_structures/MATTRAN.js
new file mode 100644
index 0000000..e68f6a3
--- /dev/null
+++ b/data_structures/MATTRAN.js
@@ -0,0 +1,16 @@
+function MATTRAN () {
+
+
+ var model = scicos_model();
+ model.sim=list("mattran_m",4);
+ model.in = 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);
+}
diff --git a/data_structures/MATZCONJ.js b/data_structures/MATZCONJ.js
new file mode 100644
index 0000000..b2bdfe6
--- /dev/null
+++ b/data_structures/MATZCONJ.js
@@ -0,0 +1,30 @@
+function MATZCONJ () {
+
+
+ var model = scicos_model();
+
+ var function_name = "matz_conj";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in = 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);
+}
diff --git a/data_structures/MATZREIM.js b/data_structures/MATZREIM.js
new file mode 100644
index 0000000..7e01449
--- /dev/null
+++ b/data_structures/MATZREIM.js
@@ -0,0 +1,30 @@
+function MATZREIM () {
+
+
+ var model = scicos_model();
+
+ var function_name = "matz_reim";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in = 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);
+}
diff --git a/data_structures/MAXMIN.js b/data_structures/MAXMIN.js
new file mode 100644
index 0000000..6b19a1c
--- /dev/null
+++ b/data_structures/MAXMIN.js
@@ -0,0 +1,17 @@
+function MAXMIN () {
+
+
+ var model = scicos_model();
+ model.sim=list("minmax",4);
+ model.out = new ScilabDouble([1]);
+ model.in = new ScilabDouble([-1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+ model.ipar = new ScilabDouble([0]);
+
+ var exprs = [[2,1,1]'.toString()];
+
+ 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"]);
+}
diff --git a/data_structures/MAX_f.js b/data_structures/MAX_f.js
new file mode 100644
index 0000000..8519732
--- /dev/null
+++ b/data_structures/MAX_f.js
@@ -0,0 +1,18 @@
+function MAX_f () {
+
+
+ var in = -1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["maxblk"]);
+ model.in=new ScilabDouble([in]);
+ 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);
+}
diff --git a/data_structures/MBLOCK.js b/data_structures/MBLOCK.js
new file mode 100644
index 0000000..30a963b
--- /dev/null
+++ b/data_structures/MBLOCK.js
@@ -0,0 +1,29 @@
+function MBLOCK () {
+
+
+ var in = ["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(...in),sci2exp(...intype),sci2exp(...out),sci2exp(...outtype),sci2exp(...param),list(0.1.toString(),.0001.toString()),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)(:)]);
+}
diff --git a/data_structures/MCLOCK_f.js b/data_structures/MCLOCK_f.js
new file mode 100644
index 0000000..ee3eb49
--- /dev/null
+++ b/data_structures/MCLOCK_f.js
@@ -0,0 +1,80 @@
+function MCLOCK_f () {
+
+
+ var nn = 2;
+
+ var dt = 0.1;
+
+ var exprs = [[dt.toString()],[nn.toString()]];
+
+ 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]);
+}
diff --git a/data_structures/MFCLCK_f.js b/data_structures/MFCLCK_f.js
new file mode 100644
index 0000000..7e314e3
--- /dev/null
+++ b/data_structures/MFCLCK_f.js
@@ -0,0 +1,23 @@
+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 = [[dt.toString()],[nn.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/MIN_f.js b/data_structures/MIN_f.js
new file mode 100644
index 0000000..3055932
--- /dev/null
+++ b/data_structures/MIN_f.js
@@ -0,0 +1,18 @@
+function MIN_f () {
+
+
+ var in = -1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["minblk"]);
+ model.in=new ScilabDouble([in]);
+ 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(in);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/MUX.js b/data_structures/MUX.js
new file mode 100644
index 0000000..cbba6c7
--- /dev/null
+++ b/data_structures/MUX.js
@@ -0,0 +1,18 @@
+function MUX () {
+
+
+ var in = 2;
+
+ var model = scicos_model();
+ model.sim=list("multiplex",4);
+ model.in=-...transpose([1:in]);
+ model.out = new ScilabDouble([0]);
+ model.ipar=new ScilabDouble([in]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = in.toString();
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([.5,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/MUX_f.js b/data_structures/MUX_f.js
new file mode 100644
index 0000000..533ce9b
--- /dev/null
+++ b/data_structures/MUX_f.js
@@ -0,0 +1,18 @@
+function MUX_f () {
+
+
+ var in = 2;
+
+ var model = scicos_model();
+ model.sim=list("mux",1);
+ model.in=-...transpose([1:in]);
+ model.out = new ScilabDouble([0]);
+ model.ipar=new ScilabDouble([in]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = in.toString();
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([0.5,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/M_SWITCH.js b/data_structures/M_SWITCH.js
new file mode 100644
index 0000000..049d8dc
--- /dev/null
+++ b/data_structures/M_SWITCH.js
@@ -0,0 +1,22 @@
+function M_SWITCH () {
+
+
+ var in = [[1],[-1],[-1]];
+
+ var ipar = [[1],[3]];
+
+ var nin = 2;
+
+ var model = scicos_model();
+ model.sim=list("mswitch",4);
+ model.in=new ScilabDouble([in]);
+ model.out = new ScilabDouble([-1]);
+ model.ipar=new ScilabDouble([ipar]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[nin.toString()],[ipar.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2.5,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/M_freq.js b/data_structures/M_freq.js
new file mode 100644
index 0000000..1e2e8e4
--- /dev/null
+++ b/data_structures/M_freq.js
@@ -0,0 +1,18 @@
+function M_freq () {
+
+
+ var model = scicos_model();
+ model.sim=list("m_frequ",4);
+ model.evtout = new ScilabDouble([1],[1],[1]);
+ model.evtin = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble();
+ model.opar=list([1,1,0],[1,1,1],[1,3,2],1,0,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);
+}
diff --git a/data_structures/Modulo_Count.js b/data_structures/Modulo_Count.js
new file mode 100644
index 0000000..fc71f23
--- /dev/null
+++ b/data_structures/Modulo_Count.js
@@ -0,0 +1,21 @@
+function Modulo_Count () {
+
+
+ var ini_c = 0;
+
+ var base = 3;
+
+ var model = scicos_model();
+ model.sim=list("modulo_count",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 = [[ini_c.toString()],[base.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/NEGTOPOS_f.js b/data_structures/NEGTOPOS_f.js
new file mode 100644
index 0000000..3093461
--- /dev/null
+++ b/data_structures/NEGTOPOS_f.js
@@ -0,0 +1,16 @@
+function NEGTOPOS_f () {
+
+
+ var model = scicos_model();
+ model.sim=list("zcross",1);
+ model.nzcross = new ScilabDouble([1]);
+ model.in = 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);
+}
diff --git a/data_structures/NMOS.js b/data_structures/NMOS.js
new file mode 100644
index 0000000..8e5c23e
--- /dev/null
+++ b/data_structures/NMOS.js
@@ -0,0 +1,42 @@
+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(["W";"L";"Beta";"Vt";"K2";"K5";"dW";"dL";"RDS"],[W],[L],[Beta],[Vt],[K2],[K5],[dW],[dL],[RDS]);
+ model.equations=mo;
+ model.in=ones(size(mo.inputs,"*"),1);
+ model.out=ones(size(mo.outputs,"*"),1);
+
+ var exprs = [[W.toString()],[L.toString()],[Beta.toString()],[Vt.toString()],[K2.toString()],[K5.toString()],[dW.toString()],[dL.toString()],[RDS.toString()]];
+
+ 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"]);
+}
diff --git a/data_structures/NPN.js b/data_structures/NPN.js
new file mode 100644
index 0000000..53df5cf
--- /dev/null
+++ b/data_structures/NPN.js
@@ -0,0 +1,29 @@
+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)]);
+}
diff --git a/data_structures/NRMSOM_f.js b/data_structures/NRMSOM_f.js
new file mode 100644
index 0000000..37c8e3c
--- /dev/null
+++ b/data_structures/NRMSOM_f.js
@@ -0,0 +1,19 @@
+function NRMSOM_f () {
+
+
+ var in = [[-1],[-1]];
+
+ var nin = 2;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["junk"]);
+ model.in=in;
+ model.out = new ScilabDouble([-1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [nin.toString()];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([.2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/OUTIMPL_f.js b/data_structures/OUTIMPL_f.js
new file mode 100644
index 0000000..7b2012a
--- /dev/null
+++ b/data_structures/OUTIMPL_f.js
@@ -0,0 +1,24 @@
+function OUTIMPL_f () {
+
+
+ var model = scicos_model();
+ model.in = 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"]);
+}
diff --git a/data_structures/OUT_f.js b/data_structures/OUT_f.js
new file mode 100644
index 0000000..77e8f89
--- /dev/null
+++ b/data_structures/OUT_f.js
@@ -0,0 +1,21 @@
+function OUT_f () {
+
+
+ var n = -1;
+
+ var prt = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["output"]);
+ model.in = 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 = prt.toString();
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i);
+}
diff --git a/data_structures/OpAmp.js b/data_structures/OpAmp.js
new file mode 100644
index 0000000..202d590
--- /dev/null
+++ b/data_structures/OpAmp.js
@@ -0,0 +1,29 @@
+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.in=ones(size(mo.inputs,"*"),1);
+ model.out=ones(size(mo.outputs,"*"),1);
+ model.rpar=Z;
+
+ var exprs = Z.toString();
+
+ 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"]);
+}
diff --git a/data_structures/PDE.js b/data_structures/PDE.js
new file mode 100644
index 0000000..e90beb5
--- /dev/null
+++ b/data_structures/PDE.js
@@ -0,0 +1,18 @@
+function PDE () {
+
+
+ var model = scicos_model();
+ model.state=zeros(10,1);
+ model.sim=list("PDE",0);
+ model.in = 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);
+}
diff --git a/data_structures/PID.js b/data_structures/PID.js
new file mode 100644
index 0000000..7b21fff
--- /dev/null
+++ b/data_structures/PID.js
@@ -0,0 +1,42 @@
+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),in=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),in=[-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),in=-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),in=-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),in=-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),in=-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",in=-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",in=-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",in=-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",in=[],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.in = 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);
+}
diff --git a/data_structures/PMOS.js b/data_structures/PMOS.js
new file mode 100644
index 0000000..1fdb28a
--- /dev/null
+++ b/data_structures/PMOS.js
@@ -0,0 +1,42 @@
+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(["W";"L";"Beta";"Vt";"K2";"K5";"dW";"dL";"RDS"],[W],[L],[Beta],[Vt],[K2],[K5],[dW],[dL],[RDS]);
+ model.equations=mo;
+ model.in=ones(size(mo.inputs,"*"),1);
+ model.out=ones(size(mo.outputs,"*"),1);
+
+ var exprs = [[W.toString()],[L.toString()],[Beta.toString()],[Vt.toString()],[K2.toString()],[K5.toString()],[dW.toString()],[dL.toString()],[RDS.toString()]];
+
+ 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"]);
+}
diff --git a/data_structures/PNP.js b/data_structures/PNP.js
new file mode 100644
index 0000000..479626c
--- /dev/null
+++ b/data_structures/PNP.js
@@ -0,0 +1,29 @@
+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)]);
+}
diff --git a/data_structures/POSTONEG_f.js b/data_structures/POSTONEG_f.js
new file mode 100644
index 0000000..2d107c8
--- /dev/null
+++ b/data_structures/POSTONEG_f.js
@@ -0,0 +1,18 @@
+function POSTONEG_f () {
+
+
+ var rpar = [[-1],[-1],[-1],[0]];
+
+ var model = scicos_model();
+ model.sim=list("zcross",1);
+ model.nzcross = new ScilabDouble([1]);
+ model.in = 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);
+}
diff --git a/data_structures/POWBLK_f.js b/data_structures/POWBLK_f.js
new file mode 100644
index 0000000..49e46a4
--- /dev/null
+++ b/data_structures/POWBLK_f.js
@@ -0,0 +1,20 @@
+function POWBLK_f () {
+
+
+ var in = 1;
+
+ var a = 1.5;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["powblk"]);
+ model.in = 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 = a.toString();
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/PRODUCT.js b/data_structures/PRODUCT.js
new file mode 100644
index 0000000..209fe15
--- /dev/null
+++ b/data_structures/PRODUCT.js
@@ -0,0 +1,18 @@
+function PRODUCT () {
+
+
+ var sgn = [[1],[-1]];
+
+ var model = scicos_model();
+ model.sim=list("product",4);
+ model.in = 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);
+}
diff --git a/data_structures/PROD_f.js b/data_structures/PROD_f.js
new file mode 100644
index 0000000..a169dc1
--- /dev/null
+++ b/data_structures/PROD_f.js
@@ -0,0 +1,11 @@
+function PROD_f () {
+
+
+ var model = scicos_model();
+ model.sim=list("prod",2);
+ model.in = 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,[],[]);
+}
diff --git a/data_structures/PULSE_SC.js b/data_structures/PULSE_SC.js
new file mode 100644
index 0000000..68c326b
--- /dev/null
+++ b/data_structures/PULSE_SC.js
@@ -0,0 +1,56 @@
+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),in=[],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),in=[],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),in=[-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",in=[],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",in=[],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",in=-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.in = 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);
+}
diff --git a/data_structures/PerteDP.js b/data_structures/PerteDP.js
new file mode 100644
index 0000000..09279f9
--- /dev/null
+++ b/data_structures/PerteDP.js
@@ -0,0 +1,39 @@
+function PerteDP () {
+
+
+ var model = scicos_model();
+ model.in = 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(["L";"D";"lambda";"z1";"z2";"p_rho"],[L],[D],[lambda],[z1],[z2],[p_rho]);
+ model.equations=mo;
+ model.in=ones(size(mo.inputs,"*"),1);
+ model.out=ones(size(mo.outputs,"*"),1);
+
+ var exprs = [[L.toString()],[D.toString()],[lambda.toString()],[z1.toString()],[z2.toString()],[p_rho.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,1]),model,exprs,list(gr_i,0));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+}
diff --git a/data_structures/PotentialSensor.js b/data_structures/PotentialSensor.js
new file mode 100644
index 0000000..909439d
--- /dev/null
+++ b/data_structures/PotentialSensor.js
@@ -0,0 +1,22 @@
+function PotentialSensor () {
+
+
+ var model = scicos_model();
+ model.in = 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=new standard_define(new ScilabDouble([2,2]),model,"",list(gr_i,0));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["E"]);
+}
diff --git a/data_structures/PuitsP.js b/data_structures/PuitsP.js
new file mode 100644
index 0000000..44b745c
--- /dev/null
+++ b/data_structures/PuitsP.js
@@ -0,0 +1,30 @@
+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(["P0";"T0";"H0";"option_temperature"],[P0],[T0],[H0],[option_temperature]);
+ model.equations=mo;
+ model.in=ones(size(mo.inputs,"*"),1);
+
+ var exprs = [[P0.toString()],[T0.toString()],[H0.toString()],[option_temperature.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2.5,2]),model,exprs,list(gr_i,0));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+}
diff --git a/data_structures/QUANT_f.js b/data_structures/QUANT_f.js
new file mode 100644
index 0000000..67adc97
--- /dev/null
+++ b/data_structures/QUANT_f.js
@@ -0,0 +1,21 @@
+function QUANT_f () {
+
+
+ var pas = 0.1;
+
+ var meth = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["qzrnd"]);
+ model.in = 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 = [[pas.toString()],[meth.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/RAMP.js b/data_structures/RAMP.js
new file mode 100644
index 0000000..f6f442b
--- /dev/null
+++ b/data_structures/RAMP.js
@@ -0,0 +1,26 @@
+function RAMP () {
+
+
+ var slope = 0;
+
+ var iout = 0;
+
+ var stt = 0;
+
+ var rpar = [[slope],[stt],[iout]];
+
+ var model = scicos_model();
+ model.sim=list("ramp",4);
+ model.in = 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 = [rpar.toString()];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/RAND_m.js b/data_structures/RAND_m.js
new file mode 100644
index 0000000..7569ac8
--- /dev/null
+++ b/data_structures/RAND_m.js
@@ -0,0 +1,38 @@
+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.in = 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)],[flag.toString()],[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);
+}
diff --git a/data_structures/RATELIMITER.js b/data_structures/RATELIMITER.js
new file mode 100644
index 0000000..d8f0d60
--- /dev/null
+++ b/data_structures/RATELIMITER.js
@@ -0,0 +1,22 @@
+function RATELIMITER () {
+
+
+ var minp = -1;
+
+ var maxp = 1;
+
+ var rpar = [[maxp],[minp]];
+
+ var model = scicos_model();
+ model.sim=list("ratelimiter",4);
+ model.in = 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 = [[maxp.toString()],[minp.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3.5,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/READAU_f.js b/data_structures/READAU_f.js
new file mode 100644
index 0000000..13b2920
--- /dev/null
+++ b/data_structures/READAU_f.js
@@ -0,0 +1,39 @@
+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("readau",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],[N.toString()],[swap.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([5,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/READC_f.js b/data_structures/READC_f.js
new file mode 100644
index 0000000..5fa7340
--- /dev/null
+++ b/data_structures/READC_f.js
@@ -0,0 +1,45 @@
+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("readc",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],[,M.toString()],[,N.toString()],[,offset.toString()],[swap.toString(),]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/REGISTER.js b/data_structures/REGISTER.js
new file mode 100644
index 0000000..37ca472
--- /dev/null
+++ b/data_structures/REGISTER.js
@@ -0,0 +1,19 @@
+function REGISTER () {
+
+
+ var z0 = zeros(10,1);
+
+ var model = scicos_model();
+ model.sim=list("delay4",4);
+ model.in = 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(z0.toString(),,";");
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/RELATIONALOP.js b/data_structures/RELATIONALOP.js
new file mode 100644
index 0000000..3e2145c
--- /dev/null
+++ b/data_structures/RELATIONALOP.js
@@ -0,0 +1,21 @@
+function RELATIONALOP () {
+
+
+ var ipar = [2];
+
+ var label = "&lt";
+
+ var model = scicos_model();
+ model.sim=list("relationalop",4);
+ model.in = 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 = [[ipar.toString()],[0.toString()]];
+
+ 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]);
+}
diff --git a/data_structures/RELAY_f.js b/data_structures/RELAY_f.js
new file mode 100644
index 0000000..ec6d721
--- /dev/null
+++ b/data_structures/RELAY_f.js
@@ -0,0 +1,24 @@
+function RELAY_f () {
+
+
+ var i0 = 0;
+
+ var in = [[-1],[-1]];
+
+ var nin = 2;
+
+ var model = scicos_model();
+ model.sim=list("relay",2);
+ model.in=in;
+ model.out = new ScilabDouble([-1]);
+ model.evtin=ones(in);
+ model.dstate=new ScilabDouble([i0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,true]);
+
+ var exprs = [[nin.toString()],[i0+1.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/RFILE_f.js b/data_structures/RFILE_f.js
new file mode 100644
index 0000000..19369ca
--- /dev/null
+++ b/data_structures/RFILE_f.js
@@ -0,0 +1,39 @@
+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],[N.toString()],[sci2exp(out)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/RICC.js b/data_structures/RICC.js
new file mode 100644
index 0000000..bea104f
--- /dev/null
+++ b/data_structures/RICC.js
@@ -0,0 +1,30 @@
+function RICC () {
+
+
+ var model = scicos_model();
+
+ var function_name = "ricc_m";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in = 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);
+}
diff --git a/data_structures/ROOTCOEF.js b/data_structures/ROOTCOEF.js
new file mode 100644
index 0000000..049fda3
--- /dev/null
+++ b/data_structures/ROOTCOEF.js
@@ -0,0 +1,30 @@
+function ROOTCOEF () {
+
+
+ var model = scicos_model();
+
+ var function_name = "root_coef";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in = 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);
+}
diff --git a/data_structures/Resistor.js b/data_structures/Resistor.js
new file mode 100644
index 0000000..01d1f0b
--- /dev/null
+++ b/data_structures/Resistor.js
@@ -0,0 +1,27 @@
+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("R",list(R));
+ model.equations=mo;
+ model.in=ones(size(mo.inputs,"*"),1);
+ model.out=ones(size(mo.outputs,"*"),1);
+
+ var exprs = R.toString();
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,1]),model,exprs,list(gr_i,0));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+}
diff --git a/data_structures/SAMPHOLD_m.js b/data_structures/SAMPHOLD_m.js
new file mode 100644
index 0000000..210a61c
--- /dev/null
+++ b/data_structures/SAMPHOLD_m.js
@@ -0,0 +1,20 @@
+function SAMPHOLD_m () {
+
+
+ var model = scicos_model();
+ model.sim=list("samphold4_m",4);
+ model.in = 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);
+}
diff --git a/data_structures/SATURATION.js b/data_structures/SATURATION.js
new file mode 100644
index 0000000..e291f50
--- /dev/null
+++ b/data_structures/SATURATION.js
@@ -0,0 +1,24 @@
+function SATURATION () {
+
+
+ var minp = -1;
+
+ var maxp = 1;
+
+ var rpar = [[maxp],[minp]];
+
+ var model = scicos_model();
+ model.sim=list("satur",4);
+ model.in = 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 = [[maxp.toString()],[minp.toString()],[model.nmode.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/SAWTOOTH_f.js b/data_structures/SAWTOOTH_f.js
new file mode 100644
index 0000000..085851a
--- /dev/null
+++ b/data_structures/SAWTOOTH_f.js
@@ -0,0 +1,16 @@
+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);
+}
diff --git a/data_structures/SCALAR2VECTOR.js b/data_structures/SCALAR2VECTOR.js
new file mode 100644
index 0000000..d8959cc
--- /dev/null
+++ b/data_structures/SCALAR2VECTOR.js
@@ -0,0 +1,17 @@
+function SCALAR2VECTOR () {
+
+
+ var nout = -1;
+
+ var model = scicos_model();
+ model.sim=list("scalar2vector",4);
+ model.out=new ScilabDouble([nout]);
+ model.in = new ScilabDouble([1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[nout].toString()];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/SELECT_m.js b/data_structures/SELECT_m.js
new file mode 100644
index 0000000..021f1f3
--- /dev/null
+++ b/data_structures/SELECT_m.js
@@ -0,0 +1,30 @@
+function SELECT_m () {
+
+
+ var z0 = 1;
+
+ var nin = 2;
+
+ var model = scicos_model();
+ model.sim=list("selector_m",4);
+ model.in = 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);
+}
diff --git a/data_structures/SELF_SWITCH.js b/data_structures/SELF_SWITCH.js
new file mode 100644
index 0000000..37d47b7
--- /dev/null
+++ b/data_structures/SELF_SWITCH.js
@@ -0,0 +1,23 @@
+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.in = 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"]);
+}
diff --git a/data_structures/SHIFT.js b/data_structures/SHIFT.js
new file mode 100644
index 0000000..19673ee
--- /dev/null
+++ b/data_structures/SHIFT.js
@@ -0,0 +1,25 @@
+function SHIFT () {
+
+
+ var sgn = [[0],[0]];
+
+ var OPER = 0;
+
+ var model = scicos_model();
+ model.sim=list("shift_32_LA",4);
+ model.in = 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);
+}
diff --git a/data_structures/SIGNUM.js b/data_structures/SIGNUM.js
new file mode 100644
index 0000000..6c0cda6
--- /dev/null
+++ b/data_structures/SIGNUM.js
@@ -0,0 +1,19 @@
+function SIGNUM () {
+
+
+ var nu = -1;
+
+ var model = scicos_model();
+ model.sim=list("signum",4);
+ model.in=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 = [[1].toString()];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/SINBLK_f.js b/data_structures/SINBLK_f.js
new file mode 100644
index 0000000..2730bfa
--- /dev/null
+++ b/data_structures/SINBLK_f.js
@@ -0,0 +1,15 @@
+function SINBLK_f () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["sinblk"]);
+ model.in = 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);
+}
diff --git a/data_structures/SOM_f.js b/data_structures/SOM_f.js
new file mode 100644
index 0000000..223f883
--- /dev/null
+++ b/data_structures/SOM_f.js
@@ -0,0 +1,18 @@
+function SOM_f () {
+
+
+ var sgn = [[1],[1],[1]];
+
+ var model = scicos_model();
+ model.sim=list("sum",2);
+ model.in = 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);
+}
diff --git a/data_structures/SQRT.js b/data_structures/SQRT.js
new file mode 100644
index 0000000..535bcb2
--- /dev/null
+++ b/data_structures/SQRT.js
@@ -0,0 +1,18 @@
+function SQRT () {
+
+
+ var model = scicos_model();
+ model.sim=list("mat_sqrt",4);
+ model.in = 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);
+}
diff --git a/data_structures/SRFLIPFLOP.js b/data_structures/SRFLIPFLOP.js
new file mode 100644
index 0000000..fe5f83e
--- /dev/null
+++ b/data_structures/SRFLIPFLOP.js
@@ -0,0 +1,43 @@
+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),in=[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),in=1,in2=1,intyp=5,out=1,out2=1,outtyp=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(int8(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",in=-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",in=-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",in=[],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",in=[],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",in=-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.in = 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);
+}
diff --git a/data_structures/STEP_FUNCTION.js b/data_structures/STEP_FUNCTION.js
new file mode 100644
index 0000000..921a0b8
--- /dev/null
+++ b/data_structures/STEP_FUNCTION.js
@@ -0,0 +1,56 @@
+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);
+}
diff --git a/data_structures/SUBMAT.js b/data_structures/SUBMAT.js
new file mode 100644
index 0000000..8c7fd11
--- /dev/null
+++ b/data_structures/SUBMAT.js
@@ -0,0 +1,30 @@
+function SUBMAT () {
+
+
+ var model = scicos_model();
+
+ var function_name = "submat";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in = 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);
+}
diff --git a/data_structures/SUMMATION.js b/data_structures/SUMMATION.js
new file mode 100644
index 0000000..5ce2fc4
--- /dev/null
+++ b/data_structures/SUMMATION.js
@@ -0,0 +1,20 @@
+function SUMMATION () {
+
+
+ var sgn = [[1],[-1]];
+
+ var model = scicos_model();
+ model.sim=list("summation",4);
+ model.in = 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);
+}
diff --git a/data_structures/SUM_f.js b/data_structures/SUM_f.js
new file mode 100644
index 0000000..4ee32df
--- /dev/null
+++ b/data_structures/SUM_f.js
@@ -0,0 +1,15 @@
+function SUM_f () {
+
+
+ var model = scicos_model();
+ model.sim=list("plusblk",2);
+ model.in = 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);
+}
diff --git a/data_structures/SUPER_f.js b/data_structures/SUPER_f.js
new file mode 100644
index 0000000..8b5babc
--- /dev/null
+++ b/data_structures/SUPER_f.js
@@ -0,0 +1,27 @@
+function SUPER_f () {
+
+
+ var scs = scicos_diagram();
+ scs.props.title = new ScilabString(["Super,Block"]);
+
+ var in = IN_f("define");
+ in.graphics.orig = new ScilabDouble([40,,40]);
+ in.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(in);
+ scs.objs.push(out);
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["super"]);
+ model.in = 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);
+}
diff --git a/data_structures/SWITCH2_m.js b/data_structures/SWITCH2_m.js
new file mode 100644
index 0000000..f19b2bc
--- /dev/null
+++ b/data_structures/SWITCH2_m.js
@@ -0,0 +1,29 @@
+function SWITCH2_m () {
+
+
+ var ipar = [0];
+
+ var nzz = 1;
+
+ var rpar = 0;
+
+ var model = scicos_model();
+ model.sim=list("switch2_m",4);
+ model.in = 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)],[ipar.toString()],[rpar.toString()],[nzz.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/SWITCH_f.js b/data_structures/SWITCH_f.js
new file mode 100644
index 0000000..525a325
--- /dev/null
+++ b/data_structures/SWITCH_f.js
@@ -0,0 +1,23 @@
+function SWITCH_f () {
+
+
+ var i0 = 0;
+
+ var in = [[-1],[-1]];
+
+ var nin = 2;
+
+ var model = scicos_model();
+ model.sim=list("switchn",2);
+ model.in=in;
+ 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 = [[nin.toString()],[i0+1.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/SampleCLK.js b/data_structures/SampleCLK.js
new file mode 100644
index 0000000..caacb0f
--- /dev/null
+++ b/data_structures/SampleCLK.js
@@ -0,0 +1,14 @@
+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," ");
+}
diff --git a/data_structures/Sigbuilder.js b/data_structures/Sigbuilder.js
new file mode 100644
index 0000000..732de66
--- /dev/null
+++ b/data_structures/Sigbuilder.js
@@ -0,0 +1,18 @@
+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),in=[],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",in=[],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",in=-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",in=[],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",in=[],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);
+}
diff --git a/data_structures/SineVoltage.js b/data_structures/SineVoltage.js
new file mode 100644
index 0000000..d715567
--- /dev/null
+++ b/data_structures/SineVoltage.js
@@ -0,0 +1,35 @@
+function SineVoltage () {
+
+
+ var model = scicos_model();
+ model.in = 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(["V";"phase";"freqHz";"offset";"startTime"],list(V,ph,frq,offset,start));
+ model.equations=mo;
+
+ var exprs = [[V.toString()],[ph.toString()],[frq.toString()],[offset.toString()],[start.toString()]];
+
+ 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"]);
+}
diff --git a/data_structures/SourceP.js b/data_structures/SourceP.js
new file mode 100644
index 0000000..fbc3f4a
--- /dev/null
+++ b/data_structures/SourceP.js
@@ -0,0 +1,32 @@
+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(["P0";"T0";"H0";"option_temperature"],[P0],[T0],[H0],[option_temperature]);
+ model.equations=mo;
+ model.in=ones(size(mo.inputs,"*"),1);
+ model.out=ones(size(mo.outputs,"*"),1);
+
+ var exprs = [[P0.toString()],[T0.toString()],[H0.toString()],[option_temperature.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2.5,2]),model,exprs,list(gr_i,0));
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+}
diff --git a/data_structures/Switch.js b/data_structures/Switch.js
new file mode 100644
index 0000000..80a3b74
--- /dev/null
+++ b/data_structures/Switch.js
@@ -0,0 +1,33 @@
+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.in=ones(size(mo.inputs,"*"),1);
+ model.out=ones(size(mo.outputs,"*"),1);
+ model.rpar=Z;
+
+ var exprs = Z.toString();
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([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"]);
+}
diff --git a/data_structures/TANBLK_f.js b/data_structures/TANBLK_f.js
new file mode 100644
index 0000000..a1dcf60
--- /dev/null
+++ b/data_structures/TANBLK_f.js
@@ -0,0 +1,17 @@
+function TANBLK_f () {
+
+
+ var in = -1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["tanblk"]);
+ model.in=new ScilabDouble([in]);
+ model.out=new ScilabDouble([in]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = sci2exp(in);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/TCLSS.js b/data_structures/TCLSS.js
new file mode 100644
index 0000000..13e57df
--- /dev/null
+++ b/data_structures/TCLSS.js
@@ -0,0 +1,26 @@
+function TCLSS () {
+
+
+ var x0 = [0],[A=0],[B=1],[C=1],[D=0];
+
+ var in = 1;
+
+ var nx = size(x0,"*");
+
+ var out = 1;
+
+ var model = scicos_model();
+ model.sim=list("tcslti4",4);
+ model.in = new ScilabDouble([in],[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);
+}
diff --git a/data_structures/TEXT_f.js b/data_structures/TEXT_f.js
new file mode 100644
index 0000000..9cb18e1
--- /dev/null
+++ b/data_structures/TEXT_f.js
@@ -0,0 +1,20 @@
+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"],[font.toString()],[,siz.toString()]];
+
+ 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"]));
+}
diff --git a/data_structures/TIME_DELAY.js b/data_structures/TIME_DELAY.js
new file mode 100644
index 0000000..d58682a
--- /dev/null
+++ b/data_structures/TIME_DELAY.js
@@ -0,0 +1,25 @@
+function TIME_DELAY () {
+
+
+ var nin = 1;
+
+ var T = 1;
+
+ var init = 0;
+
+ var N = 1024;
+
+ var model = scicos_model();
+ model.sim=list("time_delay",4);
+ model.in = 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 = [[T.toString()],[init.toString()],[N.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3.5,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/TIME_f.js b/data_structures/TIME_f.js
new file mode 100644
index 0000000..b32a51f
--- /dev/null
+++ b/data_structures/TIME_f.js
@@ -0,0 +1,12 @@
+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);
+}
diff --git a/data_structures/TKSCALE.js b/data_structures/TKSCALE.js
new file mode 100644
index 0000000..dd1a304
--- /dev/null
+++ b/data_structures/TKSCALE.js
@@ -0,0 +1,22 @@
+function TKSCALE () {
+
+
+ var a = -10;
+
+ var b = 10;
+
+ var f = 1;
+
+ var model = scicos_model();
+ model.sim=list("tkscaleblk",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);
+}
diff --git a/data_structures/TOWS_c.js b/data_structures/TOWS_c.js
new file mode 100644
index 0000000..29c5d99
--- /dev/null
+++ b/data_structures/TOWS_c.js
@@ -0,0 +1,30 @@
+function TOWS_c () {
+
+
+ var nu = -1;
+
+ var nz = 128;
+
+ var varnam = "A";
+
+ var herit = 0;
+
+ var model = scicos_model();
+ model.sim=list("tows_c",,4);
+ model.in = 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 = [[nz.toString()],[,varnam.toString()],[,herit.toString()]];
+ this.x=new standard_define(new ScilabDouble([4,2]),,model,,exprs,,gr_i);
+}
diff --git a/data_structures/TRASH_f.js b/data_structures/TRASH_f.js
new file mode 100644
index 0000000..7a02e7e
--- /dev/null
+++ b/data_structures/TRASH_f.js
@@ -0,0 +1,17 @@
+function TRASH_f () {
+
+
+ var in = -1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["trash"]);
+ model.in=new ScilabDouble([in]);
+ 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);
+}
diff --git a/data_structures/TrigFun.js b/data_structures/TrigFun.js
new file mode 100644
index 0000000..ec6b718
--- /dev/null
+++ b/data_structures/TrigFun.js
@@ -0,0 +1,15 @@
+function TrigFun () {
+
+
+ var model = scicos_model();
+ model.sim=list("sin_blk",4);
+ model.in = 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);
+}
diff --git a/data_structures/VARIABLE_DELAY.js b/data_structures/VARIABLE_DELAY.js
new file mode 100644
index 0000000..3343b79
--- /dev/null
+++ b/data_structures/VARIABLE_DELAY.js
@@ -0,0 +1,25 @@
+function VARIABLE_DELAY () {
+
+
+ var nin = 1;
+
+ var T = 1;
+
+ var init = 0;
+
+ var N = 1024;
+
+ var model = scicos_model();
+ model.sim=list("variable_delay",4);
+ model.in = 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 = [[T.toString()],[init.toString()],[N.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/VVsourceAC.js b/data_structures/VVsourceAC.js
new file mode 100644
index 0000000..98aec0c
--- /dev/null
+++ b/data_structures/VVsourceAC.js
@@ -0,0 +1,29 @@
+function VVsourceAC () {
+
+
+ var model = scicos_model();
+ model.in = 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(["f"],list(FR));
+ model.equations=mo;
+
+ var exprs = [FR.toString()];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([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"]);
+}
diff --git a/data_structures/VanneReglante.js b/data_structures/VanneReglante.js
new file mode 100644
index 0000000..09db3d0
--- /dev/null
+++ b/data_structures/VanneReglante.js
@@ -0,0 +1,31 @@
+function VanneReglante () {
+
+
+ var model = scicos_model();
+ model.in = 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(["Cvmax";"p_rho"],[Cvmax],[p_rho]);
+ model.equations=mo;
+ model.in=ones(size(mo.inputs,"*"),1);
+ model.out=ones(size(mo.outputs,"*"),1);
+
+ var exprs = [[Cvmax.toString()],[p_rho.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([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"]);
+}
diff --git a/data_structures/VariableResistor.js b/data_structures/VariableResistor.js
new file mode 100644
index 0000000..b21ae1a
--- /dev/null
+++ b/data_structures/VariableResistor.js
@@ -0,0 +1,23 @@
+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.in=ones(size(mo.inputs,"*"),1);
+ model.out=ones(size(mo.outputs,"*"),1);
+
+ var exprs = [];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([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"]);
+}
diff --git a/data_structures/VirtualCLK0.js b/data_structures/VirtualCLK0.js
new file mode 100644
index 0000000..7d5b129
--- /dev/null
+++ b/data_structures/VirtualCLK0.js
@@ -0,0 +1,15 @@
+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," ");
+}
diff --git a/data_structures/VoltageSensor.js b/data_structures/VoltageSensor.js
new file mode 100644
index 0000000..cec9c07
--- /dev/null
+++ b/data_structures/VoltageSensor.js
@@ -0,0 +1,23 @@
+function VoltageSensor () {
+
+
+ var model = scicos_model();
+ model.in = 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=new standard_define(new ScilabDouble([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"]);
+}
diff --git a/data_structures/VsourceAC.js b/data_structures/VsourceAC.js
new file mode 100644
index 0000000..1174d8c
--- /dev/null
+++ b/data_structures/VsourceAC.js
@@ -0,0 +1,29 @@
+function VsourceAC () {
+
+
+ var model = scicos_model();
+ model.in = 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(["VA";"f"],list(VA,FR));
+ model.equations=mo;
+
+ var exprs = [[VA.toString()],[FR.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,list(gr_i,0));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+}
diff --git a/data_structures/WFILE_f.js b/data_structures/WFILE_f.js
new file mode 100644
index 0000000..ef7b82d
--- /dev/null
+++ b/data_structures/WFILE_f.js
@@ -0,0 +1,29 @@
+function WFILE_f () {
+
+
+ var in = 1;
+
+ var nin = sum(in);
+
+ 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.in=new ScilabDouble([in]);
+ 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(in)],[fname],[frmt],[N.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/WRITEAU_f.js b/data_structures/WRITEAU_f.js
new file mode 100644
index 0000000..4de3344
--- /dev/null
+++ b/data_structures/WRITEAU_f.js
@@ -0,0 +1,31 @@
+function WRITEAU_f () {
+
+
+ var in = 1;
+
+ var nin = sum(in);
+
+ var frmt = "uc,";
+
+ var fname = "/dev/audio";
+
+ var swap = 0;
+
+ var lunit = 0;
+
+ var N = 2;
+
+ var model = scicos_model();
+ model.sim=list("writeau",2);
+ model.in=new ScilabDouble([in]);
+ 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 = [N.toString()swap.toString()];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/WRITEC_f.js b/data_structures/WRITEC_f.js
new file mode 100644
index 0000000..75988a4
--- /dev/null
+++ b/data_structures/WRITEC_f.js
@@ -0,0 +1,31 @@
+function WRITEC_f () {
+
+
+ var in = 1;
+
+ var nin = sum(in);
+
+ var frmt = "c, ";
+
+ var fname = "foo";
+
+ var swap = 0;
+
+ var lunit = 0;
+
+ var N = 2;
+
+ var model = scicos_model();
+ model.sim=list("writec",2);
+ model.in=new ScilabDouble([in]);
+ model.evtin = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble([-1],[lunit],[zeros((nin+1)*N,1)]);
+ model.ipar = new ScilabDouble([length(fname)],[_str2code(frmt)],[N],[swap],[_str2code(fname)]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[sci2exp(in)],[fname],[frmt],[N.toString()swap.toString()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/ZCROSS_f.js b/data_structures/ZCROSS_f.js
new file mode 100644
index 0000000..8b157ec
--- /dev/null
+++ b/data_structures/ZCROSS_f.js
@@ -0,0 +1,22 @@
+function ZCROSS_f () {
+
+
+ var rpar = [[-1],[-1],[0],[0]];
+
+ var in = 1;
+
+ var model = scicos_model();
+ model.sim=list("zcross",1);
+ model.in=new ScilabDouble([in]);
+ model.nzcross=new ScilabDouble([in]);
+ 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(in));
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+}
diff --git a/data_structures/c_block.js b/data_structures/c_block.js
new file mode 100644
index 0000000..0ad6598
--- /dev/null
+++ b/data_structures/c_block.js
@@ -0,0 +1,42 @@
+function c_block () {
+
+
+ var in = 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(" ",2001);
+ model.in=new ScilabDouble([in]);
+ 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(in)],[sci2exp(out)],[ strcat(sci2exp(rpar))],[funam],list([]))];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,label,gr_i);
+}
diff --git a/data_structures/fortran_block.js b/data_structures/fortran_block.js
new file mode 100644
index 0000000..a352794
--- /dev/null
+++ b/data_structures/fortran_block.js
@@ -0,0 +1,24 @@
+function fortran_block () {
+
+
+ var model = scicos_model();
+ model.sim=list(" ",1001);
+ model.in = 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.in)],[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);
+}
diff --git a/data_structures/freq_div.js b/data_structures/freq_div.js
new file mode 100644
index 0000000..18eb20e
--- /dev/null
+++ b/data_structures/freq_div.js
@@ -0,0 +1,112 @@
+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);
+}
diff --git a/data_structures/generic_block3.js b/data_structures/generic_block3.js
new file mode 100644
index 0000000..745149c
--- /dev/null
+++ b/data_structures/generic_block3.js
@@ -0,0 +1,22 @@
+function generic_block3 () {
+
+
+ var model = scicos_model();
+
+ var function_name = "sinblk";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in = 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.in,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);
+}
diff --git a/data_structures/scifunc_block_m.js b/data_structures/scifunc_block_m.js
new file mode 100644
index 0000000..6aa53f3
--- /dev/null
+++ b/data_structures/scifunc_block_m.js
@@ -0,0 +1,50 @@
+function scifunc_block_m () {
+
+
+ var in = 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("scifunc",3);
+ model.in=new ScilabDouble([in]);
+ model.in2.push(new ScilabDouble([in]));
+ 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([in,in])],[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);
+}