summaryrefslogtreecommitdiff
path: root/history/data_structures
diff options
context:
space:
mode:
Diffstat (limited to 'history/data_structures')
-rw-r--r--history/data_structures/ABS_VALUE.js20
-rw-r--r--history/data_structures/AFFICH_m.js33
-rw-r--r--history/data_structures/ANDBLK.js75
-rw-r--r--history/data_structures/ANDLOG_f.js15
-rw-r--r--history/data_structures/AUTOMAT.js40
-rw-r--r--history/data_structures/BACKLASH.js18
-rw-r--r--history/data_structures/BARXY.js27
-rw-r--r--history/data_structures/BIGSOM_f.js19
-rw-r--r--history/data_structures/BITCLEAR.js21
-rw-r--r--history/data_structures/BITSET.js21
-rw-r--r--history/data_structures/BOUNCE.js17
-rw-r--r--history/data_structures/BOUNCEXY.js43
-rw-r--r--history/data_structures/BPLATFORM.js32
-rw-r--r--history/data_structures/Bache.js50
-rw-r--r--history/data_structures/CANIMXY.js43
-rw-r--r--history/data_structures/CANIMXY3D.js43
-rw-r--r--history/data_structures/CBLOCK.js48
-rw-r--r--history/data_structures/CBLOCK4.js39
-rw-r--r--history/data_structures/CCS.js30
-rw-r--r--history/data_structures/CEVENTSCOPE.js29
-rw-r--r--history/data_structures/CFSCOPE.js33
-rw-r--r--history/data_structures/CLINDUMMY_f.js16
-rw-r--r--history/data_structures/CLKFROM.js16
-rw-r--r--history/data_structures/CLKGOTO.js17
-rw-r--r--history/data_structures/CLKGotoTagVisibility.js23
-rw-r--r--history/data_structures/CLKINV_f.js19
-rw-r--r--history/data_structures/CLKOUTV_f.js17
-rw-r--r--history/data_structures/CLKSOMV_f.js15
-rw-r--r--history/data_structures/CLOCK_c.js48
-rw-r--r--history/data_structures/CLR.js28
-rw-r--r--history/data_structures/CLSS.js32
-rw-r--r--history/data_structures/CMAT3D.js35
-rw-r--r--history/data_structures/CMATVIEW.js32
-rw-r--r--history/data_structures/CMSCOPE.js42
-rw-r--r--history/data_structures/CONST.js19
-rw-r--r--history/data_structures/CONSTRAINT2_c.js24
-rw-r--r--history/data_structures/CONSTRAINT_c.js20
-rw-r--r--history/data_structures/CONST_f.js19
-rw-r--r--history/data_structures/CONST_m.js22
-rw-r--r--history/data_structures/CONVERT.js24
-rw-r--r--history/data_structures/COSBLK_f.js16
-rw-r--r--history/data_structures/CSCOPE.js35
-rw-r--r--history/data_structures/CSCOPXY.js40
-rw-r--r--history/data_structures/CSCOPXY3D.js42
-rw-r--r--history/data_structures/CUMSUM.js31
-rw-r--r--history/data_structures/CURV_f.js28
-rw-r--r--history/data_structures/CVS.js30
-rw-r--r--history/data_structures/Capacitor.js28
-rw-r--r--history/data_structures/ConstantVoltage.js27
-rw-r--r--history/data_structures/Counter.js25
-rw-r--r--history/data_structures/CurrentSensor.js24
-rw-r--r--history/data_structures/DEADBAND.js25
-rw-r--r--history/data_structures/DEBUG.js13
-rw-r--r--history/data_structures/DELAYV_f.js29
-rw-r--r--history/data_structures/DELAY_f.js72
-rw-r--r--history/data_structures/DEMUX.js20
-rw-r--r--history/data_structures/DEMUX_f.js20
-rw-r--r--history/data_structures/DERIV.js16
-rw-r--r--history/data_structures/DFLIPFLOP.js97
-rw-r--r--history/data_structures/DIFF_f.js19
-rw-r--r--history/data_structures/DLATCH.js41
-rw-r--r--history/data_structures/DLR.js29
-rw-r--r--history/data_structures/DLRADAPT_f.js33
-rw-r--r--history/data_structures/DLSS.js29
-rw-r--r--history/data_structures/DOLLAR.js24
-rw-r--r--history/data_structures/DOLLAR_f.js24
-rw-r--r--history/data_structures/DOLLAR_m.js24
-rw-r--r--history/data_structures/Diode.js34
-rw-r--r--history/data_structures/EDGE_TRIGGER.js87
-rw-r--r--history/data_structures/ENDBLK.js13
-rw-r--r--history/data_structures/END_c.js19
-rw-r--r--history/data_structures/ESELECT_f.js24
-rw-r--r--history/data_structures/EVTDLY_c.js22
-rw-r--r--history/data_structures/EVTGEN_f.js18
-rw-r--r--history/data_structures/EVTVARDLY.js19
-rw-r--r--history/data_structures/EXPBLK_m.js25
-rw-r--r--history/data_structures/EXPRESSION.js28
-rw-r--r--history/data_structures/EXTRACT.js31
-rw-r--r--history/data_structures/EXTRACTBITS.js23
-rw-r--r--history/data_structures/EXTRACTOR.js19
-rw-r--r--history/data_structures/EXTTRI.js31
-rw-r--r--history/data_structures/Extract_Activation.js92
-rw-r--r--history/data_structures/FROM.js23
-rw-r--r--history/data_structures/FROMMO.js27
-rw-r--r--history/data_structures/FROMWSB.js15
-rw-r--r--history/data_structures/Flowmeter.js30
-rw-r--r--history/data_structures/GAINBLK.js25
-rw-r--r--history/data_structures/GAINBLK_f.js21
-rw-r--r--history/data_structures/GAIN_f.js19
-rw-r--r--history/data_structures/GENERAL_f.js25
-rw-r--r--history/data_structures/GENSIN_f.js21
-rw-r--r--history/data_structures/GENSQR_f.js21
-rw-r--r--history/data_structures/GOTO.js23
-rw-r--r--history/data_structures/GOTOMO.js27
-rw-r--r--history/data_structures/GotoTagVisibility.js23
-rw-r--r--history/data_structures/GotoTagVisibilityMO.js23
-rw-r--r--history/data_structures/Ground.js23
-rw-r--r--history/data_structures/Gyrator.js30
-rw-r--r--history/data_structures/HALT_f.js19
-rw-r--r--history/data_structures/HYSTHERESIS.js27
-rw-r--r--history/data_structures/IFTHEL_f.js22
-rw-r--r--history/data_structures/INIMPL_f.js25
-rw-r--r--history/data_structures/INTEGRAL_f.js19
-rw-r--r--history/data_structures/INTEGRAL_m.js26
-rw-r--r--history/data_structures/INTMUL.js24
-rw-r--r--history/data_structures/INTRP2BLK_f.js24
-rw-r--r--history/data_structures/INTRPLBLK_f.js21
-rw-r--r--history/data_structures/INVBLK.js18
-rw-r--r--history/data_structures/IN_f.js20
-rw-r--r--history/data_structures/ISELECT_m.js31
-rw-r--r--history/data_structures/IdealTransformer.js30
-rw-r--r--history/data_structures/Inductor.js28
-rw-r--r--history/data_structures/JKFLIPFLOP.js53
-rw-r--r--history/data_structures/LOGBLK_f.js21
-rw-r--r--history/data_structures/LOGIC.js25
-rw-r--r--history/data_structures/LOGICAL_OP.js23
-rw-r--r--history/data_structures/LOOKUP_f.js15
-rw-r--r--history/data_structures/MATBKSL.js31
-rw-r--r--history/data_structures/MATCATH.js31
-rw-r--r--history/data_structures/MATCATV.js33
-rw-r--r--history/data_structures/MATDET.js31
-rw-r--r--history/data_structures/MATDIAG.js31
-rw-r--r--history/data_structures/MATDIV.js31
-rw-r--r--history/data_structures/MATEIG.js31
-rw-r--r--history/data_structures/MATEXPM.js31
-rw-r--r--history/data_structures/MATINV.js31
-rw-r--r--history/data_structures/MATLU.js31
-rw-r--r--history/data_structures/MATMAGPHI.js31
-rw-r--r--history/data_structures/MATMUL.js18
-rw-r--r--history/data_structures/MATPINV.js31
-rw-r--r--history/data_structures/MATRESH.js31
-rw-r--r--history/data_structures/MATSING.js31
-rw-r--r--history/data_structures/MATSUM.js31
-rw-r--r--history/data_structures/MATTRAN.js17
-rw-r--r--history/data_structures/MATZCONJ.js31
-rw-r--r--history/data_structures/MATZREIM.js31
-rw-r--r--history/data_structures/MAXMIN.js18
-rw-r--r--history/data_structures/MAX_f.js19
-rw-r--r--history/data_structures/MBLOCK.js30
-rw-r--r--history/data_structures/MCLOCK_f.js81
-rw-r--r--history/data_structures/MFCLCK_f.js24
-rw-r--r--history/data_structures/MIN_f.js19
-rw-r--r--history/data_structures/MUX.js19
-rw-r--r--history/data_structures/MUX_f.js19
-rw-r--r--history/data_structures/M_SWITCH.js23
-rw-r--r--history/data_structures/M_freq.js19
-rw-r--r--history/data_structures/Modulo_Count.js22
-rw-r--r--history/data_structures/NEGTOPOS_f.js17
-rw-r--r--history/data_structures/NMOS.js43
-rw-r--r--history/data_structures/NPN.js30
-rw-r--r--history/data_structures/NRMSOM_f.js20
-rw-r--r--history/data_structures/OUTIMPL_f.js25
-rw-r--r--history/data_structures/OUT_f.js22
-rw-r--r--history/data_structures/OpAmp.js30
-rw-r--r--history/data_structures/PDE.js19
-rw-r--r--history/data_structures/PID.js43
-rw-r--r--history/data_structures/PMOS.js43
-rw-r--r--history/data_structures/PNP.js30
-rw-r--r--history/data_structures/POSTONEG_f.js19
-rw-r--r--history/data_structures/POWBLK_f.js21
-rw-r--r--history/data_structures/PRODUCT.js19
-rw-r--r--history/data_structures/PROD_f.js12
-rw-r--r--history/data_structures/PULSE_SC.js57
-rw-r--r--history/data_structures/PerteDP.js40
-rw-r--r--history/data_structures/PotentialSensor.js23
-rw-r--r--history/data_structures/PuitsP.js31
-rw-r--r--history/data_structures/QUANT_f.js22
-rw-r--r--history/data_structures/RAMP.js27
-rw-r--r--history/data_structures/RAND_m.js39
-rw-r--r--history/data_structures/RATELIMITER.js23
-rw-r--r--history/data_structures/READAU_f.js40
-rw-r--r--history/data_structures/READC_f.js46
-rw-r--r--history/data_structures/REGISTER.js20
-rw-r--r--history/data_structures/RELATIONALOP.js22
-rw-r--r--history/data_structures/RELAY_f.js25
-rw-r--r--history/data_structures/RFILE_f.js40
-rw-r--r--history/data_structures/RICC.js31
-rw-r--r--history/data_structures/ROOTCOEF.js31
-rw-r--r--history/data_structures/Resistor.js28
-rw-r--r--history/data_structures/SAMPHOLD_m.js21
-rw-r--r--history/data_structures/SATURATION.js25
-rw-r--r--history/data_structures/SAWTOOTH_f.js17
-rw-r--r--history/data_structures/SCALAR2VECTOR.js18
-rw-r--r--history/data_structures/SELECT_m.js31
-rw-r--r--history/data_structures/SELF_SWITCH.js24
-rw-r--r--history/data_structures/SHIFT.js26
-rw-r--r--history/data_structures/SIGNUM.js20
-rw-r--r--history/data_structures/SINBLK_f.js16
-rw-r--r--history/data_structures/SOM_f.js19
-rw-r--r--history/data_structures/SQRT.js19
-rw-r--r--history/data_structures/SRFLIPFLOP.js44
-rw-r--r--history/data_structures/STEP_FUNCTION.js57
-rw-r--r--history/data_structures/SUBMAT.js31
-rw-r--r--history/data_structures/SUMMATION.js21
-rw-r--r--history/data_structures/SUM_f.js16
-rw-r--r--history/data_structures/SUPER_f.js28
-rw-r--r--history/data_structures/SWITCH2_m.js30
-rw-r--r--history/data_structures/SWITCH_f.js24
-rw-r--r--history/data_structures/SampleCLK.js15
-rw-r--r--history/data_structures/Sigbuilder.js19
-rw-r--r--history/data_structures/SineVoltage.js36
-rw-r--r--history/data_structures/SourceP.js33
-rw-r--r--history/data_structures/Switch.js34
-rw-r--r--history/data_structures/TANBLK_f.js18
-rw-r--r--history/data_structures/TCLSS.js27
-rw-r--r--history/data_structures/TEXT_f.js21
-rw-r--r--history/data_structures/TIME_DELAY.js26
-rw-r--r--history/data_structures/TIME_f.js13
-rw-r--r--history/data_structures/TKSCALE.js23
-rw-r--r--history/data_structures/TOWS_c.js31
-rw-r--r--history/data_structures/TRASH_f.js18
-rw-r--r--history/data_structures/TrigFun.js16
-rw-r--r--history/data_structures/VARIABLE_DELAY.js26
-rw-r--r--history/data_structures/VVsourceAC.js30
-rw-r--r--history/data_structures/VanneReglante.js32
-rw-r--r--history/data_structures/VariableResistor.js24
-rw-r--r--history/data_structures/VirtualCLK0.js16
-rw-r--r--history/data_structures/VoltageSensor.js24
-rw-r--r--history/data_structures/VsourceAC.js30
-rw-r--r--history/data_structures/WFILE_f.js30
-rw-r--r--history/data_structures/WRITEAU_f.js32
-rw-r--r--history/data_structures/WRITEC_f.js32
-rw-r--r--history/data_structures/ZCROSS_f.js23
-rw-r--r--history/data_structures/c_block.js43
-rw-r--r--history/data_structures/fortran_block.js25
-rw-r--r--history/data_structures/freq_div.js113
-rw-r--r--history/data_structures/generic_block3.js23
-rw-r--r--history/data_structures/scifunc_block_m.js51
228 files changed, 6503 insertions, 0 deletions
diff --git a/history/data_structures/ABS_VALUE.js b/history/data_structures/ABS_VALUE.js
new file mode 100644
index 0000000..ef569e9
--- /dev/null
+++ b/history/data_structures/ABS_VALUE.js
@@ -0,0 +1,20 @@
+function ABS_VALUE () {
+
+
+ var nu = -1;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["absolute_value"]),new ScilabDouble([4]));
+ model.in1.push(new ScilabDouble([nu]));
+ model.out=new ScilabDouble([nu]);
+ model.nzcross=new ScilabDouble([nu]);
+ model.nmode=new ScilabDouble([nu]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [string([1])];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/AFFICH_m.js b/history/data_structures/AFFICH_m.js
new file mode 100644
index 0000000..ff0b180
--- /dev/null
+++ b/history/data_structures/AFFICH_m.js
@@ -0,0 +1,33 @@
+function AFFICH_m () {
+
+
+ var font = 1;
+
+ var fontsize = 1;
+
+ var colr = 1;
+
+ var nt = 5;
+
+ var nd = 1;
+
+ var in1 = [1,1];
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["affich2"]),new ScilabDouble([4]));
+ model.in1.push(in1(1,1));
+ model.in2.push(in1(1,2));
+ model.evtin = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble([-1],[0],[0],[1],[1],[0],[zeros(in1(1,1)*in1(1,2),1)]);
+ model.ipar = new ScilabDouble([font],[fontsize],[colr],[1000],[nt],[nd],[in1(1,1)]);
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+ model.label = new ScilabString([""]);
+
+ var exprs = [[,sci2exp([model.in1,model.in2])],[string(font)],[string(fontsize)],[string(colr)],[string(nt)],[string(nd)],[string(0),]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new AfficheBlock(this.x)
+}
diff --git a/history/data_structures/ANDBLK.js b/history/data_structures/ANDBLK.js
new file mode 100644
index 0000000..6d88e54
--- /dev/null
+++ b/history/data_structures/ANDBLK.js
@@ -0,0 +1,75 @@
+function ANDBLK () {
+
+
+ var andlog = ANDLOG_f("define");
+ andlog.graphics.orig = new ScilabDouble([194,133]);
+ andlog.graphics.sz = new ScilabDouble([60,60]);
+ andlog.graphics.flip = new ScilabBoolean([true]);
+ andlog.graphics.pout = new ScilabDouble([9]);
+ andlog.graphics.pein = new ScilabDouble([4],[11]);
+
+ var input_port1 = CLKIN_f("define");
+ input_port1.graphics.orig = new ScilabDouble([149,287]);
+ input_port1.graphics.sz = new ScilabDouble([20,20]);
+ input_port1.graphics.flip = new ScilabBoolean([true]);
+ input_port1.graphics.exprs = new ScilabString(["1"]);
+ input_port1.graphics.peout = new ScilabDouble([4]);
+ input_port1.model.ipar = new ScilabDouble([1]);
+
+ var output_port = CLKOUT_f("define");
+ output_port.graphics.orig = new ScilabDouble([450,83]);
+ output_port.graphics.sz = new ScilabDouble([20,20]);
+ output_port.graphics.flip = new ScilabBoolean([true]);
+ output_port.graphics.exprs = new ScilabString(["1"]);
+ output_port.graphics.pein = new ScilabDouble([8]);
+ output_port.model.ipar = new ScilabDouble([1]);
+
+ var input_port2 = CLKIN_f("define");
+ input_port2.graphics.orig = new ScilabDouble([141,330]);
+ input_port2.graphics.sz = new ScilabDouble([20,20]);
+ input_port2.graphics.flip = new ScilabBoolean([true]);
+ input_port2.graphics.exprs = new ScilabString(["2"]);
+ input_port2.graphics.peout = new ScilabDouble([6]);
+ input_port2.model.ipar = new ScilabDouble([2]);
+
+ var ifthel = IFTHEL_f("define");
+ ifthel.graphics.orig = new ScilabDouble([331,137]);
+ ifthel.graphics.sz = new ScilabDouble([60,60]);
+ ifthel.graphics.flip = new ScilabBoolean([true]);
+ ifthel.graphics.pin = new ScilabDouble([9]);
+ ifthel.graphics.pein = new ScilabDouble([12]);
+ ifthel.graphics.peout = new ScilabDouble([8],[0]);
+
+ var split = CLKSPLIT_f("define");
+ split.graphics.orig = new ScilabDouble([234],[275.78348]);
+ split.graphics.pein = new ScilabDouble([6]);
+ split.graphics.peout = new ScilabDouble([11],[12]);
+
+ var diagram = scicos_diagram();
+ diagram.objs.push(andlog);
+ diagram.objs.push(input_port1);
+ diagram.objs.push(output_port);
+ diagram.objs.push(scicos_link({xx: new ScilabDouble([169],[214],[214]),yy: new ScilabDouble([297],[297],[198.71]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([2,1]),to: new ScilabDouble([1,1])}));
+ diagram.objs.push(input_port2);
+ diagram.objs.push(scicos_link({xx: new ScilabDouble([161],[234],[234]),yy: new ScilabDouble([340],[340],[275.78]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([5,1]),to: new ScilabDouble([10,1])}));
+ diagram.objs.push(ifthel);
+ diagram.objs.push(scicos_link({xx: new ScilabDouble([351],[351],[450]),yy: new ScilabDouble([131.29],[93],[93]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([7,1]),to: new ScilabDouble([3,1])}));
+ diagram.objs.push(scicos_link({xx: new ScilabDouble([262.57],[322.43]),yy: new ScilabDouble([163],[167]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,1]),to: new ScilabDouble([7,1])}));
+ diagram.objs.push(split);
+ diagram.objs.push(scicos_link({xx: new ScilabDouble([234],[234]),yy: new ScilabDouble([275.78],[198.71]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([10,1]),to: new ScilabDouble([1,2])}));
+ diagram.objs.push(scicos_link({xx: new ScilabDouble([234],[361],[361]),yy: new ScilabDouble([275.78],[275.78],[202.71]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([10,2]),to: new ScilabDouble([7,1])}));
+ this.x=scicos_block();
+ this.x.gui = new ScilabString(["ANDBLK"]);
+ this.x.graphics.sz = new ScilabDouble([2,2]);
+ this.x.graphics.gr_i = new ScilabDouble();
+ this.x.graphics.pein = new ScilabDouble([0],[0]);
+ this.x.graphics.peout = new ScilabDouble([0]);
+ this.x.model.sim = new ScilabString(["csuper"]);
+ this.x.model.evtin = new ScilabDouble([1],[1]);
+ this.x.model.evtout = new ScilabDouble([1]);
+ this.x.model.blocktype = new ScilabString(["h"]);
+ this.x.model.firing = new ScilabBoolean([false]);
+ this.x.model.dep_ut = new ScilabBoolean([false,false]);
+ this.x.model.rpar=diagram;
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/ANDLOG_f.js b/history/data_structures/ANDLOG_f.js
new file mode 100644
index 0000000..b94c240
--- /dev/null
+++ b/history/data_structures/ANDLOG_f.js
@@ -0,0 +1,15 @@
+function ANDLOG_f () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["andlog"]);
+ model.out = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble([1],[1]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,3]),model,[],gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/AUTOMAT.js b/history/data_structures/AUTOMAT.js
new file mode 100644
index 0000000..3ceda51
--- /dev/null
+++ b/history/data_structures/AUTOMAT.js
@@ -0,0 +1,40 @@
+function AUTOMAT () {
+
+
+ var NMode = 2;
+
+ var Minitial = 1;
+
+ var NX = 1;
+
+ var X0 = [0.0];
+
+ var XP = [[1],[1]];
+
+ var C1 = [2];
+
+ var C2 = [1];
+
+ var exprs = [[string(NMode)],[string(Minitial)],[string(NX)],[sci2exp(X0)],[sci2exp(XP)],[sci2exp(C1)],[sci2exp(C2)]];
+
+ var ipar = [[NMode],[Minitial],[NX],[XP],[C1],[C2]];
+
+ var rpar = [X0];
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["automat"]),new ScilabDouble([10004]));
+ model.in1 = new ScilabDouble([2*NX+1],[2*NX+1]);
+ model.out = new ScilabDouble([2],[2*NX]);
+ model.state=ones(2*NX,1);
+ model.nzcross = new ScilabDouble([1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.evtout = new ScilabDouble([1]);
+ model.firing = new ScilabDouble([-1]);
+ model.dep_ut = new ScilabBoolean([false,true]);
+ model.ipar=ipar;
+ model.rpar=rpar;
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/BACKLASH.js b/history/data_structures/BACKLASH.js
new file mode 100644
index 0000000..d407fd7
--- /dev/null
+++ b/history/data_structures/BACKLASH.js
@@ -0,0 +1,18 @@
+function BACKLASH () {
+
+
+ var exprs = ["0";"1";"1"];
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["backlash"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([0],[1]);
+ model.nzcross = new ScilabDouble([2]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/BARXY.js b/history/data_structures/BARXY.js
new file mode 100644
index 0000000..5c3cb6a
--- /dev/null
+++ b/history/data_structures/BARXY.js
@@ -0,0 +1,27 @@
+function BARXY () {
+
+
+ var model = scicos_model();
+
+ var xmin = -15;
+
+ var xmax = 15;
+
+ var ymin = -15;
+
+ var ymax = 15;
+ model.sim=list(new ScilabString(["BARXY_sim"]),,new ScilabDouble([5]));
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+ model.in1 = new ScilabDouble([-1],[-1]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble();
+ model.evtin = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([xmin,],[,xmax,],[,ymin,],[,ymax]);
+ model.ipar = new ScilabDouble([1]);
+ this.x=new standard_define(new ScilabDouble([2,2]),model,[],[]);
+ this.x.graphics.in_implicit = new ScilabString(["E",,"E"]);
+ this.x.graphics.out_implicit = new ScilabDouble();
+ this.x.graphics.exprs = new ScilabString(["-15";"15";"-15";"15";"1"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/BIGSOM_f.js b/history/data_structures/BIGSOM_f.js
new file mode 100644
index 0000000..69ce1d5
--- /dev/null
+++ b/history/data_structures/BIGSOM_f.js
@@ -0,0 +1,19 @@
+function BIGSOM_f () {
+
+
+ var sgn = [[1],[1]];
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["sum"]),new ScilabDouble([2]));
+ model.in1 = new ScilabDouble([-1],[-1]);
+ model.out = new ScilabDouble([-1]);
+ model.rpar=new ScilabDouble([sgn]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = sci2exp(sgn);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,3]),model,,exprs,gr_i);
+ return new BigSom(this.x)
+}
diff --git a/history/data_structures/BITCLEAR.js b/history/data_structures/BITCLEAR.js
new file mode 100644
index 0000000..3e7aa24
--- /dev/null
+++ b/history/data_structures/BITCLEAR.js
@@ -0,0 +1,21 @@
+function BITCLEAR () {
+
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["bit_clear_32"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([1]);
+ model.in2 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([3]);
+ model.outtyp = new ScilabDouble([3]);
+ model.opar=list(new ScilabInteger([0]));
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[sci2exp(3)],[sci2exp(0)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/BITSET.js b/history/data_structures/BITSET.js
new file mode 100644
index 0000000..ed7bccf
--- /dev/null
+++ b/history/data_structures/BITSET.js
@@ -0,0 +1,21 @@
+function BITSET () {
+
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["bit_set_32"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([1]);
+ model.in2 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([3]);
+ model.outtyp = new ScilabDouble([3]);
+ model.opar=list(new ScilabInteger([0]));
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[sci2exp(3)],[sci2exp(0)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/BOUNCE.js b/history/data_structures/BOUNCE.js
new file mode 100644
index 0000000..b2b8ec9
--- /dev/null
+++ b/history/data_structures/BOUNCE.js
@@ -0,0 +1,17 @@
+function BOUNCE () {
+
+
+ var n = 2;
+
+ var k = 1],[ipar=[];
+
+ var for i = 1:n;
+
+ var for j = i+1:n;
+
+ var ipar(k) = i;
+ k=k+1;
+ ipar(k)=j;
+ k=k+1;
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/BOUNCEXY.js b/history/data_structures/BOUNCEXY.js
new file mode 100644
index 0000000..a0b3134
--- /dev/null
+++ b/history/data_structures/BOUNCEXY.js
@@ -0,0 +1,43 @@
+function BOUNCEXY () {
+
+
+ var win = -1;
+
+ var imode = 1;
+
+ var clrs = [[1],[2]];
+
+ var siz = [[1],[1]];
+
+ var xmin = -5;
+
+ var xmax = 5;
+
+ var ymin = 0;
+
+ var ymax = 15;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["bouncexy"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([-1],[-1]);
+ model.in2 = new ScilabDouble([1],[1]);
+ model.intyp = new ScilabDouble([1],[1]);
+ model.evtin = new ScilabDouble([1]);
+
+ var z = [];
+
+ var for i = 1:size(clrs,"*");
+
+ var z(6*(i-1)+1) = 0;
+
+ var z(6*(i-1)+2) = 0;
+
+ var z(6*(i-1)+3) = 2*siz(i);
+
+ var z(6*(i-1)+4) = 2*siz(i);
+
+ var z(6*(i-1)+5) = 0.000;
+
+ var z(6*(i-1)+6) = 64.0*360.000;
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/BPLATFORM.js b/history/data_structures/BPLATFORM.js
new file mode 100644
index 0000000..a7e7da4
--- /dev/null
+++ b/history/data_structures/BPLATFORM.js
@@ -0,0 +1,32 @@
+function BPLATFORM () {
+
+
+ var plen = 2;
+
+ var csiz = 2;
+
+ var phi = 0;
+
+ var xmin = -5;
+
+ var xmax = 5;
+
+ var ymin = 0;
+
+ var ymax = 15;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["bplatform2"]),new ScilabDouble([5]));
+ model.in1 = new ScilabDouble([1],[1]);
+ model.evtin = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble([0]);
+ model.rpar = new ScilabDouble([plen],[csiz],[phi],[xmin],[xmax],[ymin],[ymax]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = string(model.rpar);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/Bache.js b/history/data_structures/Bache.js
new file mode 100644
index 0000000..d7d3c4c
--- /dev/null
+++ b/history/data_structures/Bache.js
@@ -0,0 +1,50 @@
+function Bache () {
+
+
+ var in1 = 2;
+
+ var out = 3;
+
+ var model = scicos_model();
+ model.in1 = new ScilabDouble([-(1:in1)']);
+ model.out = new ScilabDouble([-(1:out)']);
+
+ var Patm = 1.013E5;
+
+ var A = 1;
+
+ var ze1 = 40;
+
+ var ze2 = 0;
+
+ var zs1 = 40;
+
+ var zs2 = 0;
+
+ var z0 = 30;
+
+ var T0 = 290;
+
+ var p_rho = 0;
+ model.rpar = new ScilabDouble([Patm],[A],[ze1],[ze2],[zs1],[zs2],[z0],[T0],[p_rho]);
+ model.sim = new ScilabString(["Bache"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var mo = modelica();
+ mo.model = new ScilabString(["Bache"]);
+ mo.inputs = new ScilabString(["Ce1" "Ce2"]);
+ mo.outputs = new ScilabString(["Cs1" "Cs2" "yNiveau"]);
+ mo.parameters=list(new ScilabString(["Patm";"A";"ze1";"ze2";"zs1";"zs2";"z0";"T0";"p_rho"]),[Patm],[A],[ze1],[ze2],[zs1],[zs2],[z0],[T0],[p_rho]);
+ model.equations=mo;
+ model.in1.push(ones(size(mo.inputs,"*"),1));
+ model.out=ones(size(mo.outputs,"*"),1);
+
+ var exprs = [[string(Patm)],[string(A)],[string(ze1)],[string(ze2)],[string(zs1)],[string(zs2)],[string(z0)],[string(T0)],[string(p_rho)]];
+
+ var gr_i = [];
+ this.x=standard_define([2,2],model,exprs,list(gr_i,0));
+ this.x.graphics.in_implicit = new ScilabString(["I";"I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I";"I";"E"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CANIMXY.js b/history/data_structures/CANIMXY.js
new file mode 100644
index 0000000..0d1c11c
--- /dev/null
+++ b/history/data_structures/CANIMXY.js
@@ -0,0 +1,43 @@
+function CANIMXY () {
+
+
+ var win = -1;
+
+ var clrs = -4;
+
+ var N = 2;
+
+ var siz = 1;
+
+ var wpos = [[-1],[-1]];
+
+ var wdim = [[-1],[-1]];
+
+ var xmin = -15;
+
+ var xmax = 15;
+
+ var ymin = -15;
+
+ var ymax = +15;
+
+ var nbr_curves = 1;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["canimxy"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([1],[1]);
+ model.in2 = new ScilabDouble([1],[1]);
+ model.intyp = new ScilabDouble([1],[1]);
+ model.evtin = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([xmin],[xmax],[ymin],[ymax]);
+ model.ipar = new ScilabDouble([win],[1],[N],[clrs],[siz],[0],[...wpos],[...wdim],[nbr_curves]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = [[string(nbr_curves);string(clrs);string(siz);string(win);"[]";"[]"],[string(xmin)],[string(xmax)],[string(ymin)],[string(ymax)],[string(N)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CANIMXY3D.js b/history/data_structures/CANIMXY3D.js
new file mode 100644
index 0000000..a1ec5f1
--- /dev/null
+++ b/history/data_structures/CANIMXY3D.js
@@ -0,0 +1,43 @@
+function CANIMXY3D () {
+
+
+ var win = -1;
+
+ var N = 2;
+
+ var clrs = [[1],[2],[3],[4],[5],[6],[7],[13]];
+
+ var siz = [[1],[1],[1],[1],[1],[1],[1],[1]];
+
+ var wpos = [[-1],[-1]];
+
+ var wdim = [[-1],[-1]];
+
+ var param3ds = [[50],[280]];
+
+ var vec_x = [[-15],[15]];
+
+ var vec_y = [[-15],[15]];
+
+ var vec_z = [[-15],[15]];
+
+ var nbr_curves = 1;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["canimxy3d"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([1],[1],[1]);
+ model.evtin = new ScilabDouble([1]);
+ model.in2 = new ScilabDouble([1],[1],[1]);
+ model.intyp = new ScilabDouble([1],[1],[1]);
+ model.rpar = new ScilabDouble([...colon_operator(vec_x,:)],[...vec_y],[vec_z(,)],[...param3ds]);
+ model.ipar = new ScilabDouble([win],[8],[N],[...colon_operator(clrs,:)],[...siz],[8],[wpos(,)],[...wdim],[nbr_curves]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = [[string(nbr_curves);strcat(string(clrs)," ");strcat(string(siz)," ");string(win);"[]";"[]";strcat(string(vec_x)," ");strcat(string(vec_y)," ");strcat(string(vec_z)," ");strcat(string(param3ds)," ")],[string(N)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CBLOCK.js b/history/data_structures/CBLOCK.js
new file mode 100644
index 0000000..77eb431
--- /dev/null
+++ b/history/data_structures/CBLOCK.js
@@ -0,0 +1,48 @@
+function CBLOCK () {
+
+
+ var in1 = 1;
+
+ var out = 1;
+
+ var clkin = [];
+
+ var clkout = [];
+
+ var x0 = [];
+
+ var z0 = [];
+
+ var typ = "c";
+
+ var auto = [];
+
+ var rpar = [];
+
+ var ipar = [];
+
+ var funam = "toto";
+
+ var ng = 0;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString([" "]),new ScilabDouble([2004]));
+ model.in1.push(new ScilabDouble([in1]));
+ model.out=new ScilabDouble([out]);
+ model.evtin=clkin;
+ model.evtout=clkout;
+ model.state=x0;
+ model.dstate=z0;
+ model.rpar=rpar;
+ model.ipar=ipar;
+ model.blocktype=new ScilabString([typ]);
+ model.firing=auto;
+ model.dep_ut = new ScilabBoolean([true,false]);
+ model.nzcross=new ScilabDouble([ng]);
+
+ var label = list([funam,"n",sci2exp(in1),sci2exp(out),sci2exp(clkin),sci2exp(clkout),sci2exp(x0),sci2exp(0),sci2exp(z0),sci2exp(rpar),sci2exp(ipar),sci2exp(auto),"y","n"]',[]);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([4,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CBLOCK4.js b/history/data_structures/CBLOCK4.js
new file mode 100644
index 0000000..c4cfa2c
--- /dev/null
+++ b/history/data_structures/CBLOCK4.js
@@ -0,0 +1,39 @@
+function CBLOCK4 () {
+
+
+ var funam = "toto";
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString([" "]),new ScilabDouble([2004]));
+ model.in1 = new ScilabDouble([1]);
+ model.in2 = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = list([funam;
+ "n";
+ sci2exp([model.in1 model.in2]);
+ sci2exp(model.intyp);
+ sci2exp([model.out model.out2]);
+ sci2exp(model.outtyp);
+ sci2exp(model.evtin);
+ sci2exp(model.evtout);
+ sci2exp(model.state);
+ sci2exp(model.dstate);
+ sci2exp(model.odstate);
+ sci2exp(model.rpar);
+ sci2exp(model.ipar);
+ sci2exp(model.opar);
+ sci2exp(model.nmode);
+ sci2exp(model.nzcross);
+ sci2exp(model.firing);
+ "y";
+ "n"],[]);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([4,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CCS.js b/history/data_structures/CCS.js
new file mode 100644
index 0000000..e405427
--- /dev/null
+++ b/history/data_structures/CCS.js
@@ -0,0 +1,30 @@
+function CCS () {
+
+
+ var ModelName = "CCS";
+
+ var PrametersValue = [];
+
+ var ParametersName = [];
+
+ var model = scicos_model();
+
+ var Typein = [];
+
+ var Typeout = [];
+
+ var MI = [];
+
+ var MO = [];
+
+ var P = [[2,50,1,0],[,70,98,2,0],[70,2,-2,0]];
+
+ var PortName = ["Iin";"p";"n"];
+
+ var for i = 1:size(P,"r");
+
+ var if P(i,3) = =1, then;
+ Typein = new ScilabDouble([Typein;,"E"]);
+ MI = new ScilabDouble([MI],[PortName(i)]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CEVENTSCOPE.js b/history/data_structures/CEVENTSCOPE.js
new file mode 100644
index 0000000..73a3b7e
--- /dev/null
+++ b/history/data_structures/CEVENTSCOPE.js
@@ -0,0 +1,29 @@
+function CEVENTSCOPE () {
+
+
+ var nclock = 1;
+
+ var win = -1;
+
+ var clrs = [[1],[3],[5],[7],[9],[11],[13],[15]];
+
+ var wdim = [[600],[400]];
+
+ var wpos = [[-1],[-1]];
+
+ var per = 30;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["cevscpe"]),new ScilabDouble([4]));
+ model.evtin = new ScilabDouble([1]);
+ model.rpar=new ScilabDouble([per]);
+ model.ipar = new ScilabDouble([win],[1],[...colon_operator(clrs,nclock)],[wpos(,)],[...wdim]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = [[sci2exp(nclock);strcat(sci2exp(clrs(nclock))," ")],[string(win)],[sci2exp([])],[sci2exp(wdim)],[string(per)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CFSCOPE.js b/history/data_structures/CFSCOPE.js
new file mode 100644
index 0000000..4a0c786
--- /dev/null
+++ b/history/data_structures/CFSCOPE.js
@@ -0,0 +1,33 @@
+function CFSCOPE () {
+
+
+ var win = -1;
+
+ var wdim = [[600],[400]];
+
+ var wpos = [[-1],[-1]];
+
+ var clrs = [[1],[3],[5],[7],[9],[11],[13],[15]];
+
+ var N = 2;
+
+ var ymin = -15;
+
+ var ymax = +15;
+
+ var per = 30;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["cfscope"]),new ScilabDouble([4]));
+ model.evtin = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([0],[ymin],[ymax],[per]);
+ model.ipar = new ScilabDouble([win],[1],[N],[clrs],[wpos],[wdim],[1],[1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[strcat(string(clrs)," ")],[string(win)],[sci2exp([])],[sci2exp(wdim)],[string(ymin)],[string(ymax)],[string(per)],[string(N)],[string([1])]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CLINDUMMY_f.js b/history/data_structures/CLINDUMMY_f.js
new file mode 100644
index 0000000..35ca987
--- /dev/null
+++ b/history/data_structures/CLINDUMMY_f.js
@@ -0,0 +1,16 @@
+function CLINDUMMY_f () {
+
+
+ var x0 = 0;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["cdummy"]),new ScilabDouble([4]));
+ model.state=new ScilabDouble([x0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([false,true]);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,[],gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CLKFROM.js b/history/data_structures/CLKFROM.js
new file mode 100644
index 0000000..baa40ec
--- /dev/null
+++ b/history/data_structures/CLKFROM.js
@@ -0,0 +1,16 @@
+function CLKFROM () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["clkfrom"]);
+ model.evtout = new ScilabDouble([1]);
+ model.opar=list("A");
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([-1]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = "A";
+ this.x=new standard_define(new ScilabDouble([2,1]),model,exprs," ");
+ this.x.graphics.id = new ScilabString(["From"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CLKGOTO.js b/history/data_structures/CLKGOTO.js
new file mode 100644
index 0000000..eede81b
--- /dev/null
+++ b/history/data_structures/CLKGOTO.js
@@ -0,0 +1,17 @@
+function CLKGOTO () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["clkgoto"]);
+ model.evtin = new ScilabDouble([1]);
+ model.opar=list("A");
+ model.ipar=int(1);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([-1]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = [["A"],[sci2exp(1)]];
+ this.x=new standard_define(new ScilabDouble([2,1]),model,exprs," ");
+ this.x.graphics.id = new ScilabString(["Goto"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CLKGotoTagVisibility.js b/history/data_structures/CLKGotoTagVisibility.js
new file mode 100644
index 0000000..5a164cf
--- /dev/null
+++ b/history/data_structures/CLKGotoTagVisibility.js
@@ -0,0 +1,23 @@
+function CLKGotoTagVisibility () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["clkgototagvisibility"]);
+ model.in1 = new ScilabDouble();
+ model.in2 = new ScilabDouble();
+ model.out = new ScilabDouble();
+ model.out2 = new ScilabDouble();
+ model.evtin = new ScilabDouble();
+ model.intyp = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.opar=list("A");
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabBoolean([false]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = "A";
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CLKINV_f.js b/history/data_structures/CLKINV_f.js
new file mode 100644
index 0000000..aa2d8dc
--- /dev/null
+++ b/history/data_structures/CLKINV_f.js
@@ -0,0 +1,19 @@
+function CLKINV_f () {
+
+
+ var prt = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["input"]);
+ model.evtout = new ScilabDouble([1]);
+ model.ipar=new ScilabDouble([prt]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([-1]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = string(prt);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i);
+ return new EventInBlock(this.x)
+}
diff --git a/history/data_structures/CLKOUTV_f.js b/history/data_structures/CLKOUTV_f.js
new file mode 100644
index 0000000..32f4ec9
--- /dev/null
+++ b/history/data_structures/CLKOUTV_f.js
@@ -0,0 +1,17 @@
+function CLKOUTV_f () {
+
+
+ var prt = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["output"]);
+ model.evtin = new ScilabDouble([1]);
+ model.ipar=new ScilabDouble([prt]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = string(prt);
+ this.x=new standard_define(new ScilabDouble([1,1]),model,exprs," ");
+ return new EventOutBlock(this.x)
+}
diff --git a/history/data_structures/CLKSOMV_f.js b/history/data_structures/CLKSOMV_f.js
new file mode 100644
index 0000000..273ebc8
--- /dev/null
+++ b/history/data_structures/CLKSOMV_f.js
@@ -0,0 +1,15 @@
+function CLKSOMV_f () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["sum"]);
+ model.evtin = new ScilabDouble([1],[1],[1]);
+ model.evtout = new ScilabDouble([1]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([-1]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,[],gr_i);
+ return new RoundBlock(this.x)
+}
diff --git a/history/data_structures/CLOCK_c.js b/history/data_structures/CLOCK_c.js
new file mode 100644
index 0000000..339191e
--- /dev/null
+++ b/history/data_structures/CLOCK_c.js
@@ -0,0 +1,48 @@
+function CLOCK_c () {
+
+
+ var evtdly = EVTDLY_c("define");
+ evtdly.graphics.orig = new ScilabDouble([320,232]);
+ evtdly.graphics.sz = new ScilabDouble([40,40]);
+ evtdly.graphics.flip = new ScilabBoolean([true]);
+ evtdly.graphics.exprs = new ScilabString(["0.1";"0.1"]);
+ evtdly.graphics.pein = new ScilabDouble([6]);
+ evtdly.graphics.peout = new ScilabDouble([3]);
+ evtdly.model.rpar = new ScilabDouble([0.1],[0.1]);
+ evtdly.model.firing = new ScilabDouble([0.1]);
+
+ var output_port = CLKOUT_f("define");
+ output_port.graphics.orig = new ScilabDouble([399,162]);
+ output_port.graphics.sz = new ScilabDouble([20,20]);
+ output_port.graphics.flip = new ScilabBoolean([true]);
+ output_port.graphics.exprs = new ScilabString(["1"]);
+ output_port.graphics.pein = new ScilabDouble([5]);
+ output_port.model.ipar = new ScilabDouble([1]);
+
+ var split = CLKSPLIT_f("define");
+ split.graphics.orig = new ScilabDouble([380.71066],[172]);
+ split.graphics.pein = new ScilabDouble([3]);
+ split.graphics.peout = new ScilabDouble([5],[6]);
+
+ var gr_i = [];
+
+ var diagram = scicos_diagram();
+ diagram.objs.push(output_port);
+ diagram.objs.push(evtdly);
+ diagram.objs.push(scicos_link({xx: new ScilabDouble([340],[340],[380.71]),yy: new ScilabDouble([226.29],[172],[172]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([2,1]),to: new ScilabDouble([4,1])}));
+ diagram.objs.push(split);
+ diagram.objs.push(scicos_link({xx: new ScilabDouble([380.71],[399]),yy: new ScilabDouble([172],[172]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([4,1]),to: new ScilabDouble([1,1])}));
+ diagram.objs.push(scicos_link({xx: new ScilabDouble([380.71],[380.71],[340],[340]),yy: new ScilabDouble([172],[302],[302],[277.71]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([4,2]),to: new ScilabDouble([2,1])}));
+ this.x=scicos_block();
+ this.x.gui = new ScilabString(["CLOCK_c"]);
+ this.x.graphics.sz = new ScilabDouble([2,2]);
+ this.x.graphics.gr_i=gr_i;
+ this.x.graphics.peout = new ScilabDouble([0]);
+ this.x.model.sim = new ScilabString(["csuper"]);
+ this.x.model.evtout = new ScilabDouble([1]);
+ this.x.model.blocktype = new ScilabString(["h"]);
+ this.x.model.firing = new ScilabBoolean([false]);
+ this.x.model.dep_ut = new ScilabBoolean([false,false]);
+ this.x.model.rpar=diagram;
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CLR.js b/history/data_structures/CLR.js
new file mode 100644
index 0000000..d374d40
--- /dev/null
+++ b/history/data_structures/CLR.js
@@ -0,0 +1,28 @@
+function CLR () {
+
+
+ var x0 = 0;
+
+ var A = -1;
+
+ var B = 1;
+
+ var C = 1;
+
+ var D = 0;
+
+ var exprs = ["1";"1+s"];
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["csslti4"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.state=new ScilabDouble([x0]);
+ model.rpar = new ScilabDouble([...colon_operator(A,:)],[...B],[C(,)],[...D]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,true]);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CLSS.js b/history/data_structures/CLSS.js
new file mode 100644
index 0000000..d97157a
--- /dev/null
+++ b/history/data_structures/CLSS.js
@@ -0,0 +1,32 @@
+function CLSS () {
+
+
+ var x0 = 0;
+
+ var A = -1;
+
+ var B = 1;
+
+ var C = 1;
+
+ var D = 0;
+
+ var in1 = 1;
+
+ var out = 1;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["csslti4"]),new ScilabDouble([4]));
+ model.in1.push(new ScilabDouble([in1]));
+ model.out=new ScilabDouble([out]);
+ model.state=new ScilabDouble([x0]);
+ model.rpar = new ScilabDouble([...colon_operator(A,:)],[...B],[C(,)],[...D]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,true]);
+
+ var exprs = [[strcat(sci2exp(A))],[strcat(sci2exp(B))],[strcat(sci2exp(C))],[strcat(sci2exp(D))],[strcat(sci2exp(x0))]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CMAT3D.js b/history/data_structures/CMAT3D.js
new file mode 100644
index 0000000..0d2fd8d
--- /dev/null
+++ b/history/data_structures/CMAT3D.js
@@ -0,0 +1,35 @@
+function CMAT3D () {
+
+
+ var cmin = 0;
+
+ var cmax = 100;
+
+ var colormap = jetcolormap(25);
+
+ var size_c = 25;
+ this.x = new ScilabDouble([-1]);
+
+ var y = -1;
+
+ var size_x = 1;
+
+ var size_y = 1;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["cmat3d"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble([1]);
+ model.ipar = new ScilabDouble([cmin],[cmax],[size_c],[size_x],[size_y]);
+ model.rpar = new ScilabDouble([...colormap],[x],[y]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[strcat(string(x)," ");strcat(string(y)," ");string("jetcolormap(25)")],[string(cmin)],[string(cmax)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CMATVIEW.js b/history/data_structures/CMATVIEW.js
new file mode 100644
index 0000000..3a03930
--- /dev/null
+++ b/history/data_structures/CMATVIEW.js
@@ -0,0 +1,32 @@
+function CMATVIEW () {
+
+
+ var cmin = 0;
+
+ var cmax = 100;
+
+ var size_c = 25;
+
+ var colormap = jetcolormap(size_c);
+
+ var alpha_c = 0.24;
+
+ var beta_c = 1;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["cmatview"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble([1]);
+ model.ipar = new ScilabDouble([cmin],[cmax],[size_c]);
+ model.rpar = new ScilabDouble([alpha_c],[beta_c],[...colormap]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[string("jetcolormap(25)")],[string(cmin)],[string(cmax)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CMSCOPE.js b/history/data_structures/CMSCOPE.js
new file mode 100644
index 0000000..b4d2e3d
--- /dev/null
+++ b/history/data_structures/CMSCOPE.js
@@ -0,0 +1,42 @@
+function CMSCOPE () {
+
+
+ var win = -1;
+
+ var in1 = [[1],[1]];
+
+ var wdim = [[-1],[-1]];
+
+ var wpos = [[-1],[-1]];
+
+ var clrs = [[1],[3],[5],[7],[9],[11],[13],[15]];
+
+ var N = 20;
+
+ var ymin = [[-1],[-5]];
+
+ var ymax = [[1],[5]];
+
+ var per = [[30],[30]];
+
+ var yy = [[...transpose(ymin)],[...transpose(ymax)]];
+
+ var period = ...transpose(per);
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["cmscope"]),new ScilabDouble([4]));
+ model.in1.push(new ScilabDouble([in1]));
+ model.in2 = new ScilabDouble([1],[1]);
+ model.intyp = new ScilabDouble([1],[1]);
+ model.evtin = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([0],[...period],[...yy]);
+ model.ipar = new ScilabDouble([win;...colon_operator(size,in1,"*")],[N],[...wpos],[...wdim],[...in1],[clrs(1,sum(in1))]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[strcat(string(in1)," ");strcat(string(clrs)," ");string(win);sci2exp([]);sci2exp([]);strcat(string(ymin)," ");strcat(string(ymax)," ");strcat(string(per)," ")],[string(N)],[string(0)],[emptystr()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CONST.js b/history/data_structures/CONST.js
new file mode 100644
index 0000000..b34361e
--- /dev/null
+++ b/history/data_structures/CONST.js
@@ -0,0 +1,19 @@
+function CONST () {
+
+
+ var C = 1;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["cstblk4"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble();
+ model.out = new ScilabDouble([1]);
+ model.rpar=new ScilabDouble([C]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = strcat(sci2exp(C));
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CONSTRAINT2_c.js b/history/data_structures/CONSTRAINT2_c.js
new file mode 100644
index 0000000..d24d40c
--- /dev/null
+++ b/history/data_structures/CONSTRAINT2_c.js
@@ -0,0 +1,24 @@
+function CONSTRAINT2_c () {
+
+
+ var x0 = [0];
+
+ var xd0 = [0];
+
+ var id = [0];
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["constraint_c"]),new ScilabDouble([10004]));
+ model.in1 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1],[1]);
+ model.state = new ScilabDouble([x0],[xd0]);
+ model.ipar=new ScilabDouble([id]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,true]);
+
+ var exprs = list(strcat(sci2exp(x0)),strcat(sci2exp(xd0)),strcat(sci2exp(id)));
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CONSTRAINT_c.js b/history/data_structures/CONSTRAINT_c.js
new file mode 100644
index 0000000..567ec0f
--- /dev/null
+++ b/history/data_structures/CONSTRAINT_c.js
@@ -0,0 +1,20 @@
+function CONSTRAINT_c () {
+
+
+ var x0 = [[0],[0]];
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["constraint_c"]),new ScilabDouble([10004]));
+ model.in1 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.ipar = new ScilabDouble([0]);
+ model.state=new ScilabDouble([x0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,true]);
+
+ var exprs = "0";
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CONST_f.js b/history/data_structures/CONST_f.js
new file mode 100644
index 0000000..1983ae4
--- /dev/null
+++ b/history/data_structures/CONST_f.js
@@ -0,0 +1,19 @@
+function CONST_f () {
+
+
+ var C = 1;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["cstblk"]),new ScilabDouble([1]));
+ model.in1 = new ScilabDouble();
+ model.out = new ScilabDouble([1]);
+ model.rpar=new ScilabDouble([C]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = strcat(sci2exp(C));
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CONST_m.js b/history/data_structures/CONST_m.js
new file mode 100644
index 0000000..df53c9a
--- /dev/null
+++ b/history/data_structures/CONST_m.js
@@ -0,0 +1,22 @@
+function CONST_m () {
+
+
+ var C = [1];
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["cstblk4"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble();
+ model.out=size(C,1);
+ model.in2 = new ScilabDouble();
+ model.out2.push(size(C,2));
+ model.rpar=new ScilabDouble([C]);
+ model.opar=list();
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = sci2exp(C);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CONVERT.js b/history/data_structures/CONVERT.js
new file mode 100644
index 0000000..2a467eb
--- /dev/null
+++ b/history/data_structures/CONVERT.js
@@ -0,0 +1,24 @@
+function CONVERT () {
+
+
+ var sgn = 2;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["convert"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([-1]);
+ model.out = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.out2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([3]);
+ model.rpar = new ScilabDouble();
+ model.ipar=new ScilabDouble([sgn]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[sci2exp(1)],[sci2exp(3)],[sci2exp(0)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/COSBLK_f.js b/history/data_structures/COSBLK_f.js
new file mode 100644
index 0000000..bcd2120
--- /dev/null
+++ b/history/data_structures/COSBLK_f.js
@@ -0,0 +1,16 @@
+function COSBLK_f () {
+
+
+ var in1 = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["cosblk"]);
+ model.in1 = new ScilabDouble([-1]);
+ model.out = new ScilabDouble([-1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,[],gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CSCOPE.js b/history/data_structures/CSCOPE.js
new file mode 100644
index 0000000..f67fec9
--- /dev/null
+++ b/history/data_structures/CSCOPE.js
@@ -0,0 +1,35 @@
+function CSCOPE () {
+
+
+ var win = -1;
+
+ var wdim = [[600],[400]];
+
+ var wpos = [[-1],[-1]];
+
+ var clrs = [[1],[3],[5],[7],[9],[11],[13],[15]];
+
+ var N = 20;
+
+ var ymin = -15;
+
+ var ymax = +15;
+
+ var per = 30;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["cscope"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([0],[ymin],[ymax],[per]);
+ model.ipar = new ScilabDouble([win],[1],[N],[clrs],[wpos],[wdim]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[strcat(string(clrs)," ")],[string(win)],[sci2exp([])],[sci2exp(wdim)],[string(ymin)],[string(ymax)],[string(per)],[string(N)],[string(0)'],[emptystr()]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CSCOPXY.js b/history/data_structures/CSCOPXY.js
new file mode 100644
index 0000000..17808c5
--- /dev/null
+++ b/history/data_structures/CSCOPXY.js
@@ -0,0 +1,40 @@
+function CSCOPXY () {
+
+
+ var win = -1;
+
+ var clrs = 4],[siz=1;
+
+ var wdim = [[600],[400]];
+
+ var wpos = [[-1],[-1]];
+
+ var N = 2;
+
+ var xmin = -15;
+
+ var xmax = 15;
+
+ var ymin = -15;
+
+ var ymax = +15;
+
+ var nbr_curves = 1;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["cscopxy"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([1],[1]);
+ model.in2 = new ScilabDouble([1],[1]);
+ model.intyp = new ScilabDouble([1],[1]);
+ model.evtin = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([xmin],[xmax],[ymin],[ymax]);
+ model.ipar = new ScilabDouble([win],[1],[N],[clrs],[siz],[1],[...wpos],[...wdim],[nbr_curves]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = [[string(nbr_curves)],[sci2exp(clrs)],[sci2exp(siz)],[string(win)],[sci2exp([])],[sci2exp(wdim)],[string(xmin)],[string(xmax)],[string(ymin)],[string(ymax)],[string(N)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CSCOPXY3D.js b/history/data_structures/CSCOPXY3D.js
new file mode 100644
index 0000000..7a91623
--- /dev/null
+++ b/history/data_structures/CSCOPXY3D.js
@@ -0,0 +1,42 @@
+function CSCOPXY3D () {
+
+
+ var win = -1;
+
+ var clrs = [[1],[2],[3],[4],[5],[6],[7],[13]];
+
+ var siz = [[1],[1],[1],[1],[1],[1],[1],[1]];
+
+ var wdim = [[600],[400]];
+
+ var wpos = [[-1],[-1]];
+
+ var N = 2;
+
+ var param3ds = [[50],[280]];
+
+ var vec_x = [[-15],[15]];
+
+ var vec_y = [[-15],[15]];
+
+ var vec_z = [[-15],[15]];
+
+ var nbr_curves = 1;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["cscopxy3d"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([1],[1],[1]);
+ model.in2 = new ScilabDouble([1],[1],[1]);
+ model.intyp = new ScilabDouble([1],[1],[1]);
+ model.evtin = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([...colon_operator(vec_x,:)],[...vec_y],[vec_z(,)],[...param3ds]);
+ model.ipar = new ScilabDouble([win],[8],[N],[...colon_operator(clrs,:)],[...siz],[8],[wpos(,)],[...wdim],[nbr_curves]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = [[string(nbr_curves);strcat(string(clrs)," ");strcat(string(siz)," ");string(win);sci2exp([]);sci2exp(wdim);strcat(string(vec_x)," ");strcat(string(vec_y)," ");strcat(string(vec_z)," ");strcat(string(param3ds)," ")],[string(N)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CUMSUM.js b/history/data_structures/CUMSUM.js
new file mode 100644
index 0000000..6c076cf
--- /dev/null
+++ b/history/data_structures/CUMSUM.js
@@ -0,0 +1,31 @@
+function CUMSUM () {
+
+
+ var model = scicos_model();
+
+ var function_name = "cumsum_m";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = [[sci2exp(1)],[sci2exp(0)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CURV_f.js b/history/data_structures/CURV_f.js
new file mode 100644
index 0000000..49e00bf
--- /dev/null
+++ b/history/data_structures/CURV_f.js
@@ -0,0 +1,28 @@
+function CURV_f () {
+
+
+ var xx = [[0],[1],[2]];
+
+ var yy = [[-5],[5],[0]];
+
+ var rect = [0,-5,2,5];
+
+ var axisdata = [[2],[10],[2],[10]];
+
+ var ipar = [[size(xx,1)],[...axisdata]];
+
+ var rpar = [[xx],[yy],[...rect]];
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["intplt"]);
+ model.in1 = new ScilabDouble();
+ model.out = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([xx],[yy],[...rect]);
+ model.ipar = new ScilabDouble([size(xx,1)],[...axisdata]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,true]);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,[],gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CVS.js b/history/data_structures/CVS.js
new file mode 100644
index 0000000..5bfb5f9
--- /dev/null
+++ b/history/data_structures/CVS.js
@@ -0,0 +1,30 @@
+function CVS () {
+
+
+ var ModelName = "CVS";
+
+ var PrametersValue = [];
+
+ var ParametersName = [];
+
+ var model = scicos_model();
+
+ var Typein = [];
+
+ var Typeout = [];
+
+ var MI = [];
+
+ var MO = [];
+
+ var P = [[2,50,1,0],[,70,98,2,0],[70,2,-2,0]];
+
+ var PortName = ["vin";"p";"n"];
+
+ var for i = 1:size(P,"r");
+
+ var if P(i,3) = =1, then;
+ Typein = new ScilabDouble([Typein;,"E"]);
+ MI = new ScilabDouble([MI],[PortName(i)]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/Capacitor.js b/history/data_structures/Capacitor.js
new file mode 100644
index 0000000..c83bb8e
--- /dev/null
+++ b/history/data_structures/Capacitor.js
@@ -0,0 +1,28 @@
+function Capacitor () {
+
+
+ var model = scicos_model();
+
+ var C = 0.01,v=0;
+ model.rpar = new ScilabDouble([C],[v]);
+ model.sim = new ScilabString(["Capacitor"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var mo = modelica();
+ mo.model = new ScilabString(["Capacitor"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["n"]);
+ mo.parameters=list(new ScilabString(["C"),new ScilabString(["v"]]),list(C,v),new ScilabDouble([0),new ScilabDouble([1]]));
+ model.equations=mo;
+ model.in1.push(ones(size(mo.inputs,"*"),1));
+ model.out=ones(size(mo.outputs,"*"),1);
+
+ var exprs = string([C],[v]);
+
+ var gr_i = [];
+ this.x=standard_define([2,1.1],model,exprs,list(gr_i,0));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/ConstantVoltage.js b/history/data_structures/ConstantVoltage.js
new file mode 100644
index 0000000..add8be1
--- /dev/null
+++ b/history/data_structures/ConstantVoltage.js
@@ -0,0 +1,27 @@
+function ConstantVoltage () {
+
+
+ var V = 0.01;
+
+ var model = scicos_model();
+ model.rpar=new ScilabDouble([V]);
+ model.in1 = new ScilabDouble([1],[model.out=1]);
+ model.sim = new ScilabString(["ConstantVoltage"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var mo = modelica();
+ mo.model = new ScilabString(["ConstantVoltage"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["n"]);
+ mo.parameters=list(new ScilabString(["V"]),list(V));
+ model.equations=mo;
+
+ var exprs = string(V);
+
+ var gr_i = [];
+ this.x=standard_define([1.5,1.1],model,exprs,list(gr_i,0));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/Counter.js b/history/data_structures/Counter.js
new file mode 100644
index 0000000..9fcff45
--- /dev/null
+++ b/history/data_structures/Counter.js
@@ -0,0 +1,25 @@
+function Counter () {
+
+
+ var minim = 0;
+
+ var maxim = 2;
+
+ var rule = 1;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["counter"]),new ScilabDouble([4]));
+ model.evtin = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble([0]);
+ model.ipar = new ScilabDouble([rule],[maxim],[minim]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = [[string(minim)],[string(maxim)],[string(rule)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/CurrentSensor.js b/history/data_structures/CurrentSensor.js
new file mode 100644
index 0000000..386fa14
--- /dev/null
+++ b/history/data_structures/CurrentSensor.js
@@ -0,0 +1,24 @@
+function CurrentSensor () {
+
+
+ var model = scicos_model();
+ model.in1 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1],[,1]);
+ model.sim = new ScilabString(["CurrentSensor"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var mo = modelica();
+ mo.model = new ScilabString(["CurrentSensor"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["n";"i"]);
+ model.equations=mo;
+
+ var exprs = [];
+
+ var gr_i = [];
+ this.x=standard_define([2,2],model,exprs,list(gr_i,0));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I";"E"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/DEADBAND.js b/history/data_structures/DEADBAND.js
new file mode 100644
index 0000000..b5c34e3
--- /dev/null
+++ b/history/data_structures/DEADBAND.js
@@ -0,0 +1,25 @@
+function DEADBAND () {
+
+
+ var minp = -.5;
+
+ var maxp = .5;
+
+ var rpar = [[maxp],[minp]];
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["deadband"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([1]);
+ model.nzcross = new ScilabDouble([2]);
+ model.nmode = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar=rpar;
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[string(maxp)],[string(minp)],[string(model.nmode)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/DEBUG.js b/history/data_structures/DEBUG.js
new file mode 100644
index 0000000..6d610ad
--- /dev/null
+++ b/history/data_structures/DEBUG.js
@@ -0,0 +1,13 @@
+function DEBUG () {
+
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["%debug_scicos"]),new ScilabDouble([99]));
+ model.blocktype = new ScilabString(["d"]);
+
+ var exprs = list("","xcos_debug_gui(flag,block);");
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([8,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/DELAYV_f.js b/history/data_structures/DELAYV_f.js
new file mode 100644
index 0000000..f262231
--- /dev/null
+++ b/history/data_structures/DELAYV_f.js
@@ -0,0 +1,29 @@
+function DELAYV_f () {
+
+
+ var nin = 1;
+
+ var z0 = zeros(11,1);
+
+ var zz0 = ...colon_operator(z0,1,$-1);
+
+ var T = 1;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["delayv"]),new ScilabDouble([1]));
+ model.in1 = new ScilabDouble([nin],[1]);
+ model.out=new ScilabDouble([nin]);
+ model.evtin = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble([1],[1]);
+ model.dstate=z0;
+ model.rpar=T/(size(zz0,"*"));
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([0,-1]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[...colon_operator(string,nin);strcat(string(z0(1,$-1)),";")],[string(T)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/DELAY_f.js b/history/data_structures/DELAY_f.js
new file mode 100644
index 0000000..9f2ea31
--- /dev/null
+++ b/history/data_structures/DELAY_f.js
@@ -0,0 +1,72 @@
+function DELAY_f () {
+
+
+ var evtdly = EVTDLY_f("define");
+ evtdly.graphics.orig = new ScilabDouble([243,296]);
+ evtdly.graphics.sz = new ScilabDouble([40,40]);
+ evtdly.graphics.flip = new ScilabBoolean([true]);
+ evtdly.graphics.exprs = new ScilabString(["0.1";"0"]);
+ evtdly.graphics.pein = new ScilabDouble([10]);
+ evtdly.graphics.peout = new ScilabDouble([7]);
+ evtdly.model.rpar = new ScilabDouble([0.1]);
+ evtdly.model.firing = new ScilabDouble([0]);
+
+ var register = REGISTER_f("define");
+ register.graphics.orig = new ScilabDouble([238,195]);
+ register.graphics.sz = new ScilabDouble([50,50]);
+ register.graphics.flip = new ScilabBoolean([true]);
+ register.graphics.exprs = new ScilabString(["0;0;0;0;0;0;0;0;0;0"]);
+ register.graphics.pin = new ScilabDouble([6]);
+ register.graphics.pout = new ScilabDouble([5]);
+ register.graphics.pein = new ScilabDouble([9]);
+
+ var input_port = IN_f("define");
+ input_port.graphics.orig = new ScilabDouble([92,210]);
+ input_port.graphics.sz = new ScilabDouble([20,20]);
+ input_port.graphics.flip = new ScilabBoolean([true]);
+ input_port.graphics.exprs = new ScilabString(["1";"1"]);
+ input_port.graphics.pout = new ScilabDouble([6]);
+ input_port.model.ipar = new ScilabDouble([1]);
+
+ var output_port = OUT_f("define");
+ output_port.graphics.orig = new ScilabDouble([440,210]);
+ output_port.graphics.sz = new ScilabDouble([20,20]);
+ output_port.graphics.flip = new ScilabBoolean([true]);
+ output_port.graphics.exprs = new ScilabString(["1";"1"]);
+ output_port.graphics.pin = new ScilabDouble([5]);
+ output_port.model.ipar = new ScilabDouble([1]);
+
+ var split = CLKSPLIT_f("define");
+ split.graphics.orig = new ScilabDouble([263],[271.2]);
+ split.graphics.pein = new ScilabDouble([7]);
+ split.graphics.peout = new ScilabDouble([9],[10]);
+
+ var diagram = scicos_diagram();
+ diagram.objs.push(input_port);
+ diagram.objs.push(output_port);
+ diagram.objs.push(register);
+ diagram.objs.push(evtdly);
+ diagram.objs.push(scicos_link({xx: new ScilabDouble([296.6],[440]),yy: new ScilabDouble([220],[220]),from: new ScilabDouble([3,1]),to: new ScilabDouble([2,1])}));
+ diagram.objs.push(scicos_link({xx: new ScilabDouble([112],[229.4]),yy: new ScilabDouble([220],[220]),from: new ScilabDouble([1,1]),to: new ScilabDouble([3,1])}));
+ diagram.objs.push(scicos_link({xx: new ScilabDouble([263],[263]),yy: new ScilabDouble([290.3],[271.2]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([4,1]),to: new ScilabDouble([8,1])}));
+ diagram.objs.push(split);
+ diagram.objs.push(scicos_link({xx: new ScilabDouble([263],[263]),yy: new ScilabDouble([271.2],[250.7]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([8,1]),to: new ScilabDouble([3,1])}));
+ diagram.objs.push(scicos_link({xx: new ScilabDouble([263],[308.6],[308.6],[263],[263]),yy: new ScilabDouble([271.2],[271.2],[367],[367],[341.7]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([8,2]),to: new ScilabDouble([4,1])}));
+ this.x=scicos_block();
+ this.x.gui = new ScilabString(["DELAY_f"]);
+ this.x.graphics.sz = new ScilabDouble([2,2]);
+ this.x.graphics.gr_i = new ScilabDouble();
+ this.x.graphics.pin = new ScilabDouble([0]);
+ this.x.graphics.pout = new ScilabDouble([0]);
+ this.x.model.sim = new ScilabString(["csuper"]);
+ this.x.model.in1 = new ScilabDouble([1]);
+ this.x.model.out = new ScilabDouble([1]);
+ this.x.model.blocktype = new ScilabString(["h"]);
+ this.x.model.dep_ut = new ScilabBoolean([false,false]);
+ this.x.model.rpar=diagram;
+ this.x.graphics.in_implicit = new ScilabString(["E"]);
+ this.x.graphics.in_style = new ScilabString([""]);
+ this.x.graphics.out_implicit = new ScilabString(["E"]);
+ this.x.graphics.out_style = new ScilabString([""]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/DEMUX.js b/history/data_structures/DEMUX.js
new file mode 100644
index 0000000..083b3ec
--- /dev/null
+++ b/history/data_structures/DEMUX.js
@@ -0,0 +1,20 @@
+function DEMUX () {
+
+
+ var out = 2;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["multiplex"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([0]);
+ model.out=-...transpose([1:out]);
+ model.ipar=new ScilabDouble([out]);
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = string(out);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([.5,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/DEMUX_f.js b/history/data_structures/DEMUX_f.js
new file mode 100644
index 0000000..161b4a1
--- /dev/null
+++ b/history/data_structures/DEMUX_f.js
@@ -0,0 +1,20 @@
+function DEMUX_f () {
+
+
+ var out = 2;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["demux"]),new ScilabDouble([1]));
+ model.in1 = new ScilabDouble([0]);
+ model.out=-...transpose([1:out]);
+ model.ipar=new ScilabDouble([out]);
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = string(out);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([.5,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/DERIV.js b/history/data_structures/DERIV.js
new file mode 100644
index 0000000..12f3503
--- /dev/null
+++ b/history/data_structures/DERIV.js
@@ -0,0 +1,16 @@
+function DERIV () {
+
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["deriv"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([-1]);
+ model.out = new ScilabDouble([-1]);
+ model.blocktype = new ScilabString(["x"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/DFLIPFLOP.js b/history/data_structures/DFLIPFLOP.js
new file mode 100644
index 0000000..ef30761
--- /dev/null
+++ b/history/data_structures/DFLIPFLOP.js
@@ -0,0 +1,97 @@
+function DFLIPFLOP () {
+
+
+ var scs_m = scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[600,450,0,0,600,450],Title=["DFLIPFLOP"],tol=[0.0001,0.000001,1.000E-10,100001,0,0],tf=100000,context=" ",void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list()));
+ scs_m.objs.push(scicos_block(gui="CONST_m",graphics=scicos_graphics(orig=[109.62561,263.44465],sz=[20;20],flip=%t,theta=0,exprs="int8(0)",pin=[],pout=6,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim=list("cstblk4_m",4),in1=[],in2=[],intyp=1,out=1,out2=1,outtyp=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(new ScilabInteger([0])),blocktype="d",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_block(gui="IFTHEL_f",graphics=scicos_graphics(orig=[239.98293,378.2166],sz=[60,60],flip=%t,theta=0,exprs=["1";"1"],pin=29,pout=[],pein=22,peout=[16;44],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim=list("ifthel",-1),in1=1,in2=1,intyp=-1,out=[],out2=[],outtyp=1,evtin=1,evtout=[1;1],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="l",firing=[-1,-1],dep_ut=[%t,%f],label="",nzcross=1,nmode=1,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_block(gui="LOGICAL_OP",graphics=scicos_graphics(orig=[152.88902,260.24498],sz=[60,40],flip=%t,theta=0,exprs=["2";"1";"5";"0"],pin=[11;39],pout=5,pein=[],peout=[],gr_i=[],id="",in_implicit=["E";"E"],out_implicit="E"),model=scicos_model(sim=list("logicalop_i8",4),in1=[-1;-1],in2=[-2;-2],intyp=[5;5],out=-1,out2=-2,outtyp=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[1;0],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_block(gui="SAMPHOLD_m",graphics=scicos_graphics(orig=[233.72156,260.24498],sz=[40,40],flip=%t,theta=0,exprs="5",pin=5,pout=33,pein=42,peout=[],gr_i=[],id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("samphold4_m",4),in1=-1,in2=-2,intyp=5,out=-1,out2=-2,outtyp=5,evtin=1,evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="d",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([221.46044),yy: new ScilabDouble([280.24498),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([3,1,0]),to: new ScilabDouble([4,1,1])}));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([138.19704),yy: new ScilabDouble([273.44465),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([38,1,1])}));
+ scs_m.objs.push(scicos_block(gui="LOGICAL_OP",graphics=scicos_graphics(orig=[373.24106,309.46812],sz=[60,40],flip=%t,theta=0,exprs=["1";"5";"5";"0"],pin=36,pout=13,pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("logicalop_i8",4),in1=-1,in2=-2,intyp=5,out=-1,out2=-2,outtyp=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[5;0],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[199.48466,398.2166],sz=[20,20],flip=%t,theta=0,exprs="3",pin=[],pout=9,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=3,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([219.48466),yy: new ScilabDouble([408.2166),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([8,1,0]),to: new ScilabDouble([28,1,1])}));
+ scs_m.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[104.31759,276.91165],sz=[20,20],flip=%t,theta=0,exprs="1",pin=[],pout=11,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([124.31759),yy: new ScilabDouble([286.91165),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([10,1,0]),to: new ScilabDouble([3,1,1])}));
+ scs_m.objs.push(scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[457.40928,320.20131],sz=[20,20],flip=%t,theta=0,exprs="2",pin=13,pout=[],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=[],intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=2,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([441.81249),yy: new ScilabDouble([329.46812),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([7,1,0]),to: new ScilabDouble([12,1,1])}));
+ scs_m.objs.push(scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[376.4669,270.83282],sz=[20,20],flip=%t,theta=0,exprs="1",pin=37,pout=[],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=[],intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+
+ var scs_m_1 = scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[600,450,0,0,600,450],Title="Untitled",tol=[0.0001,0.000001,1.000E-10,100001,0,0],tf=100000,context=[],void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list()));
+ scs_m_1.objs.push(scicos_block(gui="ANDLOG_f",graphics=scicos_graphics(orig=[194,133],sz=[60,60],flip=%t,theta=0,exprs=[],pin=[],pout=9,pein=[4;11],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="andlog",in1=[],in2=[],intyp=1,out=1,out2=[],outtyp=1,evtin=[1;1],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="d",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_block(gui="CLKIN_f",graphics=scicos_graphics(orig=[149,287],sz=[20,20],flip=%t,theta=0,exprs="1",pin=[],pout=[],pein=[],peout=4,gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=[],evtout=1,state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="d",firing=-1,dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_block(gui="CLKOUT_f",graphics=scicos_graphics(orig=[450,83],sz=[20,20],flip=%t,theta=0,exprs="1",pin=[],pout=[],pein=8,peout=[],gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim="output",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=1,evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="d",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([169),yy: new ScilabDouble([297),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([2,1]),to: new ScilabDouble([1,1])}));
+ scs_m_1.objs.push(scicos_block(gui="CLKIN_f",graphics=scicos_graphics(orig=[141,330],sz=[20,20],flip=%t,theta=0,exprs="2",pin=[],pout=[],pein=[],peout=6,gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=[],evtout=1,state=[],dstate=[],odstate=list(),rpar=[],ipar=2,opar=list(),blocktype="d",firing=-1,dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([161),yy: new ScilabDouble([340),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([5,1]),to: new ScilabDouble([10,1])}));
+ scs_m_1.objs.push(scicos_block(gui="IFTHEL_f",graphics=scicos_graphics(orig=[331,137],sz=[60,60],flip=%t,theta=0,exprs=["1";"1"],pin=9,pout=[],pein=12,peout=[8;0],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim=list("ifthel",-1),in1=1,in2=1,intyp=-1,out=[],out2=[],outtyp=1,evtin=1,evtout=[1;1],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="l",firing=[-1,-1],dep_ut=[%t,%f],label="",nzcross=1,nmode=1,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([351),yy: new ScilabDouble([131.29),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([7,1]),to: new ScilabDouble([3,1])}));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([262.57),yy: new ScilabDouble([163),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,1]),to: new ScilabDouble([7,1])}));
+ scs_m_1.objs.push(scicos_block(gui="CLKSPLIT_f",graphics=scicos_graphics(orig=[234;275.78348],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=[],pout=[],pein=6,peout=[11;12],gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim="split",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=1,evtout=[1;1],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="d",firing=[%f,%f,%f],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([234),yy: new ScilabDouble([275.78),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([10,1]),to: new ScilabDouble([1,2])}));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([234),yy: new ScilabDouble([275.78),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([10,2]),to: new ScilabDouble([7,1])}));
+ scs_m.objs.push(scicos_block(gui="ANDBLK",graphics=scicos_graphics(orig=[233.73039,318.74407],sz=[40,40],flip=%t,theta=0,exprs=[],pin=[],pout=[],pein=[19;16],peout=17,gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim="csuper",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=[1;1],evtout=1,state=[],dstate=[],odstate=list(),rpar=scs_m_1,ipar=[],opar=list(),blocktype="h",firing=%f,dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([259.98293),yy: new ScilabDouble([372.50232),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([2,1,0]),to: new ScilabDouble([15,2,1])}));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([253.73039),yy: new ScilabDouble([313.02978),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([15,1,0]),to: new ScilabDouble([41,1,1])}));
+ scs_m_1.push(tlist(new ScilabString([600,450,0,0,600,450]),props=scicos_params(wpar=,Title=,tol=,tf=30,context=" ",void1=,options=tlist(,list(%t,new ScilabDouble([33)]),,,list(,),),void2=,void3=,doc=list())));
+ scs_m_1.objs.push(scicos_block(gui="EDGETRIGGER",graphics=scicos_graphics(orig=[288.58631,257.1131],sz=[60,40],flip=%t,theta=0,exprs="1",pin=5,pout=3,pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("edgetrig",4),in1=1,in2=[],intyp=1,out=1,out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=0,odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=1,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_block(gui="IFTHEL_f",graphics=scicos_graphics(orig=[388.28869,247.1131],sz=[60,60],flip=%t,theta=0,exprs=["0";"0"],pin=3,pout=[],pein=[],peout=[7;0],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim=list("ifthel",-1),in1=1,in2=[],intyp=1,out=[],out2=1,outtyp=[],evtin=[],evtout=[1;1],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="l",firing=[-1,-1],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([357.15774),yy: new ScilabDouble([277.1131),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([2,1,1])}));
+ scs_m_1.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[240.01488,267.1131],sz=[20,20],flip=%t,theta=0,exprs="1",pin=[],pout=5,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=-1,out=-1,out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([260.01488),yy: new ScilabDouble([277.1131),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([4,1,0]),to: new ScilabDouble([1,1,1])}));
+ scs_m_1.objs.push(scicos_block(gui="CLKOUTV_f",graphics=scicos_graphics(orig=[398.28869,181.39881],sz=[20,30],flip=%t,theta=0,exprs="1",pin=[],pout=[],pein=7,peout=[],gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim="output",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=1,evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="d",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([408.28869),yy: new ScilabDouble([241.39881),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([2,1,0]),to: new ScilabDouble([6,1,1])}));
+ scs_m.objs.push(scicos_block(gui="EDGE_TRIGGER",graphics=scicos_graphics(orig=[133.90637,385.342],sz=[60,40],flip=%t,theta=0,exprs=[],pin=26,pout=[],pein=[],peout=19,gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="csuper",in1=-1,in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=[],evtout=1,state=[],dstate=[],odstate=list(),rpar=scs_m_1,ipar=[],opar=list(),blocktype="h",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([163.90637),yy: new ScilabDouble([379.62771),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([18,1,0]),to: new ScilabDouble([15,1,1])}));
+ scs_m.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[79.594811,395.47647],sz=[20,20],flip=%t,theta=0,exprs="2",pin=[],pout=23,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=2,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.push(tlist(new ScilabString([600,450,0,0,600,450]),props=scicos_params(wpar=,Title=,tol=,tf=30,context=" ",void1=,options=tlist(,list(%t,new ScilabDouble([33)]),,,list(,),),void2=,void3=,doc=list())));
+ scs_m_1.objs.push(scicos_block(gui="IFTHEL_f",graphics=scicos_graphics(orig=[150.65045,143.82208],sz=[60,60],flip=%t,theta=0,exprs=["0";"0"],pin=6,pout=[],pein=[],peout=[3;4],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim=list("ifthel",-1),in1=1,in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=[],evtout=[1;1],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="l",firing=[-1,-1],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_block(gui="CLKSOMV_f",graphics=scicos_graphics(orig=[169.82143,96.146231],sz=[16.666667,16.666667],flip=%t,theta=0,exprs=[],pin=[],pout=[],pein=[3;4;0],peout=8,gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim="sum",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=[1;1;1],evtout=1,state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="d",firing=-1,dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([170.65045),yy: new ScilabDouble([138.10779),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([2,1,1])}));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([190.65045),yy: new ScilabDouble([138.10779),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([1,2,0]),to: new ScilabDouble([2,2,1])}));
+ scs_m_1.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[102.07902,163.82208],sz=[20,20],flip=%t,theta=0,exprs="1",pin=[],pout=6,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=-1,out=-1,out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([122.07902),yy: new ScilabDouble([173.82208),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([5,1,0]),to: new ScilabDouble([1,1,1])}));
+ scs_m_1.objs.push(scicos_block(gui="CLKOUTV_f",graphics=scicos_graphics(orig=[168.15476,38.527183],sz=[20,30],flip=%t,theta=0,exprs="1",pin=[],pout=[],pein=8,peout=[],gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim="output",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=1,evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="d",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([178.15476),yy: new ScilabDouble([98.527183),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([2,1,0]),to: new ScilabDouble([7,1,1])}));
+ scs_m.objs.push(scicos_block(gui="Extract_Activation",graphics=scicos_graphics(orig=[239.82193,456.57677],sz=[60,40],flip=%t,theta=0,exprs=[],pin=31,pout=[],pein=[],peout=22,gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="csuper",in1=-1,in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=[],evtout=1,state=[],dstate=[],odstate=list(),rpar=scs_m_1,ipar=[],opar=list(),blocktype="h",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([269.82193),yy: new ScilabDouble([450.86248),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([21,1,0]),to: new ScilabDouble([2,1,1])}));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([99.594811),yy: new ScilabDouble([405.47647),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([20,1,0]),to: new ScilabDouble([25,1,1])}));
+ scs_m.objs.push(scicos_block(gui="SUM_f",graphics=scicos_graphics(orig=[200.5252,469.13173],sz=[16.666667,16.666667],flip=%t,theta=0,exprs=[],pin=[27;0;30],pout=31,pein=[],peout=[],gr_i=[],id="",in_implicit=["E";"E";"E"],out_implicit="E"),model=scicos_model(sim=list("plusblk",2),in1=[-1;-1;-1],in2=[],intyp=1,out=-1,out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_block(gui="SPLIT_f",graphics=scicos_graphics(orig=[110.25582;405.42077],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=23,pout=[26;27],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=["E";"E";"E"]),model=scicos_model(sim="lsplit",in1=-1,in2=[],intyp=1,out=[-1;-1;-1],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([110.25582),yy: new ScilabDouble([405.42077),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([25,1,0]),to: new ScilabDouble([18,1,1])}));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([110.25582),yy: new ScilabDouble([405.42077),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([25,2,0]),to: new ScilabDouble([24,1,1])}));
+ scs_m.objs.push(scicos_block(gui="SPLIT_f",graphics=scicos_graphics(orig=[222.54128;408.2166],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=9,pout=[29;30],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=["E";"E";"E"]),model=scicos_model(sim="lsplit",in1=-1,in2=[],intyp=1,out=[-1;-1;-1],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([222.54128),yy: new ScilabDouble([408.2166),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([28,1,0]),to: new ScilabDouble([2,1,1])}));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([222.54128),yy: new ScilabDouble([408.2166),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([28,2,0]),to: new ScilabDouble([24,3,1])}));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([219.57282),yy: new ScilabDouble([477.46506),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([24,1,0]),to: new ScilabDouble([21,1,1])}));
+ scs_m.objs.push(scicos_block(gui="SELECT_m",graphics=scicos_graphics(orig=[298.86371,253.57321],sz=[40,40],flip=%t,theta=0,exprs=["5";"2";"1"],pin=[33;40],pout=34,pein=[43;44],peout=[],gr_i=[],id="",in_implicit=["E";"E"],out_implicit="E"),model=scicos_model(sim=list("selector_m",4),in1=[-1;-1],in2=[-2;-2],intyp=[5;5],out=-1,out2=-2,outtyp=5,evtin=[1;1],evtout=[],state=[],dstate=1,odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([282.29299),yy: new ScilabDouble([280.24498),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([4,1,0]),to: new ScilabDouble([32,1,1])}));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([347.43514),yy: new ScilabDouble([273.57321),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([32,1,0]),to: new ScilabDouble([35,1,1])}));
+ scs_m.objs.push(scicos_block(gui="SPLIT_f",graphics=scicos_graphics(orig=[357.57328,280.83282],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=34,pout=[36;37],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=["E";"E";"E"]),model=scicos_model(sim="lsplit",in1=-1,in2=[],intyp=1,out=[-1;-1;-1],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([357.57328),yy: new ScilabDouble([280.83282),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([35,1,0]),to: new ScilabDouble([7,1,1])}));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([357.57328),yy: new ScilabDouble([280.83282),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([35,2,0]),to: new ScilabDouble([14,1,1])}));
+ scs_m.objs.push(scicos_block(gui="SPLIT_f",graphics=scicos_graphics(orig=[140.34523;273.49157],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=6,pout=[39;40],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=["E";"E";"E"]),model=scicos_model(sim="lsplit",in1=-1,in2=[],intyp=1,out=[-1;-1;-1],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([140.34523),yy: new ScilabDouble([273.49157),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([38,1,0]),to: new ScilabDouble([3,2,1])}));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([140.34523),yy: new ScilabDouble([273.49157),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([38,2,0]),to: new ScilabDouble([32,2,1])}));
+ scs_m.objs.push(scicos_block(gui="CLKSPLIT_f",graphics=scicos_graphics(orig=[253.72572;309.29537],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=[],pout=[],pein=17,peout=[42;43],gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim="split",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=1,evtout=[1;1],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="d",firing=[%f,%f,%f],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([253.72572),yy: new ScilabDouble([309.29537),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([41,1,0]),to: new ScilabDouble([4,1,1])}));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([253.72572),yy: new ScilabDouble([309.29537),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([41,2,0]),to: new ScilabDouble([32,1,1])}));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([279.98293),yy: new ScilabDouble([372.50232),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([2,2,0]),to: new ScilabDouble([32,2,1])}));
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["csuper"]);
+ model.in1 = new ScilabDouble([1],[1],[1]);
+ model.in2 = new ScilabDouble([1],[1],[1]);
+ model.out = new ScilabDouble([1],[1]);
+ model.out2 = new ScilabDouble([1],[1]);
+ model.intyp = new ScilabDouble([5,1,1]);
+ model.outtyp = new ScilabDouble([5,5]);
+ model.blocktype = new ScilabString(["h"]);
+ model.firing = new ScilabBoolean([false]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+ model.rpar=scs_m;
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,3]),model,[],gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/DIFF_f.js b/history/data_structures/DIFF_f.js
new file mode 100644
index 0000000..18b0711
--- /dev/null
+++ b/history/data_structures/DIFF_f.js
@@ -0,0 +1,19 @@
+function DIFF_f () {
+
+
+ var x0 = [[0],[0]];
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["diffblk"]),new ScilabDouble([10001]));
+ model.in1 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.state=new ScilabDouble([x0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,true]);
+
+ var exprs = [[strcat(sci2exp(x0(1)))],[strcat(sci2exp(x0(2)))]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/DLATCH.js b/history/data_structures/DLATCH.js
new file mode 100644
index 0000000..f2d9e89
--- /dev/null
+++ b/history/data_structures/DLATCH.js
@@ -0,0 +1,41 @@
+function DLATCH () {
+
+
+ var scs_m = scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[600,450,0,0,600,450],Title=["DLATCH"],tol=[0.0001,0.000001,1.000E-10,100001,0,0],tf=100000,context=" ",void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list()));
+ scs_m.objs.push(scicos_block(gui="CONST_m",graphics=scicos_graphics(orig=[109.62561,263.44465],sz=[20;20],flip=%t,theta=0,exprs="int8(0)",pin=[],pout=7,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim=list("cstblk4_m",4),in1=[],in2=[],intyp=1,out=1,out2=1,outtyp=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(new ScilabInteger([0])),blocktype="d",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_block(gui="IFTHEL_f",graphics=scicos_graphics(orig=[233.37693,320.30536],sz=[60,60],flip=%t,theta=0,exprs=["0";"1"],pin=13,pout=[],pein=[],peout=[6;0],gr_i=list(["txt=[''If,in>0'';'','';'',then, , else'']";"xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');"],8),id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim=list("ifthel",-1),in1=1,in2=1,intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[1;1],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="l",firing=[-1,-1],dep_ut=[%t,%f],label="",nzcross=1,nmode=1,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_block(gui="LOGICAL_OP",graphics=scicos_graphics(orig=[152.88902,260.24498],sz=[60,40],flip=%t,theta=0,exprs=["2";"1";"5";"0"],pin=[15;7],pout=5,pein=[],peout=[],gr_i=list("xstringb(orig(1),orig(2),[''Logical,Op,'';OPER],sz(1),sz(2),''fill'');",8),id="",in_implicit=["E";"E"],out_implicit="E"),model=scicos_model(sim=list("logicalop_i8",4),in1=[-1;-1],in2=[-2;-2],intyp=[5;5],out=-1,out2=-2,outtyp=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[1;0],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_block(gui="SAMPHOLD_m",graphics=scicos_graphics(orig=[233.72156,260.24498],sz=[40,40],flip=%t,theta=0,exprs="5",pin=5,pout=9,pein=6,peout=[],gr_i=list("xstringb(orig(1),orig(2),''S/H'',sz(1),sz(2),''fill'')",8),id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("samphold4_m",4),in1=-1,in2=-2,intyp=5,out=-1,out2=-2,outtyp=5,evtin=1,evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="d",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([221.46044),yy: new ScilabDouble([280.24498),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([3,1,0]),to: new ScilabDouble([4,1,1])}));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([253.37693),yy: new ScilabDouble([314.59108),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([2,1,0]),to: new ScilabDouble([4,1,1])}));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([138.19704),yy: new ScilabDouble([273.44465),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([3,2,1])}));
+ scs_m.objs.push(scicos_block(gui="LOGICAL_OP",graphics=scicos_graphics(orig=[317.46698,309.46812],sz=[60,40],flip=%t,theta=0,exprs=["1";"5";"5";"0"],pin=11,pout=17,pein=[],peout=[],gr_i=list("xstringb(orig(1),orig(2),[''Logical,Op,'';OPER],sz(1),sz(2),''fill'');",8),id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("logicalop_i8",4),in1=-1,in2=-2,intyp=5,out=-1,out2=-2,outtyp=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[5;0],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([282.29299),yy: new ScilabDouble([280.24498),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([4,1,0]),to: new ScilabDouble([10,1,1])}));
+ scs_m.objs.push(scicos_block(gui="SPLIT_f",graphics=scicos_graphics(orig=[305.09603,280.83282],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=9,pout=[11;19],pein=[],peout=[],gr_i=list([],8),id="",in_implicit="E",out_implicit=["E";"E";"E"]),model=scicos_model(sim="lsplit",in1=-1,in2=[],intyp=1,out=[-1;-1;-1],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([305.09603),yy: new ScilabDouble([280.83282),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([10,1,0]),to: new ScilabDouble([8,1,1])}));
+ scs_m.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[184.8055,340.30536],sz=[20,20],flip=%t,theta=0,exprs="2",pin=[],pout=13,pein=[],peout=[],gr_i=list(" ",8),id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=2,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([204.8055),yy: new ScilabDouble([350.30536),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([12,1,0]),to: new ScilabDouble([2,1,1])}));
+ scs_m.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[104.31759,276.91165],sz=[20,20],flip=%t,theta=0,exprs="1",pin=[],pout=15,pein=[],peout=[],gr_i=list(" ",8),id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([124.31759),yy: new ScilabDouble([286.91165),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([14,1,0]),to: new ScilabDouble([3,1,1])}));
+ scs_m.objs.push(scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[406.03841,319.46812],sz=[20,20],flip=%t,theta=0,exprs="2",pin=17,pout=[],pein=[],peout=[],gr_i=list(" ",8),id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=[],intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=2,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([386.03841),yy: new ScilabDouble([329.46812),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([8,1,0]),to: new ScilabDouble([16,1,1])}));
+ scs_m.objs.push(scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[325.09603,270.83282],sz=[20,20],flip=%t,theta=0,exprs="1",pin=19,pout=[],pein=[],peout=[],gr_i=list(" ",8),id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=[],intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([305.09603),yy: new ScilabDouble([280.83282),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([10,2,0]),to: new ScilabDouble([18,1,1])}));
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["csuper"]);
+ model.in1 = new ScilabDouble([1],[1]);
+ model.in2 = new ScilabDouble([1],[1]);
+ model.out = new ScilabDouble([1],[1]);
+ model.out2 = new ScilabDouble([1],[1]);
+ model.intyp = new ScilabDouble([5,-1]);
+ model.outtyp = new ScilabDouble([5,5]);
+ model.blocktype = new ScilabString(["h"]);
+ model.firing = new ScilabBoolean([false]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+ model.rpar=scs_m;
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,3]),model,[],gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/DLR.js b/history/data_structures/DLR.js
new file mode 100644
index 0000000..a42f9d9
--- /dev/null
+++ b/history/data_structures/DLR.js
@@ -0,0 +1,29 @@
+function DLR () {
+
+
+ var x0 = 0;
+
+ var A = -1;
+
+ var B = 1;
+
+ var C = 1;
+
+ var D = 0;
+
+ var exprs = ["1";"1+z"];
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["dsslti4"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble([1]);
+ model.dstate=...x0;
+ model.rpar = new ScilabDouble([...colon_operator(A,:)],[...B],[C(,)],[...D]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/DLRADAPT_f.js b/history/data_structures/DLRADAPT_f.js
new file mode 100644
index 0000000..08e7047
--- /dev/null
+++ b/history/data_structures/DLRADAPT_f.js
@@ -0,0 +1,33 @@
+function DLRADAPT_f () {
+
+
+ var p = [[0],[1]];
+
+ var rn = [];
+
+ var rd = [[0.2+0.8*%i,0.2-0.8*%i],[0.3+0.7*%i,0.3-0.7*%i]];
+
+ var g = [[1],[1]];
+
+ var last_u = [];
+
+ var last_y = [[0],[0]];
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["dlradp"]);
+ model.in1 = new ScilabDouble([1],[1]);
+ model.out = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble([last_u],[last_y]);
+ model.rpar = new ScilabDouble([...colon_operator(p,:)],[real(...rn)],[imag(...rn)],[real(...rd)],[imag(rd(,))],[...g]);
+ model.ipar = new ScilabDouble([0],[2],[2]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[sci2exp(p)],[sci2exp(rn)],[sci2exp(rd,0)],[sci2exp(g)],[sci2exp(last_u)],[sci2exp(last_y)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/DLSS.js b/history/data_structures/DLSS.js
new file mode 100644
index 0000000..e946ae2
--- /dev/null
+++ b/history/data_structures/DLSS.js
@@ -0,0 +1,29 @@
+function DLSS () {
+
+
+ var x0 = 0;
+
+ var A = -1;
+
+ var B = 1;
+
+ var C = 1;
+
+ var D = 0;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["dsslti4"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble([1]);
+ model.dstate=...x0;
+ model.rpar = new ScilabDouble([...colon_operator(A,:)],[...B],[C(,)],[...D]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = [[strcat(sci2exp(A))],[strcat(sci2exp(B))],[strcat(sci2exp(C))],[strcat(sci2exp(D))],[strcat(sci2exp(x0))]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/DOLLAR.js b/history/data_structures/DOLLAR.js
new file mode 100644
index 0000000..b88da24
--- /dev/null
+++ b/history/data_structures/DOLLAR.js
@@ -0,0 +1,24 @@
+function DOLLAR () {
+
+
+ var z = 0;
+
+ var inh = 0;
+
+ var in1 = 1;
+
+ var exprs = string([z],[inh]);
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["dollar4"]),new ScilabDouble([4]));
+ model.in1.push(new ScilabDouble([in1]));
+ model.out=new ScilabDouble([in1]);
+ model.evtin = new ScilabDouble([1-inh]);
+ model.dstate=new ScilabDouble([z]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/DOLLAR_f.js b/history/data_structures/DOLLAR_f.js
new file mode 100644
index 0000000..19d03d4
--- /dev/null
+++ b/history/data_structures/DOLLAR_f.js
@@ -0,0 +1,24 @@
+function DOLLAR_f () {
+
+
+ var z = 0;
+
+ var inh = 0;
+
+ var in1 = 1;
+
+ var exprs = string([z],[inh]);
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["dollar"]);
+ model.in1.push(new ScilabDouble([in1]));
+ model.out=new ScilabDouble([in1]);
+ model.evtin = new ScilabDouble([1-inh]);
+ model.dstate=new ScilabDouble([z]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/DOLLAR_m.js b/history/data_structures/DOLLAR_m.js
new file mode 100644
index 0000000..155f35b
--- /dev/null
+++ b/history/data_structures/DOLLAR_m.js
@@ -0,0 +1,24 @@
+function DOLLAR_m () {
+
+
+ var z = 0;
+
+ var inh = 0;
+
+ var in1 = 1;
+
+ var exprs = string([z],[inh]);
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["dollar4"]),new ScilabDouble([4]));
+ model.in1.push(new ScilabDouble([in1]));
+ model.out=new ScilabDouble([in1]);
+ model.evtin = new ScilabDouble([1-inh]);
+ model.dstate=new ScilabDouble([z]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/Diode.js b/history/data_structures/Diode.js
new file mode 100644
index 0000000..3c2d979
--- /dev/null
+++ b/history/data_structures/Diode.js
@@ -0,0 +1,34 @@
+function Diode () {
+
+
+ var Ids = 1.e-6;
+
+ var Vt = 0.04;
+
+ var Maxexp = 15;
+
+ var R = 1.e8;
+
+ var model = scicos_model();
+ model.rpar = new ScilabDouble([Ids],[Vt],[Maxexp],[R]);
+ model.in1 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.sim = new ScilabString(["Diode"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var mo = modelica();
+ mo.model = new ScilabString(["Diode"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["n"]);
+ mo.parameters=list(new ScilabString(["Ids"),new ScilabString(["Vt"]),new ScilabString(["Maxexp"]),new ScilabString(["R"]]),list(Ids,Vt,Maxexp,R));
+ model.equations=mo;
+
+ var exprs = string([Ids],[Vt],[Maxexp],[R]);
+
+ var gr_i = [];
+ this.x=standard_define([2,1],model,exprs,list(gr_i,0));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/EDGE_TRIGGER.js b/history/data_structures/EDGE_TRIGGER.js
new file mode 100644
index 0000000..0ca790b
--- /dev/null
+++ b/history/data_structures/EDGE_TRIGGER.js
@@ -0,0 +1,87 @@
+function EDGE_TRIGGER () {
+
+
+ var scs_m_1 = scicos_diagram();
+ scs_m_1.objs.push(EDGETRIGGER("define"));
+ scs_m_1.objs.push(IFTHEL_f("define"));
+ scs_m_1.objs.push(IN_f("define"));
+ scs_m_1.objs.push(CLKOUTV_f("define"));
+ scs_m_1.objs.push(scicos_link({}));
+ scs_m_1.objs.push(scicos_link({}));
+ scs_m_1.objs.push(scicos_link({}));
+
+ var blk = scs_m_1.objs(1);
+
+ var graphics = blk.graphics;
+
+ var model = blk.model;
+ graphics.orig = new ScilabDouble([60,0]);
+ graphics.sz = new ScilabDouble([60,40]);
+ graphics.exprs = new ScilabString(["0"]);
+ model.ipar = new ScilabDouble([0]);
+ graphics.pin = new ScilabDouble([5]);
+ graphics.pout = new ScilabDouble([6]);
+ blk.graphics=graphics;
+ blk.model=model;
+ scs_m_1.objs.push(blk);
+ blk=scs_m_1.objs(2);
+ graphics=blk.graphics;
+ model=blk.model;
+ graphics.orig = new ScilabDouble([160,0]);
+ graphics.sz = new ScilabDouble([60,40]);
+ graphics.exprs = new ScilabString(["0";"0"]);
+ model.evtin = new ScilabDouble();
+ model.nzcross = new ScilabDouble([0]);
+ model.nmode = new ScilabDouble([0]);
+ graphics.pin = new ScilabDouble([6]);
+ graphics.peout = new ScilabDouble([7],[0]);
+ blk.graphics=graphics;
+ blk.model=model;
+ scs_m_1.objs.push(blk);
+ blk=scs_m_1.objs(3);
+ graphics=blk.graphics;
+ model=blk.model;
+ graphics.orig = new ScilabDouble([0,10]);
+ graphics.sz = new ScilabDouble([20,20]);
+ graphics.exprs = new ScilabString(["1"]);
+ model.ipar = new ScilabDouble([1]);
+ graphics.pout = new ScilabDouble([5]);
+ blk.graphics=graphics;
+ blk.model=model;
+ scs_m_1.objs.push(blk);
+ blk=scs_m_1.objs(4);
+ graphics=blk.graphics;
+ model=blk.model;
+ graphics.orig = new ScilabDouble([170,-60]);
+ graphics.sz = new ScilabDouble([20,20]);
+ graphics.exprs = new ScilabString(["1"]);
+ model.ipar = new ScilabDouble([1]);
+ graphics.pein = new ScilabDouble([7]);
+ blk.graphics=graphics;
+ blk.model=model;
+ scs_m_1.objs.push(blk);
+
+ var lnk = scs_m_1.objs(5);
+ lnk.from = new ScilabDouble([3,1,0]);
+ lnk.to = new ScilabDouble([1,1,1]);
+ scs_m_1.objs.push(lnk);
+ lnk=scs_m_1.objs(6);
+ lnk.from = new ScilabDouble([1,1,0]);
+ lnk.to = new ScilabDouble([2,1,1]);
+ scs_m_1.objs.push(lnk);
+ lnk=scs_m_1.objs(7);
+ lnk.ct = new ScilabDouble([5,-1]);
+ lnk.from = new ScilabDouble([2,1,0]);
+ lnk.to = new ScilabDouble([4,1,1]);
+ scs_m_1.objs.push(lnk);
+ clear blk lnk
+ model=scicos_model();
+ model.sim = new ScilabString(["csuper"]);
+ model.in1 = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble([1]);
+ model.rpar=scs_m_1;
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,[],gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/ENDBLK.js b/history/data_structures/ENDBLK.js
new file mode 100644
index 0000000..cc253ef
--- /dev/null
+++ b/history/data_structures/ENDBLK.js
@@ -0,0 +1,13 @@
+function ENDBLK () {
+
+
+ var scs_m_1 = scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[-159.096,811.104,-121.216,617.984,1323,1008,331,284,630,480,0,7,1.4],Title="ENDBLK",tol=[0.0001,0.000001,1.000E-10,100001,0,0],tf=100000,context=" ",void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list()));
+ scs_m_1.objs.push(scicos_block(gui="END_c",graphics=scicos_graphics(orig=[272.104,249.11733],sz=[40,40],flip=%t,theta=0,exprs="1.000E+08",pin=[],pout=[],pein=2,peout=2,gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim=list("scicosexit",4),in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=1,evtout=1,state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="d",firing=1.000E+08,dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([292.104),yy: new ScilabDouble([243.40305),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([1,1,1])}));
+
+ var model = scicos_model(sim="csuper",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=scs_m_1,ipar=[],opar=list(),blocktype="h",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list());
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,[],gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/END_c.js b/history/data_structures/END_c.js
new file mode 100644
index 0000000..027d6ca
--- /dev/null
+++ b/history/data_structures/END_c.js
@@ -0,0 +1,19 @@
+function END_c () {
+
+
+ var tf = 100000000;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["scicosexit"]),new ScilabDouble([4]));
+ model.evtin = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble([1]);
+ model.firing=new ScilabDouble([tf]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = string(tf);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/ESELECT_f.js b/history/data_structures/ESELECT_f.js
new file mode 100644
index 0000000..7831538
--- /dev/null
+++ b/history/data_structures/ESELECT_f.js
@@ -0,0 +1,24 @@
+function ESELECT_f () {
+
+
+ var out = 2;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["eselect"]),new ScilabDouble([-2]));
+ model.in1 = new ScilabDouble([1]);
+ model.in2 = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([-1]);
+ model.evtin = new ScilabDouble([1]);
+ model.evtout=ones(out,1);
+ model.blocktype = new ScilabString(["l"]);
+ model.firing=-ones(out,1);
+ model.dep_ut = new ScilabBoolean([true,false]);
+ model.nmode = new ScilabDouble([0]);
+ model.nzcross = new ScilabDouble([0]);
+
+ var gr_i = [];
+
+ var exprs = [[string(out)],[string(1)],[string(model.nmode)]];
+ this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/EVTDLY_c.js b/history/data_structures/EVTDLY_c.js
new file mode 100644
index 0000000..7ada20f
--- /dev/null
+++ b/history/data_structures/EVTDLY_c.js
@@ -0,0 +1,22 @@
+function EVTDLY_c () {
+
+
+ var dt = 0.1;
+
+ var ff = 0.0;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["evtdly4"]),new ScilabDouble([4]));
+ model.evtin = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([dt],[ff]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing=new ScilabDouble([ff]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = [[string(dt)],[sci2exp(ff)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/EVTGEN_f.js b/history/data_structures/EVTGEN_f.js
new file mode 100644
index 0000000..dc7754e
--- /dev/null
+++ b/history/data_structures/EVTGEN_f.js
@@ -0,0 +1,18 @@
+function EVTGEN_f () {
+
+
+ var tt = 0;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["trash"]);
+ model.evtout = new ScilabDouble([1]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing=new ScilabDouble([tt]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = string(tt);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/EVTVARDLY.js b/history/data_structures/EVTVARDLY.js
new file mode 100644
index 0000000..075c318
--- /dev/null
+++ b/history/data_structures/EVTVARDLY.js
@@ -0,0 +1,19 @@
+function EVTVARDLY () {
+
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["evtvardly"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble([1]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([-1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = string(model.firing);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/EXPBLK_m.js b/history/data_structures/EXPBLK_m.js
new file mode 100644
index 0000000..7cfd9af
--- /dev/null
+++ b/history/data_structures/EXPBLK_m.js
@@ -0,0 +1,25 @@
+function EXPBLK_m () {
+
+
+ var in1 = 1;
+
+ var a = %e;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["expblk_m"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.rpar=new ScilabBoolean([a]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = ["%e"];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/EXPRESSION.js b/history/data_structures/EXPRESSION.js
new file mode 100644
index 0000000..aad864c
--- /dev/null
+++ b/history/data_structures/EXPRESSION.js
@@ -0,0 +1,28 @@
+function EXPRESSION () {
+
+
+ var in1 = [[1],[1]];
+
+ var out = 1;
+
+ var txt = "(u1>0)*sin(u2)^2";
+ deff("%foo(u1,u2)",txt)
+
+ var [%ok1,ipar,rpar,nz] = compile_expr(%foo);
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["evaluate_expr"]),new ScilabDouble([4]));
+ model.in1.push(new ScilabDouble([in1]));
+ model.out=new ScilabDouble([out]);
+ model.rpar=rpar;
+ model.ipar=ipar;
+ model.nzcross=nz;
+ model.nmode=nz;
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [string(size(in1,"*"));txt;"1"];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([5,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/EXTRACT.js b/history/data_structures/EXTRACT.js
new file mode 100644
index 0000000..71f82b7
--- /dev/null
+++ b/history/data_structures/EXTRACT.js
@@ -0,0 +1,31 @@
+function EXTRACT () {
+
+
+ var model = scicos_model();
+
+ var function_name = "extract";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble([1,1,1,1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = [[sci2exp(1)],[sci2exp([1])],[sci2exp([1])]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/EXTRACTBITS.js b/history/data_structures/EXTRACTBITS.js
new file mode 100644
index 0000000..a7e621b
--- /dev/null
+++ b/history/data_structures/EXTRACTBITS.js
@@ -0,0 +1,23 @@
+function EXTRACTBITS () {
+
+
+ var numb = [];
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["extract_bit_32_UH0"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([1]);
+ model.in2 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([3]);
+ model.outtyp = new ScilabDouble([3]);
+ model.ipar = new ScilabDouble([0,numb]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[sci2exp(3)],[sci2exp(1)],[sci2exp(0)],[sci2exp(0)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/EXTRACTOR.js b/history/data_structures/EXTRACTOR.js
new file mode 100644
index 0000000..fe8472d
--- /dev/null
+++ b/history/data_structures/EXTRACTOR.js
@@ -0,0 +1,19 @@
+function EXTRACTOR () {
+
+
+ var ind = 1;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["extractor"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([-1]);
+ model.out = new ScilabDouble([1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+ model.ipar=new ScilabDouble([ind]);
+
+ var exprs = [sci2exp(ind)];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/EXTTRI.js b/history/data_structures/EXTTRI.js
new file mode 100644
index 0000000..5702134
--- /dev/null
+++ b/history/data_structures/EXTTRI.js
@@ -0,0 +1,31 @@
+function EXTTRI () {
+
+
+ var model = scicos_model();
+
+ var function_name = "extrilz";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = [[sci2exp(1)],[sci2exp(1)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/Extract_Activation.js b/history/data_structures/Extract_Activation.js
new file mode 100644
index 0000000..ed98bf4
--- /dev/null
+++ b/history/data_structures/Extract_Activation.js
@@ -0,0 +1,92 @@
+function Extract_Activation () {
+
+
+ var scs_m_1 = scicos_diagram();
+ scs_m_1.objs.push(IFTHEL_f("define"));
+ scs_m_1.objs.push(CLKSOMV_f("define"));
+ scs_m_1.objs.push(IN_f("define"));
+ scs_m_1.objs.push(CLKOUTV_f("define"));
+ scs_m_1.objs.push(scicos_link({}));
+ scs_m_1.objs.push(scicos_link({}));
+ scs_m_1.objs.push(scicos_link({}));
+ scs_m_1.objs.push(scicos_link({}));
+
+ var blk = scs_m_1.objs(1);
+
+ var graphics = blk.graphics;
+
+ var model = blk.model;
+ graphics.orig = new ScilabDouble([80,0]);
+ graphics.sz = new ScilabDouble([60,40]);
+ graphics.exprs = new ScilabString(["0";"0"]);
+ model.evtin = new ScilabDouble();
+ model.nzcross = new ScilabDouble([0]);
+ model.nmode = new ScilabDouble([0]);
+ graphics.pin = new ScilabDouble([7]);
+ graphics.peout = new ScilabDouble([5],[6]);
+ blk.graphics=graphics;
+ blk.model=model;
+ scs_m_1.objs.push(blk);
+ blk=scs_m_1.objs(2);
+ graphics=blk.graphics;
+ model=blk.model;
+ graphics.orig = new ScilabDouble([80,-80]);
+ graphics.sz = new ScilabDouble([80,40]);
+ graphics.pein = new ScilabDouble([5],[6]);
+ graphics.peout = new ScilabDouble([8]);
+ blk.graphics=graphics;
+ blk.model=model;
+ scs_m_1.objs.push(blk);
+ blk=scs_m_1.objs(3);
+ graphics=blk.graphics;
+ model=blk.model;
+ graphics.orig = new ScilabDouble([0,10]);
+ graphics.sz = new ScilabDouble([20,20]);
+ graphics.exprs = new ScilabString(["1"]);
+ model.ipar = new ScilabDouble([1]);
+ graphics.pout = new ScilabDouble([7]);
+ blk.graphics=graphics;
+ blk.model=model;
+ scs_m_1.objs.push(blk);
+ blk=scs_m_1.objs(4);
+ graphics=blk.graphics;
+ model=blk.model;
+ graphics.orig = new ScilabDouble([110,-140]);
+ graphics.sz = new ScilabDouble([20,20]);
+ graphics.exprs = new ScilabString(["1"]);
+ model.ipar = new ScilabDouble([1]);
+ graphics.pein = new ScilabDouble([8]);
+ blk.graphics=graphics;
+ blk.model=model;
+ scs_m_1.objs.push(blk);
+
+ var lnk = scs_m_1.objs(5);
+ lnk.ct = new ScilabDouble([5,-1]);
+ lnk.from = new ScilabDouble([1,1,0]);
+ lnk.to = new ScilabDouble([2,1,1]);
+ scs_m_1.objs.push(lnk);
+ lnk=scs_m_1.objs(6);
+ lnk.ct = new ScilabDouble([5,-1]);
+ lnk.from = new ScilabDouble([1,2,0]);
+ lnk.to = new ScilabDouble([2,2,1]);
+ scs_m_1.objs.push(lnk);
+ lnk=scs_m_1.objs(7);
+ lnk.from = new ScilabDouble([3,1,0]);
+ lnk.to = new ScilabDouble([1,1,1]);
+ scs_m_1.objs.push(lnk);
+ lnk=scs_m_1.objs(8);
+ lnk.ct = new ScilabDouble([5,-1]);
+ lnk.from = new ScilabDouble([2,1,0]);
+ lnk.to = new ScilabDouble([4,1,1]);
+ scs_m_1.objs.push(lnk);
+ clear blk lnk
+ model=scicos_model();
+ model.sim = new ScilabString(["csuper"]);
+ model.in1 = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble([1]);
+ model.rpar=scs_m_1;
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,[],gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/FROM.js b/history/data_structures/FROM.js
new file mode 100644
index 0000000..5a5a591
--- /dev/null
+++ b/history/data_structures/FROM.js
@@ -0,0 +1,23 @@
+function FROM () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["from"]);
+ model.in1 = new ScilabDouble();
+ model.in2 = new ScilabDouble();
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.outtyp = new ScilabDouble([-1]);
+ model.ipar = new ScilabDouble();
+ model.opar=list("A");
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = ["A"];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,1]),model,exprs,gr_i);
+ this.x.graphics.id = new ScilabString(["From"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/FROMMO.js b/history/data_structures/FROMMO.js
new file mode 100644
index 0000000..e8573de
--- /dev/null
+++ b/history/data_structures/FROMMO.js
@@ -0,0 +1,27 @@
+function FROMMO () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["frommo"]);
+ model.in1 = new ScilabDouble();
+ model.in2 = new ScilabDouble();
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.outtyp = new ScilabDouble([-1]);
+ model.ipar = new ScilabDouble();
+ model.opar=list("A");
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var mo = modelica();
+ mo.model = new ScilabString(["frommo"]);
+ mo.outputs = new ScilabString(["n"]);
+
+ var exprs = ["A"];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,1]),model,exprs,gr_i);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/FROMWSB.js b/history/data_structures/FROMWSB.js
new file mode 100644
index 0000000..a610e91
--- /dev/null
+++ b/history/data_structures/FROMWSB.js
@@ -0,0 +1,15 @@
+function FROMWSB () {
+
+
+ var scs_m_1 = scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[-159.096,811.104,-121.216,617.984,1323,1008,331,284,630,480,1426,231,1.4],Title="FROMWSB",tol=[0.0001,0.000001,1.000D-10,100001,0,0],tf=100000,context=" ",void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list()));
+ scs_m_1.objs.push(scicos_block(gui="FROMWS_c",graphics=scicos_graphics(orig=[260.37067,261.584],sz=[70,40],flip=%t,theta=0,exprs=["V";"1";"1";"0"],pin=[],pout=4,pein=2,peout=2,gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim=list("fromws_c",4),in1=[],in2=[],intyp=1,out=-1,out2=-2,outtyp=-1,evtin=1,evtout=1,state=[],dstate=[],odstate=list(),rpar=[],ipar=[1;-31;1;1;0],opar=list(),blocktype="d",firing=0,dep_ut=[%f,%t],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([295.37067),yy: new ScilabDouble([255.86971),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([1,1,1])}));
+ scs_m_1.objs.push(scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[358.9421,271.584],sz=[20,20],flip=%t,theta=0,exprs="1",pin=4,pout=[],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=-2,intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([338.9421),yy: new ScilabDouble([281.584),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([3,1,1])}));
+
+ var model = scicos_model(sim="csuper",in1=[],in2=[],intyp=1,out=-1,out2=-2,outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=scs_m_1,ipar=[],opar=list(),blocktype="h",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list());
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([5,2]),model,[],gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/Flowmeter.js b/history/data_structures/Flowmeter.js
new file mode 100644
index 0000000..b17778b
--- /dev/null
+++ b/history/data_structures/Flowmeter.js
@@ -0,0 +1,30 @@
+function Flowmeter () {
+
+
+ var ModelName = "Flowmeter";
+
+ var PrametersValue = 1;
+
+ var ParametersName = "Qini";
+
+ var model = scicos_model();
+
+ var Typein = [];
+
+ var Typeout = [];
+
+ var MI = [];
+
+ var MO = [];
+
+ var P = [[50,105,-1,90],[0,10,2,0],[101,10,-2,0]];
+
+ var PortName = ["Mesure";"C1";"C2"];
+
+ var for i = 1:size(P,"r");
+
+ var if P(i,3) = =1, then;
+ Typein = new ScilabDouble([Typein;,"E"]);
+ MI = new ScilabDouble([MI],[PortName(i)]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/GAINBLK.js b/history/data_structures/GAINBLK.js
new file mode 100644
index 0000000..c16da52
--- /dev/null
+++ b/history/data_structures/GAINBLK.js
@@ -0,0 +1,25 @@
+function GAINBLK () {
+
+
+ var gain = 1;
+
+ var in1 = -1],[out=-1;
+
+ var in2 = -2],[out2=-2;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["gainblk"]),new ScilabDouble([4]));
+ model.in1.push(new ScilabDouble([in1]));
+ model.out=out;
+ model.in2.push(new ScilabDouble([in2]));
+ model.out2.push(out2);
+ model.rpar=new ScilabDouble([gain]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [strcat(sci2exp(gain))];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/GAINBLK_f.js b/history/data_structures/GAINBLK_f.js
new file mode 100644
index 0000000..bb31112
--- /dev/null
+++ b/history/data_structures/GAINBLK_f.js
@@ -0,0 +1,21 @@
+function GAINBLK_f () {
+
+
+ var gain = 1;
+
+ var in1 = 1],[out=1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["gain"]);
+ model.in1.push(new ScilabDouble([in1]));
+ model.out=out;
+ model.rpar=new ScilabDouble([gain]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [strcat(sci2exp(gain))];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/GAIN_f.js b/history/data_structures/GAIN_f.js
new file mode 100644
index 0000000..0b78d54
--- /dev/null
+++ b/history/data_structures/GAIN_f.js
@@ -0,0 +1,19 @@
+function GAIN_f () {
+
+
+ var gain = 1],[in1=1],[out=1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["gain"]);
+ model.in1 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar=new ScilabDouble([gain]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[strcat(sci2exp(gain))],[strcat(sci2exp(in1))],[strcat(sci2exp(out))]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/GENERAL_f.js b/history/data_structures/GENERAL_f.js
new file mode 100644
index 0000000..1db91b0
--- /dev/null
+++ b/history/data_structures/GENERAL_f.js
@@ -0,0 +1,25 @@
+function GENERAL_f () {
+
+
+ var rpar = [[0],[0],[0],[0]];
+
+ var in1 = 1;
+
+ var out = 1;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["zcross"]),new ScilabDouble([1]));
+ model.nzcross=new ScilabDouble([in1]);
+ model.in1.push(new ScilabDouble([in1]));
+ model.evtout=ones(out,1);
+ model.rpar = new ScilabDouble([0],[0],[0],[0]);
+ model.blocktype = new ScilabString(["z"]);
+ model.firing=-ones(out,1);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[strcat(sci2exp(in1))],[strcat(sci2exp(out))]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/GENSIN_f.js b/history/data_structures/GENSIN_f.js
new file mode 100644
index 0000000..13638df
--- /dev/null
+++ b/history/data_structures/GENSIN_f.js
@@ -0,0 +1,21 @@
+function GENSIN_f () {
+
+
+ var rpar = [[1],[1],[0]];
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["gensin"]);
+ model.in1 = new ScilabDouble();
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([1],[1],[0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,true]);
+
+ var exprs = [[string(rpar(1))],[string(rpar(2))],[string(rpar(3))]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/GENSQR_f.js b/history/data_structures/GENSQR_f.js
new file mode 100644
index 0000000..e4d52e1
--- /dev/null
+++ b/history/data_structures/GENSQR_f.js
@@ -0,0 +1,21 @@
+function GENSQR_f () {
+
+
+ var Amplitude = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["gensqr"]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble([1]);
+ model.dstate=new ScilabDouble([Amplitude]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = string(Amplitude);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/GOTO.js b/history/data_structures/GOTO.js
new file mode 100644
index 0000000..9c0c19b
--- /dev/null
+++ b/history/data_structures/GOTO.js
@@ -0,0 +1,23 @@
+function GOTO () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["goto"]);
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([-1]);
+ model.out = new ScilabDouble();
+ model.out2 = new ScilabDouble();
+ model.outtyp = new ScilabDouble([1]);
+ model.ipar=int(1);
+ model.opar=list("A");
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = [["A"],[sci2exp(1)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,1]),model,exprs,gr_i);
+ this.x.graphics.id = new ScilabString(["Goto"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/GOTOMO.js b/history/data_structures/GOTOMO.js
new file mode 100644
index 0000000..70a1907
--- /dev/null
+++ b/history/data_structures/GOTOMO.js
@@ -0,0 +1,27 @@
+function GOTOMO () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["gotomo"]);
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble();
+ model.out = new ScilabDouble();
+ model.out2 = new ScilabDouble();
+ model.outtyp = new ScilabDouble([1]);
+ model.ipar=int(1);
+ model.opar=list("A");
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var mo = modelica();
+ mo.model = new ScilabString(["gotomo"]);
+ mo.inputs = new ScilabString(["p"]);
+
+ var exprs = [["A"],[sci2exp(1)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,1]),model,exprs,gr_i);
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/GotoTagVisibility.js b/history/data_structures/GotoTagVisibility.js
new file mode 100644
index 0000000..27c4d72
--- /dev/null
+++ b/history/data_structures/GotoTagVisibility.js
@@ -0,0 +1,23 @@
+function GotoTagVisibility () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["gototagvisibility"]);
+ model.in1 = new ScilabDouble();
+ model.in2 = new ScilabDouble();
+ model.out = new ScilabDouble();
+ model.out2 = new ScilabDouble();
+ model.evtin = new ScilabDouble();
+ model.intyp = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.opar=list("A");
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabBoolean([false]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = "A";
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/GotoTagVisibilityMO.js b/history/data_structures/GotoTagVisibilityMO.js
new file mode 100644
index 0000000..8ede428
--- /dev/null
+++ b/history/data_structures/GotoTagVisibilityMO.js
@@ -0,0 +1,23 @@
+function GotoTagVisibilityMO () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["gototagvisibilitymo"]);
+ model.in1 = new ScilabDouble();
+ model.in2 = new ScilabDouble();
+ model.out = new ScilabDouble();
+ model.out2 = new ScilabDouble();
+ model.evtin = new ScilabDouble();
+ model.intyp = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.opar=list("A");
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabBoolean([false]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = "A";
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/Ground.js b/history/data_structures/Ground.js
new file mode 100644
index 0000000..53c0d1a
--- /dev/null
+++ b/history/data_structures/Ground.js
@@ -0,0 +1,23 @@
+function Ground () {
+
+
+ var model = scicos_model();
+ model.in1 = new ScilabDouble([1]);
+ model.out = new ScilabDouble();
+ model.sim = new ScilabString(["Ground"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var mo = modelica();
+ mo.model = new ScilabString(["Ground"]);
+ mo.inputs = new ScilabString(["p"]);
+ model.equations=mo;
+
+ var exprs = "";
+
+ var gr_i = [];
+ this.x=standard_define([1,1],model,exprs,list(gr_i,0));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new GroundBlock(this.x)
+}
diff --git a/history/data_structures/Gyrator.js b/history/data_structures/Gyrator.js
new file mode 100644
index 0000000..6e9b7a9
--- /dev/null
+++ b/history/data_structures/Gyrator.js
@@ -0,0 +1,30 @@
+function Gyrator () {
+
+
+ var ModelName = "Gyrator";
+
+ var PrametersValue = [[1],[1]];
+
+ var ParametersName = ["G1";"G2"];
+
+ var model = scicos_model();
+
+ var Typein = [];
+
+ var Typeout = [];
+
+ var MI = [];
+
+ var MO = [];
+
+ var P = [[2.5,90,2,0],[2.5,10,2,0],[97.5,90,-2,0],[97.5,10,-2,0]];
+
+ var PortName = ["p1";"n1";"p2";"n2"];
+
+ var for i = 1:size(P,"r");
+
+ var if P(i,3) = =1, then;
+ Typein = new ScilabDouble([Typein;,"E"]);
+ MI = new ScilabDouble([MI],[PortName(i)]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/HALT_f.js b/history/data_structures/HALT_f.js
new file mode 100644
index 0000000..7199f8c
--- /dev/null
+++ b/history/data_structures/HALT_f.js
@@ -0,0 +1,19 @@
+function HALT_f () {
+
+
+ var n = 0;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["hltblk"]);
+ model.evtin = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble([0]);
+ model.ipar = new ScilabDouble([0]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = string(n);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/HYSTHERESIS.js b/history/data_structures/HYSTHERESIS.js
new file mode 100644
index 0000000..22f72d0
--- /dev/null
+++ b/history/data_structures/HYSTHERESIS.js
@@ -0,0 +1,27 @@
+function HYSTHERESIS () {
+
+
+ var in1 = 1;
+
+ var ipar = [0];
+
+ var nzz = 2;
+
+ var rpar = [[1],[0],[1],[0]];
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["hystheresis"]),new ScilabDouble([4]));
+ model.in1.push(new ScilabDouble([in1]));
+ model.out = new ScilabDouble([1]);
+ model.rpar=new ScilabDouble([rpar]);
+ model.nzcross=new ScilabDouble([nzz]);
+ model.nmode = new ScilabDouble([1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[string(rpar)],[string(sign(nzz))]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/IFTHEL_f.js b/history/data_structures/IFTHEL_f.js
new file mode 100644
index 0000000..5830a9d
--- /dev/null
+++ b/history/data_structures/IFTHEL_f.js
@@ -0,0 +1,22 @@
+function IFTHEL_f () {
+
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["ifthel"]),new ScilabDouble([-1]));
+ model.in1 = new ScilabDouble([1]);
+ model.in2 = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([-1]);
+ model.evtin = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble([1],[1]);
+ model.blocktype = new ScilabString(["l"]);
+ model.firing = new ScilabDouble([-1,-1]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+ model.nmode = new ScilabDouble([1]);
+ model.nzcross = new ScilabDouble([1]);
+
+ var gr_i = [];
+
+ var exprs = [[string(model.in1)],[string(model.nmode)]];
+ this.x=new standard_define(new ScilabDouble([3,3]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/INIMPL_f.js b/history/data_structures/INIMPL_f.js
new file mode 100644
index 0000000..968ebb3
--- /dev/null
+++ b/history/data_structures/INIMPL_f.js
@@ -0,0 +1,25 @@
+function INIMPL_f () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["inimpl"]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([1]);
+ model.ipar = new ScilabDouble([1]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+ model.blocktype = new ScilabString(["c"]);
+
+ var mo = modelica();
+ mo.model = new ScilabString(["PORT"]);
+ mo.outputs = new ScilabString(["n"]);
+ model.equations=mo;
+
+ var prt = 1;
+
+ var exprs = "1";
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new ImplicitInBlock(this.x)
+}
diff --git a/history/data_structures/INTEGRAL_f.js b/history/data_structures/INTEGRAL_f.js
new file mode 100644
index 0000000..70589f4
--- /dev/null
+++ b/history/data_structures/INTEGRAL_f.js
@@ -0,0 +1,19 @@
+function INTEGRAL_f () {
+
+
+ var x0 = 0;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["integr"]);
+ model.in1 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.state=new ScilabDouble([x0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,true]);
+
+ var exprs = strcat(sci2exp(x0));
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/INTEGRAL_m.js b/history/data_structures/INTEGRAL_m.js
new file mode 100644
index 0000000..1606b27
--- /dev/null
+++ b/history/data_structures/INTEGRAL_m.js
@@ -0,0 +1,26 @@
+function INTEGRAL_m () {
+
+
+ var maxp = 1;
+
+ var minp = -1;
+
+ var rpar = [];
+
+ var model = scicos_model();
+ model.state = new ScilabDouble([0]);
+ model.sim=list(new ScilabString(["integral_func"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.in2 = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.rpar=rpar;
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,true]);
+
+ var exprs = string([0],[0],[0],[maxp],[minp]);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/INTMUL.js b/history/data_structures/INTMUL.js
new file mode 100644
index 0000000..b741d3e
--- /dev/null
+++ b/history/data_structures/INTMUL.js
@@ -0,0 +1,24 @@
+function INTMUL () {
+
+
+ var sgn = 0;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["matmul_i32"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([-1],[-2]);
+ model.out = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2],[-3]);
+ model.out2 = new ScilabDouble([-3]);
+ model.intyp = new ScilabDouble([3,3]);
+ model.outtyp = new ScilabDouble([3]);
+ model.rpar = new ScilabDouble();
+ model.ipar=new ScilabDouble([sgn]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[sci2exp(3)],[sci2exp(0)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/INTRP2BLK_f.js b/history/data_structures/INTRP2BLK_f.js
new file mode 100644
index 0000000..a70bdec
--- /dev/null
+++ b/history/data_structures/INTRP2BLK_f.js
@@ -0,0 +1,24 @@
+function INTRP2BLK_f () {
+
+
+ var a = [[0],[1]];
+
+ var b = [[0],[1]];
+
+ var c = [[0,1],[1,2]];
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["intrp2"]),new ScilabDouble([1]));
+ model.in1 = new ScilabDouble([1],[1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([a],[b],[...c]);
+ model.ipar = new ScilabDouble([2],[2]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[strcat(sci2exp(a))],[strcat(sci2exp(b))],[strcat(sci2exp(c,0))]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/INTRPLBLK_f.js b/history/data_structures/INTRPLBLK_f.js
new file mode 100644
index 0000000..4cfc3f4
--- /dev/null
+++ b/history/data_structures/INTRPLBLK_f.js
@@ -0,0 +1,21 @@
+function INTRPLBLK_f () {
+
+
+ var a = [[0],[1]];
+
+ var b = [[0],[1]];
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["intrpl"]);
+ model.in1 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([a],[b]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[strcat(sci2exp(a))],[strcat(sci2exp(b))]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/INVBLK.js b/history/data_structures/INVBLK.js
new file mode 100644
index 0000000..f99b5c7
--- /dev/null
+++ b/history/data_structures/INVBLK.js
@@ -0,0 +1,18 @@
+function INVBLK () {
+
+
+ var in1 = -1;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["invblk4"]),new ScilabDouble([4]));
+ model.in1.push(new ScilabDouble([in1]));
+ model.out=new ScilabDouble([in1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = " ";
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/IN_f.js b/history/data_structures/IN_f.js
new file mode 100644
index 0000000..8b39f0b
--- /dev/null
+++ b/history/data_structures/IN_f.js
@@ -0,0 +1,20 @@
+function IN_f () {
+
+
+ var prt = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["input"]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.outtyp = new ScilabDouble([-1]);
+ model.ipar=new ScilabDouble([prt]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = sci2exp(prt);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i);
+ return new ExplicitInBlock(this.x)
+}
diff --git a/history/data_structures/ISELECT_m.js b/history/data_structures/ISELECT_m.js
new file mode 100644
index 0000000..63322de
--- /dev/null
+++ b/history/data_structures/ISELECT_m.js
@@ -0,0 +1,31 @@
+function ISELECT_m () {
+
+
+ var z0 = 1;
+
+ var nout = 2;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["selector_m"]),new ScilabDouble([4]));
+ model.out = new ScilabDouble([-1],[-1]);
+ model.out2 = new ScilabDouble([-2],[-2]);
+ model.outtyp = new ScilabDouble([1]);
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.firing = new ScilabDouble();
+ model.evtin=ones(nout,1);
+ model.dstate=new ScilabDouble([z0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[sci2exp(1)],[sci2exp(nout)],[sci2exp(z0)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/IdealTransformer.js b/history/data_structures/IdealTransformer.js
new file mode 100644
index 0000000..54d38f7
--- /dev/null
+++ b/history/data_structures/IdealTransformer.js
@@ -0,0 +1,30 @@
+function IdealTransformer () {
+
+
+ var ModelName = "IdealTransformer";
+
+ var PrametersValue = [1];
+
+ var ParametersName = ["N"];
+
+ var model = scicos_model();
+
+ var Typein = [];
+
+ var Typeout = [];
+
+ var MI = [];
+
+ var MO = [];
+
+ var P = [[2.5,90,2,0],[2.5,10,2,0],[97.5,90,-2,0],[97.5,10,-2,0]];
+
+ var PortName = ["p1";"n1";"p2";"n2"];
+
+ var for i = 1:size(P,"r");
+
+ var if P(i,3) = =1, then;
+ Typein = new ScilabDouble([Typein;,"E"]);
+ MI = new ScilabDouble([MI],[PortName(i)]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/Inductor.js b/history/data_structures/Inductor.js
new file mode 100644
index 0000000..470b8db
--- /dev/null
+++ b/history/data_structures/Inductor.js
@@ -0,0 +1,28 @@
+function Inductor () {
+
+
+ var model = scicos_model();
+ model.in1 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+
+ var L = 1.d-5;
+ model.rpar=new ScilabDouble([L]);
+ model.sim = new ScilabString(["Inductor"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var mo = modelica();
+ mo.model = new ScilabString(["Inductor"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["n"]);
+ mo.parameters=list(new ScilabString(["L"]),list(L));
+ model.equations=mo;
+
+ var exprs = string(L);
+
+ var gr_i = [];
+ this.x=standard_define([2,0.9],model,exprs,list(gr_i,0));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/JKFLIPFLOP.js b/history/data_structures/JKFLIPFLOP.js
new file mode 100644
index 0000000..7de61c4
--- /dev/null
+++ b/history/data_structures/JKFLIPFLOP.js
@@ -0,0 +1,53 @@
+function JKFLIPFLOP () {
+
+
+ var scs_m = scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[600,450,0,0,600,450],Title=["JKFLIPFLOP"],tol=[0.0001;0.000001;1.000E-10;100001;0;0;0],tf=60,context=" ",void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list()));
+ scs_m.objs.push(scicos_block(gui="DOLLAR_m",graphics=scicos_graphics(orig=[299.96961,261.584],sz=[40,40],flip=%f,theta=0,exprs=["int8(0)";"1"],pin=7,pout=5,pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("dollar4_m",4),in1=1,in2=1,intyp=5,out=1,out2=1,outtyp=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(new ScilabInteger([0])),rpar=[],ipar=[],opar=list(),blocktype="d",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+
+ var scs_m_1 = scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[600,450,0,0,600,450],Title=["EDGE_TRIGGER","./"],tol=[0.0001;0.000001;1.000E-10;100001;0;0;0],tf=30,context=" ",void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list()));
+ scs_m_1.objs.push(scicos_block(gui="EDGETRIGGER",graphics=scicos_graphics(orig=[288.58631,257.1131],sz=[60,40],flip=%t,theta=0,exprs="-1",pin=5,pout=3,pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("edgetrig",4),in1=1,in2=[],intyp=1,out=1,out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=0,odstate=list(),rpar=[],ipar=-1,opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=1,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_block(gui="IFTHEL_f",graphics=scicos_graphics(orig=[388.28869,247.1131],sz=[60,60],flip=%t,theta=0,exprs=["0";"0"],pin=3,pout=[],pein=[],peout=[7;0],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim=list("ifthel",-1),in1=1,in2=[],intyp=1,out=[],out2=1,outtyp=[],evtin=[],evtout=[1;1],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="l",firing=[-1,-1],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([357.15774),yy: new ScilabDouble([277.1131),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([2,1,1])}));
+ scs_m_1.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[240.01488,267.1131],sz=[20,20],flip=%t,theta=0,exprs="1",pin=[],pout=5,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([260.01488),yy: new ScilabDouble([277.1131),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([4,1,0]),to: new ScilabDouble([1,1,1])}));
+ scs_m_1.objs.push(scicos_block(gui="CLKOUTV_f",graphics=scicos_graphics(orig=[398.28869,181.39881],sz=[20,30],flip=%t,theta=0,exprs="1",pin=[],pout=[],pein=7,peout=[],gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim="output",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=1,evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="d",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([408.28869),yy: new ScilabDouble([241.39881),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([2,1,0]),to: new ScilabDouble([6,1,1])}));
+ scs_m.objs.push(scicos_block(gui="EDGE_TRIGGER",graphics=scicos_graphics(orig=[292.52452,323.54888],sz=[60,40],flip=%t,theta=0,exprs=[],pin=14,pout=[],pein=[],peout=8,gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="csuper",in1=-1,in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=[],evtout=1,state=[],dstate=[],odstate=list(),rpar=scs_m_1,ipar=[],opar=list(),blocktype="h",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_block(gui="LOGIC",graphics=scicos_graphics(orig=[302.79613,202.52782],sz=[40,40],flip=%t,theta=0,exprs=["[0;1;1;1;0;0;1;0]";"0"],pin=[5;16;18],pout=4,pein=8,peout=[],gr_i=[],id="",in_implicit=["E";"E";"E"],out_implicit="E"),model=scicos_model(sim=list("logic",4),in1=[1;1;1],in2=[1;1;1],intyp=[5;5;5],out=1,out2=1,outtyp=5,evtin=1,evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(new ScilabInteger([[0;1;1;1;0;0;1;0]])),blocktype="c",firing=%f,dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([351.36756),yy: new ScilabDouble([222.52782),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([3,1,0]),to: new ScilabDouble([10,1,1])}));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([291.39818),yy: new ScilabDouble([281.584),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([3,1,1])}));
+ scs_m.objs.push(scicos_block(gui="SPLIT_f",graphics=scicos_graphics(orig=[368.82793,243.45067],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=11,pout=[7;20],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=["E";"E";"E"]),model=scicos_model(sim="lsplit",in1=-1,in2=[],intyp=1,out=[-1;-1;-1],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([368.82793),yy: new ScilabDouble([243.45067),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([6,1,0]),to: new ScilabDouble([1,1,1])}));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([322.52452),yy: new ScilabDouble([317.8346),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([2,1,0]),to: new ScilabDouble([3,1,1])}));
+ scs_m.objs.push(scicos_block(gui="LOGICAL_OP",graphics=scicos_graphics(orig=[377.63217,159.25363],sz=[60,40],flip=%t,theta=0,exprs=["1";"5";"5";"0"],pin=12,pout=22,pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("logicalop_i8",4),in1=-1,in2=-2,intyp=5,out=-1,out2=-2,outtyp=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[5;0],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_block(gui="SPLIT_f",graphics=scicos_graphics(orig=[368.82793;223.06473],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=4,pout=[11;12],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=["E";"E";"E"]),model=scicos_model(sim="lsplit",in1=-1,in2=[],intyp=1,out=[-1;-1;-1],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([368.82793),yy: new ScilabDouble([223.06473),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([10,1,0]),to: new ScilabDouble([6,1,1])}));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([368.82793),yy: new ScilabDouble([223.06473),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([10,2,0]),to: new ScilabDouble([9,1,1])}));
+ scs_m.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[243.95309,333.54888],sz=[20,20],flip=%t,theta=0,exprs="2",pin=[],pout=14,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=2,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([263.95309),yy: new ScilabDouble([343.54888),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([13,1,0]),to: new ScilabDouble([2,1,1])}));
+ scs_m.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[254.2247,212.52782],sz=[20,20],flip=%t,theta=0,exprs="1",pin=[],pout=16,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([274.2247),yy: new ScilabDouble([222.52782),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([15,1,0]),to: new ScilabDouble([3,2,1])}));
+ scs_m.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[254.2247,202.52782],sz=[20,20],flip=%t,theta=0,exprs="3",pin=[],pout=18,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=3,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([274.2247),yy: new ScilabDouble([212.52782),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([17,1,0]),to: new ScilabDouble([3,3,1])}));
+ scs_m.objs.push(scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[388.82793,233.45067],sz=[20,20],flip=%t,theta=0,exprs="1",pin=20,pout=[],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=[],intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([368.82793),yy: new ScilabDouble([243.45067),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([6,2,0]),to: new ScilabDouble([19,1,1])}));
+ scs_m.objs.push(scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[466.2036,169.25363],sz=[20,20],flip=%t,theta=0,exprs="2",pin=22,pout=[],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=[],intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=2,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([446.2036),yy: new ScilabDouble([179.25363),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([9,1,0]),to: new ScilabDouble([21,1,1])}));
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["csuper"]);
+ model.in1 = new ScilabDouble([1],[1],[1]);
+ model.in2 = new ScilabDouble([1],[1],[1]);
+ model.out = new ScilabDouble([1],[1]);
+ model.out2 = new ScilabDouble([1],[1]);
+ model.intyp = new ScilabDouble([5,1,5]);
+ model.outtyp = new ScilabDouble([5,5]);
+ model.blocktype = new ScilabString(["h"]);
+ model.firing = new ScilabBoolean([false]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+ model.rpar=scs_m;
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,3]),model,[],gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/LOGBLK_f.js b/history/data_structures/LOGBLK_f.js
new file mode 100644
index 0000000..728dc8a
--- /dev/null
+++ b/history/data_structures/LOGBLK_f.js
@@ -0,0 +1,21 @@
+function LOGBLK_f () {
+
+
+ var in1 = 1;
+
+ var a = %e;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["logblk"]);
+ model.in1 = new ScilabDouble([-1]);
+ model.out = new ScilabDouble([-1]);
+ model.rpar=new ScilabBoolean([a]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = "%e";
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/LOGIC.js b/history/data_structures/LOGIC.js
new file mode 100644
index 0000000..453ecae
--- /dev/null
+++ b/history/data_structures/LOGIC.js
@@ -0,0 +1,25 @@
+function LOGIC () {
+
+
+ var mat = [[0],[0],[0],[1]];
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["logic"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([1],[1]);
+ model.in2 = new ScilabDouble([1],[1]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([5,5]);
+ model.outtyp = new ScilabDouble([5]);
+ model.opar=list(new ScilabInteger([mat]));
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabBoolean([false]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[sci2exp(mat)],[sci2exp(0)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/LOGICAL_OP.js b/history/data_structures/LOGICAL_OP.js
new file mode 100644
index 0000000..5c50e07
--- /dev/null
+++ b/history/data_structures/LOGICAL_OP.js
@@ -0,0 +1,23 @@
+function LOGICAL_OP () {
+
+
+ var in1 = [[-1],[-1]];
+
+ var ipar = [0];
+
+ var nin = 2;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["logicalop"]),new ScilabDouble([4]));
+ model.in1.push(in1);
+ model.out = new ScilabDouble([-1]);
+ model.ipar=new ScilabDouble([ipar]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[string(nin)],[string(ipar)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/LOOKUP_f.js b/history/data_structures/LOOKUP_f.js
new file mode 100644
index 0000000..b31e361
--- /dev/null
+++ b/history/data_structures/LOOKUP_f.js
@@ -0,0 +1,15 @@
+function LOOKUP_f () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["lookup"]);
+ model.in1 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([-2],[-1],[1],[2],[-1],[1],[-1],[1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,[],gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MATBKSL.js b/history/data_structures/MATBKSL.js
new file mode 100644
index 0000000..94b0ede
--- /dev/null
+++ b/history/data_structures/MATBKSL.js
@@ -0,0 +1,31 @@
+function MATBKSL () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_bksl";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in1 = new ScilabDouble([-1],[-1]);
+ model.in2 = new ScilabDouble([-2],[-3]);
+ model.intyp = new ScilabDouble([1,1]);
+ model.out = new ScilabDouble([-2]);
+ model.out2 = new ScilabDouble([-3]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = [sci2exp(1)];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MATCATH.js b/history/data_structures/MATCATH.js
new file mode 100644
index 0000000..07beb4e
--- /dev/null
+++ b/history/data_structures/MATCATH.js
@@ -0,0 +1,31 @@
+function MATCATH () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_cath";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in1 = new ScilabDouble([-1],[-1]);
+ model.in2 = new ScilabDouble([-2],[-3]);
+ model.intyp = new ScilabDouble([1,1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([0]);
+ model.outtyp = new ScilabDouble([-1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = [sci2exp(2)];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,3]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MATCATV.js b/history/data_structures/MATCATV.js
new file mode 100644
index 0000000..4fd6959
--- /dev/null
+++ b/history/data_structures/MATCATV.js
@@ -0,0 +1,33 @@
+function MATCATV () {
+
+
+ var l1 = [[2],[2]];
+
+ var model = scicos_model();
+
+ var function_name = "mat_catv";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in2 = new ScilabDouble([-1],[-1]);
+ model.in1 = new ScilabDouble([-2],[-3]);
+ model.intyp = new ScilabDouble([-1,-1]);
+ model.out = new ScilabDouble([0]);
+ model.out2 = new ScilabDouble([-1]);
+ model.outtyp = new ScilabDouble([-1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = [sci2exp(2)];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,3]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MATDET.js b/history/data_structures/MATDET.js
new file mode 100644
index 0000000..8912194
--- /dev/null
+++ b/history/data_structures/MATDET.js
@@ -0,0 +1,31 @@
+function MATDET () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_det";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-1]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = [sci2exp(1)];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MATDIAG.js b/history/data_structures/MATDIAG.js
new file mode 100644
index 0000000..0bdf382
--- /dev/null
+++ b/history/data_structures/MATDIAG.js
@@ -0,0 +1,31 @@
+function MATDIAG () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_diag";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = [sci2exp(1)];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MATDIV.js b/history/data_structures/MATDIV.js
new file mode 100644
index 0000000..73f1f36
--- /dev/null
+++ b/history/data_structures/MATDIV.js
@@ -0,0 +1,31 @@
+function MATDIV () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_div";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in1 = new ScilabDouble([-1],[-2]);
+ model.in2 = new ScilabDouble([-3],[-3]);
+ model.intyp = new ScilabDouble([1,1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = [sci2exp(1)];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MATEIG.js b/history/data_structures/MATEIG.js
new file mode 100644
index 0000000..c23df30
--- /dev/null
+++ b/history/data_structures/MATEIG.js
@@ -0,0 +1,31 @@
+function MATEIG () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_vps";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-1]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([2]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = [[sci2exp(1)],[sci2exp(1)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MATEXPM.js b/history/data_structures/MATEXPM.js
new file mode 100644
index 0000000..70734bd
--- /dev/null
+++ b/history/data_structures/MATEXPM.js
@@ -0,0 +1,31 @@
+function MATEXPM () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_expm";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-1]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = [sci2exp(1)];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MATINV.js b/history/data_structures/MATINV.js
new file mode 100644
index 0000000..8b45697
--- /dev/null
+++ b/history/data_structures/MATINV.js
@@ -0,0 +1,31 @@
+function MATINV () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_inv";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-1]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = [sci2exp(1)];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MATLU.js b/history/data_structures/MATLU.js
new file mode 100644
index 0000000..6cc94e6
--- /dev/null
+++ b/history/data_structures/MATLU.js
@@ -0,0 +1,31 @@
+function MATLU () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_lu";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-1]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1],[-1]);
+ model.out2 = new ScilabDouble([-1],[-1]);
+ model.outtyp = new ScilabDouble([1,1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = sci2exp(1);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MATMAGPHI.js b/history/data_structures/MATMAGPHI.js
new file mode 100644
index 0000000..c13d1dc
--- /dev/null
+++ b/history/data_structures/MATMAGPHI.js
@@ -0,0 +1,31 @@
+function MATMAGPHI () {
+
+
+ var model = scicos_model();
+
+ var function_name = "matz_abs";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([2]);
+ model.out = new ScilabDouble([-1],[-1]);
+ model.out2 = new ScilabDouble([-2],[-2]);
+ model.outtyp = new ScilabDouble([1,1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = [sci2exp(1)];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MATMUL.js b/history/data_structures/MATMUL.js
new file mode 100644
index 0000000..42af695
--- /dev/null
+++ b/history/data_structures/MATMUL.js
@@ -0,0 +1,18 @@
+function MATMUL () {
+
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["matmul_m"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([-1],[-2]);
+ model.in2 = new ScilabDouble([-2],[-3]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-3]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+ model.ipar = new ScilabDouble([1]);
+
+ var label = [sci2exp(model.ipar)];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MATPINV.js b/history/data_structures/MATPINV.js
new file mode 100644
index 0000000..27baace
--- /dev/null
+++ b/history/data_structures/MATPINV.js
@@ -0,0 +1,31 @@
+function MATPINV () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_pinv";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-2]);
+ model.out2 = new ScilabDouble([-1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = [sci2exp(1)];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MATRESH.js b/history/data_structures/MATRESH.js
new file mode 100644
index 0000000..53b1871
--- /dev/null
+++ b/history/data_structures/MATRESH.js
@@ -0,0 +1,31 @@
+function MATRESH () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_reshape";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = [[sci2exp(1)],[sci2exp([1,1])],[sci2exp([1,1])]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MATSING.js b/history/data_structures/MATSING.js
new file mode 100644
index 0000000..7b1f072
--- /dev/null
+++ b/history/data_structures/MATSING.js
@@ -0,0 +1,31 @@
+function MATSING () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_sing";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = [[sci2exp(1)],[sci2exp(1)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MATSUM.js b/history/data_structures/MATSUM.js
new file mode 100644
index 0000000..43f7b3b
--- /dev/null
+++ b/history/data_structures/MATSUM.js
@@ -0,0 +1,31 @@
+function MATSUM () {
+
+
+ var model = scicos_model();
+
+ var function_name = "mat_sum";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = [[sci2exp(1)],[sci2exp(0)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MATTRAN.js b/history/data_structures/MATTRAN.js
new file mode 100644
index 0000000..a3a0493
--- /dev/null
+++ b/history/data_structures/MATTRAN.js
@@ -0,0 +1,17 @@
+function MATTRAN () {
+
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["mattran_m"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.out = new ScilabDouble([-2]);
+ model.out2 = new ScilabDouble([-1]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = [sci2exp(1)];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MATZCONJ.js b/history/data_structures/MATZCONJ.js
new file mode 100644
index 0000000..efb04cb
--- /dev/null
+++ b/history/data_structures/MATZCONJ.js
@@ -0,0 +1,31 @@
+function MATZCONJ () {
+
+
+ var model = scicos_model();
+
+ var function_name = "matz_conj";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([2]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.outtyp = new ScilabDouble([2]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = [];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MATZREIM.js b/history/data_structures/MATZREIM.js
new file mode 100644
index 0000000..327d303
--- /dev/null
+++ b/history/data_structures/MATZREIM.js
@@ -0,0 +1,31 @@
+function MATZREIM () {
+
+
+ var model = scicos_model();
+
+ var function_name = "matz_reim";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([2]);
+ model.out = new ScilabDouble([-1],[-1]);
+ model.out2 = new ScilabDouble([-2],[-2]);
+ model.outtyp = new ScilabDouble([1,1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = sci2exp(1);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MAXMIN.js b/history/data_structures/MAXMIN.js
new file mode 100644
index 0000000..903a053
--- /dev/null
+++ b/history/data_structures/MAXMIN.js
@@ -0,0 +1,18 @@
+function MAXMIN () {
+
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["minmax"]),new ScilabDouble([4]));
+ model.out = new ScilabDouble([1]);
+ model.in1 = new ScilabDouble([-1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+ model.ipar = new ScilabDouble([0]);
+
+ var exprs = [string([2,1,1]')];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ this.x.graphics.style = new ScilabString(["MAXMIN;displayedLabel=MAX"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MAX_f.js b/history/data_structures/MAX_f.js
new file mode 100644
index 0000000..3623dc1
--- /dev/null
+++ b/history/data_structures/MAX_f.js
@@ -0,0 +1,19 @@
+function MAX_f () {
+
+
+ var in1 = -1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["maxblk"]);
+ model.in1.push(new ScilabDouble([in1]));
+ model.out = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble([0],[0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = " ";
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MBLOCK.js b/history/data_structures/MBLOCK.js
new file mode 100644
index 0000000..ce63569
--- /dev/null
+++ b/history/data_structures/MBLOCK.js
@@ -0,0 +1,30 @@
+function MBLOCK () {
+
+
+ var in1 = ["u1"];
+
+ var intype = ["I"];
+
+ var out = ["y1";"y2"];
+
+ var outtype = ["I";"E"];
+
+ var param = ["R";"L"];
+
+ var paramv = list(0.1,.0001);
+
+ var pprop = [[0],[0]];
+
+ var nameF = "generic";
+
+ var exprs = ...colon_operator(tlist,["MBLOCK","in","intype","out","outtype","param","paramv","pprop","nameF","funtxt"],sci2exp(...in1),sci2exp(...intype),sci2exp(...out),sci2exp(...outtype),sci2exp(...param),list(string(0.1),string(.0001)),sci2exp(pprop(,)),nameF,[]);
+
+ var model = scicos_model();
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,true]);
+ model.rpar = new ScilabDouble();
+
+ var for i = 1:lstsize(paramv);
+ model.rpar = new ScilabDouble([model.rpar],[paramv(i)(:)]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MCLOCK_f.js b/history/data_structures/MCLOCK_f.js
new file mode 100644
index 0000000..0a94924
--- /dev/null
+++ b/history/data_structures/MCLOCK_f.js
@@ -0,0 +1,81 @@
+function MCLOCK_f () {
+
+
+ var nn = 2;
+
+ var dt = 0.1;
+
+ var exprs = [[string(dt)],[string(nn)]];
+
+ var mfclck = MFCLCK_f("define");
+ mfclck.graphics.orig = new ScilabDouble([334,199]);
+ mfclck.graphics.sz = new ScilabDouble([40,40]);
+ mfclck.graphics.flip = new ScilabBoolean([true]);
+ mfclck.graphics.exprs=exprs;
+ mfclck.graphics.pein = new ScilabDouble([12]);
+ mfclck.graphics.peout = new ScilabDouble([4],[3]);
+ mfclck.model.rpar = new ScilabDouble([0.1]);
+ mfclck.model.ipar=new ScilabDouble([nn]);
+ mfclck.model.firing = new ScilabDouble([-1,0]);
+
+ var clksom = CLKSOM_f("define");
+ clksom.graphics.orig = new ScilabDouble([457,161]);
+ clksom.graphics.sz = new ScilabDouble([16.666667,16.666667]);
+ clksom.graphics.flip = new ScilabBoolean([true]);
+ clksom.graphics.exprs = new ScilabString(["0.1";"0.1"]);
+ clksom.graphics.pein = new ScilabDouble([4],[9],[0]);
+ clksom.graphics.peout = new ScilabDouble([5]);
+
+ var output_port1 = CLKOUT_f("define");
+ output_port1.graphics.orig = new ScilabDouble([509,261]);
+ output_port1.graphics.sz = new ScilabDouble([20,20]);
+ output_port1.graphics.flip = new ScilabBoolean([true]);
+ output_port1.graphics.exprs = new ScilabString(["1"]);
+ output_port1.graphics.pein = new ScilabDouble([10]);
+ output_port1.model.ipar = new ScilabDouble([1]);
+
+ var output_port2 = CLKOUT_f("define");
+ output_port2.graphics.orig = new ScilabDouble([509,142]);
+ output_port2.graphics.sz = new ScilabDouble([20,20]);
+ output_port2.graphics.flip = new ScilabBoolean([true]);
+ output_port2.graphics.exprs = new ScilabString(["2"]);
+ output_port2.graphics.pein = new ScilabDouble([13]);
+ output_port2.model.ipar = new ScilabDouble([2]);
+
+ var split1 = CLKSPLIT_f("define");
+ split1.graphics.orig = new ScilabDouble([411.92504],[169.33333]);
+ split1.graphics.pein = new ScilabDouble([3]);
+ split1.graphics.peout = new ScilabDouble([9],[10]);
+
+ var split2 = CLKSPLIT_f("define");
+ split2.graphics.orig = new ScilabDouble([482.45315],[169.33333]);
+ split2.graphics.pein = new ScilabDouble([5]);
+ split2.graphics.peout = new ScilabDouble([12],[13]);
+
+ var gr_i = [];
+
+ var diagram = scicos_diagram();
+ diagram.objs.push(mfclck);
+ diagram.objs.push(clksom);
+ diagram.objs.push(scicos_link({xx: new ScilabDouble([360.7],[360.7],[411.9]),yy: new ScilabDouble([193.3],[169.3],[169.3]),ct: new ScilabDouble([10,-1]),from: new ScilabDouble([1,2]),to: new ScilabDouble([8,1])}));
+ diagram.objs.push(scicos_link({xx: new ScilabDouble([347.3],[347.3],[461.8],[461.8]),yy: new ScilabDouble([193.3],[155.5],[155.5],[161]),ct: new ScilabDouble([10,-1]),from: new ScilabDouble([1,1]),to: new ScilabDouble([2,1])}));
+ diagram.objs.push(scicos_link({xx: new ScilabDouble([468.9],[482.5]),yy: new ScilabDouble([169.3],[169.3]),ct: new ScilabDouble([10,-1]),from: new ScilabDouble([2,1]),to: new ScilabDouble([11,1])}));
+ diagram.objs.push(output_port1);
+ diagram.objs.push(output_port2);
+ diagram.objs.push(split1);
+ diagram.objs.push(scicos_link({xx: new ScilabDouble([411.9],[457]),yy: new ScilabDouble([169.3],[169.3]),ct: new ScilabDouble([10,-1]),from: new ScilabDouble([8,1]),to: new ScilabDouble([2,2])}));
+ diagram.objs.push(scicos_link({xx: new ScilabDouble([411.9],[411.9],[509]),yy: new ScilabDouble([169.3],[271],[271]),ct: new ScilabDouble([10,-1]),from: new ScilabDouble([8,2]),to: new ScilabDouble([6,1])}));
+ diagram.objs.push(split2);
+ diagram.objs.push(scicos_link({xx: new ScilabDouble([482.5],[489.6],[489.6],[354],[354]),yy: new ScilabDouble([169.3],[169.3],[338.3],[338.3],[244.7]),ct: new ScilabDouble([10,-1]),from: new ScilabDouble([11,1]),to: new ScilabDouble([1,1])}));
+ diagram.objs.push(scicos_link({xx: new ScilabDouble([482.4],[482.4],[509]),yy: new ScilabDouble([169.3],[152],[152]),ct: new ScilabDouble([10,-1]),from: new ScilabDouble([11,2]),to: new ScilabDouble([7,1])}));
+ this.x=scicos_block();
+ this.x.gui = new ScilabString(["MCLOCK_f"]);
+ this.x.graphics.sz = new ScilabDouble([3,2]);
+ this.x.graphics.gr_i=gr_i;
+ this.x.model.sim = new ScilabString(["csuper"]);
+ this.x.model.evtout = new ScilabDouble([1],[1]);
+ this.x.model.blocktype = new ScilabString(["h"]);
+ this.x.model.rpar=diagram;
+ this.x.graphics.peout = new ScilabDouble([0],[0]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MFCLCK_f.js b/history/data_structures/MFCLCK_f.js
new file mode 100644
index 0000000..e7124f9
--- /dev/null
+++ b/history/data_structures/MFCLCK_f.js
@@ -0,0 +1,24 @@
+function MFCLCK_f () {
+
+
+ var nn = 2;
+
+ var dt = 0.1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["mfclck"]);
+ model.evtin = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble([1],[1]);
+ model.dstate = new ScilabDouble([0]);
+ model.rpar=new ScilabDouble([dt]);
+ model.ipar=new ScilabDouble([nn]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([-1,0]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = [[string(dt)],[string(nn)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MIN_f.js b/history/data_structures/MIN_f.js
new file mode 100644
index 0000000..c71bfb9
--- /dev/null
+++ b/history/data_structures/MIN_f.js
@@ -0,0 +1,19 @@
+function MIN_f () {
+
+
+ var in1 = -1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["minblk"]);
+ model.in1.push(new ScilabDouble([in1]));
+ model.out = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble([0],[0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = sci2exp(in1);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MUX.js b/history/data_structures/MUX.js
new file mode 100644
index 0000000..5481f69
--- /dev/null
+++ b/history/data_structures/MUX.js
@@ -0,0 +1,19 @@
+function MUX () {
+
+
+ var in1 = 2;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["multiplex"]),new ScilabDouble([4]));
+ model.in1.push(-...transpose([1:in1]));
+ model.out = new ScilabDouble([0]);
+ model.ipar=new ScilabDouble([in1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = string(in1);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([.5,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/MUX_f.js b/history/data_structures/MUX_f.js
new file mode 100644
index 0000000..05e2343
--- /dev/null
+++ b/history/data_structures/MUX_f.js
@@ -0,0 +1,19 @@
+function MUX_f () {
+
+
+ var in1 = 2;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["mux"]),new ScilabDouble([1]));
+ model.in1.push(-...transpose([1:in1]));
+ model.out = new ScilabDouble([0]);
+ model.ipar=new ScilabDouble([in1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = string(in1);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([0.5,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/M_SWITCH.js b/history/data_structures/M_SWITCH.js
new file mode 100644
index 0000000..e53c664
--- /dev/null
+++ b/history/data_structures/M_SWITCH.js
@@ -0,0 +1,23 @@
+function M_SWITCH () {
+
+
+ var in1 = [[1],[-1],[-1]];
+
+ var ipar = [[1],[3]];
+
+ var nin = 2;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["mswitch"]),new ScilabDouble([4]));
+ model.in1.push(new ScilabDouble([in1]));
+ model.out = new ScilabDouble([-1]);
+ model.ipar=new ScilabDouble([ipar]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[string(nin)],[string(ipar)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2.5,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/M_freq.js b/history/data_structures/M_freq.js
new file mode 100644
index 0000000..0ab9467
--- /dev/null
+++ b/history/data_structures/M_freq.js
@@ -0,0 +1,19 @@
+function M_freq () {
+
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["m_frequ"]),new ScilabDouble([4]));
+ model.evtout = new ScilabDouble([1],[1],[1]);
+ model.evtin = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble();
+ model.opar=list(new ScilabDouble([1),new ScilabDouble([1]),new ScilabDouble([0]]),new ScilabDouble([1),new ScilabDouble([1]),new ScilabDouble([1]]),new ScilabDouble([1),new ScilabDouble([3]),new ScilabDouble([2]]),new ScilabDouble([1]),new ScilabDouble([0]),new ScilabDouble([0]));
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([0,-1,-1]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = [[sci2exp([1],[2])],[sci2exp([0],[0])]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/Modulo_Count.js b/history/data_structures/Modulo_Count.js
new file mode 100644
index 0000000..62db6ad
--- /dev/null
+++ b/history/data_structures/Modulo_Count.js
@@ -0,0 +1,22 @@
+function Modulo_Count () {
+
+
+ var ini_c = 0;
+
+ var base = 3;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["modulo_count"]),new ScilabDouble([4]));
+ model.evtin = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.dstate=new ScilabDouble([ini_c]);
+ model.ipar=new ScilabDouble([base]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = [[string(ini_c)],[string(base)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/NEGTOPOS_f.js b/history/data_structures/NEGTOPOS_f.js
new file mode 100644
index 0000000..e0e40d4
--- /dev/null
+++ b/history/data_structures/NEGTOPOS_f.js
@@ -0,0 +1,17 @@
+function NEGTOPOS_f () {
+
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["zcross"]),new ScilabDouble([1]));
+ model.nzcross = new ScilabDouble([1]);
+ model.in1 = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([-1],[-1],[0],[-1]);
+ model.blocktype = new ScilabString(["z"]);
+ model.firing = new ScilabDouble([-1]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,[],gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/NMOS.js b/history/data_structures/NMOS.js
new file mode 100644
index 0000000..350c46c
--- /dev/null
+++ b/history/data_structures/NMOS.js
@@ -0,0 +1,43 @@
+function NMOS () {
+
+
+ var model = scicos_model();
+
+ var W = 20.e-6;
+
+ var L = 6.e-6;
+
+ var Beta = 0.041e-3;
+
+ var Vt = 0.8;
+
+ var K2 = 1.144;
+
+ var K5 = 0.7311;
+
+ var dW = -2.5e-6;
+
+ var dL = -1.5e-6;
+
+ var RDS = 1.e+7;
+ model.sim = new ScilabString(["NMOS"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var mo = modelica();
+ mo.model = new ScilabString(["NMOS"]);
+ mo.outputs = new ScilabString(["D";"B";"S"]);
+ mo.inputs = new ScilabString(["G"]);
+ mo.parameters=list(new ScilabString(["W";"L";"Beta";"Vt";"K2";"K5";"dW";"dL";"RDS"]),[W],[L],[Beta],[Vt],[K2],[K5],[dW],[dL],[RDS]);
+ model.equations=mo;
+ model.in1.push(ones(size(mo.inputs,"*"),1));
+ model.out=ones(size(mo.outputs,"*"),1);
+
+ var exprs = [[string(W)],[string(L)],[string(Beta)],[string(Vt)],[string(K2)],[string(K5)],[string(dW)],[string(dL)],[string(RDS)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I";"I";"I"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/NPN.js b/history/data_structures/NPN.js
new file mode 100644
index 0000000..843e410
--- /dev/null
+++ b/history/data_structures/NPN.js
@@ -0,0 +1,30 @@
+function NPN () {
+
+
+ var ModelName = "NPN";
+
+ var PrametersValue = [[50],[0.1],[0],[0.02],[1.200D-10],[5.000D-09],[1.000D-12],[4.000D-13],[5.000D-13],[0.8],[0.4],[0.8],[0.333],[1.000D-15],[1.000D-15],[0.02585],[40]];
+
+ var ParametersName = ["Bf";"Br";"Is";"Vak";"Tauf";"Taur";"Ccs";"Cje";"Cjc";"Phie";"Me";"Phic";"Mc";"Gbc";"Gbe";"Vt";"EMinMax"];
+
+ var model = scicos_model();
+
+ var Typein = [];
+
+ var Typeout = [];
+
+ var MI = [];
+
+ var MO = [];
+
+ var P = [[100,90,-2,0],[,0,50,2,0],[,100,10,-2,0]];
+
+ var PortName = ["C";"B";"E"];
+
+ var for i = 1:size(P,"r");
+
+ var if P(i,3) = =1, then;
+ Typein = new ScilabDouble([Typein;,"E"]);
+ MI = new ScilabDouble([MI],[PortName(i)]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/NRMSOM_f.js b/history/data_structures/NRMSOM_f.js
new file mode 100644
index 0000000..f13e210
--- /dev/null
+++ b/history/data_structures/NRMSOM_f.js
@@ -0,0 +1,20 @@
+function NRMSOM_f () {
+
+
+ var in1 = [[-1],[-1]];
+
+ var nin = 2;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["junk"]);
+ model.in1.push(in1);
+ model.out = new ScilabDouble([-1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [string(nin)];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([.2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/OUTIMPL_f.js b/history/data_structures/OUTIMPL_f.js
new file mode 100644
index 0000000..5d4ce64
--- /dev/null
+++ b/history/data_structures/OUTIMPL_f.js
@@ -0,0 +1,25 @@
+function OUTIMPL_f () {
+
+
+ var model = scicos_model();
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([1]);
+
+ var prt = 1;
+ model.sim = new ScilabString(["outimpl"]);
+ model.ipar = new ScilabDouble([1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var mo = modelica();
+ mo.model = new ScilabString(["PORT"]);
+ mo.inputs = new ScilabString(["n"]);
+ model.equations=mo;
+
+ var exprs = "1";
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i);
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ return new ImplicitOutBlock(this.x)
+}
diff --git a/history/data_structures/OUT_f.js b/history/data_structures/OUT_f.js
new file mode 100644
index 0000000..56eaea2
--- /dev/null
+++ b/history/data_structures/OUT_f.js
@@ -0,0 +1,22 @@
+function OUT_f () {
+
+
+ var n = -1;
+
+ var prt = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["output"]);
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([-1]);
+ model.ipar=new ScilabDouble([prt]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = string(prt);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i);
+ return new ExplicitOutBlock(this.x)
+}
diff --git a/history/data_structures/OpAmp.js b/history/data_structures/OpAmp.js
new file mode 100644
index 0000000..120a0f6
--- /dev/null
+++ b/history/data_structures/OpAmp.js
@@ -0,0 +1,30 @@
+function OpAmp () {
+
+
+ var S = [];
+
+ var Z = [];
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["OpAmp"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var mo = modelica();
+ mo.model=model.sim;
+ mo.inputs = new ScilabString(["in_p";"in_n"]);
+ mo.outputs = new ScilabString(["out"]);
+ mo.parameters=list(S,Z);
+ model.equations=mo;
+ model.in1.push(ones(size(mo.inputs,"*"),1));
+ model.out=ones(size(mo.outputs,"*"),1);
+ model.rpar=Z;
+
+ var exprs = string(Z);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,5]),model,exprs,gr_i);
+ this.x.graphics.in_implicit = new ScilabString(["I";"I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/PDE.js b/history/data_structures/PDE.js
new file mode 100644
index 0000000..263c715
--- /dev/null
+++ b/history/data_structures/PDE.js
@@ -0,0 +1,19 @@
+function PDE () {
+
+
+ var model = scicos_model();
+ model.state=zeros(10,1);
+ model.sim=list(new ScilabString(["PDE"]),new ScilabDouble([0]));
+ model.in1 = new ScilabDouble([1],[1],[1],[1],[1]);
+ model.out = new ScilabDouble([10],[0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,true]);
+
+ var params_pde = tlist(["paramspde";"a";"b";"txt_exp";"check_op1";"a1";"b1";"check_op2";"a2";"b2";"check_op3";"a3";"b3";"check_op4";"a4";"b4";"check_op5";"a5";"b5";"check_op6";"a6";"b6";"check_op7";"a7";"b7";"discr_cst";"discr_non_cst";"signe";"rad_automatique";"rad_manuel";"methode";"ord1";"ord2";"ord3";"degre";"nnode";"txt_pas";"CI";"dCI";"CLa";"CLa_exp";"CLb";"CLb_exp";"points"],"","","","0","","IN_EDP1(t)","0","","IN_EDP2(t)","0","","IN_EDP3(t)","0","","IN_EDP4(t)","0","","IN_EDP5(t)","0","","IN_EDP6(t)","0","","IN_EDP7(t)","0","0","0","0","0","0","","","","","","","","","0","IN_CL1(t)","0","IN_CL2(t)","");
+
+ var label = list(params_pde,[],"");
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,3]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/PID.js b/history/data_structures/PID.js
new file mode 100644
index 0000000..e3dd59e
--- /dev/null
+++ b/history/data_structures/PID.js
@@ -0,0 +1,43 @@
+function PID () {
+
+
+ var scs_m = scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[600,450,0,0,600,450],Title=["PID"],tol=[0.0001,0.000001,1.000E-10,100001,0,0],tf=100000,context=" ",void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list()));
+ scs_m.objs.push(scicos_block(gui="INTEGRAL_m",graphics=scicos_graphics(orig=[318.304,183.11733],sz=[40,40],flip=%t,theta=0,exprs=["0";"0";"0";"1";"-1"],pin=7,pout=9,pein=[],peout=[],gr_i=[],id="1/s",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("integral_func",4),in1=1,in2=1,intyp=1,out=1,out2=1,outtyp=1,evtin=[],evtout=[],state=0,dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%f,%t],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_block(gui="SUMMATION",graphics=scicos_graphics(orig=[387.97067,172.85067],sz=[40,60],flip=%t,theta=0,exprs=["1";"[1;1;1]"],pin=[10;9;11],pout=19,pein=[],peout=[],gr_i=[],id="",in_implicit=["E";"E";"E"],out_implicit="E"),model=scicos_model(sim=list("summation",4),in1=[-1;-1;-1],in2=[-2;-2;-2],intyp=[1;1;1],out=-1,out2=-2,outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[1;1;1],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_block(gui="GAINBLK",graphics=scicos_graphics(orig=[321.23733,235.91733],sz=[40,40],flip=%t,theta=0,exprs="1",pin=17,pout=10,pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("gainblk",4),in1=-1,in2=-2,intyp=1,out=-1,out2=-2,outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=1,ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_block(gui="DERIV",graphics=scicos_graphics(orig=[319.03733,135.45067],sz=[40,40],flip=%t,theta=0,exprs=[],pin=8,pout=11,pein=[],peout=[],gr_i=[],id="s",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("deriv",4),in1=-1,in2=-2,intyp=1,out=-1,out2=-2,outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="x",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_block(gui="GAINBLK",graphics=scicos_graphics(orig=[255.23733,183.11733],sz=[40,40],flip=%t,theta=0,exprs="1",pin=13,pout=7,pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("gainblk",4),in1=-1,in2=-2,intyp=1,out=-1,out2=-2,outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=1,ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_block(gui="GAINBLK",graphics=scicos_graphics(orig=[255.23733,135.45067],sz=[40,40],flip=%t,theta=0,exprs="1",pin=14,pout=8,pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("gainblk",4),in1=-1,in2=-2,intyp=1,out=-1,out2=-2,outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=1,ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([303.80876),yy: new ScilabDouble([203.11733),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([5,1,0]),to: new ScilabDouble([1,1,1])}));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([303.80876),yy: new ScilabDouble([155.45067),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([6,1,0]),to: new ScilabDouble([4,1,1])}));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([366.87543),yy: new ScilabDouble([203.11733),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([2,2,1])}));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([369.80876),yy: new ScilabDouble([255.91733),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([3,1,0]),to: new ScilabDouble([2,1,1])}));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([367.60876),yy: new ScilabDouble([155.45067),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([4,1,0]),to: new ScilabDouble([2,3,1])}));
+ scs_m.objs.push(scicos_block(gui="SPLIT_f",graphics=scicos_graphics(orig=[234.704;203.11733],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=16,pout=[13;14],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=["E";"E";"E"]),model=scicos_model(sim="lsplit",in1=-1,in2=[],intyp=1,out=[-1;-1;-1],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([234.704),yy: new ScilabDouble([203.11733),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([12,1,0]),to: new ScilabDouble([5,1,1])}));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([234.704),yy: new ScilabDouble([203.11733),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([12,2,0]),to: new ScilabDouble([6,1,1])}));
+ scs_m.objs.push(scicos_block(gui="SPLIT_f",graphics=scicos_graphics(orig=[233.97067;203.11733],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=21,pout=[16;17],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=["E";"E";"E"]),model=scicos_model(sim="lsplit",in1=-1,in2=[],intyp=1,out=[-1;-1;-1],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([233.97067),yy: new ScilabDouble([203.11733),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([15,1,0]),to: new ScilabDouble([12,1,1])}));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([233.97067),yy: new ScilabDouble([203.11733),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([15,2,0]),to: new ScilabDouble([3,1,1])}));
+ scs_m.objs.push(scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[456.5421,192.85067],sz=[20,20],flip=%t,theta=0,exprs="1",pin=19,pout=[],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=[],intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([436.5421),yy: new ScilabDouble([202.85067),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([2,1,0]),to: new ScilabDouble([18,1,1])}));
+ scs_m.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[193.97067,193.11733],sz=[20,20],flip=%t,theta=0,exprs="1",pin=[],pout=21,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([213.97067),yy: new ScilabDouble([203.11733),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([20,1,0]),to: new ScilabDouble([15,1,1])}));
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["csuper"]);
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.blocktype = new ScilabString(["h"]);
+ model.firing = new ScilabBoolean([false]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+ model.rpar=scs_m;
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,[],gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/PMOS.js b/history/data_structures/PMOS.js
new file mode 100644
index 0000000..5a9ff67
--- /dev/null
+++ b/history/data_structures/PMOS.js
@@ -0,0 +1,43 @@
+function PMOS () {
+
+
+ var model = scicos_model();
+
+ var W = 50.0e-6;
+
+ var L = 6.0e-6;
+
+ var Beta = 0.0105e-3;
+
+ var Vt = -1;
+
+ var K2 = 0.41;
+
+ var K5 = 0.839;
+
+ var dW = -2.5e-6;
+
+ var dL = -2.1e-6;
+
+ var RDS = 1.e+7;
+ model.sim = new ScilabString(["PMOS"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var mo = modelica();
+ mo.model = new ScilabString(["PMOS"]);
+ mo.outputs = new ScilabString(["D";"B";"S"]);
+ mo.inputs = new ScilabString(["G"]);
+ mo.parameters=list(new ScilabString(["W";"L";"Beta";"Vt";"K2";"K5";"dW";"dL";"RDS"]),[W],[L],[Beta],[Vt],[K2],[K5],[dW],[dL],[RDS]);
+ model.equations=mo;
+ model.in1.push(ones(size(mo.inputs,"*"),1));
+ model.out=ones(size(mo.outputs,"*"),1);
+
+ var exprs = [[string(W)],[string(L)],[string(Beta)],[string(Vt)],[string(K2)],[string(K5)],[string(dW)],[string(dL)],[string(RDS)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I";"I";"I"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/PNP.js b/history/data_structures/PNP.js
new file mode 100644
index 0000000..b9108e6
--- /dev/null
+++ b/history/data_structures/PNP.js
@@ -0,0 +1,30 @@
+function PNP () {
+
+
+ var ModelName = "PNP";
+
+ var PrametersValue = [[50],[0.1],[0],[0.02],[1.200D-10],[5.000D-09],[1.000D-12],[4.000D-13],[5.000D-13],[0.8],[0.4],[0.8],[0.333],[1.000D-15],[1.000D-15],[0.02585],[40]];
+
+ var ParametersName = ["Bf";"Br";"Is";"Vak";"Tauf";"Taur";"Ccs";"Cje";"Cjc";"Phie";"Me";"Phic";"Mc";"Gbc";"Gbe";"Vt";"EMinMax"];
+
+ var model = scicos_model();
+
+ var Typein = [];
+
+ var Typeout = [];
+
+ var MI = [];
+
+ var MO = [];
+
+ var P = [[100,90,-2,0],[0,50,2,0],[100,10,-2,0]];
+
+ var PortName = ["C";"B";"E"];
+
+ var for i = 1:size(P,"r");
+
+ var if P(i,3) = =1, then;
+ Typein = new ScilabDouble([Typein;,"E"]);
+ MI = new ScilabDouble([MI],[PortName(i)]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/POSTONEG_f.js b/history/data_structures/POSTONEG_f.js
new file mode 100644
index 0000000..53c941b
--- /dev/null
+++ b/history/data_structures/POSTONEG_f.js
@@ -0,0 +1,19 @@
+function POSTONEG_f () {
+
+
+ var rpar = [[-1],[-1],[-1],[0]];
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["zcross"]),new ScilabDouble([1]));
+ model.nzcross = new ScilabDouble([1]);
+ model.in1 = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([-1],[-1],[-1],[0]);
+ model.blocktype = new ScilabString(["z"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+ model.firing = new ScilabDouble([-1]);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,[],gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/POWBLK_f.js b/history/data_structures/POWBLK_f.js
new file mode 100644
index 0000000..fe907b7
--- /dev/null
+++ b/history/data_structures/POWBLK_f.js
@@ -0,0 +1,21 @@
+function POWBLK_f () {
+
+
+ var in1 = 1;
+
+ var a = 1.5;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["powblk"]);
+ model.in1 = new ScilabDouble([-1]);
+ model.out = new ScilabDouble([-1]);
+ model.rpar=new ScilabDouble([a]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = string(a);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/PRODUCT.js b/history/data_structures/PRODUCT.js
new file mode 100644
index 0000000..3fc6a08
--- /dev/null
+++ b/history/data_structures/PRODUCT.js
@@ -0,0 +1,19 @@
+function PRODUCT () {
+
+
+ var sgn = [[1],[-1]];
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["product"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([-1],[-1]);
+ model.out = new ScilabDouble([-1]);
+ model.ipar=new ScilabDouble([sgn]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = sci2exp(sgn);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,3]),model,,exprs,gr_i);
+ return new Product(this.x)
+}
diff --git a/history/data_structures/PROD_f.js b/history/data_structures/PROD_f.js
new file mode 100644
index 0000000..5e1f69b
--- /dev/null
+++ b/history/data_structures/PROD_f.js
@@ -0,0 +1,12 @@
+function PROD_f () {
+
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["prod"]),new ScilabDouble([2]));
+ model.in1 = new ScilabDouble([-1],[-1]);
+ model.out = new ScilabDouble([-1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+ this.x=new standard_define(new ScilabDouble([1,1]),model,[],[]);
+ return new RoundBlock(this.x)
+}
diff --git a/history/data_structures/PULSE_SC.js b/history/data_structures/PULSE_SC.js
new file mode 100644
index 0000000..ba73528
--- /dev/null
+++ b/history/data_structures/PULSE_SC.js
@@ -0,0 +1,57 @@
+function PULSE_SC () {
+
+
+ var scs_m_1 = scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[-162.7581,435.54369,67.607292,416.67644,827,479,0,15,827,480,715,167,1.4],Title=["SuperBlock","/home/fady/Scicos_examples/"],tol=[0.0001;0.000001;1.000D-10;100001;0;0;0],tf=10,context=["E2=E+W/100*F";
+ "if (W<0 | W>100) then error(''Width must be between 0 and 100'');end";
+
+ var "if (E2 > = F),then,error,(''Offset,must,be,lower,than,(frequency*(1-Width/100))'');,end"],void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list()));
+ scs_m_1.objs.push(scicos_block(gui="CONST_m",graphics=scicos_graphics(orig=[30.801202,158.91733],sz=[40,40],flip=%t,theta=0,exprs="A",pin=[],pout=5,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim=list("cstblk4_m",4),in1=[],in2=[],intyp=1,out=1,out2=1,outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(1),blocktype="d",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_block(gui="Ground_g",graphics=scicos_graphics(orig=[31.534535,215.384],sz=[40,40],flip=%t,theta=0,exprs=[],pin=[],pout=4,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim=list("cstblk4_m",4),in1=[],in2=[],intyp=1,out=1,out2=1,outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(0),blocktype="d",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_block(gui="SELECT_m",graphics=scicos_graphics(orig=[106.00652,186.09381],sz=[40,40],flip=%t,theta=0,exprs=["-1";"2";"1"],pin=[4;5],pout=11,pein=[9;8],peout=[],gr_i=[],id="",in_implicit=["E";"E"],out_implicit="E"),model=scicos_model(sim=list("selector_m",4),in1=[-1;-1],in2=[-2;-2],intyp=[-1;-1],out=-1,out2=-2,outtyp=-1,evtin=[1;1],evtout=[],state=[],dstate=1,odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([80.105964),yy: new ScilabDouble([235.384),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([2,1,0]),to: new ScilabDouble([3,1,1])}));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([79.372631),yy: new ScilabDouble([178.91733),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([3,2,1])}));
+ scs_m_1.objs.push(scicos_block(gui="SampleCLK",graphics=scicos_graphics(orig=[82.349744,274.21741],sz=[60,40],flip=%t,theta=0,exprs=["F";"E2"],pin=[],pout=[],pein=[],peout=9,gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim="sampleclk",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=[],evtout=1,state=[],dstate=[],odstate=list(),rpar=[1;0.4],ipar=[],opar=list(),blocktype="d",firing=-1,dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_block(gui="SampleCLK",graphics=scicos_graphics(orig=[160.48879,274.21741],sz=[60,40],flip=%t,theta=0,exprs=["F";"E"],pin=[],pout=[],pein=[],peout=8,gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim="sampleclk",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=[],evtout=1,state=[],dstate=[],odstate=list(),rpar=[1;0.1],ipar=[],opar=list(),blocktype="d",firing=-1,dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([190.48879),yy: new ScilabDouble([274.21741),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([7,1,0]),to: new ScilabDouble([3,2,1])}));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([112.34974),yy: new ScilabDouble([274.21741),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([6,1,0]),to: new ScilabDouble([3,1,1])}));
+ scs_m_1.objs.push(scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[174.57795,196.09381],sz=[20,20],flip=%t,theta=0,exprs="1",pin=11,pout=[],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=-2,intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([154.57795),yy: new ScilabDouble([206.09381),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([3,1,0]),to: new ScilabDouble([10,1,1])}));
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["csuper"]);
+ model.in1 = new ScilabDouble();
+ model.in2 = new ScilabDouble();
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.outtyp = new ScilabDouble([-1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.odstate=list();
+ model.rpar=scs_m_1;
+ model.ipar = new ScilabDouble([1]);
+ model.opar=list();
+ model.blocktype = new ScilabString(["h"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([false,false]);
+ model.label = new ScilabString([""]);
+ model.nzcross = new ScilabDouble([0]);
+ model.nmode = new ScilabDouble([0]);
+ model.equations=list();
+
+ var E = 0.1;
+
+ var W = 30;
+
+ var F = 1;
+
+ var A = 1;
+
+ var exprs = [sci2exp(E)sci2exp(W)sci2exp(F)sci2exp(A)];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/PerteDP.js b/history/data_structures/PerteDP.js
new file mode 100644
index 0000000..b1b5616
--- /dev/null
+++ b/history/data_structures/PerteDP.js
@@ -0,0 +1,40 @@
+function PerteDP () {
+
+
+ var model = scicos_model();
+ model.in1 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+
+ var L = 10;
+
+ var D = 0.2;
+
+ var lambda = 0.03;
+
+ var z1 = 0;
+
+ var z2 = 0;
+
+ var p_rho = 0;
+ model.rpar = new ScilabDouble([L],[D],[lambda],[z1],[z2],[p_rho]);
+ model.sim = new ScilabString(["PerteDP"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var mo = modelica();
+ mo.model = new ScilabString(["PerteDP"]);
+ mo.inputs = new ScilabString(["C1"]);
+ mo.outputs = new ScilabString(["C2"]);
+ mo.parameters=list(new ScilabString(["L";"D";"lambda";"z1";"z2";"p_rho"]),[L],[D],[lambda],[z1],[z2],[p_rho]);
+ model.equations=mo;
+ model.in1.push(ones(size(mo.inputs,"*"),1));
+ model.out=ones(size(mo.outputs,"*"),1);
+
+ var exprs = [[string(L)],[string(D)],[string(lambda)],[string(z1)],[string(z2)],[string(p_rho)]];
+
+ var gr_i = [];
+ this.x=standard_define([2,1],model,exprs,list(gr_i,0));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/PotentialSensor.js b/history/data_structures/PotentialSensor.js
new file mode 100644
index 0000000..1edfa55
--- /dev/null
+++ b/history/data_structures/PotentialSensor.js
@@ -0,0 +1,23 @@
+function PotentialSensor () {
+
+
+ var model = scicos_model();
+ model.in1 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble();
+ model.sim = new ScilabString(["PotentialSensor"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var mo = modelica();
+ mo.model = new ScilabString(["PotentialSensor"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["v"]);
+ model.equations=mo;
+
+ var gr_i = [];
+ this.x=standard_define([2,2],model,"",list(gr_i,0));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["E"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/PuitsP.js b/history/data_structures/PuitsP.js
new file mode 100644
index 0000000..550acd9
--- /dev/null
+++ b/history/data_structures/PuitsP.js
@@ -0,0 +1,31 @@
+function PuitsP () {
+
+
+ var model = scicos_model();
+
+ var P0 = 100000;
+
+ var T0 = 290;
+
+ var H0 = 100000;
+
+ var option_temperature = 1;
+ model.rpar = new ScilabDouble([P0],[T0],[H0],[option_temperature]);
+ model.sim = new ScilabString(["Puits"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var mo = modelica();
+ mo.model = new ScilabString(["Puits"]);
+ mo.inputs = new ScilabString(["C"]);
+ mo.parameters=list(new ScilabString(["P0";"T0";"H0";"option_temperature"]),[P0],[T0],[H0],[option_temperature]);
+ model.equations=mo;
+ model.in1.push(ones(size(mo.inputs,"*"),1));
+
+ var exprs = [[string(P0)],[string(T0)],[string(H0)],[string(option_temperature)]];
+
+ var gr_i = [];
+ this.x=standard_define([2.5,2],model,exprs,list(gr_i,0));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/QUANT_f.js b/history/data_structures/QUANT_f.js
new file mode 100644
index 0000000..02d0830
--- /dev/null
+++ b/history/data_structures/QUANT_f.js
@@ -0,0 +1,22 @@
+function QUANT_f () {
+
+
+ var pas = 0.1;
+
+ var meth = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["qzrnd"]);
+ model.in1 = new ScilabDouble([-1]);
+ model.out = new ScilabDouble([-1]);
+ model.rpar=new ScilabDouble([pas]);
+ model.ipar=new ScilabDouble([meth]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[string(pas)],[string(meth)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/RAMP.js b/history/data_structures/RAMP.js
new file mode 100644
index 0000000..3ff9355
--- /dev/null
+++ b/history/data_structures/RAMP.js
@@ -0,0 +1,27 @@
+function RAMP () {
+
+
+ var slope = 0;
+
+ var iout = 0;
+
+ var stt = 0;
+
+ var rpar = [[slope],[stt],[iout]];
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["ramp"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble();
+ model.out = new ScilabDouble([1]);
+ model.rpar=rpar;
+ model.blocktype = new ScilabString(["c"]);
+ model.nmode = new ScilabDouble([1]);
+ model.nzcross = new ScilabDouble([1]);
+ model.dep_ut = new ScilabBoolean([false,true]);
+
+ var exprs = [string(rpar)];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/RAND_m.js b/history/data_structures/RAND_m.js
new file mode 100644
index 0000000..f017471
--- /dev/null
+++ b/history/data_structures/RAND_m.js
@@ -0,0 +1,39 @@
+function RAND_m () {
+
+
+ var a = 0;
+
+ var b = 1;
+
+ var dt = 0;
+
+ var flag = 0;
+
+ var function_name = "rndblk_m";
+
+ var funtyp = 4;
+
+ var model = scicos_model();
+ model.sim=list(function_name,funtyp);
+ model.in1 = new ScilabDouble();
+ model.in2 = new ScilabDouble();
+ model.intyp = new ScilabDouble();
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble([int(rand()*(10^7-1))],[0*...a]);
+ model.rpar = new ScilabDouble([...a,...b]);
+ model.ipar=new ScilabDouble([flag]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = [[sci2exp(1)],[string(flag)],[sci2exp([a])],[sci2exp([b])],[sci2exp([model.dstate(1),int(rand()*(10^7-1))])]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/RATELIMITER.js b/history/data_structures/RATELIMITER.js
new file mode 100644
index 0000000..3c859f8
--- /dev/null
+++ b/history/data_structures/RATELIMITER.js
@@ -0,0 +1,23 @@
+function RATELIMITER () {
+
+
+ var minp = -1;
+
+ var maxp = 1;
+
+ var rpar = [[maxp],[minp]];
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["ratelimiter"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar=rpar;
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[string(maxp)],[string(minp)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3.5,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/READAU_f.js b/history/data_structures/READAU_f.js
new file mode 100644
index 0000000..a7ef985
--- /dev/null
+++ b/history/data_structures/READAU_f.js
@@ -0,0 +1,40 @@
+function READAU_f () {
+
+
+ var frmt = "uc,";
+
+ var fname = "test.au";
+
+ var lunit = 0;
+
+ var N = 20;
+
+ var M = 1;
+
+ var tmask = [];
+
+ var swap = 0;
+
+ var offset = 1;
+
+ var outmask = 1;
+
+ var ievt = 0;
+
+ var nout = size(outmask,"*");
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["readau"]),new ScilabDouble([2]));
+ model.out=nout;
+ model.evtin = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble([1],[1],[lunit],[zeros(N*M,1)]);
+ model.ipar = new ScilabDouble([length(fname)],[_str2code(frmt)],[ievt],[N],[M],[swap],[offset],[_str2code(fname)],[tmask],[outmask]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = [[fname],[string(N)],[string(swap)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([5,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/READC_f.js b/history/data_structures/READC_f.js
new file mode 100644
index 0000000..cc406db
--- /dev/null
+++ b/history/data_structures/READC_f.js
@@ -0,0 +1,46 @@
+function READC_f () {
+
+
+ var frmt = "d, ";
+
+ var fname = "foo";
+
+ var lunit = 0;
+
+ var N = 20;
+
+ var M = 1;
+
+ var rpar = [];
+
+ var tmask = 0;
+
+ var swap = 0;
+
+ var offset = 1;
+
+ var outmask = 1;
+
+ var ievt = 0;
+
+ var nout = size(outmask,"*");
+
+ var ipar = [[,length(fname)],[,_str2code(frmt)],[,ievt],[,N],[,M],[,swap],[offset],[,_str2code(fname)],[,tmask],[,outmask,]];
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["readc"]),new ScilabDouble([2]));
+ model.out=nout;
+ model.evtin = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble();
+ model.dstate = new ScilabDouble([1],[,1],[,lunit],[,zeros(N*M,1)]);
+ model.ipar = new ScilabDouble([,length(fname)],[,_str2code(frmt)],[,ievt],[,N],[,M],[,swap],[,offset],[_str2code(fname)],[,tmask],[,outmask,]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([-1]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = [[,"[]"],[,sci2exp(outmask)],[,fname],[,frmt],[,string(M)],[,string(N)],[,string(offset)],[string(swap),]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/REGISTER.js b/history/data_structures/REGISTER.js
new file mode 100644
index 0000000..6b9b247
--- /dev/null
+++ b/history/data_structures/REGISTER.js
@@ -0,0 +1,20 @@
+function REGISTER () {
+
+
+ var z0 = zeros(10,1);
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["delay4"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble([1]);
+ model.dstate=z0;
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = strcat(string(z0),,";");
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/RELATIONALOP.js b/history/data_structures/RELATIONALOP.js
new file mode 100644
index 0000000..72fd81c
--- /dev/null
+++ b/history/data_structures/RELATIONALOP.js
@@ -0,0 +1,22 @@
+function RELATIONALOP () {
+
+
+ var ipar = [2];
+
+ var label = "&lt";
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["relationalop"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([1],[1]);
+ model.out = new ScilabDouble([1]);
+ model.ipar=new ScilabDouble([ipar]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[string(ipar)],[string(0)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ this.x.graphics.style = new ScilabString(["fontSize=13;fontStyle=1;displayedLabel="+label]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/RELAY_f.js b/history/data_structures/RELAY_f.js
new file mode 100644
index 0000000..56000db
--- /dev/null
+++ b/history/data_structures/RELAY_f.js
@@ -0,0 +1,25 @@
+function RELAY_f () {
+
+
+ var i0 = 0;
+
+ var in1 = [[-1],[-1]];
+
+ var nin = 2;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["relay"]),new ScilabDouble([2]));
+ model.in1.push(in1);
+ model.out = new ScilabDouble([-1]);
+ model.evtin=ones(in1);
+ model.dstate=new ScilabDouble([i0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,true]);
+
+ var exprs = [[string(nin)],[string(i0+1)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/RFILE_f.js b/history/data_structures/RFILE_f.js
new file mode 100644
index 0000000..10fbc93
--- /dev/null
+++ b/history/data_structures/RFILE_f.js
@@ -0,0 +1,40 @@
+function RFILE_f () {
+
+
+ var out = 1;
+
+ var nout = sum(out);
+
+ var frmt = "(7(e10.3,1x))";
+
+ var fname = "foo";
+
+ var lunit = 0;
+
+ var N = 2;
+
+ var rpar = [];
+
+ var tmask = 0;
+
+ var outmask = 1;
+
+ var ipar = [[,length(fname)],[length(frmt)],[0],[N],[,_str2code(fname)],[_str2code(frmt)],[,tmask],[outmask,]];
+
+ var dstate = [[1],[,1],[,lunit],[,zeros((nout)*N,,1)]];
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["readf"]);
+ model.out=nout;
+ model.evtin = new ScilabDouble([1]);
+ model.dstate=new ScilabDouble([dstate]);
+ model.ipar = new ScilabDouble([,length(fname)],[length(frmt)],[0],[N],[,_str2code(fname)],[_str2code(frmt)],[,tmask],[outmask,]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = [[sci2exp([])],[sci2exp(outmask)],[fname],[frmt],[string(N)],[sci2exp(out)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/RICC.js b/history/data_structures/RICC.js
new file mode 100644
index 0000000..1eaf89b
--- /dev/null
+++ b/history/data_structures/RICC.js
@@ -0,0 +1,31 @@
+function RICC () {
+
+
+ var model = scicos_model();
+
+ var function_name = "ricc_m";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in1 = new ScilabDouble([-1],[-1],[-1]);
+ model.in2 = new ScilabDouble([-1],[-1],[-1]);
+ model.intyp = new ScilabDouble([1,1,1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble([1],[1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = [[sci2exp(1)],[sci2exp(1)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/ROOTCOEF.js b/history/data_structures/ROOTCOEF.js
new file mode 100644
index 0000000..df1eaad
--- /dev/null
+++ b/history/data_structures/ROOTCOEF.js
@@ -0,0 +1,31 @@
+function ROOTCOEF () {
+
+
+ var model = scicos_model();
+
+ var function_name = "root_coef";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-2]);
+ model.out2 = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = [[sci2exp(1)],[sci2exp(1)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/Resistor.js b/history/data_structures/Resistor.js
new file mode 100644
index 0000000..10b72c3
--- /dev/null
+++ b/history/data_structures/Resistor.js
@@ -0,0 +1,28 @@
+function Resistor () {
+
+
+ var model = scicos_model();
+
+ var R = 0.01;
+ model.rpar=new ScilabDouble([R]);
+ model.sim = new ScilabString(["resistor"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var mo = modelica();
+ mo.model = new ScilabString(["Resistor"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["n"]);
+ mo.parameters=list(new ScilabString(["R"]),list(R));
+ model.equations=mo;
+ model.in1.push(ones(size(mo.inputs,"*"),1));
+ model.out=ones(size(mo.outputs,"*"),1);
+
+ var exprs = string(R);
+
+ var gr_i = [];
+ this.x=standard_define([2,1],model,exprs,list(gr_i,0));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/SAMPHOLD_m.js b/history/data_structures/SAMPHOLD_m.js
new file mode 100644
index 0000000..0a52809
--- /dev/null
+++ b/history/data_structures/SAMPHOLD_m.js
@@ -0,0 +1,21 @@
+function SAMPHOLD_m () {
+
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["samphold4_m"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.evtin = new ScilabDouble([1]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = [sci2exp(1)];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/SATURATION.js b/history/data_structures/SATURATION.js
new file mode 100644
index 0000000..37a218a
--- /dev/null
+++ b/history/data_structures/SATURATION.js
@@ -0,0 +1,25 @@
+function SATURATION () {
+
+
+ var minp = -1;
+
+ var maxp = 1;
+
+ var rpar = [[maxp],[minp]];
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["satur"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([1]);
+ model.nzcross = new ScilabDouble([2]);
+ model.nmode = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar=rpar;
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[string(maxp)],[string(minp)],[string(model.nmode)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/SAWTOOTH_f.js b/history/data_structures/SAWTOOTH_f.js
new file mode 100644
index 0000000..fcbe8e6
--- /dev/null
+++ b/history/data_structures/SAWTOOTH_f.js
@@ -0,0 +1,17 @@
+function SAWTOOTH_f () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["sawtth"]);
+ model.out = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble([0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,true]);
+
+ var exprs = " ";
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/SCALAR2VECTOR.js b/history/data_structures/SCALAR2VECTOR.js
new file mode 100644
index 0000000..67c696c
--- /dev/null
+++ b/history/data_structures/SCALAR2VECTOR.js
@@ -0,0 +1,18 @@
+function SCALAR2VECTOR () {
+
+
+ var nout = -1;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["scalar2vector"]),new ScilabDouble([4]));
+ model.out=new ScilabDouble([nout]);
+ model.in1 = new ScilabDouble([1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [string([nout])];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/SELECT_m.js b/history/data_structures/SELECT_m.js
new file mode 100644
index 0000000..e4970c8
--- /dev/null
+++ b/history/data_structures/SELECT_m.js
@@ -0,0 +1,31 @@
+function SELECT_m () {
+
+
+ var z0 = 1;
+
+ var nin = 2;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["selector_m"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([-1],[-1]);
+ model.in2 = new ScilabDouble([-2],[-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.firing = new ScilabDouble();
+ model.evtin=ones(nin,1);
+ model.dstate=new ScilabDouble([z0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[sci2exp(1)],[sci2exp(nin)],[sci2exp(z0)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/SELF_SWITCH.js b/history/data_structures/SELF_SWITCH.js
new file mode 100644
index 0000000..0966f74
--- /dev/null
+++ b/history/data_structures/SELF_SWITCH.js
@@ -0,0 +1,24 @@
+function SELF_SWITCH () {
+
+
+ var stateOpen = %t;
+ this.x=scicos_block();
+ this.x.gui = new ScilabString(["SELF_SWITCH"]);
+ this.x.graphics.sz = new ScilabDouble([2,2]);
+ this.x.graphics.gr_i = new ScilabDouble();
+ this.x.graphics.pin = new ScilabDouble([0]);
+ this.x.graphics.pout = new ScilabDouble([0]);
+ this.x.model.sim = new ScilabString(["csuper"]);
+ this.x.model.in1 = new ScilabDouble([1]);
+ this.x.model.out = new ScilabDouble([1]);
+ this.x.model.blocktype = new ScilabString(["h"]);
+ this.x.model.dep_ut = new ScilabBoolean([false,false]);
+ this.x.model.rpar=genSwitchInnerDiagram(stateOpen);
+ this.x.model.opar=list(stateOpen);
+ this.x.graphics.in_implicit = new ScilabString(["E"]);
+ this.x.graphics.in_style = new ScilabString([""]);
+ this.x.graphics.out_implicit = new ScilabString(["E"]);
+ this.x.graphics.out_style = new ScilabString([""]);
+ this.x.graphics.style = new ScilabString(["SELF_SWITCH_OFF"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/SHIFT.js b/history/data_structures/SHIFT.js
new file mode 100644
index 0000000..9d94041
--- /dev/null
+++ b/history/data_structures/SHIFT.js
@@ -0,0 +1,26 @@
+function SHIFT () {
+
+
+ var sgn = [[0],[0]];
+
+ var OPER = 0;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["shift_32_LA"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([-1]);
+ model.out = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.out2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([3]);
+ model.outtyp = new ScilabDouble([3]);
+ model.rpar = new ScilabDouble();
+ model.ipar=new ScilabDouble([sgn]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[sci2exp(3)],[sci2exp(0)],[sci2exp(0)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/SIGNUM.js b/history/data_structures/SIGNUM.js
new file mode 100644
index 0000000..39133f5
--- /dev/null
+++ b/history/data_structures/SIGNUM.js
@@ -0,0 +1,20 @@
+function SIGNUM () {
+
+
+ var nu = -1;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["signum"]),new ScilabDouble([4]));
+ model.in1.push(new ScilabDouble([nu]));
+ model.out=new ScilabDouble([nu]);
+ model.nzcross=new ScilabDouble([nu]);
+ model.nmode=new ScilabDouble([nu]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [string([1])];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/SINBLK_f.js b/history/data_structures/SINBLK_f.js
new file mode 100644
index 0000000..eda3ed0
--- /dev/null
+++ b/history/data_structures/SINBLK_f.js
@@ -0,0 +1,16 @@
+function SINBLK_f () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["sinblk"]);
+ model.in1 = new ScilabDouble([-1]);
+ model.out = new ScilabDouble([-1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = " ";
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/SOM_f.js b/history/data_structures/SOM_f.js
new file mode 100644
index 0000000..d17adbe
--- /dev/null
+++ b/history/data_structures/SOM_f.js
@@ -0,0 +1,19 @@
+function SOM_f () {
+
+
+ var sgn = [[1],[1],[1]];
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["sum"]),new ScilabDouble([2]));
+ model.in1 = new ScilabDouble([-1],[-1],[-1]);
+ model.out = new ScilabDouble([-1]);
+ model.rpar=new ScilabDouble([sgn]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[sci2exp(1)],[sci2exp(sgn)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/SQRT.js b/history/data_structures/SQRT.js
new file mode 100644
index 0000000..9988080
--- /dev/null
+++ b/history/data_structures/SQRT.js
@@ -0,0 +1,19 @@
+function SQRT () {
+
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["mat_sqrt"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = [sci2exp(1)];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/SRFLIPFLOP.js b/history/data_structures/SRFLIPFLOP.js
new file mode 100644
index 0000000..ae291fd
--- /dev/null
+++ b/history/data_structures/SRFLIPFLOP.js
@@ -0,0 +1,44 @@
+function SRFLIPFLOP () {
+
+
+ var scs_m = scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[600,450,0,0,600,450],Title=["SRFLIPFLOP"],tol=[0.0001;0.000001;1.000E-10;100001;0;0;0],tf=60,context=" ",void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list()));
+ scs_m.objs.push(scicos_block(gui="LOGIC",graphics=scicos_graphics(orig=[298.504,201.45067],sz=[40,40],flip=%t,theta=0,exprs=["[0,1;1,0;1,0;1,0;0,1;0,1;0,0;0,0]";"1"],pin=[4;10;12],pout=[3;8],pein=[],peout=[],gr_i=[],id="",in_implicit=["E";"E";"E"],out_implicit=["E";"E"]),model=scicos_model(sim=list("logic",4),in1=[1],[1],[1],in2=[1],[1],[1],intyp=[5],[5],[5],out=[1],[1],out2=[1],[1],outtyp=[5],[5],evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(int8([0,1);
+ 1,0;
+ 1,0;
+ 1,0;
+ 0,1;
+ 0,1;
+ 0,0;
+
+ var 0,0])),blocktype = "c",firing=%f,dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list());
+ scs_m.objs.push(scicos_block(gui="DOLLAR_m",graphics=scicos_graphics(orig=[299.23733,254.25067],sz=[40,40],flip=%f,theta=0,exprs=["int8(0)";"1"],pin=6,pout=4,pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("dollar4_m",4),in1=1,in2=1,intyp=5,out=1,out2=1,outtyp=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(new ScilabInteger([0])),rpar=[],ipar=[],opar=list(),blocktype="d",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([347.07543),yy: new ScilabDouble([228.11733),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([5,1,1])}));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([290.6659),yy: new ScilabDouble([274.25067),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([2,1,0]),to: new ScilabDouble([1,1,1])}));
+ scs_m.objs.push(scicos_block(gui="SPLIT_f",graphics=scicos_graphics(orig=[363.03733,248.584],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=3,pout=[6;14],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=["E";"E";"E"]),model=scicos_model(sim="lsplit",in1=-1,in2=[],intyp=1,out=[-1;-1;-1],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[%t,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([363.03733),yy: new ScilabDouble([248.584),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([5,1,0]),to: new ScilabDouble([2,1,1])}));
+ scs_m.objs.push(scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[367.07543,204.784],sz=[20,20],flip=%t,theta=0,exprs="2",pin=8,pout=[],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=[],intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=2,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([347.07543),yy: new ScilabDouble([214.784),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,2,0]),to: new ScilabDouble([7,1,1])}));
+ scs_m.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[249.93257,211.45067],sz=[20,20],flip=%t,theta=0,exprs="1",pin=[],pout=10,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([269.93257),yy: new ScilabDouble([221.45067),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([9,1,0]),to: new ScilabDouble([1,2,1])}));
+ scs_m.objs.push(scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[249.93257,201.45067],sz=[20,20],flip=%t,theta=0,exprs="2",pin=[],pout=12,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=2,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([269.93257),yy: new ScilabDouble([211.45067),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([11,1,0]),to: new ScilabDouble([1,3,1])}));
+ scs_m.objs.push(scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[383.03733,238.584],sz=[20,20],flip=%t,theta=0,exprs="1",pin=14,pout=[],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=[],intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m.objs.push(scicos_link({xx: new ScilabDouble([363.03733),yy: new ScilabDouble([248.584),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([5,2,0]),to: new ScilabDouble([13,1,1])}));
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["csuper"]);
+ model.in1 = new ScilabDouble([1],[1]);
+ model.in2 = new ScilabDouble([1],[1]);
+ model.out = new ScilabDouble([1],[1]);
+ model.out2 = new ScilabDouble([1],[1]);
+ model.intyp = new ScilabDouble([5,5]);
+ model.outtyp = new ScilabDouble([5,5]);
+ model.blocktype = new ScilabString(["h"]);
+ model.firing = new ScilabBoolean([false]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+ model.rpar=scs_m;
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,3]),model,[],gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/STEP_FUNCTION.js b/history/data_structures/STEP_FUNCTION.js
new file mode 100644
index 0000000..483a4c2
--- /dev/null
+++ b/history/data_structures/STEP_FUNCTION.js
@@ -0,0 +1,57 @@
+function STEP_FUNCTION () {
+
+
+ var scs_m_1 = scicos_diagram();
+ scs_m_1.objs.push(STEP("define"));
+ scs_m_1.objs.push(OUT_f("define"));
+ scs_m_1.objs.push(scicos_link({}));
+ scs_m_1.objs.push(scicos_link({}));
+
+ var blk = scs_m_1.objs(1);
+
+ var graphics = blk.graphics;
+
+ var model = blk.model;
+ graphics.orig = new ScilabDouble([0,0]);
+ graphics.sz = new ScilabDouble([40,40]);
+ graphics.pein = new ScilabDouble([4]);
+ graphics.peout = new ScilabDouble([4]);
+ graphics.pout = new ScilabDouble([3]);
+ blk.graphics=graphics;
+ blk.model=model;
+ scs_m_1.objs.push(blk);
+ blk=scs_m_1.objs(2);
+ graphics=blk.graphics;
+ model=blk.model;
+ graphics.orig = new ScilabDouble([80,10]);
+ graphics.sz = new ScilabDouble([20,20]);
+ graphics.exprs = new ScilabString(["1"]);
+ model.ipar = new ScilabDouble([1]);
+ graphics.pin = new ScilabDouble([3]);
+ blk.graphics=graphics;
+ blk.model=model;
+ scs_m_1.objs.push(blk);
+
+ var lnk = scs_m_1.objs(3);
+ lnk.from = new ScilabDouble([1,1,0]);
+ lnk.to = new ScilabDouble([2,1,1]);
+ scs_m_1.objs.push(lnk);
+ lnk=scs_m_1.objs(4);
+ lnk.xx = new ScilabDouble([0,20, -20,-20,20,1]);
+ lnk.yy = new ScilabDouble([0,-20,-20, 60,60,1]);
+ lnk.ct = new ScilabDouble([5,-1]);
+ lnk.from = new ScilabDouble([1,1,0]);
+ lnk.to = new ScilabDouble([1,1,1]);
+ scs_m_1.objs.push(lnk);
+ clear blk lnk
+ model=scicos_model();
+ model.sim = new ScilabString(["csuper"]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.rpar=scs_m_1;
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,[],gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/SUBMAT.js b/history/data_structures/SUBMAT.js
new file mode 100644
index 0000000..b8cea53
--- /dev/null
+++ b/history/data_structures/SUBMAT.js
@@ -0,0 +1,31 @@
+function SUBMAT () {
+
+
+ var model = scicos_model();
+
+ var function_name = "submat";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in1 = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble([1],[1],[1],[1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = [[sci2exp(1)],[sci2exp(1)],[sci2exp(1)],[sci2exp(1)],[sci2exp(1)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2.5,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/SUMMATION.js b/history/data_structures/SUMMATION.js
new file mode 100644
index 0000000..4c7fe1b
--- /dev/null
+++ b/history/data_structures/SUMMATION.js
@@ -0,0 +1,21 @@
+function SUMMATION () {
+
+
+ var sgn = [[1],[-1]];
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["summation"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([-1],[-1]);
+ model.out = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2],[-2]);
+ model.out2 = new ScilabDouble([-2]);
+ model.ipar=new ScilabDouble([sgn]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = sci2exp(sgn);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,3]),model,,exprs,gr_i);
+ return new Summation(this.x)
+}
diff --git a/history/data_structures/SUM_f.js b/history/data_structures/SUM_f.js
new file mode 100644
index 0000000..2497a34
--- /dev/null
+++ b/history/data_structures/SUM_f.js
@@ -0,0 +1,16 @@
+function SUM_f () {
+
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["plusblk"]),new ScilabDouble([2]));
+ model.in1 = new ScilabDouble([-1],[-1],[-1]);
+ model.out = new ScilabDouble([-1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var gr_i = [];
+
+ var exprs = [];
+ this.x=new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i);
+ return new RoundBlock(this.x)
+}
diff --git a/history/data_structures/SUPER_f.js b/history/data_structures/SUPER_f.js
new file mode 100644
index 0000000..5ed120a
--- /dev/null
+++ b/history/data_structures/SUPER_f.js
@@ -0,0 +1,28 @@
+function SUPER_f () {
+
+
+ var scs = scicos_diagram();
+ scs.props.title = new ScilabString(["Super,Block"]);
+
+ var in1 = IN_f("define");
+ in1.graphics.orig = new ScilabDouble([40,,40]);
+ in1.graphics.sz = new ScilabDouble([20,,20]);
+
+ var out = OUT_f("define");
+ out.graphics.orig = new ScilabDouble([240,,40]);
+ out.graphics.sz = new ScilabDouble([20,,20]);
+ scs.objs.push(in1);
+ scs.objs.push(out);
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["super"]);
+ model.in1 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar=scs;
+ model.blocktype = new ScilabString(["h"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,[],gr_i);
+ return new SuperBlock(this.x)
+}
diff --git a/history/data_structures/SWITCH2_m.js b/history/data_structures/SWITCH2_m.js
new file mode 100644
index 0000000..4c1934a
--- /dev/null
+++ b/history/data_structures/SWITCH2_m.js
@@ -0,0 +1,30 @@
+function SWITCH2_m () {
+
+
+ var ipar = [0];
+
+ var nzz = 1;
+
+ var rpar = 0;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["switch2_m"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([-1],[1],[-1]);
+ model.in2 = new ScilabDouble([-2],[1],[-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.outtyp = new ScilabDouble([1]);
+ model.ipar=new ScilabDouble([ipar]);
+ model.rpar=new ScilabDouble([rpar]);
+ model.nzcross=new ScilabDouble([nzz]);
+ model.nmode = new ScilabDouble([1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[sci2exp(1)],[string(ipar)],[string(rpar)],[string(nzz)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/SWITCH_f.js b/history/data_structures/SWITCH_f.js
new file mode 100644
index 0000000..f9a4f5e
--- /dev/null
+++ b/history/data_structures/SWITCH_f.js
@@ -0,0 +1,24 @@
+function SWITCH_f () {
+
+
+ var i0 = 0;
+
+ var in1 = [[-1],[-1]];
+
+ var nin = 2;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["switchn"]),new ScilabDouble([2]));
+ model.in1.push(in1);
+ model.out = new ScilabDouble([-1]);
+ model.ipar=new ScilabDouble([i0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,true]);
+
+ var exprs = [[string(nin)],[string(i0+1)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/SampleCLK.js b/history/data_structures/SampleCLK.js
new file mode 100644
index 0000000..51bf28a
--- /dev/null
+++ b/history/data_structures/SampleCLK.js
@@ -0,0 +1,15 @@
+function SampleCLK () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["sampleclk"]);
+ model.evtout = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([1,0]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([-1]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = [[sci2exp(1)],[sci2exp(0)]];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs," ");
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/Sigbuilder.js b/history/data_structures/Sigbuilder.js
new file mode 100644
index 0000000..a4c176c
--- /dev/null
+++ b/history/data_structures/Sigbuilder.js
@@ -0,0 +1,19 @@
+function Sigbuilder () {
+
+
+ var scs_m_1 = scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[600,450,0,0,600,450],Title=["Sigbuilder","./"],tol=[0.0001;0.000001;1.000D-10;100001;0;0;0],tf=100,context=" ",void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list()));
+ scs_m_1.objs.push(scicos_block(gui="CURVE_c",graphics=scicos_graphics(orig=[329.63473,606.18517],sz=[40,40],flip=%t,theta=0,exprs=["3";"[0,1,2]";"[10,20,-30]";"y";"n"],pin=[],pout=6,pein=4,peout=2,gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim=list("curve_c",4),in1=[],in2=[],intyp=1,out=1,out2=[],outtyp=1,evtin=1,evtout=1,state=[],dstate=[],odstate=list(),rpar=[0;1;2;10;20;-30],ipar=[3;3;1],opar=list(),blocktype="c",firing=0,dep_ut=[%f,%t],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([349.63473),yy: new ScilabDouble([600.47089),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([3,1,1])}));
+ scs_m_1.objs.push(scicos_block(gui="CLKSPLIT_f",graphics=scicos_graphics(orig=[349.49528;565.10704],sz=[0.3333333,0.3333333],flip=%t,theta=0,exprs=[],pin=[],pout=[],pein=2,peout=[8;4],gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim="split",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=1,evtout=[1;1],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="d",firing=[%f,%f,%f],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([349.49528),yy: new ScilabDouble([565.10704),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([3,2,0]),to: new ScilabDouble([1,1,1])}));
+ scs_m_1.objs.push(scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[398.20616,616.18517],sz=[20,20],flip=%t,theta=0,exprs="1",pin=6,pout=[],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=-2,intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([378.20616),yy: new ScilabDouble([626.18517),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([1,1]),from: new ScilabDouble([1,1,0]),to: new ScilabDouble([5,1,1])}));
+ scs_m_1.objs.push(scicos_block(gui="CLKOUTV_f",graphics=scicos_graphics(orig=[339.49528,505.10704],sz=[20,30],flip=%t,theta=0,exprs="1",pin=[],pout=[],pein=8,peout=[],gr_i=[],id="",in_implicit=[],out_implicit=[]),model=scicos_model(sim="output",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=1,evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="d",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list()),doc=list()));
+ scs_m_1.objs.push(scicos_link({xx: new ScilabDouble([349.49528),yy: new ScilabDouble([565.10704),thick: new ScilabDouble([0,0]),ct: new ScilabDouble([5,-1]),from: new ScilabDouble([3,1,0]),to: new ScilabDouble([7,1,1])}));
+
+ var model = scicos_model(sim="csuper",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=1,evtin=[],evtout=1,state=[],dstate=[],odstate=list(),rpar=scs_m_1,ipar=[],opar=list(),blocktype="h",firing=[],dep_ut=[%f,%f],label="",nzcross=0,nmode=0,equations=list());
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,[],gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/SineVoltage.js b/history/data_structures/SineVoltage.js
new file mode 100644
index 0000000..99e8b10
--- /dev/null
+++ b/history/data_structures/SineVoltage.js
@@ -0,0 +1,36 @@
+function SineVoltage () {
+
+
+ var model = scicos_model();
+ model.in1 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+
+ var V = 1;
+
+ var ph = 0;
+
+ var frq = 1;
+
+ var offset = 0;
+
+ var start = 0;
+ model.rpar = new ScilabDouble([V],[ph],[frq],[offset],[start]);
+ model.sim = new ScilabString(["SineVoltage"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var mo = modelica();
+ mo.model = new ScilabString(["SineVoltage"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["n"]);
+ mo.parameters=list(new ScilabString(["V";"phase";"freqHz";"offset";"startTime"]),list(V,ph,frq,offset,start));
+ model.equations=mo;
+
+ var exprs = [[string(V)],[string(ph)],[string(frq)],[string(offset)],[string(start)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/SourceP.js b/history/data_structures/SourceP.js
new file mode 100644
index 0000000..fa2cd52
--- /dev/null
+++ b/history/data_structures/SourceP.js
@@ -0,0 +1,33 @@
+function SourceP () {
+
+
+ var model = scicos_model();
+
+ var P0 = 300000;
+
+ var T0 = 290;
+
+ var H0 = 100000;
+
+ var option_temperature = 1;
+ model.rpar = new ScilabDouble([P0],[T0],[H0],[option_temperature]);
+ model.sim = new ScilabString(["Source"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var mo = modelica();
+ mo.model = new ScilabString(["Source"]);
+ mo.inputs = new ScilabDouble();
+ mo.outputs = new ScilabString(["C"]);
+ mo.parameters=list(new ScilabString(["P0";"T0";"H0";"option_temperature"]),[P0],[T0],[H0],[option_temperature]);
+ model.equations=mo;
+ model.in1.push(ones(size(mo.inputs,"*"),1));
+ model.out=ones(size(mo.outputs,"*"),1);
+
+ var exprs = [[string(P0)],[string(T0)],[string(H0)],[string(option_temperature)]];
+
+ var gr_i = [];
+ this.x=standard_define([2.5,2],model,exprs,list(gr_i,0));
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/Switch.js b/history/data_structures/Switch.js
new file mode 100644
index 0000000..3b7d196
--- /dev/null
+++ b/history/data_structures/Switch.js
@@ -0,0 +1,34 @@
+function Switch () {
+
+
+ var model = scicos_model();
+
+ var Ron = 0.01;
+
+ var Roff = 1e5;
+
+ var S = ["Ron";"Roff"];
+
+ var Z = eval(S);
+ model.sim = new ScilabString(["Switch"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var mo = modelica();
+ mo.model=model.sim;
+ mo.inputs = new ScilabString(["p";"inp"]);
+ mo.outputs = new ScilabString(["n"]);
+ mo.parameters=list(S,Z);
+ model.equations=mo;
+ model.in1.push(ones(size(mo.inputs,"*"),1));
+ model.out=ones(size(mo.outputs,"*"),1);
+ model.rpar=Z;
+
+ var exprs = string(Z);
+
+ var gr_i = [];
+ this.x=standard_define([2,2],model,exprs,list(gr_i,0));
+ this.x.graphics.in_implicit = new ScilabString(["I";"E"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/TANBLK_f.js b/history/data_structures/TANBLK_f.js
new file mode 100644
index 0000000..e20343a
--- /dev/null
+++ b/history/data_structures/TANBLK_f.js
@@ -0,0 +1,18 @@
+function TANBLK_f () {
+
+
+ var in1 = -1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["tanblk"]);
+ model.in1.push(new ScilabDouble([in1]));
+ model.out=new ScilabDouble([in1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = sci2exp(in1);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/TCLSS.js b/history/data_structures/TCLSS.js
new file mode 100644
index 0000000..f472447
--- /dev/null
+++ b/history/data_structures/TCLSS.js
@@ -0,0 +1,27 @@
+function TCLSS () {
+
+
+ var x0 = 0],[A=0],[B=1],[C=1],[D=0;
+
+ var in1 = 1;
+
+ var nx = size(x0,"*");
+
+ var out = 1;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["tcslti4"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([in1],[nx]);
+ model.out=new ScilabDouble([out]);
+ model.evtin = new ScilabDouble([1]);
+ model.state=new ScilabDouble([x0]);
+ model.rpar = new ScilabDouble([...colon_operator(A,:)],[...B],[C(,)],[...D]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,true]);
+
+ var exprs = [[strcat(sci2exp(A))],[strcat(sci2exp(B))],[strcat(sci2exp(C))],[strcat(sci2exp(D))],[strcat(sci2exp(x0))]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/TEXT_f.js b/history/data_structures/TEXT_f.js
new file mode 100644
index 0000000..4ca293e
--- /dev/null
+++ b/history/data_structures/TEXT_f.js
@@ -0,0 +1,21 @@
+function TEXT_f () {
+
+
+ var font = 2;
+
+ var siz = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["text"]);
+ model.rpar = new ScilabString(["Text"]);
+ model.ipar = new ScilabDouble([font],[siz]);
+
+ var exprs = [["Text"],[string(font)],[,string(siz)]];
+
+ var graphics = scicos_graphics();
+ graphics.orig = new ScilabDouble([0,0]);
+ graphics.sz = new ScilabDouble([2,1]);
+ graphics.exprs=new ScilabString([exprs]);
+ this.x=mlist(new ScilabString(["Text","graphics","model","void","gui"]),graphics,model,new ScilabString([" "]),new ScilabString(["TEXT_f"]));
+ return new TextBlock(this.x)
+}
diff --git a/history/data_structures/TIME_DELAY.js b/history/data_structures/TIME_DELAY.js
new file mode 100644
index 0000000..82a1e99
--- /dev/null
+++ b/history/data_structures/TIME_DELAY.js
@@ -0,0 +1,26 @@
+function TIME_DELAY () {
+
+
+ var nin = 1;
+
+ var T = 1;
+
+ var init = 0;
+
+ var N = 1024;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["time_delay"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([nin]);
+ model.out=new ScilabDouble([nin]);
+ model.rpar = new ScilabDouble([T,init]);
+ model.ipar=new ScilabDouble([N]);
+ model.blocktype = new ScilabString(["x"]);
+ model.dep_ut = new ScilabBoolean([false,true]);
+
+ var exprs = [[string(T)],[string(init)],[string(N)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3.5,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/TIME_f.js b/history/data_structures/TIME_f.js
new file mode 100644
index 0000000..69d4312
--- /dev/null
+++ b/history/data_structures/TIME_f.js
@@ -0,0 +1,13 @@
+function TIME_f () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["timblk"]);
+ model.out = new ScilabDouble([1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,true]);
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,[],gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/TKSCALE.js b/history/data_structures/TKSCALE.js
new file mode 100644
index 0000000..5c7bd8e
--- /dev/null
+++ b/history/data_structures/TKSCALE.js
@@ -0,0 +1,23 @@
+function TKSCALE () {
+
+
+ var a = -10;
+
+ var b = 10;
+
+ var f = 1;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["tkscaleblk"]),new ScilabDouble([5]));
+ model.out = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([a],[b],[f]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = [[sci2exp(a)],[sci2exp(b)],[sci2exp(f)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/TOWS_c.js b/history/data_structures/TOWS_c.js
new file mode 100644
index 0000000..6094f11
--- /dev/null
+++ b/history/data_structures/TOWS_c.js
@@ -0,0 +1,31 @@
+function TOWS_c () {
+
+
+ var nu = -1;
+
+ var nz = 128;
+
+ var varnam = "A";
+
+ var herit = 0;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["tows_c"]),,new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([nu]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([-1]);
+ model.out = new ScilabDouble();
+ model.evtin = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble([nz],[,length(varnam)],[,ascii(varnam)']);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var gr_i = [];
+
+ var exprs = [[string(nz)],[,string(varnam)],[,string(herit)]];
+ this.x=new standard_define(new ScilabDouble([4,2]),,model,,exprs,,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/TRASH_f.js b/history/data_structures/TRASH_f.js
new file mode 100644
index 0000000..c9e4ac4
--- /dev/null
+++ b/history/data_structures/TRASH_f.js
@@ -0,0 +1,18 @@
+function TRASH_f () {
+
+
+ var in1 = -1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["trash"]);
+ model.in1.push(new ScilabDouble([in1]));
+ model.evtin = new ScilabDouble([1]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = " ";
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/TrigFun.js b/history/data_structures/TrigFun.js
new file mode 100644
index 0000000..736a8c2
--- /dev/null
+++ b/history/data_structures/TrigFun.js
@@ -0,0 +1,16 @@
+function TrigFun () {
+
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["sin_blk"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([-1]);
+ model.out = new ScilabDouble([-1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = "sin";
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/VARIABLE_DELAY.js b/history/data_structures/VARIABLE_DELAY.js
new file mode 100644
index 0000000..81d29f1
--- /dev/null
+++ b/history/data_structures/VARIABLE_DELAY.js
@@ -0,0 +1,26 @@
+function VARIABLE_DELAY () {
+
+
+ var nin = 1;
+
+ var T = 1;
+
+ var init = 0;
+
+ var N = 1024;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["variable_delay"]),new ScilabDouble([4]));
+ model.in1 = new ScilabDouble([nin],[1]);
+ model.out=new ScilabDouble([nin]);
+ model.rpar = new ScilabDouble([T,init]);
+ model.ipar=new ScilabDouble([N]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = [[string(T)],[string(init)],[string(N)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/VVsourceAC.js b/history/data_structures/VVsourceAC.js
new file mode 100644
index 0000000..78dcc38
--- /dev/null
+++ b/history/data_structures/VVsourceAC.js
@@ -0,0 +1,30 @@
+function VVsourceAC () {
+
+
+ var model = scicos_model();
+ model.in1 = new ScilabDouble([1],[1]);
+ model.out = new ScilabDouble([1]);
+
+ var VA = 220;
+
+ var FR = 50;
+ model.rpar = new ScilabDouble([FR]);
+ model.sim = new ScilabString(["VVsourceAC"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var mo = modelica();
+ mo.model = new ScilabString(["VVsourceAC"]);
+ mo.inputs = new ScilabString(["p","VA"]);
+ mo.outputs = new ScilabString(["n"]);
+ mo.parameters=list(new ScilabString(["f"]),list(FR));
+ model.equations=mo;
+
+ var exprs = [string(FR)];
+
+ var gr_i = [];
+ this.x=standard_define([2,2],model,exprs,list(gr_i,0));
+ this.x.graphics.in_implicit = new ScilabString(["I","E"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/VanneReglante.js b/history/data_structures/VanneReglante.js
new file mode 100644
index 0000000..8e3dc25
--- /dev/null
+++ b/history/data_structures/VanneReglante.js
@@ -0,0 +1,32 @@
+function VanneReglante () {
+
+
+ var model = scicos_model();
+ model.in1 = new ScilabDouble([1],[1]);
+ model.out = new ScilabDouble([1]);
+
+ var Cvmax = 8005.42;
+
+ var p_rho = 0;
+ model.rpar = new ScilabDouble([Cvmax],[p_rho]);
+ model.sim = new ScilabString(["VanneReglante"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var mo = modelica();
+ mo.model = new ScilabString(["VanneReglante"]);
+ mo.inputs = new ScilabString(["C1" "Ouv"]);
+ mo.outputs = new ScilabString(["C2"]);
+ mo.parameters=list(new ScilabString(["Cvmax";"p_rho"]),[Cvmax],[p_rho]);
+ model.equations=mo;
+ model.in1.push(ones(size(mo.inputs,"*"),1));
+ model.out=ones(size(mo.outputs,"*"),1);
+
+ var exprs = [[string(Cvmax)],[string(p_rho)]];
+
+ var gr_i = [];
+ this.x=standard_define([2,2],model,exprs,list(gr_i,0));
+ this.x.graphics.in_implicit = new ScilabString(["I";"E"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/VariableResistor.js b/history/data_structures/VariableResistor.js
new file mode 100644
index 0000000..bfb7914
--- /dev/null
+++ b/history/data_structures/VariableResistor.js
@@ -0,0 +1,24 @@
+function VariableResistor () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["VariableResistor"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var mo = modelica();
+ mo.model = new ScilabString(["VariableResistor"]);
+ mo.inputs = new ScilabString(["p","R"]);
+ mo.outputs = new ScilabString(["n"]);
+ model.equations=mo;
+ model.in1.push(ones(size(mo.inputs,"*"),1));
+ model.out=ones(size(mo.outputs,"*"),1);
+
+ var exprs = [];
+
+ var gr_i = [];
+ this.x=standard_define([2,2],model,exprs,list(gr_i,0));
+ this.x.graphics.in_implicit = new ScilabString(["I","E"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/VirtualCLK0.js b/history/data_structures/VirtualCLK0.js
new file mode 100644
index 0000000..82fa621
--- /dev/null
+++ b/history/data_structures/VirtualCLK0.js
@@ -0,0 +1,16 @@
+function VirtualCLK0 () {
+
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["vrtclk0"]);
+ model.evtin = new ScilabDouble([1]);
+ model.opar=list();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([-1]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs," ");
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/VoltageSensor.js b/history/data_structures/VoltageSensor.js
new file mode 100644
index 0000000..3eab08a
--- /dev/null
+++ b/history/data_structures/VoltageSensor.js
@@ -0,0 +1,24 @@
+function VoltageSensor () {
+
+
+ var model = scicos_model();
+ model.in1 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1],[,1]);
+ model.sim = new ScilabString(["VoltageSensor"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var mo = modelica();
+ mo.model = new ScilabString(["VoltageSensor"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["n";"v"]);
+ model.equations=mo;
+
+ var exprs = [];
+
+ var gr_i = [];
+ this.x=standard_define([2,2],model,exprs,list(gr_i,0));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I";"E"]);
+ return new VoltageSensorBlock(this.x)
+}
diff --git a/history/data_structures/VsourceAC.js b/history/data_structures/VsourceAC.js
new file mode 100644
index 0000000..fa02afd
--- /dev/null
+++ b/history/data_structures/VsourceAC.js
@@ -0,0 +1,30 @@
+function VsourceAC () {
+
+
+ var model = scicos_model();
+ model.in1 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+
+ var VA = 220;
+
+ var FR = 50;
+ model.rpar = new ScilabDouble([VA],[FR]);
+ model.sim = new ScilabString(["VsourceAC"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var mo = modelica();
+ mo.model = new ScilabString(["VsourceAC"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["n"]);
+ mo.parameters=list(new ScilabString(["VA";"f"]),list(VA,FR));
+ model.equations=mo;
+
+ var exprs = [[string(VA)],[string(FR)]];
+
+ var gr_i = [];
+ this.x=standard_define([2,2],model,exprs,list(gr_i,0));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/WFILE_f.js b/history/data_structures/WFILE_f.js
new file mode 100644
index 0000000..7e9a4ed
--- /dev/null
+++ b/history/data_structures/WFILE_f.js
@@ -0,0 +1,30 @@
+function WFILE_f () {
+
+
+ var in1 = 1;
+
+ var nin = sum(in1);
+
+ var frmt = "(7(e10.3,1x))";
+
+ var fname = "foo";
+
+ var lunit = 0;
+
+ var N = 2;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["writef"]);
+ model.in1.push(new ScilabDouble([in1]));
+ model.evtin = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble([-1],[lunit],[zeros((nin+1)*N,1)]);
+ model.ipar = new ScilabDouble([length(fname)],[length(frmt)],[0],[N],[_str2code(fname)],[_str2code(frmt)]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[sci2exp(in1)],[fname],[frmt],[string(N)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/WRITEAU_f.js b/history/data_structures/WRITEAU_f.js
new file mode 100644
index 0000000..d831faf
--- /dev/null
+++ b/history/data_structures/WRITEAU_f.js
@@ -0,0 +1,32 @@
+function WRITEAU_f () {
+
+
+ var in1 = 1;
+
+ var nin = sum(in1);
+
+ var frmt = "uc,";
+
+ var fname = "/dev/audio";
+
+ var swap = 0;
+
+ var lunit = 0;
+
+ var N = 2;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["writeau"]),new ScilabDouble([2]));
+ model.in1.push(new ScilabDouble([in1]));
+ model.evtin = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble([-1],[lunit],[zeros((nin+1)*N,1)]);
+ model.ipar = new ScilabDouble([length(fname)],[_str2code(frmt)],[N],[swap],[_str2code(fname)]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [string(N)string(swap)];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/WRITEC_f.js b/history/data_structures/WRITEC_f.js
new file mode 100644
index 0000000..3f8f785
--- /dev/null
+++ b/history/data_structures/WRITEC_f.js
@@ -0,0 +1,32 @@
+function WRITEC_f () {
+
+
+ var in1 = 1;
+
+ var nin = sum(in1);
+
+ var frmt = "c, ";
+
+ var fname = "foo";
+
+ var swap = 0;
+
+ var lunit = 0;
+
+ var N = 2;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["writec"]),new ScilabDouble([2]));
+ model.in1.push(new ScilabDouble([in1]));
+ model.evtin = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble([-1],[lunit],[zeros((nin+1)*N,1)]);
+ model.ipar = new ScilabDouble([length(fname)],[_str2code(frmt)],[N],[swap],[_str2code(fname)]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = [[sci2exp(in1)],[fname],[frmt],[string(N)string(swap)]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/ZCROSS_f.js b/history/data_structures/ZCROSS_f.js
new file mode 100644
index 0000000..de4b8d9
--- /dev/null
+++ b/history/data_structures/ZCROSS_f.js
@@ -0,0 +1,23 @@
+function ZCROSS_f () {
+
+
+ var rpar = [[-1],[-1],[0],[0]];
+
+ var in1 = 1;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["zcross"]),new ScilabDouble([1]));
+ model.in1.push(new ScilabDouble([in1]));
+ model.nzcross=new ScilabDouble([in1]);
+ model.evtout = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([-1],[-1],[0],[0]);
+ model.blocktype = new ScilabString(["z"]);
+ model.firing = new ScilabDouble([-1]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = strcat(sci2exp(in1));
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/c_block.js b/history/data_structures/c_block.js
new file mode 100644
index 0000000..97c9cae
--- /dev/null
+++ b/history/data_structures/c_block.js
@@ -0,0 +1,43 @@
+function c_block () {
+
+
+ var in1 = 1;
+
+ var out = 1;
+
+ var clkin = [];
+
+ var clkout = [];
+
+ var x0 = [];
+
+ var z0 = [];
+
+ var typ = "c";
+
+ var auto = [];
+
+ var rpar = [];
+
+ var funam = "toto";
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString([" "]),new ScilabDouble([2001]));
+ model.in1.push(new ScilabDouble([in1]));
+ model.out=new ScilabDouble([out]);
+ model.evtin=clkin;
+ model.evtout=clkout;
+ model.state=x0;
+ model.dstate=z0;
+ model.rpar=rpar;
+ model.ipar = new ScilabDouble([0]);
+ model.blocktype=new ScilabString([typ]);
+ model.firing=auto;
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = list([sci2exp(in1)],[sci2exp(out)],[ strcat(sci2exp(rpar))],[funam],list([]));
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/fortran_block.js b/history/data_structures/fortran_block.js
new file mode 100644
index 0000000..5abf2b0
--- /dev/null
+++ b/history/data_structures/fortran_block.js
@@ -0,0 +1,25 @@
+function fortran_block () {
+
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString([" "]),new ScilabDouble([1001]));
+ model.in1 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble([0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var funam = "forty";
+
+ var label = list([sci2exp(model.in1)],[sci2exp(model.out)],[strcat(sci2exp(model.rpar))],[funam],list([]));
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([4,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/freq_div.js b/history/data_structures/freq_div.js
new file mode 100644
index 0000000..47bdf8a
--- /dev/null
+++ b/history/data_structures/freq_div.js
@@ -0,0 +1,113 @@
+function freq_div () {
+
+
+ var scs_m_1 = scicos_diagram();
+ scs_m_1.objs.push(Modulo_Count("define"));
+ scs_m_1.objs.push(CLKINV_f("define"));
+ scs_m_1.objs.push(CLKOUTV_f("define"));
+ scs_m_1.objs.push(IFTHEL_f("define"));
+ scs_m_1.objs.push(CLKSPLIT_f("define"));
+ scs_m_1.objs.push(scicos_link({}));
+ scs_m_1.objs.push(scicos_link({}));
+ scs_m_1.objs.push(scicos_link({}));
+ scs_m_1.objs.push(scicos_link({}));
+ scs_m_1.objs.push(scicos_link({}));
+
+ var blk = scs_m_1.objs(1);
+
+ var graphics = blk.graphics;
+
+ var model = blk.model;
+ graphics.orig = new ScilabDouble([0,-100]);
+ graphics.sz = new ScilabDouble([60,40]);
+ graphics.exprs = new ScilabString(["0";"3"]);
+ model.dstate = new ScilabDouble([3]);
+ model.ipar = new ScilabDouble([3]);
+ graphics.pout = new ScilabDouble([7]);
+ graphics.pein = new ScilabDouble([10]);
+ blk.graphics=graphics;
+ blk.model=model;
+ scs_m_1.objs.push(blk);
+ blk=scs_m_1.objs(2);
+ graphics=blk.graphics;
+ model=blk.model;
+ graphics.orig = new ScilabDouble([120,0]);
+ graphics.sz = new ScilabDouble([20,20]);
+ graphics.exprs = new ScilabString(["1"]);
+ model.ipar = new ScilabDouble([1]);
+ graphics.peout = new ScilabDouble([6]);
+ blk.graphics=graphics;
+ blk.model=model;
+ scs_m_1.objs.push(blk);
+ blk=scs_m_1.objs(3);
+ graphics=blk.graphics;
+ model=blk.model;
+ graphics.orig = new ScilabDouble([130,-160]);
+ graphics.sz = new ScilabDouble([20,20]);
+ graphics.exprs = new ScilabString(["1"]);
+ model.ipar = new ScilabDouble([1]);
+ graphics.pein = new ScilabDouble([8]);
+ blk.graphics=graphics;
+ blk.model=model;
+ scs_m_1.objs.push(blk);
+ blk=scs_m_1.objs(4);
+ graphics=blk.graphics;
+ model=blk.model;
+ graphics.orig = new ScilabDouble([100,-100]);
+ graphics.sz = new ScilabDouble([60,40]);
+ graphics.exprs = new ScilabString(["1";"0"]);
+ model.ipar = new ScilabDouble([1]);
+ graphics.pin = new ScilabDouble([7]);
+ graphics.pein = new ScilabDouble([9]);
+ graphics.peout = new ScilabDouble([0],[8]);
+ blk.graphics=graphics;
+ blk.model=model;
+ scs_m_1.objs.push(blk);
+ blk=scs_m_1.objs(5);
+ graphics=blk.graphics;
+ model=blk.model;
+ graphics.orig = new ScilabDouble([127,-33]);
+ graphics.sz = new ScilabDouble([7,7]);
+ graphics.pein = new ScilabDouble([6]);
+ graphics.peout = new ScilabDouble([9],[10]);
+ blk.graphics=graphics;
+ blk.model=model;
+ scs_m_1.objs.push(blk);
+
+ var lnk = scs_m_1.objs(6);
+ lnk.ct = new ScilabDouble([5,-1]);
+ lnk.from = new ScilabDouble([2,1,0]);
+ lnk.to = new ScilabDouble([5,1,1]);
+ scs_m_1.objs.push(lnk);
+ lnk=scs_m_1.objs(7);
+ lnk.from = new ScilabDouble([1,1,0]);
+ lnk.to = new ScilabDouble([4,1,1]);
+ scs_m_1.objs.push(lnk);
+ lnk=scs_m_1.objs(8);
+ lnk.ct = new ScilabDouble([5,-1]);
+ lnk.from = new ScilabDouble([4,2,0]);
+ lnk.to = new ScilabDouble([3,1,1]);
+ scs_m_1.objs.push(lnk);
+ lnk=scs_m_1.objs(9);
+ lnk.ct = new ScilabDouble([5,-1]);
+ lnk.from = new ScilabDouble([5,1,0]);
+ lnk.to = new ScilabDouble([4,1,1]);
+ scs_m_1.objs.push(lnk);
+ lnk=scs_m_1.objs(10);
+ lnk.xx = new ScilabDouble([0,30,1]);
+ lnk.yy = new ScilabDouble([0,-30,1]);
+ lnk.ct = new ScilabDouble([5,-1]);
+ lnk.from = new ScilabDouble([5,2,0]);
+ lnk.to = new ScilabDouble([1,1,1]);
+ scs_m_1.objs.push(lnk);
+ clear blk lnk
+ model=scicos_model();
+ model.sim = new ScilabString(["csuper"]);
+ model.evtin = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble([1]);
+ model.rpar=scs_m_1;
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([3,2]),model,[],gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/generic_block3.js b/history/data_structures/generic_block3.js
new file mode 100644
index 0000000..82804f0
--- /dev/null
+++ b/history/data_structures/generic_block3.js
@@ -0,0 +1,23 @@
+function generic_block3 () {
+
+
+ var model = scicos_model();
+
+ var function_name = "sinblk";
+
+ var funtyp = 4;
+ model.sim=list(function_name,funtyp);
+ model.in1 = new ScilabDouble([1]);
+ model.in2 = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var label = [[function_name;sci2exp(funtyp);sci2exp([model.in1,model.in2]);sci2exp(model.intyp);sci2exp([model.out,model.out2])sci2exp(model.outtyp);sci2exp(model.evtin);sci2exp(model.evtout);sci2exp(model.state);sci2exp(model.dstate);sci2exp(model.odstate);sci2exp(model.rpar);sci2exp(model.ipar);sci2exp(model.opar);sci2exp(model.nmode);sci2exp(model.nzcross);sci2exp(model.firing);"y";"n"]];
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([4,2]),model,label,gr_i);
+ return new BasicBlock(this.x)
+}
diff --git a/history/data_structures/scifunc_block_m.js b/history/data_structures/scifunc_block_m.js
new file mode 100644
index 0000000..20d082c
--- /dev/null
+++ b/history/data_structures/scifunc_block_m.js
@@ -0,0 +1,51 @@
+function scifunc_block_m () {
+
+
+ var in1 = 1;
+
+ var out = 1;
+
+ var clkin = [];
+
+ var clkout = [];
+
+ var x0 = [];
+
+ var z0 = [];
+
+ var typ = "c";
+
+ var auto = [];
+
+ var rpar = [];
+
+ var it = 1;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["scifunc"]),new ScilabDouble([3]));
+ model.in1.push(new ScilabDouble([in1]));
+ model.in2.push(new ScilabDouble([in1]));
+ model.intyp=new ScilabDouble([it]);
+ model.out=new ScilabDouble([out]);
+ model.out2.push(new ScilabDouble([out]));
+ model.outtyp=new ScilabDouble([it]);
+ model.evtin=clkin;
+ model.evtout=clkout;
+ model.state=x0;
+ model.dstate=z0;
+ model.rpar=rpar;
+ model.ipar = new ScilabDouble([0]);
+ model.opar=list();
+ model.blocktype=new ScilabString([typ]);
+ model.firing=auto;
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = list([sci2exp([in1,in1])],[sci2exp([out,out])],[sci2exp(clkin)],[sci2exp(clkout);
+ strcat(sci2exp(x0));strcat(sci2exp(z0));
+
+ var strcat(sci2exp(rpar));sci2exp(auto);sci2exp(0)],list("y1 = sin(u1)"," "," ","y1=sin(u1)"," "," "," "));
+
+ var gr_i = [];
+ this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i);
+ return new BasicBlock(this.x)
+}