summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md15
-rwxr-xr-xWEB-INF/web.xml38
-rw-r--r--nb-configuration.xml19
-rw-r--r--pom.xml81
-rw-r--r--[-rwxr-xr-x]src/main/java/fossee/xcos/on/web/SciExec.java (renamed from WEB-INF/classes/SciExec.java)73
-rw-r--r--src/main/webapp/META-INF/context.xml2
-rw-r--r--src/main/webapp/WEB-INF/web.xml16
-rw-r--r--src/main/webapp/blocks/3DSCOPE.svg (renamed from blocks/3DSCOPE.svg)0
-rw-r--r--src/main/webapp/blocks/ANDBLK.svg (renamed from blocks/ANDBLK.svg)0
-rw-r--r--src/main/webapp/blocks/ASCOPE.svg (renamed from blocks/ASCOPE.svg)0
-rw-r--r--src/main/webapp/blocks/BACHE.svg (renamed from blocks/BACHE.svg)0
-rw-r--r--src/main/webapp/blocks/BARXY.svg (renamed from blocks/BARXY.svg)0
-rw-r--r--src/main/webapp/blocks/BPLATFORM.svg (renamed from blocks/BPLATFORM.svg)0
-rw-r--r--src/main/webapp/blocks/CCS.svg (renamed from blocks/CCS.svg)0
-rw-r--r--src/main/webapp/blocks/CLOCK_c.svg (renamed from blocks/CLOCK_c.svg)0
-rw-r--r--src/main/webapp/blocks/CLOCK_f.svg (renamed from blocks/CLOCK_f.svg)0
-rw-r--r--src/main/webapp/blocks/CSCOPXY.svg (renamed from blocks/CSCOPXY.svg)0
-rw-r--r--src/main/webapp/blocks/CSCOPXY3D.svg (renamed from blocks/CSCOPXY3D.svg)0
-rw-r--r--src/main/webapp/blocks/CVS.svg (renamed from blocks/CVS.svg)0
-rw-r--r--src/main/webapp/blocks/Capacitor.svg (renamed from blocks/Capacitor.svg)0
-rw-r--r--src/main/webapp/blocks/ConstantVoltage.svg (renamed from blocks/ConstantVoltage.svg)0
-rw-r--r--src/main/webapp/blocks/CurrentSensor.svg (renamed from blocks/CurrentSensor.svg)0
-rw-r--r--src/main/webapp/blocks/DEADBAND.svg (renamed from blocks/DEADBAND.svg)0
-rw-r--r--src/main/webapp/blocks/DSCOPE.svg (renamed from blocks/DSCOPE.svg)0
-rw-r--r--src/main/webapp/blocks/Diode.svg (renamed from blocks/Diode.svg)0
-rw-r--r--src/main/webapp/blocks/Flowmeter.svg (renamed from blocks/Flowmeter.svg)0
-rw-r--r--src/main/webapp/blocks/Ground.svg (renamed from blocks/Ground.svg)0
-rw-r--r--src/main/webapp/blocks/Gyrator.svg (renamed from blocks/Gyrator.svg)0
-rw-r--r--src/main/webapp/blocks/HYSTHERESIS.svg (renamed from blocks/HYSTHERESIS.svg)0
-rw-r--r--src/main/webapp/blocks/INTEGRAL.svg (renamed from blocks/INTEGRAL.svg)0
-rw-r--r--src/main/webapp/blocks/IdealTransformer.svg (renamed from blocks/IdealTransformer.svg)0
-rw-r--r--src/main/webapp/blocks/Inductor.svg (renamed from blocks/Inductor.svg)0
-rw-r--r--src/main/webapp/blocks/NMOS.svg (renamed from blocks/NMOS.svg)0
-rw-r--r--src/main/webapp/blocks/NPN.svg (renamed from blocks/NPN.svg)0
-rw-r--r--src/main/webapp/blocks/PMOS.svg (renamed from blocks/PMOS.svg)0
-rw-r--r--src/main/webapp/blocks/PNP.svg (renamed from blocks/PNP.svg)0
-rw-r--r--src/main/webapp/blocks/PRODUCT.svg (renamed from blocks/PRODUCT.svg)0
-rw-r--r--src/main/webapp/blocks/PULSE_SC.svg (renamed from blocks/PULSE_SC.svg)0
-rw-r--r--src/main/webapp/blocks/PerteDP.svg (renamed from blocks/PerteDP.svg)0
-rw-r--r--src/main/webapp/blocks/PotentialSensor.svg (renamed from blocks/PotentialSensor.svg)0
-rw-r--r--src/main/webapp/blocks/PuitP.svg (renamed from blocks/PuitP.svg)0
-rw-r--r--src/main/webapp/blocks/QUANT_f.svg (renamed from blocks/QUANT_f.svg)0
-rw-r--r--src/main/webapp/blocks/RAMP.svg (renamed from blocks/RAMP.svg)0
-rw-r--r--src/main/webapp/blocks/Resistor.svg (renamed from blocks/Resistor.svg)0
-rw-r--r--src/main/webapp/blocks/SATURATION.svg (renamed from blocks/SATURATION.svg)0
-rw-r--r--src/main/webapp/blocks/SINUS_f.svg (renamed from blocks/SINUS_f.svg)0
-rw-r--r--src/main/webapp/blocks/SQUARE_WAVE_f.svg (renamed from blocks/SQUARE_WAVE_f.svg)0
-rw-r--r--src/main/webapp/blocks/STEP_FUNCTION.svg (renamed from blocks/STEP_FUNCTION.svg)0
-rw-r--r--src/main/webapp/blocks/SUM.svg (renamed from blocks/SUM.svg)0
-rw-r--r--src/main/webapp/blocks/SUPER.svg (renamed from blocks/SUPER.svg)0
-rw-r--r--src/main/webapp/blocks/SWITCH.svg (renamed from blocks/SWITCH.svg)0
-rw-r--r--src/main/webapp/blocks/SampleCLK.svg (renamed from blocks/SampleCLK.svg)0
-rw-r--r--src/main/webapp/blocks/Self_Switch_off.svg (renamed from blocks/Self_Switch_off.svg)0
-rw-r--r--src/main/webapp/blocks/Self_Switch_on.svg (renamed from blocks/Self_Switch_on.svg)0
-rw-r--r--src/main/webapp/blocks/SourceP.svg (renamed from blocks/SourceP.svg)0
-rw-r--r--src/main/webapp/blocks/VanneReglante.svg (renamed from blocks/VanneReglante.svg)0
-rw-r--r--src/main/webapp/blocks/VariableResistor.svg (renamed from blocks/VariableResistor.svg)0
-rw-r--r--src/main/webapp/blocks/VirtualCLK0.svg (renamed from blocks/VirtualCLK0.svg)0
-rw-r--r--src/main/webapp/blocks/VoltageSensor.svg (renamed from blocks/VoltageSensor.svg)0
-rw-r--r--src/main/webapp/blocks/sawtooth.svg (renamed from blocks/sawtooth.svg)0
-rw-r--r--src/main/webapp/combined.js (renamed from combined.js)22528
-rw-r--r--src/main/webapp/composer.json (renamed from composer.json)0
-rw-r--r--src/main/webapp/config/keyhandler-commons.xml (renamed from config/keyhandler-commons.xml)0
-rw-r--r--src/main/webapp/css/common.css (renamed from css/common.css)0
-rw-r--r--src/main/webapp/css/explorer.css (renamed from css/explorer.css)0
-rw-r--r--src/main/webapp/data_structures_correct/ABS_VALUE.js (renamed from data_structures_correct/ABS_VALUE.js)0
-rw-r--r--src/main/webapp/data_structures_correct/AFFICH_m.js (renamed from data_structures_correct/AFFICH_m.js)0
-rw-r--r--src/main/webapp/data_structures_correct/ANDBLK.js (renamed from data_structures_correct/ANDBLK.js)0
-rw-r--r--src/main/webapp/data_structures_correct/ANDLOG_f.js (renamed from data_structures_correct/ANDLOG_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/AUTOMAT.js (renamed from data_structures_correct/AUTOMAT.js)0
-rw-r--r--src/main/webapp/data_structures_correct/BACKLASH.js (renamed from data_structures_correct/BACKLASH.js)0
-rw-r--r--src/main/webapp/data_structures_correct/BARXY.js (renamed from data_structures_correct/BARXY.js)0
-rw-r--r--src/main/webapp/data_structures_correct/BIGSOM_f.js (renamed from data_structures_correct/BIGSOM_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/BITCLEAR.js (renamed from data_structures_correct/BITCLEAR.js)46
-rw-r--r--src/main/webapp/data_structures_correct/BITSET.js (renamed from data_structures_correct/BITSET.js)48
-rw-r--r--src/main/webapp/data_structures_correct/BOUNCE.js (renamed from data_structures_correct/BOUNCE.js)0
-rw-r--r--src/main/webapp/data_structures_correct/BOUNCEXY.js (renamed from data_structures_correct/BOUNCEXY.js)0
-rw-r--r--src/main/webapp/data_structures_correct/BPLATFORM.js (renamed from data_structures_correct/BPLATFORM.js)0
-rw-r--r--src/main/webapp/data_structures_correct/Bache.js (renamed from data_structures_correct/Bache.js)92
-rw-r--r--src/main/webapp/data_structures_correct/CANIMXY.js (renamed from data_structures_correct/CANIMXY.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CANIMXY3D.js (renamed from data_structures_correct/CANIMXY3D.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CBLOCK.js (renamed from data_structures_correct/CBLOCK.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CBLOCK4.js (renamed from data_structures_correct/CBLOCK4.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CCS.js (renamed from data_structures_correct/CCS.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CEVENTSCOPE.js (renamed from data_structures_correct/CEVENTSCOPE.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CFSCOPE.js (renamed from data_structures_correct/CFSCOPE.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CLINDUMMY_f.js (renamed from data_structures_correct/CLINDUMMY_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CLKFROM.js (renamed from data_structures_correct/CLKFROM.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CLKGOTO.js (renamed from data_structures_correct/CLKGOTO.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CLKGotoTagVisibility.js (renamed from data_structures_correct/CLKGotoTagVisibility.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CLKINV_f.js (renamed from data_structures_correct/CLKINV_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CLKOUTV_f.js (renamed from data_structures_correct/CLKOUTV_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CLKSOMV_f.js (renamed from data_structures_correct/CLKSOMV_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CLKSOM_f.js (renamed from data_structures_correct/CLKSOM_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CLOCK_c.js (renamed from data_structures_correct/CLOCK_c.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CLR.js (renamed from data_structures_correct/CLR.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CLSS.js (renamed from data_structures_correct/CLSS.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CMSCOPE.js (renamed from data_structures_correct/CMSCOPE.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CONST.js (renamed from data_structures_correct/CONST.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CONSTRAINT2_c.js (renamed from data_structures_correct/CONSTRAINT2_c.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CONSTRAINT_c.js (renamed from data_structures_correct/CONSTRAINT_c.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CONST_f.js (renamed from data_structures_correct/CONST_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CONST_m.js (renamed from data_structures_correct/CONST_m.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CONVERT.js (renamed from data_structures_correct/CONVERT.js)0
-rw-r--r--src/main/webapp/data_structures_correct/COSBLK_f.js (renamed from data_structures_correct/COSBLK_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CSCOPE.js (renamed from data_structures_correct/CSCOPE.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CSCOPXY.js (renamed from data_structures_correct/CSCOPXY.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CSCOPXY3D.js (renamed from data_structures_correct/CSCOPXY3D.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CUMSUM.js (renamed from data_structures_correct/CUMSUM.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CURV_f.js (renamed from data_structures_correct/CURV_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CVS.js (renamed from data_structures_correct/CVS.js)116
-rw-r--r--src/main/webapp/data_structures_correct/Capacitor.js (renamed from data_structures_correct/Capacitor.js)62
-rw-r--r--src/main/webapp/data_structures_correct/ConstantVoltage.js (renamed from data_structures_correct/ConstantVoltage.js)64
-rw-r--r--src/main/webapp/data_structures_correct/Counter.js (renamed from data_structures_correct/Counter.js)0
-rw-r--r--src/main/webapp/data_structures_correct/CurrentSensor.js (renamed from data_structures_correct/CurrentSensor.js)58
-rw-r--r--src/main/webapp/data_structures_correct/DEADBAND.js (renamed from data_structures_correct/DEADBAND.js)0
-rw-r--r--src/main/webapp/data_structures_correct/DEBUG.js (renamed from data_structures_correct/DEBUG.js)0
-rw-r--r--src/main/webapp/data_structures_correct/DELAYV_f.js (renamed from data_structures_correct/DELAYV_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/DELAY_f.js (renamed from data_structures_correct/DELAY_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/DEMUX.js (renamed from data_structures_correct/DEMUX.js)0
-rw-r--r--src/main/webapp/data_structures_correct/DEMUX_f.js (renamed from data_structures_correct/DEMUX_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/DERIV.js (renamed from data_structures_correct/DERIV.js)0
-rw-r--r--src/main/webapp/data_structures_correct/DFLIPFLOP.js (renamed from data_structures_correct/DFLIPFLOP.js)0
-rw-r--r--src/main/webapp/data_structures_correct/DIFF_f.js (renamed from data_structures_correct/DIFF_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/DLR.js (renamed from data_structures_correct/DLR.js)0
-rw-r--r--src/main/webapp/data_structures_correct/DLRADAPT_f.js (renamed from data_structures_correct/DLRADAPT_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/DLSS.js (renamed from data_structures_correct/DLSS.js)0
-rw-r--r--src/main/webapp/data_structures_correct/DOLLAR.js (renamed from data_structures_correct/DOLLAR.js)0
-rw-r--r--src/main/webapp/data_structures_correct/DOLLAR_f.js (renamed from data_structures_correct/DOLLAR_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/DOLLAR_m.js (renamed from data_structures_correct/DOLLAR_m.js)0
-rw-r--r--src/main/webapp/data_structures_correct/Diode.js (renamed from data_structures_correct/Diode.js)72
-rw-r--r--src/main/webapp/data_structures_correct/EDGETRIGGER.js (renamed from data_structures_correct/EDGETRIGGER.js)0
-rw-r--r--src/main/webapp/data_structures_correct/EDGE_TRIGGER.js (renamed from data_structures_correct/EDGE_TRIGGER.js)0
-rw-r--r--src/main/webapp/data_structures_correct/ENDBLK.js (renamed from data_structures_correct/ENDBLK.js)0
-rw-r--r--src/main/webapp/data_structures_correct/END_c.js (renamed from data_structures_correct/END_c.js)0
-rw-r--r--src/main/webapp/data_structures_correct/ESELECT_f.js (renamed from data_structures_correct/ESELECT_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/EVTDLY_c.js (renamed from data_structures_correct/EVTDLY_c.js)0
-rw-r--r--src/main/webapp/data_structures_correct/EVTDLY_f.js (renamed from data_structures_correct/EVTDLY_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/EVTGEN_f.js (renamed from data_structures_correct/EVTGEN_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/EVTVARDLY.js (renamed from data_structures_correct/EVTVARDLY.js)0
-rw-r--r--src/main/webapp/data_structures_correct/EXPBLK_m.js (renamed from data_structures_correct/EXPBLK_m.js)0
-rw-r--r--src/main/webapp/data_structures_correct/EXTRACT.js (renamed from data_structures_correct/EXTRACT.js)0
-rw-r--r--src/main/webapp/data_structures_correct/EXTRACTBITS.js (renamed from data_structures_correct/EXTRACTBITS.js)0
-rw-r--r--src/main/webapp/data_structures_correct/EXTRACTOR.js (renamed from data_structures_correct/EXTRACTOR.js)0
-rw-r--r--src/main/webapp/data_structures_correct/EXTTRI.js (renamed from data_structures_correct/EXTTRI.js)0
-rw-r--r--src/main/webapp/data_structures_correct/Extract_Activation.js (renamed from data_structures_correct/Extract_Activation.js)0
-rw-r--r--src/main/webapp/data_structures_correct/FROM.js (renamed from data_structures_correct/FROM.js)0
-rw-r--r--src/main/webapp/data_structures_correct/FROMMO.js (renamed from data_structures_correct/FROMMO.js)66
-rw-r--r--src/main/webapp/data_structures_correct/FROMWSB.js (renamed from data_structures_correct/FROMWSB.js)0
-rw-r--r--src/main/webapp/data_structures_correct/Flowmeter.js (renamed from data_structures_correct/Flowmeter.js)122
-rw-r--r--src/main/webapp/data_structures_correct/GAINBLK.js (renamed from data_structures_correct/GAINBLK.js)0
-rw-r--r--src/main/webapp/data_structures_correct/GAINBLK_f.js (renamed from data_structures_correct/GAINBLK_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/GAIN_f.js (renamed from data_structures_correct/GAIN_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/GENERAL_f.js (renamed from data_structures_correct/GENERAL_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/GENSIN_f.js (renamed from data_structures_correct/GENSIN_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/GENSQR_f.js (renamed from data_structures_correct/GENSQR_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/GOTO.js (renamed from data_structures_correct/GOTO.js)0
-rw-r--r--src/main/webapp/data_structures_correct/GOTOMO.js (renamed from data_structures_correct/GOTOMO.js)66
-rw-r--r--src/main/webapp/data_structures_correct/GotoTagVisibility.js (renamed from data_structures_correct/GotoTagVisibility.js)0
-rw-r--r--src/main/webapp/data_structures_correct/GotoTagVisibilityMO.js (renamed from data_structures_correct/GotoTagVisibilityMO.js)0
-rw-r--r--src/main/webapp/data_structures_correct/Ground.js (renamed from data_structures_correct/Ground.js)60
-rw-r--r--src/main/webapp/data_structures_correct/Gyrator.js (renamed from data_structures_correct/Gyrator.js)114
-rw-r--r--src/main/webapp/data_structures_correct/HALT_f.js (renamed from data_structures_correct/HALT_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/HYSTHERESIS.js (renamed from data_structures_correct/HYSTHERESIS.js)0
-rw-r--r--src/main/webapp/data_structures_correct/IFTHEL_f.js (renamed from data_structures_correct/IFTHEL_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/INIMPL_f.js (renamed from data_structures_correct/INIMPL_f.js)62
-rw-r--r--src/main/webapp/data_structures_correct/INTEGRAL_f.js (renamed from data_structures_correct/INTEGRAL_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/INTEGRAL_m.js (renamed from data_structures_correct/INTEGRAL_m.js)0
-rw-r--r--src/main/webapp/data_structures_correct/INTMUL.js (renamed from data_structures_correct/INTMUL.js)0
-rw-r--r--src/main/webapp/data_structures_correct/INTRP2BLK_f.js (renamed from data_structures_correct/INTRP2BLK_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/INTRPLBLK_f.js (renamed from data_structures_correct/INTRPLBLK_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/INVBLK.js (renamed from data_structures_correct/INVBLK.js)0
-rw-r--r--src/main/webapp/data_structures_correct/IN_f.js (renamed from data_structures_correct/IN_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/ISELECT_m.js (renamed from data_structures_correct/ISELECT_m.js)0
-rw-r--r--src/main/webapp/data_structures_correct/IdealTransformer.js (renamed from data_structures_correct/IdealTransformer.js)120
-rw-r--r--src/main/webapp/data_structures_correct/Inductor.js (renamed from data_structures_correct/Inductor.js)68
-rw-r--r--src/main/webapp/data_structures_correct/LOGBLK_f.js (renamed from data_structures_correct/LOGBLK_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/LOGIC.js (renamed from data_structures_correct/LOGIC.js)0
-rw-r--r--src/main/webapp/data_structures_correct/LOGICAL_OP.js (renamed from data_structures_correct/LOGICAL_OP.js)0
-rw-r--r--src/main/webapp/data_structures_correct/LOOKUP_f.js (renamed from data_structures_correct/LOOKUP_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MATBKSL.js (renamed from data_structures_correct/MATBKSL.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MATCATH.js (renamed from data_structures_correct/MATCATH.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MATCATV.js (renamed from data_structures_correct/MATCATV.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MATDET.js (renamed from data_structures_correct/MATDET.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MATDIAG.js (renamed from data_structures_correct/MATDIAG.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MATDIV.js (renamed from data_structures_correct/MATDIV.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MATEIG.js (renamed from data_structures_correct/MATEIG.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MATEXPM.js (renamed from data_structures_correct/MATEXPM.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MATINV.js (renamed from data_structures_correct/MATINV.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MATLU.js (renamed from data_structures_correct/MATLU.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MATMAGPHI.js (renamed from data_structures_correct/MATMAGPHI.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MATMUL.js (renamed from data_structures_correct/MATMUL.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MATPINV.js (renamed from data_structures_correct/MATPINV.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MATRESH.js (renamed from data_structures_correct/MATRESH.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MATSING.js (renamed from data_structures_correct/MATSING.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MATSUM.js (renamed from data_structures_correct/MATSUM.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MATTRAN.js (renamed from data_structures_correct/MATTRAN.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MATZCONJ.js (renamed from data_structures_correct/MATZCONJ.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MATZREIM.js (renamed from data_structures_correct/MATZREIM.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MAXMIN.js (renamed from data_structures_correct/MAXMIN.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MAX_f.js (renamed from data_structures_correct/MAX_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MBLOCK.js (renamed from data_structures_correct/MBLOCK.js)90
-rw-r--r--src/main/webapp/data_structures_correct/MCLOCK_f.js (renamed from data_structures_correct/MCLOCK_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MFCLCK_f.js (renamed from data_structures_correct/MFCLCK_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MIN_f.js (renamed from data_structures_correct/MIN_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MUX.js (renamed from data_structures_correct/MUX.js)0
-rw-r--r--src/main/webapp/data_structures_correct/MUX_f.js (renamed from data_structures_correct/MUX_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/M_SWITCH.js (renamed from data_structures_correct/M_SWITCH.js)0
-rw-r--r--src/main/webapp/data_structures_correct/M_freq.js (renamed from data_structures_correct/M_freq.js)0
-rw-r--r--src/main/webapp/data_structures_correct/Modulo_Count.js (renamed from data_structures_correct/Modulo_Count.js)0
-rw-r--r--src/main/webapp/data_structures_correct/NEGTOPOS_f.js (renamed from data_structures_correct/NEGTOPOS_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/NMOS.js (renamed from data_structures_correct/NMOS.js)80
-rw-r--r--src/main/webapp/data_structures_correct/NPN.js (renamed from data_structures_correct/NPN.js)112
-rw-r--r--src/main/webapp/data_structures_correct/NRMSOM_f.js (renamed from data_structures_correct/NRMSOM_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/OUTIMPL_f.js (renamed from data_structures_correct/OUTIMPL_f.js)66
-rw-r--r--src/main/webapp/data_structures_correct/OUT_f.js (renamed from data_structures_correct/OUT_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/OpAmp.js (renamed from data_structures_correct/OpAmp.js)68
-rw-r--r--src/main/webapp/data_structures_correct/PDE.js (renamed from data_structures_correct/PDE.js)0
-rw-r--r--src/main/webapp/data_structures_correct/PID.js (renamed from data_structures_correct/PID.js)0
-rw-r--r--src/main/webapp/data_structures_correct/PNP.js (renamed from data_structures_correct/PNP.js)126
-rw-r--r--src/main/webapp/data_structures_correct/POSTONEG_f.js (renamed from data_structures_correct/POSTONEG_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/POWBLK_f.js (renamed from data_structures_correct/POWBLK_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/PRODUCT.js (renamed from data_structures_correct/PRODUCT.js)0
-rw-r--r--src/main/webapp/data_structures_correct/PROD_f.js (renamed from data_structures_correct/PROD_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/PerteDP.js (renamed from data_structures_correct/PerteDP.js)82
-rw-r--r--src/main/webapp/data_structures_correct/PotentialSensor.js (renamed from data_structures_correct/PotentialSensor.js)62
-rw-r--r--src/main/webapp/data_structures_correct/PuitsP.js (renamed from data_structures_correct/PuitsP.js)68
-rw-r--r--src/main/webapp/data_structures_correct/QUANT_f.js (renamed from data_structures_correct/QUANT_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/RAMP.js (renamed from data_structures_correct/RAMP.js)0
-rw-r--r--src/main/webapp/data_structures_correct/RAND_m.js (renamed from data_structures_correct/RAND_m.js)0
-rw-r--r--src/main/webapp/data_structures_correct/RATELIMITER.js (renamed from data_structures_correct/RATELIMITER.js)0
-rw-r--r--src/main/webapp/data_structures_correct/READAU_f.js (renamed from data_structures_correct/READAU_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/READC_f.js (renamed from data_structures_correct/READC_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/REGISTER.js (renamed from data_structures_correct/REGISTER.js)0
-rw-r--r--src/main/webapp/data_structures_correct/REGISTER_f.js (renamed from data_structures_correct/REGISTER_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/RELATIONALOP.js (renamed from data_structures_correct/RELATIONALOP.js)0
-rw-r--r--src/main/webapp/data_structures_correct/RELAY_f.js (renamed from data_structures_correct/RELAY_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/RFILE_f.js (renamed from data_structures_correct/RFILE_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/RICC.js (renamed from data_structures_correct/RICC.js)0
-rw-r--r--src/main/webapp/data_structures_correct/ROOTCOEF.js (renamed from data_structures_correct/ROOTCOEF.js)0
-rw-r--r--src/main/webapp/data_structures_correct/Resistor.js (renamed from data_structures_correct/Resistor.js)66
-rw-r--r--src/main/webapp/data_structures_correct/SAMPHOLD_m.js (renamed from data_structures_correct/SAMPHOLD_m.js)0
-rw-r--r--src/main/webapp/data_structures_correct/SATURATION.js (renamed from data_structures_correct/SATURATION.js)0
-rw-r--r--src/main/webapp/data_structures_correct/SAWTOOTH_f.js (renamed from data_structures_correct/SAWTOOTH_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/SCALAR2VECTOR.js (renamed from data_structures_correct/SCALAR2VECTOR.js)0
-rw-r--r--src/main/webapp/data_structures_correct/SELECT_m.js (renamed from data_structures_correct/SELECT_m.js)0
-rw-r--r--src/main/webapp/data_structures_correct/SELF_SWITCH.js (renamed from data_structures_correct/SELF_SWITCH.js)0
-rw-r--r--src/main/webapp/data_structures_correct/SHIFT.js (renamed from data_structures_correct/SHIFT.js)0
-rw-r--r--src/main/webapp/data_structures_correct/SIGNUM.js (renamed from data_structures_correct/SIGNUM.js)0
-rw-r--r--src/main/webapp/data_structures_correct/SINBLK_f.js (renamed from data_structures_correct/SINBLK_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/SOM_f.js (renamed from data_structures_correct/SOM_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/SQRT.js (renamed from data_structures_correct/SQRT.js)0
-rw-r--r--src/main/webapp/data_structures_correct/SRFLIPFLOP.js (renamed from data_structures_correct/SRFLIPFLOP.js)0
-rw-r--r--src/main/webapp/data_structures_correct/STEP_FUNCTION.js (renamed from data_structures_correct/STEP_FUNCTION.js)0
-rw-r--r--src/main/webapp/data_structures_correct/SUBMAT.js (renamed from data_structures_correct/SUBMAT.js)0
-rw-r--r--src/main/webapp/data_structures_correct/SUMMATION.js (renamed from data_structures_correct/SUMMATION.js)0
-rw-r--r--src/main/webapp/data_structures_correct/SUM_f.js (renamed from data_structures_correct/SUM_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/SUPER_f.js (renamed from data_structures_correct/SUPER_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/SWITCH2_m.js (renamed from data_structures_correct/SWITCH2_m.js)0
-rw-r--r--src/main/webapp/data_structures_correct/SWITCH_f.js (renamed from data_structures_correct/SWITCH_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/SampleCLK.js (renamed from data_structures_correct/SampleCLK.js)0
-rw-r--r--src/main/webapp/data_structures_correct/Sigbuilder.js (renamed from data_structures_correct/Sigbuilder.js)0
-rw-r--r--src/main/webapp/data_structures_correct/SineVoltage.js (renamed from data_structures_correct/SineVoltage.js)76
-rw-r--r--src/main/webapp/data_structures_correct/SourceP.js (renamed from data_structures_correct/SourceP.js)72
-rw-r--r--src/main/webapp/data_structures_correct/Switch.js (renamed from data_structures_correct/Switch.js)0
-rw-r--r--src/main/webapp/data_structures_correct/TANBLK_f.js (renamed from data_structures_correct/TANBLK_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/TCLSS.js (renamed from data_structures_correct/TCLSS.js)0
-rw-r--r--src/main/webapp/data_structures_correct/TEXT_f.js (renamed from data_structures_correct/TEXT_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/TIME_DELAY.js (renamed from data_structures_correct/TIME_DELAY.js)0
-rw-r--r--src/main/webapp/data_structures_correct/TIME_f.js (renamed from data_structures_correct/TIME_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/TKSCALE.js (renamed from data_structures_correct/TKSCALE.js)0
-rw-r--r--src/main/webapp/data_structures_correct/TOWS_c.js (renamed from data_structures_correct/TOWS_c.js)0
-rw-r--r--src/main/webapp/data_structures_correct/TRASH_f.js (renamed from data_structures_correct/TRASH_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/TrigFun.js (renamed from data_structures_correct/TrigFun.js)0
-rw-r--r--src/main/webapp/data_structures_correct/VARIABLE_DELAY.js (renamed from data_structures_correct/VARIABLE_DELAY.js)0
-rw-r--r--src/main/webapp/data_structures_correct/VVsourceAC.js (renamed from data_structures_correct/VVsourceAC.js)0
-rw-r--r--src/main/webapp/data_structures_correct/VanneReglante.js (renamed from data_structures_correct/VanneReglante.js)0
-rw-r--r--src/main/webapp/data_structures_correct/VariableResistor.js (renamed from data_structures_correct/VariableResistor.js)0
-rw-r--r--src/main/webapp/data_structures_correct/VirtualCLK0.js (renamed from data_structures_correct/VirtualCLK0.js)0
-rw-r--r--src/main/webapp/data_structures_correct/VoltageSensor.js (renamed from data_structures_correct/VoltageSensor.js)0
-rw-r--r--src/main/webapp/data_structures_correct/VsourceAC.js (renamed from data_structures_correct/VsourceAC.js)0
-rw-r--r--src/main/webapp/data_structures_correct/WRITEAU_f.js (renamed from data_structures_correct/WRITEAU_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/WRITEC_f.js (renamed from data_structures_correct/WRITEC_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/ZCROSS_f.js (renamed from data_structures_correct/ZCROSS_f.js)0
-rw-r--r--src/main/webapp/data_structures_correct/c_block.js (renamed from data_structures_correct/c_block.js)66
-rw-r--r--src/main/webapp/data_structures_correct/combine_script.bat (renamed from data_structures_correct/combine_script.bat)0
-rw-r--r--src/main/webapp/data_structures_correct/fortran_block.js (renamed from data_structures_correct/fortran_block.js)0
-rw-r--r--src/main/webapp/data_structures_correct/freq_div.js (renamed from data_structures_correct/freq_div.js)0
-rw-r--r--src/main/webapp/data_structures_correct/generic_block3.js (renamed from data_structures_correct/generic_block3.js)0
-rw-r--r--src/main/webapp/data_structures_correct/scifunc_block_m.js (renamed from data_structures_correct/scifunc_block_m.js)0
-rw-r--r--src/main/webapp/dependencies.js (renamed from dependencies.js)0
-rw-r--r--src/main/webapp/details.js (renamed from details.js)0
-rw-r--r--src/main/webapp/documentation/servlet.md (renamed from documentation/servlet.md)0
-rw-r--r--src/main/webapp/documentation/wires.md (renamed from documentation/wires.md)0
-rw-r--r--src/main/webapp/filenames.php (renamed from filenames.php)0
-rw-r--r--src/main/webapp/finalmodsheet.xsl (renamed from finalmodsheet.xsl)0
-rw-r--r--src/main/webapp/history/blocks_xcos/ABS_VALUE.xcos (renamed from history/blocks_xcos/ABS_VALUE.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/AFFICH_m.xcos (renamed from history/blocks_xcos/AFFICH_m.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/ANDBLK.xcos (renamed from history/blocks_xcos/ANDBLK.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/ANDLOG_f.xcos (renamed from history/blocks_xcos/ANDLOG_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/AUTOMAT.xcos (renamed from history/blocks_xcos/AUTOMAT.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/BACKLASH.xcos (renamed from history/blocks_xcos/BACKLASH.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/BARXY.xcos (renamed from history/blocks_xcos/BARXY.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/BIGSOM_f.xcos (renamed from history/blocks_xcos/BIGSOM_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/BITCLEAR.xcos (renamed from history/blocks_xcos/BITCLEAR.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/BITSET.xcos (renamed from history/blocks_xcos/BITSET.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/BOUNCE.xcos (renamed from history/blocks_xcos/BOUNCE.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/BOUNCEXY.xcos (renamed from history/blocks_xcos/BOUNCEXY.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/BPLATFORM.xcos (renamed from history/blocks_xcos/BPLATFORM.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/Bache.xcos (renamed from history/blocks_xcos/Bache.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CANIMXY.xcos (renamed from history/blocks_xcos/CANIMXY.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CANIMXY3D.xcos (renamed from history/blocks_xcos/CANIMXY3D.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CBLOCK.xcos (renamed from history/blocks_xcos/CBLOCK.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CBLOCK4.xcos (renamed from history/blocks_xcos/CBLOCK4.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CCS.xcos (renamed from history/blocks_xcos/CCS.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CEVENTSCOPE.xcos (renamed from history/blocks_xcos/CEVENTSCOPE.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CFSCOPE.xcos (renamed from history/blocks_xcos/CFSCOPE.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CLINDUMMY_f.xcos (renamed from history/blocks_xcos/CLINDUMMY_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CLKFROM.xcos (renamed from history/blocks_xcos/CLKFROM.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CLKGOTO.xcos (renamed from history/blocks_xcos/CLKGOTO.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CLKGotoTagVisibility.xcos (renamed from history/blocks_xcos/CLKGotoTagVisibility.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CLKINV_f.xcos (renamed from history/blocks_xcos/CLKINV_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CLKOUTV_f.xcos (renamed from history/blocks_xcos/CLKOUTV_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CLKSOMV_f.xcos (renamed from history/blocks_xcos/CLKSOMV_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CLOCK_c.xcos (renamed from history/blocks_xcos/CLOCK_c.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CLR.xcos (renamed from history/blocks_xcos/CLR.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CLSS.xcos (renamed from history/blocks_xcos/CLSS.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CMAT3D.xcos (renamed from history/blocks_xcos/CMAT3D.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CMATVIEW.xcos (renamed from history/blocks_xcos/CMATVIEW.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CMSCOPE.xcos (renamed from history/blocks_xcos/CMSCOPE.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CONST.xcos (renamed from history/blocks_xcos/CONST.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CONSTRAINT2_c.xcos (renamed from history/blocks_xcos/CONSTRAINT2_c.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CONSTRAINT_c.xcos (renamed from history/blocks_xcos/CONSTRAINT_c.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CONST_f.xcos (renamed from history/blocks_xcos/CONST_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CONST_m.xcos (renamed from history/blocks_xcos/CONST_m.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CONVERT.xcos (renamed from history/blocks_xcos/CONVERT.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/COSBLK_f.xcos (renamed from history/blocks_xcos/COSBLK_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CSCOPE.xcos (renamed from history/blocks_xcos/CSCOPE.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CSCOPXY.xcos (renamed from history/blocks_xcos/CSCOPXY.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CSCOPXY3D.xcos (renamed from history/blocks_xcos/CSCOPXY3D.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CUMSUM.xcos (renamed from history/blocks_xcos/CUMSUM.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CURV_f.xcos (renamed from history/blocks_xcos/CURV_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CVS.xcos (renamed from history/blocks_xcos/CVS.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/Capacitor.xcos (renamed from history/blocks_xcos/Capacitor.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/ConstantVoltage.xcos (renamed from history/blocks_xcos/ConstantVoltage.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/Counter.xcos (renamed from history/blocks_xcos/Counter.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/CurrentSensor.xcos (renamed from history/blocks_xcos/CurrentSensor.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/DEADBAND.xcos (renamed from history/blocks_xcos/DEADBAND.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/DEBUG.xcos (renamed from history/blocks_xcos/DEBUG.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/DELAYV_f.xcos (renamed from history/blocks_xcos/DELAYV_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/DELAY_f.xcos (renamed from history/blocks_xcos/DELAY_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/DEMUX.xcos (renamed from history/blocks_xcos/DEMUX.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/DEMUX_f.xcos (renamed from history/blocks_xcos/DEMUX_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/DERIV.xcos (renamed from history/blocks_xcos/DERIV.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/DFLIPFLOP.xcos (renamed from history/blocks_xcos/DFLIPFLOP.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/DIFF_f.xcos (renamed from history/blocks_xcos/DIFF_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/DLATCH.xcos (renamed from history/blocks_xcos/DLATCH.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/DLR.xcos (renamed from history/blocks_xcos/DLR.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/DLRADAPT_f.xcos (renamed from history/blocks_xcos/DLRADAPT_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/DLSS.xcos (renamed from history/blocks_xcos/DLSS.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/DOLLAR.xcos (renamed from history/blocks_xcos/DOLLAR.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/DOLLAR_f.xcos (renamed from history/blocks_xcos/DOLLAR_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/DOLLAR_m.xcos (renamed from history/blocks_xcos/DOLLAR_m.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/Diode.xcos (renamed from history/blocks_xcos/Diode.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/EDGE_TRIGGER.xcos (renamed from history/blocks_xcos/EDGE_TRIGGER.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/ENDBLK.xcos (renamed from history/blocks_xcos/ENDBLK.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/END_c.xcos (renamed from history/blocks_xcos/END_c.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/ESELECT_f.xcos (renamed from history/blocks_xcos/ESELECT_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/EVTDLY_c.xcos (renamed from history/blocks_xcos/EVTDLY_c.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/EVTGEN_f.xcos (renamed from history/blocks_xcos/EVTGEN_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/EVTVARDLY.xcos (renamed from history/blocks_xcos/EVTVARDLY.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/EXPBLK_m.xcos (renamed from history/blocks_xcos/EXPBLK_m.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/EXPRESSION.xcos (renamed from history/blocks_xcos/EXPRESSION.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/EXTRACT.xcos (renamed from history/blocks_xcos/EXTRACT.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/EXTRACTBITS.xcos (renamed from history/blocks_xcos/EXTRACTBITS.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/EXTRACTOR.xcos (renamed from history/blocks_xcos/EXTRACTOR.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/EXTTRI.xcos (renamed from history/blocks_xcos/EXTTRI.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/Extract_Activation.xcos (renamed from history/blocks_xcos/Extract_Activation.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/FROM.xcos (renamed from history/blocks_xcos/FROM.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/FROMMO.xcos (renamed from history/blocks_xcos/FROMMO.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/FROMWSB.xcos (renamed from history/blocks_xcos/FROMWSB.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/Flowmeter.xcos (renamed from history/blocks_xcos/Flowmeter.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/GAINBLK.xcos (renamed from history/blocks_xcos/GAINBLK.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/GAINBLK_f.xcos (renamed from history/blocks_xcos/GAINBLK_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/GAIN_f.xcos (renamed from history/blocks_xcos/GAIN_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/GENERAL_f.xcos (renamed from history/blocks_xcos/GENERAL_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/GENSIN_f.xcos (renamed from history/blocks_xcos/GENSIN_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/GENSQR_f.xcos (renamed from history/blocks_xcos/GENSQR_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/GOTO.xcos (renamed from history/blocks_xcos/GOTO.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/GOTOMO.xcos (renamed from history/blocks_xcos/GOTOMO.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/GotoTagVisibility.xcos (renamed from history/blocks_xcos/GotoTagVisibility.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/GotoTagVisibilityMO.xcos (renamed from history/blocks_xcos/GotoTagVisibilityMO.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/Ground.xcos (renamed from history/blocks_xcos/Ground.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/Gyrator.xcos (renamed from history/blocks_xcos/Gyrator.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/HALT_f.xcos (renamed from history/blocks_xcos/HALT_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/HYSTHERESIS.xcos (renamed from history/blocks_xcos/HYSTHERESIS.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/IFTHEL_f.xcos (renamed from history/blocks_xcos/IFTHEL_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/INIMPL_f.xcos (renamed from history/blocks_xcos/INIMPL_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/INTEGRAL_f.xcos (renamed from history/blocks_xcos/INTEGRAL_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/INTEGRAL_m.xcos (renamed from history/blocks_xcos/INTEGRAL_m.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/INTMUL.xcos (renamed from history/blocks_xcos/INTMUL.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/INTRP2BLK_f.xcos (renamed from history/blocks_xcos/INTRP2BLK_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/INTRPLBLK_f.xcos (renamed from history/blocks_xcos/INTRPLBLK_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/INVBLK.xcos (renamed from history/blocks_xcos/INVBLK.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/IN_f.xcos (renamed from history/blocks_xcos/IN_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/ISELECT_m.xcos (renamed from history/blocks_xcos/ISELECT_m.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/IdealTransformer.xcos (renamed from history/blocks_xcos/IdealTransformer.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/Inductor.xcos (renamed from history/blocks_xcos/Inductor.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/JKFLIPFLOP.xcos (renamed from history/blocks_xcos/JKFLIPFLOP.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/LOGBLK_f.xcos (renamed from history/blocks_xcos/LOGBLK_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/LOGIC.xcos (renamed from history/blocks_xcos/LOGIC.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/LOGICAL_OP.xcos (renamed from history/blocks_xcos/LOGICAL_OP.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/LOOKUP_f.xcos (renamed from history/blocks_xcos/LOOKUP_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MATBKSL.xcos (renamed from history/blocks_xcos/MATBKSL.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MATCATH.xcos (renamed from history/blocks_xcos/MATCATH.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MATCATV.xcos (renamed from history/blocks_xcos/MATCATV.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MATDET.xcos (renamed from history/blocks_xcos/MATDET.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MATDIAG.xcos (renamed from history/blocks_xcos/MATDIAG.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MATDIV.xcos (renamed from history/blocks_xcos/MATDIV.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MATEIG.xcos (renamed from history/blocks_xcos/MATEIG.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MATEXPM.xcos (renamed from history/blocks_xcos/MATEXPM.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MATINV.xcos (renamed from history/blocks_xcos/MATINV.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MATLU.xcos (renamed from history/blocks_xcos/MATLU.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MATMAGPHI.xcos (renamed from history/blocks_xcos/MATMAGPHI.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MATMUL.xcos (renamed from history/blocks_xcos/MATMUL.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MATPINV.xcos (renamed from history/blocks_xcos/MATPINV.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MATRESH.xcos (renamed from history/blocks_xcos/MATRESH.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MATSING.xcos (renamed from history/blocks_xcos/MATSING.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MATSUM.xcos (renamed from history/blocks_xcos/MATSUM.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MATTRAN.xcos (renamed from history/blocks_xcos/MATTRAN.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MATZCONJ.xcos (renamed from history/blocks_xcos/MATZCONJ.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MATZREIM.xcos (renamed from history/blocks_xcos/MATZREIM.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MAXMIN.xcos (renamed from history/blocks_xcos/MAXMIN.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MAX_f.xcos (renamed from history/blocks_xcos/MAX_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MBLOCK.xcos (renamed from history/blocks_xcos/MBLOCK.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MCLOCK_f.xcos (renamed from history/blocks_xcos/MCLOCK_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MFCLCK_f.xcos (renamed from history/blocks_xcos/MFCLCK_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MIN_f.xcos (renamed from history/blocks_xcos/MIN_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MUX.xcos (renamed from history/blocks_xcos/MUX.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/MUX_f.xcos (renamed from history/blocks_xcos/MUX_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/M_SWITCH.xcos (renamed from history/blocks_xcos/M_SWITCH.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/M_freq.xcos (renamed from history/blocks_xcos/M_freq.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/Modulo_Count.xcos (renamed from history/blocks_xcos/Modulo_Count.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/NEGTOPOS_f.xcos (renamed from history/blocks_xcos/NEGTOPOS_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/NMOS.xcos (renamed from history/blocks_xcos/NMOS.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/NPN.xcos (renamed from history/blocks_xcos/NPN.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/NRMSOM_f.xcos (renamed from history/blocks_xcos/NRMSOM_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/OUTIMPL_f.xcos (renamed from history/blocks_xcos/OUTIMPL_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/OUT_f.xcos (renamed from history/blocks_xcos/OUT_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/OpAmp.xcos (renamed from history/blocks_xcos/OpAmp.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/PDE.xcos (renamed from history/blocks_xcos/PDE.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/PID.xcos (renamed from history/blocks_xcos/PID.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/PMOS.xcos (renamed from history/blocks_xcos/PMOS.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/PNP.xcos (renamed from history/blocks_xcos/PNP.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/POSTONEG_f.xcos (renamed from history/blocks_xcos/POSTONEG_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/POWBLK_f.xcos (renamed from history/blocks_xcos/POWBLK_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/PRODUCT.xcos (renamed from history/blocks_xcos/PRODUCT.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/PROD_f.xcos (renamed from history/blocks_xcos/PROD_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/PULSE_SC.xcos (renamed from history/blocks_xcos/PULSE_SC.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/PerteDP.xcos (renamed from history/blocks_xcos/PerteDP.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/PotentialSensor.xcos (renamed from history/blocks_xcos/PotentialSensor.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/PuitsP.xcos (renamed from history/blocks_xcos/PuitsP.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/QUANT_f.xcos (renamed from history/blocks_xcos/QUANT_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/RAMP.xcos (renamed from history/blocks_xcos/RAMP.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/RAND_m.xcos (renamed from history/blocks_xcos/RAND_m.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/RATELIMITER.xcos (renamed from history/blocks_xcos/RATELIMITER.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/READAU_f.xcos (renamed from history/blocks_xcos/READAU_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/READC_f.xcos (renamed from history/blocks_xcos/READC_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/REGISTER.xcos (renamed from history/blocks_xcos/REGISTER.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/RELATIONALOP.xcos (renamed from history/blocks_xcos/RELATIONALOP.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/RELAY_f.xcos (renamed from history/blocks_xcos/RELAY_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/RFILE_f.xcos (renamed from history/blocks_xcos/RFILE_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/RICC.xcos (renamed from history/blocks_xcos/RICC.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/ROOTCOEF.xcos (renamed from history/blocks_xcos/ROOTCOEF.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/Resistor.xcos (renamed from history/blocks_xcos/Resistor.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/SAMPHOLD_m.xcos (renamed from history/blocks_xcos/SAMPHOLD_m.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/SATURATION.xcos (renamed from history/blocks_xcos/SATURATION.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/SAWTOOTH_f.xcos (renamed from history/blocks_xcos/SAWTOOTH_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/SCALAR2VECTOR.xcos (renamed from history/blocks_xcos/SCALAR2VECTOR.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/SELECT_m.xcos (renamed from history/blocks_xcos/SELECT_m.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/SELF_SWITCH.xcos (renamed from history/blocks_xcos/SELF_SWITCH.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/SHIFT.xcos (renamed from history/blocks_xcos/SHIFT.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/SIGNUM.xcos (renamed from history/blocks_xcos/SIGNUM.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/SINBLK_f.xcos (renamed from history/blocks_xcos/SINBLK_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/SOM_f.xcos (renamed from history/blocks_xcos/SOM_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/SQRT.xcos (renamed from history/blocks_xcos/SQRT.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/SRFLIPFLOP.xcos (renamed from history/blocks_xcos/SRFLIPFLOP.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/STEP_FUNCTION.xcos (renamed from history/blocks_xcos/STEP_FUNCTION.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/SUBMAT.xcos (renamed from history/blocks_xcos/SUBMAT.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/SUMMATION.xcos (renamed from history/blocks_xcos/SUMMATION.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/SUM_f.xcos (renamed from history/blocks_xcos/SUM_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/SUPER_f.xcos (renamed from history/blocks_xcos/SUPER_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/SWITCH2_m.xcos (renamed from history/blocks_xcos/SWITCH2_m.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/SWITCH_f.xcos (renamed from history/blocks_xcos/SWITCH_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/SampleCLK.xcos (renamed from history/blocks_xcos/SampleCLK.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/Sigbuilder.xcos (renamed from history/blocks_xcos/Sigbuilder.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/SineVoltage.xcos (renamed from history/blocks_xcos/SineVoltage.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/SourceP.xcos (renamed from history/blocks_xcos/SourceP.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/Switch.xcos (renamed from history/blocks_xcos/Switch.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/TANBLK_f.xcos (renamed from history/blocks_xcos/TANBLK_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/TCLSS.xcos (renamed from history/blocks_xcos/TCLSS.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/TEXT_f.xcos (renamed from history/blocks_xcos/TEXT_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/TIME_DELAY.xcos (renamed from history/blocks_xcos/TIME_DELAY.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/TIME_f.xcos (renamed from history/blocks_xcos/TIME_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/TKSCALE.xcos (renamed from history/blocks_xcos/TKSCALE.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/TOWS_c.xcos (renamed from history/blocks_xcos/TOWS_c.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/TRASH_f.xcos (renamed from history/blocks_xcos/TRASH_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/TrigFun.xcos (renamed from history/blocks_xcos/TrigFun.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/VARIABLE_DELAY.xcos (renamed from history/blocks_xcos/VARIABLE_DELAY.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/VVsourceAC.xcos (renamed from history/blocks_xcos/VVsourceAC.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/VanneReglante.xcos (renamed from history/blocks_xcos/VanneReglante.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/VariableResistor.xcos (renamed from history/blocks_xcos/VariableResistor.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/VirtualCLK0.xcos (renamed from history/blocks_xcos/VirtualCLK0.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/VoltageSensor.xcos (renamed from history/blocks_xcos/VoltageSensor.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/VsourceAC.xcos (renamed from history/blocks_xcos/VsourceAC.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/WFILE_f.xcos (renamed from history/blocks_xcos/WFILE_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/WRITEAU_f.xcos (renamed from history/blocks_xcos/WRITEAU_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/WRITEC_f.xcos (renamed from history/blocks_xcos/WRITEC_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/ZCROSS_f.xcos (renamed from history/blocks_xcos/ZCROSS_f.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/c_block.xcos (renamed from history/blocks_xcos/c_block.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/fortran_block.xcos (renamed from history/blocks_xcos/fortran_block.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/freq_div.xcos (renamed from history/blocks_xcos/freq_div.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/generic_block3.xcos (renamed from history/blocks_xcos/generic_block3.xcos)0
-rw-r--r--src/main/webapp/history/blocks_xcos/scifunc_block_m.xcos (renamed from history/blocks_xcos/scifunc_block_m.xcos)0
-rw-r--r--src/main/webapp/history/data_structures/ABS_VALUE.js (renamed from history/data_structures/ABS_VALUE.js)0
-rw-r--r--src/main/webapp/history/data_structures/AFFICH_m.js (renamed from history/data_structures/AFFICH_m.js)0
-rw-r--r--src/main/webapp/history/data_structures/ANDBLK.js (renamed from history/data_structures/ANDBLK.js)0
-rw-r--r--src/main/webapp/history/data_structures/ANDLOG_f.js (renamed from history/data_structures/ANDLOG_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/AUTOMAT.js (renamed from history/data_structures/AUTOMAT.js)0
-rw-r--r--src/main/webapp/history/data_structures/BACKLASH.js (renamed from history/data_structures/BACKLASH.js)0
-rw-r--r--src/main/webapp/history/data_structures/BARXY.js (renamed from history/data_structures/BARXY.js)0
-rw-r--r--src/main/webapp/history/data_structures/BIGSOM_f.js (renamed from history/data_structures/BIGSOM_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/BITCLEAR.js (renamed from history/data_structures/BITCLEAR.js)0
-rw-r--r--src/main/webapp/history/data_structures/BITSET.js (renamed from history/data_structures/BITSET.js)0
-rw-r--r--src/main/webapp/history/data_structures/BOUNCE.js (renamed from history/data_structures/BOUNCE.js)0
-rw-r--r--src/main/webapp/history/data_structures/BOUNCEXY.js (renamed from history/data_structures/BOUNCEXY.js)0
-rw-r--r--src/main/webapp/history/data_structures/BPLATFORM.js (renamed from history/data_structures/BPLATFORM.js)0
-rw-r--r--src/main/webapp/history/data_structures/Bache.js (renamed from history/data_structures/Bache.js)0
-rw-r--r--src/main/webapp/history/data_structures/CANIMXY.js (renamed from history/data_structures/CANIMXY.js)0
-rw-r--r--src/main/webapp/history/data_structures/CANIMXY3D.js (renamed from history/data_structures/CANIMXY3D.js)0
-rw-r--r--src/main/webapp/history/data_structures/CBLOCK.js (renamed from history/data_structures/CBLOCK.js)0
-rw-r--r--src/main/webapp/history/data_structures/CBLOCK4.js (renamed from history/data_structures/CBLOCK4.js)0
-rw-r--r--src/main/webapp/history/data_structures/CCS.js (renamed from history/data_structures/CCS.js)0
-rw-r--r--src/main/webapp/history/data_structures/CEVENTSCOPE.js (renamed from history/data_structures/CEVENTSCOPE.js)0
-rw-r--r--src/main/webapp/history/data_structures/CFSCOPE.js (renamed from history/data_structures/CFSCOPE.js)0
-rw-r--r--src/main/webapp/history/data_structures/CLINDUMMY_f.js (renamed from history/data_structures/CLINDUMMY_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/CLKFROM.js (renamed from history/data_structures/CLKFROM.js)0
-rw-r--r--src/main/webapp/history/data_structures/CLKGOTO.js (renamed from history/data_structures/CLKGOTO.js)0
-rw-r--r--src/main/webapp/history/data_structures/CLKGotoTagVisibility.js (renamed from history/data_structures/CLKGotoTagVisibility.js)0
-rw-r--r--src/main/webapp/history/data_structures/CLKINV_f.js (renamed from history/data_structures/CLKINV_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/CLKOUTV_f.js (renamed from history/data_structures/CLKOUTV_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/CLKSOMV_f.js (renamed from history/data_structures/CLKSOMV_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/CLOCK_c.js (renamed from history/data_structures/CLOCK_c.js)0
-rw-r--r--src/main/webapp/history/data_structures/CLR.js (renamed from history/data_structures/CLR.js)0
-rw-r--r--src/main/webapp/history/data_structures/CLSS.js (renamed from history/data_structures/CLSS.js)0
-rw-r--r--src/main/webapp/history/data_structures/CMAT3D.js (renamed from history/data_structures/CMAT3D.js)0
-rw-r--r--src/main/webapp/history/data_structures/CMATVIEW.js (renamed from history/data_structures/CMATVIEW.js)0
-rw-r--r--src/main/webapp/history/data_structures/CMSCOPE.js (renamed from history/data_structures/CMSCOPE.js)0
-rw-r--r--src/main/webapp/history/data_structures/CONST.js (renamed from history/data_structures/CONST.js)0
-rw-r--r--src/main/webapp/history/data_structures/CONSTRAINT2_c.js (renamed from history/data_structures/CONSTRAINT2_c.js)0
-rw-r--r--src/main/webapp/history/data_structures/CONSTRAINT_c.js (renamed from history/data_structures/CONSTRAINT_c.js)0
-rw-r--r--src/main/webapp/history/data_structures/CONST_f.js (renamed from history/data_structures/CONST_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/CONST_m.js (renamed from history/data_structures/CONST_m.js)0
-rw-r--r--src/main/webapp/history/data_structures/CONVERT.js (renamed from history/data_structures/CONVERT.js)0
-rw-r--r--src/main/webapp/history/data_structures/COSBLK_f.js (renamed from history/data_structures/COSBLK_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/CSCOPE.js (renamed from history/data_structures/CSCOPE.js)0
-rw-r--r--src/main/webapp/history/data_structures/CSCOPXY.js (renamed from history/data_structures/CSCOPXY.js)0
-rw-r--r--src/main/webapp/history/data_structures/CSCOPXY3D.js (renamed from history/data_structures/CSCOPXY3D.js)0
-rw-r--r--src/main/webapp/history/data_structures/CUMSUM.js (renamed from history/data_structures/CUMSUM.js)0
-rw-r--r--src/main/webapp/history/data_structures/CURV_f.js (renamed from history/data_structures/CURV_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/CVS.js (renamed from history/data_structures/CVS.js)0
-rw-r--r--src/main/webapp/history/data_structures/Capacitor.js (renamed from history/data_structures/Capacitor.js)0
-rw-r--r--src/main/webapp/history/data_structures/ConstantVoltage.js (renamed from history/data_structures/ConstantVoltage.js)0
-rw-r--r--src/main/webapp/history/data_structures/Counter.js (renamed from history/data_structures/Counter.js)0
-rw-r--r--src/main/webapp/history/data_structures/CurrentSensor.js (renamed from history/data_structures/CurrentSensor.js)0
-rw-r--r--src/main/webapp/history/data_structures/DEADBAND.js (renamed from history/data_structures/DEADBAND.js)0
-rw-r--r--src/main/webapp/history/data_structures/DEBUG.js (renamed from history/data_structures/DEBUG.js)0
-rw-r--r--src/main/webapp/history/data_structures/DELAYV_f.js (renamed from history/data_structures/DELAYV_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/DELAY_f.js (renamed from history/data_structures/DELAY_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/DEMUX.js (renamed from history/data_structures/DEMUX.js)0
-rw-r--r--src/main/webapp/history/data_structures/DEMUX_f.js (renamed from history/data_structures/DEMUX_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/DERIV.js (renamed from history/data_structures/DERIV.js)0
-rw-r--r--src/main/webapp/history/data_structures/DFLIPFLOP.js (renamed from history/data_structures/DFLIPFLOP.js)0
-rw-r--r--src/main/webapp/history/data_structures/DIFF_f.js (renamed from history/data_structures/DIFF_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/DLATCH.js (renamed from history/data_structures/DLATCH.js)0
-rw-r--r--src/main/webapp/history/data_structures/DLR.js (renamed from history/data_structures/DLR.js)0
-rw-r--r--src/main/webapp/history/data_structures/DLRADAPT_f.js (renamed from history/data_structures/DLRADAPT_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/DLSS.js (renamed from history/data_structures/DLSS.js)0
-rw-r--r--src/main/webapp/history/data_structures/DOLLAR.js (renamed from history/data_structures/DOLLAR.js)0
-rw-r--r--src/main/webapp/history/data_structures/DOLLAR_f.js (renamed from history/data_structures/DOLLAR_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/DOLLAR_m.js (renamed from history/data_structures/DOLLAR_m.js)0
-rw-r--r--src/main/webapp/history/data_structures/Diode.js (renamed from history/data_structures/Diode.js)0
-rw-r--r--src/main/webapp/history/data_structures/EDGE_TRIGGER.js (renamed from history/data_structures/EDGE_TRIGGER.js)0
-rw-r--r--src/main/webapp/history/data_structures/ENDBLK.js (renamed from history/data_structures/ENDBLK.js)0
-rw-r--r--src/main/webapp/history/data_structures/END_c.js (renamed from history/data_structures/END_c.js)0
-rw-r--r--src/main/webapp/history/data_structures/ESELECT_f.js (renamed from history/data_structures/ESELECT_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/EVTDLY_c.js (renamed from history/data_structures/EVTDLY_c.js)0
-rw-r--r--src/main/webapp/history/data_structures/EVTGEN_f.js (renamed from history/data_structures/EVTGEN_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/EVTVARDLY.js (renamed from history/data_structures/EVTVARDLY.js)0
-rw-r--r--src/main/webapp/history/data_structures/EXPBLK_m.js (renamed from history/data_structures/EXPBLK_m.js)0
-rw-r--r--src/main/webapp/history/data_structures/EXPRESSION.js (renamed from history/data_structures/EXPRESSION.js)0
-rw-r--r--src/main/webapp/history/data_structures/EXTRACT.js (renamed from history/data_structures/EXTRACT.js)0
-rw-r--r--src/main/webapp/history/data_structures/EXTRACTBITS.js (renamed from history/data_structures/EXTRACTBITS.js)0
-rw-r--r--src/main/webapp/history/data_structures/EXTRACTOR.js (renamed from history/data_structures/EXTRACTOR.js)0
-rw-r--r--src/main/webapp/history/data_structures/EXTTRI.js (renamed from history/data_structures/EXTTRI.js)0
-rw-r--r--src/main/webapp/history/data_structures/Extract_Activation.js (renamed from history/data_structures/Extract_Activation.js)0
-rw-r--r--src/main/webapp/history/data_structures/FROM.js (renamed from history/data_structures/FROM.js)0
-rw-r--r--src/main/webapp/history/data_structures/FROMMO.js (renamed from history/data_structures/FROMMO.js)0
-rw-r--r--src/main/webapp/history/data_structures/FROMWSB.js (renamed from history/data_structures/FROMWSB.js)0
-rw-r--r--src/main/webapp/history/data_structures/Flowmeter.js (renamed from history/data_structures/Flowmeter.js)0
-rw-r--r--src/main/webapp/history/data_structures/GAINBLK.js (renamed from history/data_structures/GAINBLK.js)0
-rw-r--r--src/main/webapp/history/data_structures/GAINBLK_f.js (renamed from history/data_structures/GAINBLK_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/GAIN_f.js (renamed from history/data_structures/GAIN_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/GENERAL_f.js (renamed from history/data_structures/GENERAL_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/GENSIN_f.js (renamed from history/data_structures/GENSIN_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/GENSQR_f.js (renamed from history/data_structures/GENSQR_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/GOTO.js (renamed from history/data_structures/GOTO.js)0
-rw-r--r--src/main/webapp/history/data_structures/GOTOMO.js (renamed from history/data_structures/GOTOMO.js)0
-rw-r--r--src/main/webapp/history/data_structures/GotoTagVisibility.js (renamed from history/data_structures/GotoTagVisibility.js)0
-rw-r--r--src/main/webapp/history/data_structures/GotoTagVisibilityMO.js (renamed from history/data_structures/GotoTagVisibilityMO.js)0
-rw-r--r--src/main/webapp/history/data_structures/Ground.js (renamed from history/data_structures/Ground.js)0
-rw-r--r--src/main/webapp/history/data_structures/Gyrator.js (renamed from history/data_structures/Gyrator.js)0
-rw-r--r--src/main/webapp/history/data_structures/HALT_f.js (renamed from history/data_structures/HALT_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/HYSTHERESIS.js (renamed from history/data_structures/HYSTHERESIS.js)0
-rw-r--r--src/main/webapp/history/data_structures/IFTHEL_f.js (renamed from history/data_structures/IFTHEL_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/INIMPL_f.js (renamed from history/data_structures/INIMPL_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/INTEGRAL_f.js (renamed from history/data_structures/INTEGRAL_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/INTEGRAL_m.js (renamed from history/data_structures/INTEGRAL_m.js)0
-rw-r--r--src/main/webapp/history/data_structures/INTMUL.js (renamed from history/data_structures/INTMUL.js)0
-rw-r--r--src/main/webapp/history/data_structures/INTRP2BLK_f.js (renamed from history/data_structures/INTRP2BLK_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/INTRPLBLK_f.js (renamed from history/data_structures/INTRPLBLK_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/INVBLK.js (renamed from history/data_structures/INVBLK.js)0
-rw-r--r--src/main/webapp/history/data_structures/IN_f.js (renamed from history/data_structures/IN_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/ISELECT_m.js (renamed from history/data_structures/ISELECT_m.js)0
-rw-r--r--src/main/webapp/history/data_structures/IdealTransformer.js (renamed from history/data_structures/IdealTransformer.js)0
-rw-r--r--src/main/webapp/history/data_structures/Inductor.js (renamed from history/data_structures/Inductor.js)0
-rw-r--r--src/main/webapp/history/data_structures/JKFLIPFLOP.js (renamed from history/data_structures/JKFLIPFLOP.js)0
-rw-r--r--src/main/webapp/history/data_structures/LOGBLK_f.js (renamed from history/data_structures/LOGBLK_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/LOGIC.js (renamed from history/data_structures/LOGIC.js)0
-rw-r--r--src/main/webapp/history/data_structures/LOGICAL_OP.js (renamed from history/data_structures/LOGICAL_OP.js)0
-rw-r--r--src/main/webapp/history/data_structures/LOOKUP_f.js (renamed from history/data_structures/LOOKUP_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/MATBKSL.js (renamed from history/data_structures/MATBKSL.js)0
-rw-r--r--src/main/webapp/history/data_structures/MATCATH.js (renamed from history/data_structures/MATCATH.js)0
-rw-r--r--src/main/webapp/history/data_structures/MATCATV.js (renamed from history/data_structures/MATCATV.js)0
-rw-r--r--src/main/webapp/history/data_structures/MATDET.js (renamed from history/data_structures/MATDET.js)0
-rw-r--r--src/main/webapp/history/data_structures/MATDIAG.js (renamed from history/data_structures/MATDIAG.js)0
-rw-r--r--src/main/webapp/history/data_structures/MATDIV.js (renamed from history/data_structures/MATDIV.js)0
-rw-r--r--src/main/webapp/history/data_structures/MATEIG.js (renamed from history/data_structures/MATEIG.js)0
-rw-r--r--src/main/webapp/history/data_structures/MATEXPM.js (renamed from history/data_structures/MATEXPM.js)0
-rw-r--r--src/main/webapp/history/data_structures/MATINV.js (renamed from history/data_structures/MATINV.js)0
-rw-r--r--src/main/webapp/history/data_structures/MATLU.js (renamed from history/data_structures/MATLU.js)0
-rw-r--r--src/main/webapp/history/data_structures/MATMAGPHI.js (renamed from history/data_structures/MATMAGPHI.js)0
-rw-r--r--src/main/webapp/history/data_structures/MATMUL.js (renamed from history/data_structures/MATMUL.js)0
-rw-r--r--src/main/webapp/history/data_structures/MATPINV.js (renamed from history/data_structures/MATPINV.js)0
-rw-r--r--src/main/webapp/history/data_structures/MATRESH.js (renamed from history/data_structures/MATRESH.js)0
-rw-r--r--src/main/webapp/history/data_structures/MATSING.js (renamed from history/data_structures/MATSING.js)0
-rw-r--r--src/main/webapp/history/data_structures/MATSUM.js (renamed from history/data_structures/MATSUM.js)0
-rw-r--r--src/main/webapp/history/data_structures/MATTRAN.js (renamed from history/data_structures/MATTRAN.js)0
-rw-r--r--src/main/webapp/history/data_structures/MATZCONJ.js (renamed from history/data_structures/MATZCONJ.js)0
-rw-r--r--src/main/webapp/history/data_structures/MATZREIM.js (renamed from history/data_structures/MATZREIM.js)0
-rw-r--r--src/main/webapp/history/data_structures/MAXMIN.js (renamed from history/data_structures/MAXMIN.js)0
-rw-r--r--src/main/webapp/history/data_structures/MAX_f.js (renamed from history/data_structures/MAX_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/MBLOCK.js (renamed from history/data_structures/MBLOCK.js)0
-rw-r--r--src/main/webapp/history/data_structures/MCLOCK_f.js (renamed from history/data_structures/MCLOCK_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/MFCLCK_f.js (renamed from history/data_structures/MFCLCK_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/MIN_f.js (renamed from history/data_structures/MIN_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/MUX.js (renamed from history/data_structures/MUX.js)0
-rw-r--r--src/main/webapp/history/data_structures/MUX_f.js (renamed from history/data_structures/MUX_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/M_SWITCH.js (renamed from history/data_structures/M_SWITCH.js)0
-rw-r--r--src/main/webapp/history/data_structures/M_freq.js (renamed from history/data_structures/M_freq.js)0
-rw-r--r--src/main/webapp/history/data_structures/Modulo_Count.js (renamed from history/data_structures/Modulo_Count.js)0
-rw-r--r--src/main/webapp/history/data_structures/NEGTOPOS_f.js (renamed from history/data_structures/NEGTOPOS_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/NMOS.js (renamed from history/data_structures/NMOS.js)0
-rw-r--r--src/main/webapp/history/data_structures/NPN.js (renamed from history/data_structures/NPN.js)0
-rw-r--r--src/main/webapp/history/data_structures/NRMSOM_f.js (renamed from history/data_structures/NRMSOM_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/OUTIMPL_f.js (renamed from history/data_structures/OUTIMPL_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/OUT_f.js (renamed from history/data_structures/OUT_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/OpAmp.js (renamed from history/data_structures/OpAmp.js)0
-rw-r--r--src/main/webapp/history/data_structures/PDE.js (renamed from history/data_structures/PDE.js)0
-rw-r--r--src/main/webapp/history/data_structures/PID.js (renamed from history/data_structures/PID.js)0
-rw-r--r--src/main/webapp/history/data_structures/PMOS.js (renamed from history/data_structures/PMOS.js)0
-rw-r--r--src/main/webapp/history/data_structures/PNP.js (renamed from history/data_structures/PNP.js)0
-rw-r--r--src/main/webapp/history/data_structures/POSTONEG_f.js (renamed from history/data_structures/POSTONEG_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/POWBLK_f.js (renamed from history/data_structures/POWBLK_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/PRODUCT.js (renamed from history/data_structures/PRODUCT.js)0
-rw-r--r--src/main/webapp/history/data_structures/PROD_f.js (renamed from history/data_structures/PROD_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/PULSE_SC.js (renamed from history/data_structures/PULSE_SC.js)0
-rw-r--r--src/main/webapp/history/data_structures/PerteDP.js (renamed from history/data_structures/PerteDP.js)0
-rw-r--r--src/main/webapp/history/data_structures/PotentialSensor.js (renamed from history/data_structures/PotentialSensor.js)0
-rw-r--r--src/main/webapp/history/data_structures/PuitsP.js (renamed from history/data_structures/PuitsP.js)0
-rw-r--r--src/main/webapp/history/data_structures/QUANT_f.js (renamed from history/data_structures/QUANT_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/RAMP.js (renamed from history/data_structures/RAMP.js)0
-rw-r--r--src/main/webapp/history/data_structures/RAND_m.js (renamed from history/data_structures/RAND_m.js)0
-rw-r--r--src/main/webapp/history/data_structures/RATELIMITER.js (renamed from history/data_structures/RATELIMITER.js)0
-rw-r--r--src/main/webapp/history/data_structures/READAU_f.js (renamed from history/data_structures/READAU_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/READC_f.js (renamed from history/data_structures/READC_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/REGISTER.js (renamed from history/data_structures/REGISTER.js)0
-rw-r--r--src/main/webapp/history/data_structures/RELATIONALOP.js (renamed from history/data_structures/RELATIONALOP.js)0
-rw-r--r--src/main/webapp/history/data_structures/RELAY_f.js (renamed from history/data_structures/RELAY_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/RFILE_f.js (renamed from history/data_structures/RFILE_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/RICC.js (renamed from history/data_structures/RICC.js)0
-rw-r--r--src/main/webapp/history/data_structures/ROOTCOEF.js (renamed from history/data_structures/ROOTCOEF.js)0
-rw-r--r--src/main/webapp/history/data_structures/Resistor.js (renamed from history/data_structures/Resistor.js)0
-rw-r--r--src/main/webapp/history/data_structures/SAMPHOLD_m.js (renamed from history/data_structures/SAMPHOLD_m.js)0
-rw-r--r--src/main/webapp/history/data_structures/SATURATION.js (renamed from history/data_structures/SATURATION.js)0
-rw-r--r--src/main/webapp/history/data_structures/SAWTOOTH_f.js (renamed from history/data_structures/SAWTOOTH_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/SCALAR2VECTOR.js (renamed from history/data_structures/SCALAR2VECTOR.js)0
-rw-r--r--src/main/webapp/history/data_structures/SELECT_m.js (renamed from history/data_structures/SELECT_m.js)0
-rw-r--r--src/main/webapp/history/data_structures/SELF_SWITCH.js (renamed from history/data_structures/SELF_SWITCH.js)0
-rw-r--r--src/main/webapp/history/data_structures/SHIFT.js (renamed from history/data_structures/SHIFT.js)0
-rw-r--r--src/main/webapp/history/data_structures/SIGNUM.js (renamed from history/data_structures/SIGNUM.js)0
-rw-r--r--src/main/webapp/history/data_structures/SINBLK_f.js (renamed from history/data_structures/SINBLK_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/SOM_f.js (renamed from history/data_structures/SOM_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/SQRT.js (renamed from history/data_structures/SQRT.js)0
-rw-r--r--src/main/webapp/history/data_structures/SRFLIPFLOP.js (renamed from history/data_structures/SRFLIPFLOP.js)0
-rw-r--r--src/main/webapp/history/data_structures/STEP_FUNCTION.js (renamed from history/data_structures/STEP_FUNCTION.js)0
-rw-r--r--src/main/webapp/history/data_structures/SUBMAT.js (renamed from history/data_structures/SUBMAT.js)0
-rw-r--r--src/main/webapp/history/data_structures/SUMMATION.js (renamed from history/data_structures/SUMMATION.js)0
-rw-r--r--src/main/webapp/history/data_structures/SUM_f.js (renamed from history/data_structures/SUM_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/SUPER_f.js (renamed from history/data_structures/SUPER_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/SWITCH2_m.js (renamed from history/data_structures/SWITCH2_m.js)0
-rw-r--r--src/main/webapp/history/data_structures/SWITCH_f.js (renamed from history/data_structures/SWITCH_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/SampleCLK.js (renamed from history/data_structures/SampleCLK.js)0
-rw-r--r--src/main/webapp/history/data_structures/Sigbuilder.js (renamed from history/data_structures/Sigbuilder.js)0
-rw-r--r--src/main/webapp/history/data_structures/SineVoltage.js (renamed from history/data_structures/SineVoltage.js)0
-rw-r--r--src/main/webapp/history/data_structures/SourceP.js (renamed from history/data_structures/SourceP.js)0
-rw-r--r--src/main/webapp/history/data_structures/Switch.js (renamed from history/data_structures/Switch.js)0
-rw-r--r--src/main/webapp/history/data_structures/TANBLK_f.js (renamed from history/data_structures/TANBLK_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/TCLSS.js (renamed from history/data_structures/TCLSS.js)0
-rw-r--r--src/main/webapp/history/data_structures/TEXT_f.js (renamed from history/data_structures/TEXT_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/TIME_DELAY.js (renamed from history/data_structures/TIME_DELAY.js)0
-rw-r--r--src/main/webapp/history/data_structures/TIME_f.js (renamed from history/data_structures/TIME_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/TKSCALE.js (renamed from history/data_structures/TKSCALE.js)0
-rw-r--r--src/main/webapp/history/data_structures/TOWS_c.js (renamed from history/data_structures/TOWS_c.js)0
-rw-r--r--src/main/webapp/history/data_structures/TRASH_f.js (renamed from history/data_structures/TRASH_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/TrigFun.js (renamed from history/data_structures/TrigFun.js)0
-rw-r--r--src/main/webapp/history/data_structures/VARIABLE_DELAY.js (renamed from history/data_structures/VARIABLE_DELAY.js)0
-rw-r--r--src/main/webapp/history/data_structures/VVsourceAC.js (renamed from history/data_structures/VVsourceAC.js)0
-rw-r--r--src/main/webapp/history/data_structures/VanneReglante.js (renamed from history/data_structures/VanneReglante.js)0
-rw-r--r--src/main/webapp/history/data_structures/VariableResistor.js (renamed from history/data_structures/VariableResistor.js)0
-rw-r--r--src/main/webapp/history/data_structures/VirtualCLK0.js (renamed from history/data_structures/VirtualCLK0.js)0
-rw-r--r--src/main/webapp/history/data_structures/VoltageSensor.js (renamed from history/data_structures/VoltageSensor.js)0
-rw-r--r--src/main/webapp/history/data_structures/VsourceAC.js (renamed from history/data_structures/VsourceAC.js)0
-rw-r--r--src/main/webapp/history/data_structures/WFILE_f.js (renamed from history/data_structures/WFILE_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/WRITEAU_f.js (renamed from history/data_structures/WRITEAU_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/WRITEC_f.js (renamed from history/data_structures/WRITEC_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/ZCROSS_f.js (renamed from history/data_structures/ZCROSS_f.js)0
-rw-r--r--src/main/webapp/history/data_structures/c_block.js (renamed from history/data_structures/c_block.js)0
-rw-r--r--src/main/webapp/history/data_structures/fortran_block.js (renamed from history/data_structures/fortran_block.js)0
-rw-r--r--src/main/webapp/history/data_structures/freq_div.js (renamed from history/data_structures/freq_div.js)0
-rw-r--r--src/main/webapp/history/data_structures/generic_block3.js (renamed from history/data_structures/generic_block3.js)0
-rw-r--r--src/main/webapp/history/data_structures/scifunc_block_m.js (renamed from history/data_structures/scifunc_block_m.js)0
-rw-r--r--src/main/webapp/images/ScilabExecute.png (renamed from images/ScilabExecute.png)bin660 -> 660 bytes
-rw-r--r--src/main/webapp/images/add.png (renamed from images/add.png)bin1564 -> 1564 bytes
-rw-r--r--src/main/webapp/images/button.gif (renamed from images/button.gif)bin137 -> 137 bytes
-rw-r--r--src/main/webapp/images/camera.png (renamed from images/camera.png)bin887 -> 887 bytes
-rw-r--r--src/main/webapp/images/check.png (renamed from images/check.png)bin253 -> 253 bytes
-rw-r--r--src/main/webapp/images/close.gif (renamed from images/close.gif)bin70 -> 70 bytes
-rw-r--r--src/main/webapp/images/close.png (renamed from images/close.png)bin1910 -> 1910 bytes
-rw-r--r--src/main/webapp/images/collapsed.gif (renamed from images/collapsed.gif)bin877 -> 877 bytes
-rw-r--r--src/main/webapp/images/connector.gif (renamed from images/connector.gif)bin954 -> 954 bytes
-rw-r--r--src/main/webapp/images/copy.png (renamed from images/copy.png)bin728 -> 728 bytes
-rw-r--r--src/main/webapp/images/cut.png (renamed from images/cut.png)bin781 -> 781 bytes
-rw-r--r--src/main/webapp/images/delete2.png (renamed from images/delete2.png)bin914 -> 914 bytes
-rw-r--r--src/main/webapp/images/dot.gif (renamed from images/dot.gif)bin517 -> 517 bytes
-rw-r--r--src/main/webapp/images/draw-brush.png (renamed from images/draw-brush.png)bin635 -> 635 bytes
-rw-r--r--src/main/webapp/images/edit.png (renamed from images/edit.png)bin599 -> 599 bytes
-rw-r--r--src/main/webapp/images/error.gif (renamed from images/error.gif)bin907 -> 907 bytes
-rw-r--r--src/main/webapp/images/expanded.gif (renamed from images/expanded.gif)bin878 -> 878 bytes
-rw-r--r--src/main/webapp/images/export1.png (renamed from images/export1.png)bin857 -> 857 bytes
-rw-r--r--src/main/webapp/images/fit_to_size.png (renamed from images/fit_to_size.png)bin529 -> 529 bytes
-rw-r--r--src/main/webapp/images/flip.png (renamed from images/flip.png)bin540 -> 540 bytes
-rw-r--r--[-rwxr-xr-x]src/main/webapp/images/gear.gif (renamed from images/gear.gif)bin280 -> 280 bytes
-rw-r--r--src/main/webapp/images/gradient_background.jpg (renamed from images/gradient_background.jpg)bin6164 -> 6164 bytes
-rw-r--r--src/main/webapp/images/green-dot.gif (renamed from images/green-dot.gif)bin326 -> 326 bytes
-rw-r--r--src/main/webapp/images/grid.gif (renamed from images/grid.gif)bin58 -> 58 bytes
-rw-r--r--src/main/webapp/images/group.png (renamed from images/group.png)bin899 -> 899 bytes
-rw-r--r--src/main/webapp/images/key.png (renamed from images/key.png)bin300 -> 300 bytes
-rw-r--r--src/main/webapp/images/loading.gif (renamed from images/loading.gif)bin10132 -> 10132 bytes
-rw-r--r--src/main/webapp/images/maximize.gif (renamed from images/maximize.gif)bin843 -> 843 bytes
-rw-r--r--src/main/webapp/images/minimize.gif (renamed from images/minimize.gif)bin64 -> 64 bytes
-rw-r--r--src/main/webapp/images/mirror.png (renamed from images/mirror.png)bin581 -> 581 bytes
-rw-r--r--src/main/webapp/images/navigate_minus.png (renamed from images/navigate_minus.png)bin485 -> 485 bytes
-rw-r--r--src/main/webapp/images/navigate_plus.png (renamed from images/navigate_plus.png)bin709 -> 709 bytes
-rw-r--r--src/main/webapp/images/normalize.gif (renamed from images/normalize.gif)bin845 -> 845 bytes
-rw-r--r--src/main/webapp/images/paste.png (renamed from images/paste.png)bin783 -> 783 bytes
-rw-r--r--src/main/webapp/images/plus.png (renamed from images/plus.png)bin236 -> 236 bytes
-rw-r--r--src/main/webapp/images/point.gif (renamed from images/point.gif)bin55 -> 55 bytes
-rw-r--r--src/main/webapp/images/press32.png (renamed from images/press32.png)bin2261 -> 2261 bytes
-rw-r--r--src/main/webapp/images/print32.png (renamed from images/print32.png)bin2111 -> 2111 bytes
-rw-r--r--src/main/webapp/images/printer.png (renamed from images/printer.png)bin896 -> 896 bytes
-rw-r--r--src/main/webapp/images/redo.png (renamed from images/redo.png)bin895 -> 895 bytes
-rw-r--r--src/main/webapp/images/resize.gif (renamed from images/resize.gif)bin74 -> 74 bytes
-rw-r--r--src/main/webapp/images/rotate.png (renamed from images/rotate.png)bin703 -> 703 bytes
-rw-r--r--src/main/webapp/images/selectall.png (renamed from images/selectall.png)bin441 -> 441 bytes
-rw-r--r--src/main/webapp/images/separator.gif (renamed from images/separator.gif)bin146 -> 146 bytes
-rw-r--r--src/main/webapp/images/setup.png (renamed from images/setup.png)bin440 -> 440 bytes
-rw-r--r--src/main/webapp/images/sidebar_bg.gif (renamed from images/sidebar_bg.gif)bin80 -> 80 bytes
-rw-r--r--src/main/webapp/images/spacer.gif (renamed from images/spacer.gif)bin43 -> 43 bytes
-rw-r--r--src/main/webapp/images/submenu.gif (renamed from images/submenu.gif)bin56 -> 56 bytes
-rw-r--r--src/main/webapp/images/superblock.png (renamed from images/superblock.png)bin575 -> 575 bytes
-rw-r--r--src/main/webapp/images/toolbar_bg.gif (renamed from images/toolbar_bg.gif)bin155 -> 155 bytes
-rw-r--r--src/main/webapp/images/transparent.gif (renamed from images/transparent.gif)bin90 -> 90 bytes
-rw-r--r--src/main/webapp/images/undo.png (renamed from images/undo.png)bin879 -> 879 bytes
-rw-r--r--src/main/webapp/images/view_1_1.png (renamed from images/view_1_1.png)bin849 -> 849 bytes
-rw-r--r--src/main/webapp/images/view_1_132.png (renamed from images/view_1_132.png)bin2199 -> 2199 bytes
-rw-r--r--src/main/webapp/images/view_next.png (renamed from images/view_next.png)bin918 -> 918 bytes
-rw-r--r--src/main/webapp/images/view_previous.png (renamed from images/view_previous.png)bin912 -> 912 bytes
-rw-r--r--src/main/webapp/images/warning.gif (renamed from images/warning.gif)bin276 -> 276 bytes
-rw-r--r--src/main/webapp/images/warning.png (renamed from images/warning.png)bin425 -> 425 bytes
-rw-r--r--src/main/webapp/images/window-title.gif (renamed from images/window-title.gif)bin275 -> 275 bytes
-rw-r--r--src/main/webapp/images/window.gif (renamed from images/window.gif)bin75 -> 75 bytes
-rw-r--r--src/main/webapp/images/wires-grid.gif (renamed from images/wires-grid.gif)bin50 -> 50 bytes
-rw-r--r--src/main/webapp/images/zoom_in.png (renamed from images/zoom_in.png)bin858 -> 858 bytes
-rw-r--r--src/main/webapp/images/zoom_in32.png (renamed from images/zoom_in32.png)bin2184 -> 2184 bytes
-rw-r--r--src/main/webapp/images/zoom_out.png (renamed from images/zoom_out.png)bin847 -> 847 bytes
-rw-r--r--src/main/webapp/images/zoom_out32.png (renamed from images/zoom_out32.png)bin2150 -> 2150 bytes
-rw-r--r--[-rwxr-xr-x]src/main/webapp/index.html (renamed from index.html)7
-rw-r--r--src/main/webapp/jquery/LICENSE.txt (renamed from jquery/LICENSE.txt)0
-rw-r--r--src/main/webapp/jquery/README.html (renamed from jquery/README.html)0
-rw-r--r--src/main/webapp/jquery/farbtastic.css (renamed from jquery/farbtastic.css)0
-rw-r--r--src/main/webapp/jquery/farbtastic.js (renamed from jquery/farbtastic.js)0
-rw-r--r--src/main/webapp/jquery/images/ui-bg_flat_75_ffffff_40x100.png (renamed from jquery/images/ui-bg_flat_75_ffffff_40x100.png)bin178 -> 178 bytes
-rw-r--r--src/main/webapp/jquery/images/ui-bg_glass_75_e6e6e6_1x400.png (renamed from jquery/images/ui-bg_glass_75_e6e6e6_1x400.png)bin110 -> 110 bytes
-rw-r--r--src/main/webapp/jquery/images/ui-icons_888888_256x240.png (renamed from jquery/images/ui-icons_888888_256x240.png)bin4369 -> 4369 bytes
-rw-r--r--src/main/webapp/jquery/jquery-1.8.2.js (renamed from jquery/jquery-1.8.2.js)0
-rw-r--r--src/main/webapp/jquery/jquery-ui.css (renamed from jquery/jquery-ui.css)0
-rw-r--r--[-rwxr-xr-x]src/main/webapp/jquery/marker.png (renamed from jquery/marker.png)bin652 -> 652 bytes
-rw-r--r--src/main/webapp/jquery/mask.png (renamed from jquery/mask.png)bin2020 -> 2020 bytes
-rw-r--r--src/main/webapp/jquery/wheel.png (renamed from jquery/wheel.png)bin11733 -> 11733 bytes
-rw-r--r--src/main/webapp/math.js (renamed from math.js)0
-rw-r--r--src/main/webapp/mxClient.min.js (renamed from mxClient.min.js)0
-rw-r--r--src/main/webapp/orientation.js (renamed from orientation.js)0
-rw-r--r--src/main/webapp/palettes/ABS_VALUE.png (renamed from palettes/ABS_VALUE.png)bin859 -> 859 bytes
-rw-r--r--src/main/webapp/palettes/AFFICH_m.png (renamed from palettes/AFFICH_m.png)bin761 -> 761 bytes
-rw-r--r--src/main/webapp/palettes/ANDBLK.png (renamed from palettes/ANDBLK.png)bin972 -> 972 bytes
-rw-r--r--src/main/webapp/palettes/ANDLOG_f.png (renamed from palettes/ANDLOG_f.png)bin1429 -> 1429 bytes
-rw-r--r--src/main/webapp/palettes/AUTOMAT.png (renamed from palettes/AUTOMAT.png)bin1535 -> 1535 bytes
-rw-r--r--src/main/webapp/palettes/BACKLASH.png (renamed from palettes/BACKLASH.png)bin1000 -> 1000 bytes
-rw-r--r--src/main/webapp/palettes/BARXY.png (renamed from palettes/BARXY.png)bin1970 -> 1970 bytes
-rw-r--r--src/main/webapp/palettes/BIGSOM_f.png (renamed from palettes/BIGSOM_f.png)bin982 -> 982 bytes
-rw-r--r--src/main/webapp/palettes/BITCLEAR.png (renamed from palettes/BITCLEAR.png)bin1095 -> 1095 bytes
-rw-r--r--src/main/webapp/palettes/BITSET.png (renamed from palettes/BITSET.png)bin1019 -> 1019 bytes
-rw-r--r--src/main/webapp/palettes/BOUNCE.png (renamed from palettes/BOUNCE.png)bin1185 -> 1185 bytes
-rw-r--r--src/main/webapp/palettes/BOUNCEXY.png (renamed from palettes/BOUNCEXY.png)bin1532 -> 1532 bytes
-rw-r--r--src/main/webapp/palettes/BPLATFORM.png (renamed from palettes/BPLATFORM.png)bin1140 -> 1140 bytes
-rw-r--r--src/main/webapp/palettes/Bache.png (renamed from palettes/Bache.png)bin1088 -> 1088 bytes
-rw-r--r--src/main/webapp/palettes/CANIMXY.png (renamed from palettes/CANIMXY.png)bin1532 -> 1532 bytes
-rw-r--r--src/main/webapp/palettes/CANIMXY3D.png (renamed from palettes/CANIMXY3D.png)bin1543 -> 1543 bytes
-rw-r--r--src/main/webapp/palettes/CBLOCK.png (renamed from palettes/CBLOCK.png)bin1183 -> 1183 bytes
-rw-r--r--src/main/webapp/palettes/CBLOCK4.png (renamed from palettes/CBLOCK4.png)bin1172 -> 1172 bytes
-rw-r--r--src/main/webapp/palettes/CCS.png (renamed from palettes/CCS.png)bin789 -> 789 bytes
-rw-r--r--src/main/webapp/palettes/CEVENTSCOPE.png (renamed from palettes/CEVENTSCOPE.png)bin2021 -> 2021 bytes
-rw-r--r--src/main/webapp/palettes/CFSCOPE.png (renamed from palettes/CFSCOPE.png)bin1943 -> 1943 bytes
-rw-r--r--src/main/webapp/palettes/CLINDUMMY_f.png (renamed from palettes/CLINDUMMY_f.png)bin1021 -> 1021 bytes
-rw-r--r--src/main/webapp/palettes/CLKFROM.png (renamed from palettes/CLKFROM.png)bin462 -> 462 bytes
-rw-r--r--src/main/webapp/palettes/CLKGOTO.png (renamed from palettes/CLKGOTO.png)bin465 -> 465 bytes
-rw-r--r--src/main/webapp/palettes/CLKGotoTagVisibility.png (renamed from palettes/CLKGotoTagVisibility.png)bin1436 -> 1436 bytes
-rw-r--r--src/main/webapp/palettes/CLKINV_f.png (renamed from palettes/CLKINV_f.png)bin313 -> 313 bytes
-rw-r--r--src/main/webapp/palettes/CLKOUTV_f.png (renamed from palettes/CLKOUTV_f.png)bin315 -> 315 bytes
-rw-r--r--src/main/webapp/palettes/CLKSOMV_f.png (renamed from palettes/CLKSOMV_f.png)bin1081 -> 1081 bytes
-rw-r--r--src/main/webapp/palettes/CLOCK_c.png (renamed from palettes/CLOCK_c.png)bin1488 -> 1488 bytes
-rw-r--r--src/main/webapp/palettes/CLR.png (renamed from palettes/CLR.png)bin1024 -> 1024 bytes
-rw-r--r--src/main/webapp/palettes/CLSS.png (renamed from palettes/CLSS.png)bin1494 -> 1494 bytes
-rw-r--r--src/main/webapp/palettes/CMAT3D.png (renamed from palettes/CMAT3D.png)bin2385 -> 2385 bytes
-rw-r--r--src/main/webapp/palettes/CMATVIEW.png (renamed from palettes/CMATVIEW.png)bin2511 -> 2511 bytes
-rw-r--r--src/main/webapp/palettes/CMSCOPE.png (renamed from palettes/CMSCOPE.png)bin2050 -> 2050 bytes
-rw-r--r--src/main/webapp/palettes/CONST.png (renamed from palettes/CONST.png)bin512 -> 512 bytes
-rw-r--r--src/main/webapp/palettes/CONSTRAINT2_c.png (renamed from palettes/CONSTRAINT2_c.png)bin975 -> 975 bytes
-rw-r--r--src/main/webapp/palettes/CONSTRAINT_c.png (renamed from palettes/CONSTRAINT_c.png)bin763 -> 763 bytes
-rw-r--r--src/main/webapp/palettes/CONST_f.png (renamed from palettes/CONST_f.png)bin512 -> 512 bytes
-rw-r--r--src/main/webapp/palettes/CONST_m.png (renamed from palettes/CONST_m.png)bin512 -> 512 bytes
-rw-r--r--src/main/webapp/palettes/CONVERT.png (renamed from palettes/CONVERT.png)bin1020 -> 1020 bytes
-rw-r--r--src/main/webapp/palettes/COSBLK_f.png (renamed from palettes/COSBLK_f.png)bin863 -> 863 bytes
-rw-r--r--src/main/webapp/palettes/CSCOPE.png (renamed from palettes/CSCOPE.png)bin2033 -> 2033 bytes
-rw-r--r--src/main/webapp/palettes/CSCOPXY.png (renamed from palettes/CSCOPXY.png)bin1481 -> 1481 bytes
-rw-r--r--src/main/webapp/palettes/CSCOPXY3D.png (renamed from palettes/CSCOPXY3D.png)bin1570 -> 1570 bytes
-rw-r--r--src/main/webapp/palettes/CUMSUM.png (renamed from palettes/CUMSUM.png)bin958 -> 958 bytes
-rw-r--r--src/main/webapp/palettes/CURV_f.png (renamed from palettes/CURV_f.png)bin829 -> 829 bytes
-rw-r--r--src/main/webapp/palettes/CVS.png (renamed from palettes/CVS.png)bin752 -> 752 bytes
-rw-r--r--src/main/webapp/palettes/Capacitor.png (renamed from palettes/Capacitor.png)bin397 -> 397 bytes
-rw-r--r--src/main/webapp/palettes/ConstantVoltage.png (renamed from palettes/ConstantVoltage.png)bin442 -> 442 bytes
-rw-r--r--src/main/webapp/palettes/Counter.png (renamed from palettes/Counter.png)bin1219 -> 1219 bytes
-rw-r--r--src/main/webapp/palettes/CurrentSensor.png (renamed from palettes/CurrentSensor.png)bin2717 -> 2717 bytes
-rw-r--r--src/main/webapp/palettes/DEADBAND.png (renamed from palettes/DEADBAND.png)bin801 -> 801 bytes
-rw-r--r--src/main/webapp/palettes/DEBUG.png (renamed from palettes/DEBUG.png)bin805 -> 805 bytes
-rw-r--r--src/main/webapp/palettes/DELAYV_f.png (renamed from palettes/DELAYV_f.png)bin1486 -> 1486 bytes
-rw-r--r--src/main/webapp/palettes/DELAY_f.png (renamed from palettes/DELAY_f.png)bin875 -> 875 bytes
-rw-r--r--src/main/webapp/palettes/DEMUX.png (renamed from palettes/DEMUX.png)bin855 -> 855 bytes
-rw-r--r--src/main/webapp/palettes/DEMUX_f.png (renamed from palettes/DEMUX_f.png)bin855 -> 855 bytes
-rw-r--r--src/main/webapp/palettes/DERIV.png (renamed from palettes/DERIV.png)bin778 -> 778 bytes
-rw-r--r--src/main/webapp/palettes/DFLIPFLOP.png (renamed from palettes/DFLIPFLOP.png)bin1011 -> 1011 bytes
-rw-r--r--src/main/webapp/palettes/DIFF_f.png (renamed from palettes/DIFF_f.png)bin652 -> 652 bytes
-rw-r--r--src/main/webapp/palettes/DLATCH.png (renamed from palettes/DLATCH.png)bin1124 -> 1124 bytes
-rw-r--r--src/main/webapp/palettes/DLR.png (renamed from palettes/DLR.png)bin1103 -> 1103 bytes
-rw-r--r--src/main/webapp/palettes/DLRADAPT_f.png (renamed from palettes/DLRADAPT_f.png)bin1323 -> 1323 bytes
-rw-r--r--src/main/webapp/palettes/DLSS.png (renamed from palettes/DLSS.png)bin1532 -> 1532 bytes
-rw-r--r--src/main/webapp/palettes/DOLLAR.png (renamed from palettes/DOLLAR.png)bin760 -> 760 bytes
-rw-r--r--src/main/webapp/palettes/DOLLAR_f.png (renamed from palettes/DOLLAR_f.png)bin760 -> 760 bytes
-rw-r--r--src/main/webapp/palettes/DOLLAR_m.png (renamed from palettes/DOLLAR_m.png)bin760 -> 760 bytes
-rw-r--r--src/main/webapp/palettes/Diode.png (renamed from palettes/Diode.png)bin564 -> 564 bytes
-rw-r--r--src/main/webapp/palettes/EDGE_TRIGGER.png (renamed from palettes/EDGE_TRIGGER.png)bin1115 -> 1115 bytes
-rw-r--r--src/main/webapp/palettes/ENDBLK.png (renamed from palettes/ENDBLK.png)bin591 -> 591 bytes
-rw-r--r--src/main/webapp/palettes/END_c.png (renamed from palettes/END_c.png)bin726 -> 726 bytes
-rw-r--r--src/main/webapp/palettes/ESELECT_f.png (renamed from palettes/ESELECT_f.png)bin1199 -> 1199 bytes
-rw-r--r--src/main/webapp/palettes/EVTDLY_c.png (renamed from palettes/EVTDLY_c.png)bin1046 -> 1046 bytes
-rw-r--r--src/main/webapp/palettes/EVTGEN_f.png (renamed from palettes/EVTGEN_f.png)bin1118 -> 1118 bytes
-rw-r--r--src/main/webapp/palettes/EVTVARDLY.png (renamed from palettes/EVTVARDLY.png)bin1186 -> 1186 bytes
-rw-r--r--src/main/webapp/palettes/EXPBLK_m.png (renamed from palettes/EXPBLK_m.png)bin696 -> 696 bytes
-rw-r--r--src/main/webapp/palettes/EXPRESSION.png (renamed from palettes/EXPRESSION.png)bin1128 -> 1128 bytes
-rw-r--r--src/main/webapp/palettes/EXTRACT.png (renamed from palettes/EXTRACT.png)bin1025 -> 1025 bytes
-rw-r--r--src/main/webapp/palettes/EXTRACTBITS.png (renamed from palettes/EXTRACTBITS.png)bin1122 -> 1122 bytes
-rw-r--r--src/main/webapp/palettes/EXTRACTOR.png (renamed from palettes/EXTRACTOR.png)bin946 -> 946 bytes
-rw-r--r--src/main/webapp/palettes/EXTTRI.png (renamed from palettes/EXTTRI.png)bin1310 -> 1310 bytes
-rw-r--r--src/main/webapp/palettes/Extract_Activation.png (renamed from palettes/Extract_Activation.png)bin1297 -> 1297 bytes
-rw-r--r--src/main/webapp/palettes/FROM.png (renamed from palettes/FROM.png)bin449 -> 449 bytes
-rw-r--r--src/main/webapp/palettes/FROMMO.png (renamed from palettes/FROMMO.png)bin398 -> 398 bytes
-rw-r--r--src/main/webapp/palettes/FROMWSB.png (renamed from palettes/FROMWSB.png)bin918 -> 918 bytes
-rw-r--r--src/main/webapp/palettes/Flowmeter.png (renamed from palettes/Flowmeter.png)bin2746 -> 2746 bytes
-rw-r--r--src/main/webapp/palettes/GAINBLK.png (renamed from palettes/GAINBLK.png)bin863 -> 863 bytes
-rw-r--r--src/main/webapp/palettes/GAINBLK_f.png (renamed from palettes/GAINBLK_f.png)bin863 -> 863 bytes
-rw-r--r--src/main/webapp/palettes/GAIN_f.png (renamed from palettes/GAIN_f.png)bin863 -> 863 bytes
-rw-r--r--src/main/webapp/palettes/GENERAL_f.png (renamed from palettes/GENERAL_f.png)bin1042 -> 1042 bytes
-rw-r--r--src/main/webapp/palettes/GENSIN_f.png (renamed from palettes/GENSIN_f.png)bin1702 -> 1702 bytes
-rw-r--r--src/main/webapp/palettes/GENSQR_f.png (renamed from palettes/GENSQR_f.png)bin891 -> 891 bytes
-rw-r--r--src/main/webapp/palettes/GOTO.png (renamed from palettes/GOTO.png)bin444 -> 444 bytes
-rw-r--r--src/main/webapp/palettes/GOTOMO.png (renamed from palettes/GOTOMO.png)bin400 -> 400 bytes
-rw-r--r--src/main/webapp/palettes/GotoTagVisibility.png (renamed from palettes/GotoTagVisibility.png)bin1025 -> 1025 bytes
-rw-r--r--src/main/webapp/palettes/GotoTagVisibilityMO.png (renamed from palettes/GotoTagVisibilityMO.png)bin1520 -> 1520 bytes
-rw-r--r--src/main/webapp/palettes/Ground.png (renamed from palettes/Ground.png)bin317 -> 317 bytes
-rw-r--r--src/main/webapp/palettes/Gyrator.png (renamed from palettes/Gyrator.png)bin845 -> 845 bytes
-rw-r--r--src/main/webapp/palettes/HALT_f.png (renamed from palettes/HALT_f.png)bin675 -> 675 bytes
-rw-r--r--src/main/webapp/palettes/HYSTHERESIS.png (renamed from palettes/HYSTHERESIS.png)bin830 -> 830 bytes
-rw-r--r--src/main/webapp/palettes/IFTHEL_f.png (renamed from palettes/IFTHEL_f.png)bin1374 -> 1374 bytes
-rw-r--r--src/main/webapp/palettes/INIMPL_f.png (renamed from palettes/INIMPL_f.png)bin255 -> 255 bytes
-rw-r--r--src/main/webapp/palettes/INTEGRAL_f.png (renamed from palettes/INTEGRAL_f.png)bin731 -> 731 bytes
-rw-r--r--src/main/webapp/palettes/INTEGRAL_m.png (renamed from palettes/INTEGRAL_m.png)bin942 -> 942 bytes
-rw-r--r--src/main/webapp/palettes/INTMUL.png (renamed from palettes/INTMUL.png)bin809 -> 809 bytes
-rw-r--r--src/main/webapp/palettes/INTRP2BLK_f.png (renamed from palettes/INTRP2BLK_f.png)bin946 -> 946 bytes
-rw-r--r--src/main/webapp/palettes/INTRPLBLK_f.png (renamed from palettes/INTRPLBLK_f.png)bin797 -> 797 bytes
-rw-r--r--src/main/webapp/palettes/INVBLK.png (renamed from palettes/INVBLK.png)bin684 -> 684 bytes
-rw-r--r--src/main/webapp/palettes/IN_f.png (renamed from palettes/IN_f.png)bin303 -> 303 bytes
-rw-r--r--src/main/webapp/palettes/ISELECT_m.png (renamed from palettes/ISELECT_m.png)bin1104 -> 1104 bytes
-rw-r--r--src/main/webapp/palettes/IdealTransformer.png (renamed from palettes/IdealTransformer.png)bin1036 -> 1036 bytes
-rw-r--r--src/main/webapp/palettes/Inductor.png (renamed from palettes/Inductor.png)bin464 -> 464 bytes
-rw-r--r--src/main/webapp/palettes/JKFLIPFLOP.png (renamed from palettes/JKFLIPFLOP.png)bin963 -> 963 bytes
-rw-r--r--src/main/webapp/palettes/LOGBLK_f.png (renamed from palettes/LOGBLK_f.png)bin792 -> 792 bytes
-rw-r--r--src/main/webapp/palettes/LOGIC.png (renamed from palettes/LOGIC.png)bin1007 -> 1007 bytes
-rw-r--r--src/main/webapp/palettes/LOGICAL_OP.png (renamed from palettes/LOGICAL_OP.png)bin853 -> 853 bytes
-rw-r--r--src/main/webapp/palettes/LOOKUP_f.png (renamed from palettes/LOOKUP_f.png)bin2062 -> 2062 bytes
-rw-r--r--src/main/webapp/palettes/MATBKSL.png (renamed from palettes/MATBKSL.png)bin842 -> 842 bytes
-rw-r--r--src/main/webapp/palettes/MATCATH.png (renamed from palettes/MATCATH.png)bin1041 -> 1041 bytes
-rw-r--r--src/main/webapp/palettes/MATCATV.png (renamed from palettes/MATCATV.png)bin1095 -> 1095 bytes
-rw-r--r--src/main/webapp/palettes/MATDET.png (renamed from palettes/MATDET.png)bin659 -> 659 bytes
-rw-r--r--src/main/webapp/palettes/MATDIAG.png (renamed from palettes/MATDIAG.png)bin850 -> 850 bytes
-rw-r--r--src/main/webapp/palettes/MATDIV.png (renamed from palettes/MATDIV.png)bin845 -> 845 bytes
-rw-r--r--src/main/webapp/palettes/MATEIG.png (renamed from palettes/MATEIG.png)bin684 -> 684 bytes
-rw-r--r--src/main/webapp/palettes/MATEXPM.png (renamed from palettes/MATEXPM.png)bin822 -> 822 bytes
-rw-r--r--src/main/webapp/palettes/MATINV.png (renamed from palettes/MATINV.png)bin732 -> 732 bytes
-rw-r--r--src/main/webapp/palettes/MATLU.png (renamed from palettes/MATLU.png)bin637 -> 637 bytes
-rw-r--r--src/main/webapp/palettes/MATMAGPHI.png (renamed from palettes/MATMAGPHI.png)bin1093 -> 1093 bytes
-rw-r--r--src/main/webapp/palettes/MATMUL.png (renamed from palettes/MATMUL.png)bin914 -> 914 bytes
-rw-r--r--src/main/webapp/palettes/MATPINV.png (renamed from palettes/MATPINV.png)bin777 -> 777 bytes
-rw-r--r--src/main/webapp/palettes/MATRESH.png (renamed from palettes/MATRESH.png)bin982 -> 982 bytes
-rw-r--r--src/main/webapp/palettes/MATSING.png (renamed from palettes/MATSING.png)bin846 -> 846 bytes
-rw-r--r--src/main/webapp/palettes/MATSUM.png (renamed from palettes/MATSUM.png)bin976 -> 976 bytes
-rw-r--r--src/main/webapp/palettes/MATTRAN.png (renamed from palettes/MATTRAN.png)bin963 -> 963 bytes
-rw-r--r--src/main/webapp/palettes/MATZCONJ.png (renamed from palettes/MATZCONJ.png)bin860 -> 860 bytes
-rw-r--r--src/main/webapp/palettes/MATZREIM.png (renamed from palettes/MATZREIM.png)bin970 -> 970 bytes
-rw-r--r--src/main/webapp/palettes/MAXMIN.png (renamed from palettes/MAXMIN.png)bin861 -> 861 bytes
-rw-r--r--src/main/webapp/palettes/MAX_f.png (renamed from palettes/MAX_f.png)bin861 -> 861 bytes
-rw-r--r--src/main/webapp/palettes/MBLOCK.png (renamed from palettes/MBLOCK.png)bin1288 -> 1288 bytes
-rw-r--r--src/main/webapp/palettes/MCLOCK_f.png (renamed from palettes/MCLOCK_f.png)bin1202 -> 1202 bytes
-rw-r--r--src/main/webapp/palettes/MFCLCK_f.png (renamed from palettes/MFCLCK_f.png)bin1168 -> 1168 bytes
-rw-r--r--src/main/webapp/palettes/MIN_f.png (renamed from palettes/MIN_f.png)bin719 -> 719 bytes
-rw-r--r--src/main/webapp/palettes/MUX.png (renamed from palettes/MUX.png)bin765 -> 765 bytes
-rw-r--r--src/main/webapp/palettes/MUX_f.png (renamed from palettes/MUX_f.png)bin765 -> 765 bytes
-rw-r--r--src/main/webapp/palettes/M_SWITCH.png (renamed from palettes/M_SWITCH.png)bin1567 -> 1567 bytes
-rw-r--r--src/main/webapp/palettes/M_freq.png (renamed from palettes/M_freq.png)bin1427 -> 1427 bytes
-rw-r--r--src/main/webapp/palettes/Modulo_Count.png (renamed from palettes/Modulo_Count.png)bin1395 -> 1395 bytes
-rw-r--r--src/main/webapp/palettes/NEGTOPOS_f.png (renamed from palettes/NEGTOPOS_f.png)bin718 -> 718 bytes
-rw-r--r--src/main/webapp/palettes/NMOS.png (renamed from palettes/NMOS.png)bin751 -> 751 bytes
-rw-r--r--src/main/webapp/palettes/NPN.png (renamed from palettes/NPN.png)bin745 -> 745 bytes
-rw-r--r--src/main/webapp/palettes/NRMSOM_f.png (renamed from palettes/NRMSOM_f.png)bin988 -> 988 bytes
-rw-r--r--src/main/webapp/palettes/OUTIMPL_f.png (renamed from palettes/OUTIMPL_f.png)bin257 -> 257 bytes
-rw-r--r--src/main/webapp/palettes/OUT_f.png (renamed from palettes/OUT_f.png)bin297 -> 297 bytes
-rw-r--r--src/main/webapp/palettes/OpAmp.png (renamed from palettes/OpAmp.png)bin1649 -> 1649 bytes
-rw-r--r--src/main/webapp/palettes/PDE.png (renamed from palettes/PDE.png)bin882 -> 882 bytes
-rw-r--r--src/main/webapp/palettes/PID.png (renamed from palettes/PID.png)bin682 -> 682 bytes
-rw-r--r--src/main/webapp/palettes/PMOS.png (renamed from palettes/PMOS.png)bin766 -> 766 bytes
-rw-r--r--src/main/webapp/palettes/PNP.png (renamed from palettes/PNP.png)bin747 -> 747 bytes
-rw-r--r--src/main/webapp/palettes/POSTONEG_f.png (renamed from palettes/POSTONEG_f.png)bin722 -> 722 bytes
-rw-r--r--src/main/webapp/palettes/POWBLK_f.png (renamed from palettes/POWBLK_f.png)bin687 -> 687 bytes
-rw-r--r--src/main/webapp/palettes/PRODUCT.png (renamed from palettes/PRODUCT.png)bin1013 -> 1013 bytes
-rw-r--r--src/main/webapp/palettes/PROD_f.png (renamed from palettes/PROD_f.png)bin803 -> 803 bytes
-rw-r--r--src/main/webapp/palettes/PULSE_SC.png (renamed from palettes/PULSE_SC.png)bin788 -> 788 bytes
-rw-r--r--src/main/webapp/palettes/PerteDP.png (renamed from palettes/PerteDP.png)bin454 -> 454 bytes
-rw-r--r--src/main/webapp/palettes/PotentialSensor.png (renamed from palettes/PotentialSensor.png)bin2578 -> 2578 bytes
-rw-r--r--src/main/webapp/palettes/PuitsP.png (renamed from palettes/PuitsP.png)bin1079 -> 1079 bytes
-rw-r--r--src/main/webapp/palettes/QUANT_f.png (renamed from palettes/QUANT_f.png)bin759 -> 759 bytes
-rw-r--r--src/main/webapp/palettes/RAMP.png (renamed from palettes/RAMP.png)bin790 -> 790 bytes
-rw-r--r--src/main/webapp/palettes/RAND_m.png (renamed from palettes/RAND_m.png)bin1410 -> 1410 bytes
-rw-r--r--src/main/webapp/palettes/RATELIMITER.png (renamed from palettes/RATELIMITER.png)bin989 -> 989 bytes
-rw-r--r--src/main/webapp/palettes/READAU_f.png (renamed from palettes/READAU_f.png)bin1209 -> 1209 bytes
-rw-r--r--src/main/webapp/palettes/READC_f.png (renamed from palettes/READC_f.png)bin1669 -> 1669 bytes
-rw-r--r--src/main/webapp/palettes/REGISTER.png (renamed from palettes/REGISTER.png)bin1272 -> 1272 bytes
-rw-r--r--src/main/webapp/palettes/RELATIONALOP.png (renamed from palettes/RELATIONALOP.png)bin670 -> 670 bytes
-rw-r--r--src/main/webapp/palettes/RELAY_f.png (renamed from palettes/RELAY_f.png)bin1008 -> 1008 bytes
-rw-r--r--src/main/webapp/palettes/RFILE_f.png (renamed from palettes/RFILE_f.png)bin1459 -> 1459 bytes
-rw-r--r--src/main/webapp/palettes/RICC.png (renamed from palettes/RICC.png)bin794 -> 794 bytes
-rw-r--r--src/main/webapp/palettes/ROOTCOEF.png (renamed from palettes/ROOTCOEF.png)bin1052 -> 1052 bytes
-rw-r--r--src/main/webapp/palettes/Resistor.png (renamed from palettes/Resistor.png)bin505 -> 505 bytes
-rw-r--r--src/main/webapp/palettes/SAMPHOLD_m.png (renamed from palettes/SAMPHOLD_m.png)bin857 -> 857 bytes
-rw-r--r--src/main/webapp/palettes/SATURATION.png (renamed from palettes/SATURATION.png)bin785 -> 785 bytes
-rw-r--r--src/main/webapp/palettes/SAWTOOTH_f.png (renamed from palettes/SAWTOOTH_f.png)bin1282 -> 1282 bytes
-rw-r--r--src/main/webapp/palettes/SCALAR2VECTOR.png (renamed from palettes/SCALAR2VECTOR.png)bin1475 -> 1475 bytes
-rw-r--r--src/main/webapp/palettes/SELECT_m.png (renamed from palettes/SELECT_m.png)bin1111 -> 1111 bytes
-rw-r--r--src/main/webapp/palettes/SELF_SWITCH.png (renamed from palettes/SELF_SWITCH.png)bin1792 -> 1792 bytes
-rw-r--r--src/main/webapp/palettes/SELF_SWITCH_off.png (renamed from palettes/SELF_SWITCH_off.png)bin1823 -> 1823 bytes
-rw-r--r--src/main/webapp/palettes/SELF_SWITCH_on.png (renamed from palettes/SELF_SWITCH_on.png)bin1723 -> 1723 bytes
-rw-r--r--src/main/webapp/palettes/SHIFT.png (renamed from palettes/SHIFT.png)bin1275 -> 1275 bytes
-rw-r--r--src/main/webapp/palettes/SIGNUM.png (renamed from palettes/SIGNUM.png)bin866 -> 866 bytes
-rw-r--r--src/main/webapp/palettes/SINBLK_f.png (renamed from palettes/SINBLK_f.png)bin760 -> 760 bytes
-rw-r--r--src/main/webapp/palettes/SOM_f.png (renamed from palettes/SOM_f.png)bin1007 -> 1007 bytes
-rw-r--r--src/main/webapp/palettes/SQRT.png (renamed from palettes/SQRT.png)bin896 -> 896 bytes
-rw-r--r--src/main/webapp/palettes/SRFLIPFLOP.png (renamed from palettes/SRFLIPFLOP.png)bin1150 -> 1150 bytes
-rw-r--r--src/main/webapp/palettes/STEP_FUNCTION.png (renamed from palettes/STEP_FUNCTION.png)bin645 -> 645 bytes
-rw-r--r--src/main/webapp/palettes/SUBMAT.png (renamed from palettes/SUBMAT.png)bin1006 -> 1006 bytes
-rw-r--r--src/main/webapp/palettes/SUMMATION.png (renamed from palettes/SUMMATION.png)bin1011 -> 1011 bytes
-rw-r--r--src/main/webapp/palettes/SUM_f.png (renamed from palettes/SUM_f.png)bin752 -> 752 bytes
-rw-r--r--src/main/webapp/palettes/SUPER_f.png (renamed from palettes/SUPER_f.png)bin801 -> 801 bytes
-rw-r--r--src/main/webapp/palettes/SWITCH2_m.png (renamed from palettes/SWITCH2_m.png)bin1289 -> 1289 bytes
-rw-r--r--src/main/webapp/palettes/SWITCH_f.png (renamed from palettes/SWITCH_f.png)bin1244 -> 1244 bytes
-rw-r--r--src/main/webapp/palettes/SampleCLK.png (renamed from palettes/SampleCLK.png)bin1383 -> 1383 bytes
-rw-r--r--src/main/webapp/palettes/Sigbuilder.png (renamed from palettes/Sigbuilder.png)bin1315 -> 1315 bytes
-rw-r--r--src/main/webapp/palettes/SineVoltage.png (renamed from palettes/SineVoltage.png)bin1043 -> 1043 bytes
-rw-r--r--src/main/webapp/palettes/SourceP.png (renamed from palettes/SourceP.png)bin1209 -> 1209 bytes
-rw-r--r--src/main/webapp/palettes/Switch.png (renamed from palettes/Switch.png)bin881 -> 881 bytes
-rw-r--r--src/main/webapp/palettes/TANBLK_f.png (renamed from palettes/TANBLK_f.png)bin753 -> 753 bytes
-rw-r--r--src/main/webapp/palettes/TCLSS.png (renamed from palettes/TCLSS.png)bin1406 -> 1406 bytes
-rw-r--r--src/main/webapp/palettes/TEXT_f.png (renamed from palettes/TEXT_f.png)bin110 -> 110 bytes
-rw-r--r--src/main/webapp/palettes/TIME_DELAY.png (renamed from palettes/TIME_DELAY.png)bin1454 -> 1454 bytes
-rw-r--r--src/main/webapp/palettes/TIME_f.png (renamed from palettes/TIME_f.png)bin1398 -> 1398 bytes
-rw-r--r--src/main/webapp/palettes/TKSCALE.png (renamed from palettes/TKSCALE.png)bin1064 -> 1064 bytes
-rw-r--r--src/main/webapp/palettes/TOWS_c.png (renamed from palettes/TOWS_c.png)bin1646 -> 1646 bytes
-rw-r--r--src/main/webapp/palettes/TRASH_f.png (renamed from palettes/TRASH_f.png)bin846 -> 846 bytes
-rw-r--r--src/main/webapp/palettes/TrigFun.png (renamed from palettes/TrigFun.png)bin1018 -> 1018 bytes
-rw-r--r--src/main/webapp/palettes/VARIABLE_DELAY.png (renamed from palettes/VARIABLE_DELAY.png)bin1290 -> 1290 bytes
-rw-r--r--src/main/webapp/palettes/VVsourceAC.png (renamed from palettes/VVsourceAC.png)bin1229 -> 1229 bytes
-rw-r--r--src/main/webapp/palettes/VanneReglante.png (renamed from palettes/VanneReglante.png)bin2132 -> 2132 bytes
-rw-r--r--src/main/webapp/palettes/VariableResistor.png (renamed from palettes/VariableResistor.png)bin1034 -> 1034 bytes
-rw-r--r--src/main/webapp/palettes/VirtualCLK0.png (renamed from palettes/VirtualCLK0.png)bin1485 -> 1485 bytes
-rw-r--r--src/main/webapp/palettes/VoltageSensor.png (renamed from palettes/VoltageSensor.png)bin2731 -> 2731 bytes
-rw-r--r--src/main/webapp/palettes/VsourceAC.png (renamed from palettes/VsourceAC.png)bin1316 -> 1316 bytes
-rw-r--r--src/main/webapp/palettes/WFILE_f.png (renamed from palettes/WFILE_f.png)bin1477 -> 1477 bytes
-rw-r--r--src/main/webapp/palettes/WRITEAU_f.png (renamed from palettes/WRITEAU_f.png)bin1711 -> 1711 bytes
-rw-r--r--src/main/webapp/palettes/WRITEC_f.png (renamed from palettes/WRITEC_f.png)bin1587 -> 1587 bytes
-rw-r--r--src/main/webapp/palettes/ZCROSS_f.png (renamed from palettes/ZCROSS_f.png)bin909 -> 909 bytes
-rw-r--r--src/main/webapp/palettes/c_block.png (renamed from palettes/c_block.png)bin1068 -> 1068 bytes
-rw-r--r--src/main/webapp/palettes/fortran_block.png (renamed from palettes/fortran_block.png)bin1378 -> 1378 bytes
-rw-r--r--src/main/webapp/palettes/freq_div.png (renamed from palettes/freq_div.png)bin1415 -> 1415 bytes
-rw-r--r--src/main/webapp/palettes/generic_block3.png (renamed from palettes/generic_block3.png)bin1439 -> 1439 bytes
-rw-r--r--src/main/webapp/palettes/palettes.xml (renamed from palettes/palettes.xml)0
-rw-r--r--src/main/webapp/palettes/scifunc_block_m.png (renamed from palettes/scifunc_block_m.png)bin1325 -> 1325 bytes
-rw-r--r--src/main/webapp/resources/editor.properties (renamed from resources/editor.properties)0
-rw-r--r--src/main/webapp/resources/graph.properties (renamed from resources/graph.properties)0
-rw-r--r--src/main/webapp/setup.js (renamed from setup.js)0
-rw-r--r--src/main/webapp/styles/Xcos-style.xml (renamed from styles/Xcos-style.xml)0
1068 files changed, 12562 insertions, 12487 deletions
diff --git a/README.md b/README.md
index 3663737..4586a26 100644
--- a/README.md
+++ b/README.md
@@ -4,10 +4,13 @@ Xcos is an open source graphic simulator available with Scilab. Scilab can be in
The main aim of this project will be to port core functionalities of Xcos to a browser-only version that can be used without installing additional plugins or software.
## Installation
-Host the contents of this repository on Apache2 and run index.html
+
+* sudo apt-get scilab
+* mvn clean install
+* Host the contents of this repository on Tomcat and run index.html
## License information
-This project has a Creative Commons Public License.
+This project has a Creative Commons Public License.
For further information please refer to 'license.txt'-file
@@ -16,15 +19,15 @@ For further information please refer to 'license.txt'-file
You can get support in the community mailing list and forums:
https://groups.google.com/forum/#!forum/xcos-on-web
-
+
## Demo
-An online demo with continous integration with repository can be found over here:
+An online demo can be found over here:
- https://xcos.herokuapp.com/
+ https://xcos.fossee.in/
Our application is still in development stage - let us know your feedback!
-
+
## Contributors
* Amit Kumar Yadav, Motilal Nehru National Institute of Technology, Allahabad
diff --git a/WEB-INF/web.xml b/WEB-INF/web.xml
deleted file mode 100755
index f74ebf3..0000000
--- a/WEB-INF/web.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<web-app xmlns="http://java.sun.com/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
- version="2.5">
-
- <servlet>
- <servlet-name>SciExec</servlet-name>
- <servlet-class>SciExec</servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>SciExec</servlet-name>
- <url-pattern>/servlet/SciExec</url-pattern>
- </servlet-mapping>
-
-
- <display-name>Welcome to Tomcat</display-name>
- <description>
- Welcome to Tomcat
- </description>
-</web-app>
diff --git a/nb-configuration.xml b/nb-configuration.xml
new file mode 100644
index 0000000..99174dc
--- /dev/null
+++ b/nb-configuration.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-shared-configuration>
+ <!--
+This file contains additional configuration written by modules in the NetBeans IDE.
+The configuration is intended to be shared among all the users of project and
+therefore it is assumed to be part of version control checkout.
+Without this configuration present, some functionality in the IDE may be limited or fail altogether.
+-->
+ <properties xmlns="http://www.netbeans.org/ns/maven-properties-data/1">
+ <!--
+Properties that influence various parts of the IDE, especially code formatting and the like.
+You can copy and paste the single properties, into the pom.xml file and the IDE will pick them up.
+That way multiple projects can share the same settings (useful for formatting rules for example).
+Any value defined here will override the pom.xml file value but is only applicable to the current project.
+-->
+ <org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_j2eeVersion>1.6-web</org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_j2eeVersion>
+ <org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>Tomcat</org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>
+ </properties>
+</project-shared-configuration>
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..dc519a4
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,81 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>fossee</groupId>
+ <artifactId>xcos-on-web</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>war</packaging>
+
+ <name>xcos-on-web</name>
+
+ <properties>
+ <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>javax</groupId>
+ <artifactId>javaee-web-api</artifactId>
+ <version>6.0</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-io</artifactId>
+ <version>1.3.2</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.3.2</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ <compilerArguments>
+ <endorseddirs>${endorsed.dir}</endorseddirs>
+ </compilerArguments>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <version>2.1.1</version>
+ <configuration>
+ <failOnMissingWebXml>false</failOnMissingWebXml>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>2.1</version>
+ <executions>
+ <execution>
+ <phase>validate</phase>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${endorsed.dir}</outputDirectory>
+ <silent>true</silent>
+ <artifactItems>
+ <artifactItem>
+ <groupId>javax</groupId>
+ <artifactId>javaee-endorsed-api</artifactId>
+ <version>6.0</version>
+ <type>jar</type>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
diff --git a/WEB-INF/classes/SciExec.java b/src/main/java/fossee/xcos/on/web/SciExec.java
index d6dd2a1..994d1cd 100755..100644
--- a/WEB-INF/classes/SciExec.java
+++ b/src/main/java/fossee/xcos/on/web/SciExec.java
@@ -1,12 +1,12 @@
+package fossee.xcos.on.web;
+
/**
- * Servlet code for xcos-on-web
- * Authors: Maverick and Adhitya
- * Description: The following servlet creates a shell command to run Scilab
- * without any GUI/simulation window. The diagram sent from client
- * is stored in a usr-xxx.xcos file and is then simulated.
- * The result is a .png file which is then sent back to the client.
+ * Servlet code for xcos-on-web Authors: Maverick and Adhitya Description: The
+ * following servlet creates a shell command to run Scilab without any
+ * GUI/simulation window. The diagram sent from client is stored in a
+ * usr-xxx.xcos file and is then simulated. The result is a .png file which is
+ * then sent back to the client.
*/
-
import java.io.*;
import javax.servlet.*;
import java.util.*;
@@ -21,14 +21,12 @@ import org.apache.commons.io.FilenameUtils;
public class SciExec extends GenericServlet {
public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException {
- PrintWriter pw = response.getWriter();
InputStream is = null;
ByteArrayOutputStream baos = null;
List<String> commands = new ArrayList<String>();
/**
- * Maverick and Srikant:
- * Creating a shell command to run Scilab without
+ * Maverick and Srikant: Creating a shell command to run Scilab without
* any GUI so that the simulation window doesn't appear.
*/
commands.add("scilab-adv-cli");
@@ -41,9 +39,8 @@ public class SciExec extends GenericServlet {
String fileNameWithoutExt = "";
/**
- * Maverick:
- * Ignore the following block.
- *
+ * Maverick: Ignore the following block.
+ *
* commands.add("plot3d();xs2png(gcf(),'img2.png');exit();"); String
* data=request.getParameter("name"); pw.println(data);
* commands.add("echo "+data+" >
@@ -54,8 +51,7 @@ public class SciExec extends GenericServlet {
try {
InputStream inputStream = request.getInputStream();
/**
- * Adhitya:
- * Creating a temporary file in the directory containing
+ * Adhitya: Creating a temporary file in the directory containing
* tomcat. This is the .xcos file which will be executed by the
* Scilab engine.
*/
@@ -70,25 +66,24 @@ public class SciExec extends GenericServlet {
fileNameWithoutExt = FilenameUtils.removeExtension(xcosFile.getName());
/**
- * Maverick:
- * The resultant .png file which is produced as a result of
- * simulation is stored in a different folder inside the respective
- * webapp directory. The path of the folder is
+ * Maverick: The resultant .svg file which is produced as a result
+ * of simulation is stored in a different folder inside the
+ * respective webapp directory. The path of the folder is
* /path/to/webapp/servlet.
*
* @ToDo: Modify the following path.
*/
- imagePath = "/path/to/webapps/xcos-on-web/servlet" + File.separator + fileNameWithoutExt + ".png";
+ imagePath = parentPath + File.separator + fileNameWithoutExt + ".svg";
/**
- * Maverick:
- * Creating the command which is to be executed using terminal.
+ * Maverick: Creating the command which is to be executed using
+ * terminal.
*/
- commands.add("driver('PNG');xinit('" + imagePath + "');loadXcosLibs();importXcosDiagram('" + tempPath + "');xcos_simulate(scs_m,4);mode(2);xend();quit();");
+ commands.add("driver('SVG');xinit('" + imagePath + "');loadXcosLibs();importXcosDiagram('" + tempPath + "');xcos_simulate(scs_m,4);mode(2);xend();quit();");
/**
- * Maverick:
- * Reference: http://stackoverflow.com/questions/23086778/how-to-access-unix-shell-special-variables-using-java
+ * Maverick: Reference:
+ * http://stackoverflow.com/questions/23086778/how-to-access-unix-shell-special-variables-using-java
* Starting a process to execute the created command.
*/
Process prs = pb.start();
@@ -101,14 +96,11 @@ public class SciExec extends GenericServlet {
}
System.out.println(new String(baos.toByteArray()));
- }
- catch (IOException e) {
+ } catch (IOException e) {
e.printStackTrace();
- }
- catch (Exception e) {
- pw.println("Exception");
- }
- finally {
+ } catch (Exception e) {
+ System.out.println("Exception");
+ } finally {
try {
if (is != null) {
is.close();
@@ -116,15 +108,20 @@ public class SciExec extends GenericServlet {
if (baos != null) {
baos.close();
}
- }
- catch (Exception ex) {
+ } catch (Exception ex) {
}
}
/**
- * Maverick:
- * Accessing the .png file and sending it to the client.
+ * Adhitya: Accessing the .svg file and sending it to the client.
*/
- pw.println("servlet/" + fileNameWithoutExt + ".png");
- pw.close();
+ OutputStream out = response.getOutputStream();
+ FileInputStream in = new FileInputStream(imagePath);
+ byte[] buffer = new byte[4096];
+ int length;
+ while ((length = in.read(buffer)) > 0) {
+ out.write(buffer, 0, length);
+ }
+ in.close();
+ out.flush();
}
}
diff --git a/src/main/webapp/META-INF/context.xml b/src/main/webapp/META-INF/context.xml
new file mode 100644
index 0000000..5bee3dc
--- /dev/null
+++ b/src/main/webapp/META-INF/context.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Context antiJARLocking="true" path=""/>
diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000..f9fcb73
--- /dev/null
+++ b/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
+ <servlet>
+ <servlet-name>SciExec</servlet-name>
+ <servlet-class>fossee.xcos.on.web.SciExec</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>SciExec</servlet-name>
+ <url-pattern>/SciExec</url-pattern>
+ </servlet-mapping>
+ <session-config>
+ <session-timeout>
+ 30
+ </session-timeout>
+ </session-config>
+</web-app>
diff --git a/blocks/3DSCOPE.svg b/src/main/webapp/blocks/3DSCOPE.svg
index 8e13deb..8e13deb 100644
--- a/blocks/3DSCOPE.svg
+++ b/src/main/webapp/blocks/3DSCOPE.svg
diff --git a/blocks/ANDBLK.svg b/src/main/webapp/blocks/ANDBLK.svg
index c55e06a..c55e06a 100644
--- a/blocks/ANDBLK.svg
+++ b/src/main/webapp/blocks/ANDBLK.svg
diff --git a/blocks/ASCOPE.svg b/src/main/webapp/blocks/ASCOPE.svg
index bd06723..bd06723 100644
--- a/blocks/ASCOPE.svg
+++ b/src/main/webapp/blocks/ASCOPE.svg
diff --git a/blocks/BACHE.svg b/src/main/webapp/blocks/BACHE.svg
index af85023..af85023 100644
--- a/blocks/BACHE.svg
+++ b/src/main/webapp/blocks/BACHE.svg
diff --git a/blocks/BARXY.svg b/src/main/webapp/blocks/BARXY.svg
index 3bc0b38..3bc0b38 100644
--- a/blocks/BARXY.svg
+++ b/src/main/webapp/blocks/BARXY.svg
diff --git a/blocks/BPLATFORM.svg b/src/main/webapp/blocks/BPLATFORM.svg
index 734ca36..734ca36 100644
--- a/blocks/BPLATFORM.svg
+++ b/src/main/webapp/blocks/BPLATFORM.svg
diff --git a/blocks/CCS.svg b/src/main/webapp/blocks/CCS.svg
index dc6c316..dc6c316 100644
--- a/blocks/CCS.svg
+++ b/src/main/webapp/blocks/CCS.svg
diff --git a/blocks/CLOCK_c.svg b/src/main/webapp/blocks/CLOCK_c.svg
index 9ade9ae..9ade9ae 100644
--- a/blocks/CLOCK_c.svg
+++ b/src/main/webapp/blocks/CLOCK_c.svg
diff --git a/blocks/CLOCK_f.svg b/src/main/webapp/blocks/CLOCK_f.svg
index cc18ac3..cc18ac3 100644
--- a/blocks/CLOCK_f.svg
+++ b/src/main/webapp/blocks/CLOCK_f.svg
diff --git a/blocks/CSCOPXY.svg b/src/main/webapp/blocks/CSCOPXY.svg
index 1caa482..1caa482 100644
--- a/blocks/CSCOPXY.svg
+++ b/src/main/webapp/blocks/CSCOPXY.svg
diff --git a/blocks/CSCOPXY3D.svg b/src/main/webapp/blocks/CSCOPXY3D.svg
index 074d43e..074d43e 100644
--- a/blocks/CSCOPXY3D.svg
+++ b/src/main/webapp/blocks/CSCOPXY3D.svg
diff --git a/blocks/CVS.svg b/src/main/webapp/blocks/CVS.svg
index 6207fde..6207fde 100644
--- a/blocks/CVS.svg
+++ b/src/main/webapp/blocks/CVS.svg
diff --git a/blocks/Capacitor.svg b/src/main/webapp/blocks/Capacitor.svg
index f39a5c5..f39a5c5 100644
--- a/blocks/Capacitor.svg
+++ b/src/main/webapp/blocks/Capacitor.svg
diff --git a/blocks/ConstantVoltage.svg b/src/main/webapp/blocks/ConstantVoltage.svg
index a7f7cbd..a7f7cbd 100644
--- a/blocks/ConstantVoltage.svg
+++ b/src/main/webapp/blocks/ConstantVoltage.svg
diff --git a/blocks/CurrentSensor.svg b/src/main/webapp/blocks/CurrentSensor.svg
index 4ab49af..4ab49af 100644
--- a/blocks/CurrentSensor.svg
+++ b/src/main/webapp/blocks/CurrentSensor.svg
diff --git a/blocks/DEADBAND.svg b/src/main/webapp/blocks/DEADBAND.svg
index 9a72a73..9a72a73 100644
--- a/blocks/DEADBAND.svg
+++ b/src/main/webapp/blocks/DEADBAND.svg
diff --git a/blocks/DSCOPE.svg b/src/main/webapp/blocks/DSCOPE.svg
index a489ba7..a489ba7 100644
--- a/blocks/DSCOPE.svg
+++ b/src/main/webapp/blocks/DSCOPE.svg
diff --git a/blocks/Diode.svg b/src/main/webapp/blocks/Diode.svg
index 773da8b..773da8b 100644
--- a/blocks/Diode.svg
+++ b/src/main/webapp/blocks/Diode.svg
diff --git a/blocks/Flowmeter.svg b/src/main/webapp/blocks/Flowmeter.svg
index d6e7091..d6e7091 100644
--- a/blocks/Flowmeter.svg
+++ b/src/main/webapp/blocks/Flowmeter.svg
diff --git a/blocks/Ground.svg b/src/main/webapp/blocks/Ground.svg
index 44a1b80..44a1b80 100644
--- a/blocks/Ground.svg
+++ b/src/main/webapp/blocks/Ground.svg
diff --git a/blocks/Gyrator.svg b/src/main/webapp/blocks/Gyrator.svg
index 1bf3b88..1bf3b88 100644
--- a/blocks/Gyrator.svg
+++ b/src/main/webapp/blocks/Gyrator.svg
diff --git a/blocks/HYSTHERESIS.svg b/src/main/webapp/blocks/HYSTHERESIS.svg
index 9f05af1..9f05af1 100644
--- a/blocks/HYSTHERESIS.svg
+++ b/src/main/webapp/blocks/HYSTHERESIS.svg
diff --git a/blocks/INTEGRAL.svg b/src/main/webapp/blocks/INTEGRAL.svg
index 6d5a898..6d5a898 100644
--- a/blocks/INTEGRAL.svg
+++ b/src/main/webapp/blocks/INTEGRAL.svg
diff --git a/blocks/IdealTransformer.svg b/src/main/webapp/blocks/IdealTransformer.svg
index 362d8ab..362d8ab 100644
--- a/blocks/IdealTransformer.svg
+++ b/src/main/webapp/blocks/IdealTransformer.svg
diff --git a/blocks/Inductor.svg b/src/main/webapp/blocks/Inductor.svg
index f4b5168..f4b5168 100644
--- a/blocks/Inductor.svg
+++ b/src/main/webapp/blocks/Inductor.svg
diff --git a/blocks/NMOS.svg b/src/main/webapp/blocks/NMOS.svg
index b2cd485..b2cd485 100644
--- a/blocks/NMOS.svg
+++ b/src/main/webapp/blocks/NMOS.svg
diff --git a/blocks/NPN.svg b/src/main/webapp/blocks/NPN.svg
index a8da10e..a8da10e 100644
--- a/blocks/NPN.svg
+++ b/src/main/webapp/blocks/NPN.svg
diff --git a/blocks/PMOS.svg b/src/main/webapp/blocks/PMOS.svg
index 4a67cad..4a67cad 100644
--- a/blocks/PMOS.svg
+++ b/src/main/webapp/blocks/PMOS.svg
diff --git a/blocks/PNP.svg b/src/main/webapp/blocks/PNP.svg
index 5c8250b..5c8250b 100644
--- a/blocks/PNP.svg
+++ b/src/main/webapp/blocks/PNP.svg
diff --git a/blocks/PRODUCT.svg b/src/main/webapp/blocks/PRODUCT.svg
index 2f90302..2f90302 100644
--- a/blocks/PRODUCT.svg
+++ b/src/main/webapp/blocks/PRODUCT.svg
diff --git a/blocks/PULSE_SC.svg b/src/main/webapp/blocks/PULSE_SC.svg
index 4648b2c..4648b2c 100644
--- a/blocks/PULSE_SC.svg
+++ b/src/main/webapp/blocks/PULSE_SC.svg
diff --git a/blocks/PerteDP.svg b/src/main/webapp/blocks/PerteDP.svg
index ede7c63..ede7c63 100644
--- a/blocks/PerteDP.svg
+++ b/src/main/webapp/blocks/PerteDP.svg
diff --git a/blocks/PotentialSensor.svg b/src/main/webapp/blocks/PotentialSensor.svg
index fbfc84c..fbfc84c 100644
--- a/blocks/PotentialSensor.svg
+++ b/src/main/webapp/blocks/PotentialSensor.svg
diff --git a/blocks/PuitP.svg b/src/main/webapp/blocks/PuitP.svg
index 9687763..9687763 100644
--- a/blocks/PuitP.svg
+++ b/src/main/webapp/blocks/PuitP.svg
diff --git a/blocks/QUANT_f.svg b/src/main/webapp/blocks/QUANT_f.svg
index 64a2544..64a2544 100644
--- a/blocks/QUANT_f.svg
+++ b/src/main/webapp/blocks/QUANT_f.svg
diff --git a/blocks/RAMP.svg b/src/main/webapp/blocks/RAMP.svg
index 6a25f6b..6a25f6b 100644
--- a/blocks/RAMP.svg
+++ b/src/main/webapp/blocks/RAMP.svg
diff --git a/blocks/Resistor.svg b/src/main/webapp/blocks/Resistor.svg
index d471e63..d471e63 100644
--- a/blocks/Resistor.svg
+++ b/src/main/webapp/blocks/Resistor.svg
diff --git a/blocks/SATURATION.svg b/src/main/webapp/blocks/SATURATION.svg
index 7cecac1..7cecac1 100644
--- a/blocks/SATURATION.svg
+++ b/src/main/webapp/blocks/SATURATION.svg
diff --git a/blocks/SINUS_f.svg b/src/main/webapp/blocks/SINUS_f.svg
index 7437e12..7437e12 100644
--- a/blocks/SINUS_f.svg
+++ b/src/main/webapp/blocks/SINUS_f.svg
diff --git a/blocks/SQUARE_WAVE_f.svg b/src/main/webapp/blocks/SQUARE_WAVE_f.svg
index 71a0d6c..71a0d6c 100644
--- a/blocks/SQUARE_WAVE_f.svg
+++ b/src/main/webapp/blocks/SQUARE_WAVE_f.svg
diff --git a/blocks/STEP_FUNCTION.svg b/src/main/webapp/blocks/STEP_FUNCTION.svg
index 464c385..464c385 100644
--- a/blocks/STEP_FUNCTION.svg
+++ b/src/main/webapp/blocks/STEP_FUNCTION.svg
diff --git a/blocks/SUM.svg b/src/main/webapp/blocks/SUM.svg
index f76cc1c..f76cc1c 100644
--- a/blocks/SUM.svg
+++ b/src/main/webapp/blocks/SUM.svg
diff --git a/blocks/SUPER.svg b/src/main/webapp/blocks/SUPER.svg
index 5c05a34..5c05a34 100644
--- a/blocks/SUPER.svg
+++ b/src/main/webapp/blocks/SUPER.svg
diff --git a/blocks/SWITCH.svg b/src/main/webapp/blocks/SWITCH.svg
index 0344da7..0344da7 100644
--- a/blocks/SWITCH.svg
+++ b/src/main/webapp/blocks/SWITCH.svg
diff --git a/blocks/SampleCLK.svg b/src/main/webapp/blocks/SampleCLK.svg
index 19d7fa0..19d7fa0 100644
--- a/blocks/SampleCLK.svg
+++ b/src/main/webapp/blocks/SampleCLK.svg
diff --git a/blocks/Self_Switch_off.svg b/src/main/webapp/blocks/Self_Switch_off.svg
index df37948..df37948 100644
--- a/blocks/Self_Switch_off.svg
+++ b/src/main/webapp/blocks/Self_Switch_off.svg
diff --git a/blocks/Self_Switch_on.svg b/src/main/webapp/blocks/Self_Switch_on.svg
index 50cd1ba..50cd1ba 100644
--- a/blocks/Self_Switch_on.svg
+++ b/src/main/webapp/blocks/Self_Switch_on.svg
diff --git a/blocks/SourceP.svg b/src/main/webapp/blocks/SourceP.svg
index ff73c6c..ff73c6c 100644
--- a/blocks/SourceP.svg
+++ b/src/main/webapp/blocks/SourceP.svg
diff --git a/blocks/VanneReglante.svg b/src/main/webapp/blocks/VanneReglante.svg
index 1c4cbb8..1c4cbb8 100644
--- a/blocks/VanneReglante.svg
+++ b/src/main/webapp/blocks/VanneReglante.svg
diff --git a/blocks/VariableResistor.svg b/src/main/webapp/blocks/VariableResistor.svg
index 5783810..5783810 100644
--- a/blocks/VariableResistor.svg
+++ b/src/main/webapp/blocks/VariableResistor.svg
diff --git a/blocks/VirtualCLK0.svg b/src/main/webapp/blocks/VirtualCLK0.svg
index 9ade9ae..9ade9ae 100644
--- a/blocks/VirtualCLK0.svg
+++ b/src/main/webapp/blocks/VirtualCLK0.svg
diff --git a/blocks/VoltageSensor.svg b/src/main/webapp/blocks/VoltageSensor.svg
index 04ead6b..04ead6b 100644
--- a/blocks/VoltageSensor.svg
+++ b/src/main/webapp/blocks/VoltageSensor.svg
diff --git a/blocks/sawtooth.svg b/src/main/webapp/blocks/sawtooth.svg
index 16e2fc9..16e2fc9 100644
--- a/blocks/sawtooth.svg
+++ b/src/main/webapp/blocks/sawtooth.svg
diff --git a/combined.js b/src/main/webapp/combined.js
index e309e8f..4718352 100644
--- a/combined.js
+++ b/src/main/webapp/combined.js
@@ -1,11264 +1,11264 @@
-function ABS_VALUE() {
-
- ABS_VALUE.prototype.define = function ABS_VALUE() {
-
- this.nu = -1;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["absolute_value"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([this.nu]);
- model.out = new ScilabDouble([this.nu]);
- model.nzcross = new ScilabDouble([this.nu]);
- model.nmode = new ScilabDouble([this.nu]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([1]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"ABS_VALUE\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- this.x.graphics.style = new ScilabString(["ABS_VALUE"]);
- return new BasicBlock(this.x);
-
- }
-
- ABS_VALUE.prototype.details = function ABS_VALUE() {
- return this.x;
- }
-
-}
-function AFFICH_m() {
-
- AFFICH_m.prototype.define = function AFFICH_m() {
- this.font = 1;
- this.fontsize = 1;
- this.colr = 1;
- this.nt = 5;
- this.nd = 1;
- this.in1 = [1, 1];
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["affich2"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([this.in1[0]]);
- model.in2 = new ScilabDouble([this.in1[1]]);
- model.evtin = new ScilabDouble([1]);
- model.dstate = new ScilabDouble([-1], [0], [0], [1], [1], [0], ...zeros(this.in1[0] * this.in1[1], 1));
- model.ipar = new ScilabDouble([this.font], [this.fontsize], [this.colr], [1000], [this.nt], [this.nd], [this.in1[0]]);
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
- model.label = new ScilabString([""]);
- var exprs = new ScilabString([sci2exp([parseFloat(...getData(model.in)), parseFloat(...getData(model.in2))])], [this.font.toString()], [this.fontsize.toString()], [this.colr.toString()], [this.nt.toString()], [this.nd.toString()], [(0).toString()]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"AFFICH_m\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- this.x.graphics.style = new ScilabString(["AFFICH_m"]);
- return new AfficheBlock(this.x);
- }
-
- AFFICH_m.prototype.details = function AFFICH_m() {
- return this.x;
- }
-}
-function ANDBLK() {
-
- ANDBLK.prototype.define = function ANDBLK() {
-
- var andlog = new ANDLOG_f().internal();
- 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]);
- andlog.model.uid = new ScilabString([count]);
- andlog.doc = list(new ScilabString([count++]));
-
- var input_port1 = new CLKIN_f().internal();
- 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]);
- input_port1.model.uid = new ScilabString([count]);
- input_port1.doc = list(new ScilabString([count++]));
-
- var output_port = new CLKOUT_f().internal();
- 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]);
- output_port.model.uid = new ScilabString([count]);
- output_port.doc = list(new ScilabString([count++]));
-
- var input_port2 = new CLKIN_f().internal();
- 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]);
- input_port2.model.uid = new ScilabString([count]);
- input_port2.doc = list(new ScilabString([count++]));
-
- var ifthel = new IFTHEL_f().internal();
- 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]);
- ifthel.model.uid = new ScilabString([count]);
- ifthel.doc = list(new ScilabString([count++]));
-
-
- var split = new CLKSPLIT_f().internal();
- split.graphics.orig = new ScilabDouble([234, 275.78348]);
- split.graphics.pein = new ScilabDouble([6]);
- split.graphics.peout = new ScilabDouble([11], [12]);
- split.model.uid = new ScilabString([count]);
- split.doc = list(new ScilabString([count++]));
-
- var diagram = scicos_diagram();
- diagram.objs.push(andlog);
- diagram.objs.push(input_port1);
- diagram.objs.push(output_port);
- diagram.objs.push(input_port2);
- diagram.objs.push(ifthel);
- diagram.objs.push(split);
- 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, 0]),
- to: new ScilabDouble([1, 1, 1])
- }));
- 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([4, 1, 0]),
- to: new ScilabDouble([6, 1, 1])
- }));
- 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([5, 1, 0]),
- to: new ScilabDouble([3, 1, 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, 0]),
- to: new ScilabDouble([5, 1, 1])
- }));
- 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([6, 1, 0]),
- to: new ScilabDouble([1, 2, 1])
- }));
- 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([6, 2, 0]),
- to: new ScilabDouble([5, 1, 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);
- }
- ANDBLK.prototype.details = function ANDBLK() {
- return this.x;
- }
-
-}
-function ANDLOG_f() {
-
- ANDLOG_f.prototype.internal = function ANDLOG_f() {
- var model = scicos_model();
- model.sim = new ScilabString(["andlog"]);
- model.out = new ScilabDouble([1]);
- model.out2 = new ScilabDouble([1]); // null -> 1
- model.evtin = new ScilabDouble([-1], [-1]); // 1, 1 -> -1, -1
- model.blocktype = new ScilabString(["d"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"ANDLOG_f\",sz(1),sz(2));"]);
- var block = new standard_define(new ScilabDouble([80, 80]), model, new ScilabDouble(), gr_i); // 3 -> 80
-
- // Style
- block.graphics.out_implicit = new ScilabString(["E"]);
- // changed
- block.graphics.out_label = new ScilabString([""]);
- block.graphics.out_style = new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]);
- block.graphics.style = new ScilabString(["ANDLOG_f"]);
- return block;
- }
-
- ANDLOG_f.prototype.define = function ANDLOG_f() {
- var model = scicos_model();
- model.sim = new ScilabString(["andlog"]);
- model.out = new ScilabDouble([1]);
- model.out2 = new ScilabDouble([1]); // null -> 1
- model.evtin = new ScilabDouble([-1], [-1]); // 1, 1 -> -1, -1
- model.blocktype = new ScilabString(["d"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"ANDLOG_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([80, 80]), model, new ScilabDouble(), gr_i); // 3 -> 80
-
- // Style
- this.x.graphics.out_implicit = new ScilabString(["E"]);
- // changed
- this.x.graphics.out_label = new ScilabString([""]);
- this.x.graphics.out_style = new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]);
- this.x.graphics.style = new ScilabString(["ANDLOG_f"]);
- return new BasicBlock(this.x);
- }
-
- ANDLOG_f.prototype.details = function ANDLOG() {
- return this.x;
- }
-}
-function AUTOMAT() {
-
- AUTOMAT.prototype.define = function AUTOMAT() {
- this.NMode = 2;
- this.Minitial = 1;
- this.NX = 1;
- this.X0 = [0.0];
- this.XP = [[1],[1]];
- this.C1 = [2];
- this.C2 = [1];
-
- var exprs = new ScilabString([this.NMode.toString()], [this.Minitial.toString()], [this.NX.toString()], [sci2exp(this.X0)], [sci2exp(this.XP)], [sci2exp(this.C1)], [sci2exp(this.C2)]);
- var ipar = new ScilabDouble([this.NMode], [this.Minitial], [this.NX], ...this.XP, this.C1, this.C2);
- var rpar = new ScilabDouble(this.X0);
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["automat"]), new ScilabDouble([10004]));
- model.in = new ScilabDouble([2 * this.NX + 1], [2 * this.NX + 1]);
- model.out = new ScilabDouble([2], [2 * this.NX]);
- model.state = new ScilabDouble(...ones(2 * this.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 = new ScilabString(["xstringb(orig(1),orig(2),\"AUTOMAT\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
-
- }
-
- AUTOMAT.prototype.details = function AUTOMAT() {
- return this.x;
- }
-}
-function Bache() {
-
- Bache.prototype.define = function Bache() {
- this.in1 = 2;
- this.out = 3;
-
- var model = scicos_model();
- model.in = new ScilabDouble(math.transpose(math.range(-1, -this.in1, -1, true)));
- model.out = new ScilabDouble(math.transpose(math.range(-1, -this.out, -1, true)));
-
- this.Patm = 1.013E5;
- this.A = 1;
- this.ze1 = 40;
- this.ze2 = 0;
- this.zs1 = 40;
- this.zs2 = 0;
- this.z0 = 30;
- this.T0 = 290;
- this.p_rho = 0;
-
- model.rpar = new ScilabDouble([this.Patm], [this.A], [this.ze1], [this.ze2], [this.zs1], [this.zs2], [this.z0], [this.T0], [this.p_rho]);
- model.sim = new ScilabString(["Bache"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- 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"]), new ScilabDouble([this.Patm], [this.A], [this.ze1], [this.ze2], [this.zs1], [this.zs2], [this.z0], [this.T0], [this.p_rho]));
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(getData(mo.inputs), '*'), 1));
- model.out = new ScilabDouble(...ones(size(getData(mo.outputs), '*'), 1));
-
- var exprs = new ScilabString([this.Patm.toString()], [this.A.toString()], [this.ze1.toString()], [this.ze2.toString()], [this.zs1.toString()], [this.zs2.toString()], [this.z0.toString()], [this.T0.toString()], [this.p_rho.toString()]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Bache\",sz(1),sz(2));"]);
- this.x = new 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);
- }
- Bache.prototype.details = function Bache() {
- return this.x;
- }
-}
-function BACKLASH() {
- BACKLASH.prototype.define = function BACKLASH() {
-
- var exprs = new ScilabString(["0"], ["1"], ["1"]);
- var model = scicos_model();
- model.sim = list(new ScilabString(["backlash"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.rpar = new ScilabDouble([0], [1]);
- model.nzcross = new ScilabDouble([2]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"BACKLASH\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x)
- }
- BACKLASH.prototype.details = function BACKLASH() {
- return this.x;
- }
-}
-function BARXY() {
-
- BARXY.prototype.define = function BARXY() {
-
- var model = scicos_model();
- this.xmin = -15;
- this.xmax = 15;
- this.ymin = -15;
- this.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.in = new ScilabDouble([-1], [-1]);
- model.intyp = new ScilabDouble([1]);
- model.out = new ScilabDouble();
- model.evtin = new ScilabDouble([1]);
- model.rpar = new ScilabDouble([this.xmin], [this.xmax], [this.ymin], [this.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);
- }
- BARXY.prototype.details = function BARXY() {
- return this.x;
- }
-
-}
-function BIGSOM_f() {
-
- BIGSOM_f.prototype.define = function BIGSOM_f() {
- this.sgn = [[1],[1]];
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["sum"]), new ScilabDouble([2]));
- model.in = new ScilabDouble([-1], [-1]);
- model.out = new ScilabDouble([-1]);
- model.rpar = new ScilabDouble(...this.sgn);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([sci2exp(this.sgn)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"BIGSOM_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 3]), model, exprs, gr_i);
- this.x.graphics.style = new ScilabString(["BIGSOM_f"]);
- return new BigSom(this.x);
- }
- BIGSOM_f.prototype.details = function BIGSOM_f() {
- return this.x;
- }
-}
-function BITCLEAR() {
- BITCLEAR.prototype.define = function BITCLEAR() {
- var model = scicos_model();
- model.sim = list(new ScilabString(["bit_clear_32"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([1]);
- model.in2 = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.out2 = new ScilabDouble([1]);
- model.intyp = new ScilabDouble([3]);
- model.outtyp = new ScilabDouble([3]);
- model.opar = list(int32([0]));
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([sci2exp(3)], [sci2exp(0)]);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"BITCLEAR\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- BITCLEAR.prototype.details = function BITCLEAR() {
- return this.x;
- }
-}
-function BITSET() {
-
- BITSET.prototype.define = function BITSET() {
- var model = scicos_model();
- model.sim = list(new ScilabString(["bit_set_32"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([1]);
- model.in2 = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.out2 = new ScilabDouble([1]);
- model.intyp = new ScilabDouble([3]);
- model.outtyp = new ScilabDouble([3]);
- model.opar = list(uint32([0]));
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([sci2exp(3)], [sci2exp(0)]);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"BITSET\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- BITSET.prototype.details = function BITSET() {
- return this.x;
- }
-}
-function BOUNCE() {
-
- BOUNCE.prototype.define = function BOUNCE() {
- this.n = 2;
-
- this.k = 0;
- this.ipar = [];
-
- for (var i = 1; i <= this.n; i++) {
- for (var j = i + 1; j <= this.n; j++) {
- this.ipar[this.k] = [i];
- this.k++;
- this.ipar[this.k] = [j];
- this.k++;
- }
- }
-
- this.walls = [[0],[5],[0],[5]];
- this.x1 = [[2],[2.5]];
- this.xd = [[0],[0]];
- this.y1 = [[3],[5]];
- this.yd = [[0],[0]];
- this.g = 9.81;
- this.C = 0;
- this.rpar1 = ones(this.n, 1);
- this.rpar2 = this.rpar1;
- this.state = [...math.transpose(this.x1), ...math.transpose(this.xd), ...math.transpose(this.y1), ...math.transpose(this.yd)];
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["bounce_ball"]), new ScilabDouble([4]));
- model.in = new ScilabDouble();
- model.out = new ScilabDouble([this.n], [this.n]);
- model.state = new ScilabDouble(...colon_operator(this.state));
- model.rpar = new ScilabDouble(...this.rpar1, ...this.rpar2, ...this.walls, [this.g], [this.C]);
- model.ipar = new ScilabDouble(...this.ipar);
- model.nzcross = new ScilabDouble([this.n * (this.n - 1) / 2 + 4 * this.n]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
-
- var exprs = new ScilabString([sci2exp(this.rpar1)], [sci2exp(this.rpar2)], [sci2exp(this.walls)], [sci2exp(this.x1)], [sci2exp(this.xd)], [sci2exp(this.y1)], [sci2exp(this.yd)]);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"BOUNCE\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
-
- return new BasicBlock(this.x);
- }
-
- BOUNCE.prototype.details = function BOUNCE() {
-
- return this.x;
- }
-}
-function BOUNCEXY() {
-
- BOUNCEXY.prototype.define = function BOUNCEXY() {
- this.win = -1;
- this.imode = 1;
- this.clrs = [[1],[2]];
- this.siz = [[1],[1]];
- this.xmin = -5;
- this.xmax = 5;
- this.ymin = 0;
- this.ymax = 15;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["bouncexy"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([-1], [-1]);
- model.in2 = new ScilabDouble([1], [1]);
- model.intyp = new ScilabDouble([1], [1]);
- model.evtin = new ScilabDouble([1]);
-
-
- this.z = [];
-
- for (var i = 0; i < size(this.clrs, "*"); i++) {
- this.z[6 * (i) + 0] = [0];
- this.z[6 * (i) + 1] = [0];
- this.z[6 * (i) + 2] = [2 * this.siz[i]];
- this.z[6 * (i) + 3] = [2 * this.siz[i]];
- this.z[6 * (i) + 4] = [0.000];
- this.z[6 * (i) + 5] = [64.0 * 360.000];
-
- }
-
- model.dstate = new ScilabDouble(...this.z);
- model.rpar = new ScilabDouble([this.xmin], [this.xmax], [this.ymin], [this.ymax]);
- model.ipar = new ScilabDouble([this.win], [this.imode], ...colon_operator(this.clrs));
- model.blocktype = new ScilabString("d");
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([sci2exp(this.clrs)], [sci2exp(this.siz)], [sci2exp(this.win)], [sci2exp(1)], [sci2exp(this.xmin)], [sci2exp(this.xmax)], [sci2exp(this.ymin)], [sci2exp(this.ymax)]);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"BOUNCEXY\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- BOUNCEXY.prototype.details = function BOUNCEXY() {
-
- return this.x;
- }
-}
-function BPLATFORM() {
-
- BPLATFORM.prototype.define = function BPLATFORM() {
-
- this.plen = 2;
- this.csiz = 2;
- this.phi = 0;
- this.xmin = -5;
- this.xmax = 5;
- this.ymin = 0;
- this.ymax = 15;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["bplatform2"]), new ScilabDouble([5]));
- model.in = new ScilabDouble([1], [1]);
- model.evtin = new ScilabDouble([1]);
- model.dstate = new ScilabDouble([0]);
- model.rpar = new ScilabDouble([this.plen], [this.csiz], [this.phi], [this.xmin], [this.xmax], [this.ymin], [this.ymax]);
- model.blocktype = new ScilabString(["d"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([this.plen], [this.csiz], [this.phi], [this.xmin], [this.xmax], [this.ymin], [this.ymax]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"BPLATFORM\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- BPLATFORM.prototype.details = function BPLATFORM() {
-
- return this.x;
- }
-
-}
-function CANIMXY() {
-
- CANIMXY.prototype.define = function CANIMXY() {
- this.win = -1;
- this.clrs = -4;
- this.N = 2;
- this.siz = 1;
- this.wpos = [[-1],[-1]];
- this.wdim = [[-1],[-1]];
- this.xmin = -15;
- this.xmax = 15;
- this.ymin = -15;
- this.ymax = 15;
- this.nbr_curves = 1;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["canimxy"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([1], [1]);
- model.in2 = new ScilabDouble([1], [1]);
- model.intyp = new ScilabDouble([1], [1]);
- model.evtin = new ScilabDouble([1]);
- model.rpar = new ScilabDouble([this.xmin], [this.xmax], [this.ymin], [this.ymax]);
- model.ipar = new ScilabDouble([this.win], [1], [this.N], [this.clrs], [this.siz], [0], ...this.wpos, ...this.wdim, [this.nbr_curves]);
- model.blocktype = new ScilabString(["d"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([this.nbr_curves], [this.clrs], [this.siz], [this.win], ["[]"], ["[]"], [this.xmin], [this.xmax], [this.ymin], [this.ymax], [this.N]);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CANIMXY\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- CANIMXY.prototype.details = function CANIMXY() {
- return this.x;
- }
-}
-function CANIMXY3D() {
-
- CANIMXY3D.prototype.define = function CANIMXY3D() {
- this.win = -1;
- this.N = 2;
- this.clrs = [[1],[2],[3],[4],[5],[6],[7],[13]];
- this.siz = [[1],[1],[1],[1],[1],[1],[1],[1]];
- this.wpos = [[-1],[-1]];
- this.wdim = [[-1],[-1]];
- this.param3ds = [[50],[280]];
- this.vec_x = [[-15],[15]];
- this.vec_y = [[-15],[15]];
- this.vec_z = [[-15],[15]];
- this.nbr_curves = 1;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["canimxy3d"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([1], [1], [1]);
- model.evtin = new ScilabDouble([1]);
- model.in2 = new ScilabDouble([1], [1], [1]);
- model.intyp = new ScilabDouble([1], [1], [1]);
- model.rpar = new ScilabDouble(...colon_operator(this.vec_x), ...colon_operator(this.vec_y), ...colon_operator(this.vec_z), ...colon_operator(this.param3ds));
- model.ipar = new ScilabDouble([this.win], [8], [this.N], ...colon_operator(this.clrs), ...colon_operator(this.siz), [8], ...colon_operator(this.wpos), ...colon_operator(this.wdim), [this.nbr_curves]);
- model.blocktype = new ScilabString(["d"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([this.nbr_curves], [this.clrs.toString().replace(/,/g, " ")], [this.siz.toString().replace(/,/g, " ")], [this.win], ["[]"], ["[]"], [this.vec_x.toString().replace(/,/g, " ")], [this.vec_y.toString().replace(/,/g, " ")], [this.vec_z.toString().replace(/,/g, " ")], [this.param3ds.toString().replace(/,/g, " ")], [this.N]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CANIMXY3D\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- CANIMXY3D.prototype.details = function CANIMXY3D() {
- return this.x;
- }
-
-}
-function Capacitor() {
-
- Capacitor.prototype.define = 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 = new modelica_function();
- mo.model = new ScilabString(["Capacitor"]);
- mo.inputs = new ScilabString(["p"]);
- mo.outputs = new ScilabString(["n"]);
- mo.parameters = list(new ScilabString(["C", "v"]), list(new ScilabDouble([C]), new ScilabDouble([v])), new ScilabDouble([0, 1]));
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
- model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
-
- var exprs = new ScilabString([C], [v]);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Capacitor\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 1.1]), model, exprs, list(gr_i, new ScilabDouble([0])));
- this.x.graphics.in_implicit = new ScilabString(["I"]);
- this.x.graphics.out_implicit = new ScilabString(["I"]);
- return new BasicBlock(this.x);
- }
- Capacitor.prototype.details = function Capacitor() {
- return this.x;
- }
-}
-function CBLOCK() {
-
- CBLOCK.prototype.define = function CBLOCK() {
- this.in1 = 1;
- this.out = 1;
- this.clkin = [];
- this.clkout = [];
- this.x0 = [];
- this.z0 = [];
- this.typ = "c";
- this.auto = [];
- this.rpar = [];
- this.ipar = [];
- this.funam = "toto";
- this.ng = 0;
-
- var model = scicos_model();
- model.sim = list(new ScilabString([" "]), new ScilabDouble([2004]));
- model.in = new ScilabDouble([this.in1]);
- model.out = new ScilabDouble([this.out]);
- 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([this.typ]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
- model.nzcross = new ScilabDouble([this.ng]);
-
- var label = list(new ScilabString([this.funam], ["n"], [sci2exp(this.in1)], [sci2exp(this.out)], [sci2exp(this.clkin)], [sci2exp(this.clkout)], [sci2exp(this.x0)], [sci2exp(0)], [sci2exp(this.z0)], [sci2exp(this.rpar)], [sci2exp(this.ipar)], [sci2exp(this.auto)], ["y"], ["n"]), new ScilabDouble());
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CBLOCK\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([4, 2]), model, label, gr_i);
- return new BasicBlock(this.x)
- }
-
-
- CBLOCK.prototype.details = function CBLOCK() {
-
- return this.x;
- }
-}
-function CBLOCK4() {
-
- CBLOCK4.prototype.define = function CBLOCK4() {
-
- this.funam = "toto";
-
- var model = scicos_model();
- model.sim = list(new ScilabString([" "]), new ScilabDouble([2004]));
- model.in = new ScilabDouble([1]);
- model.in2 = new ScilabDouble([1]);
- model.intyp = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.out2 = new ScilabDouble([1]);
- model.outtyp = new ScilabDouble([1]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = list(new ScilabString([this.funam], ["n"], [sci2exp([parseFloat(...getData(model.in)), parseFloat(...getData(model.in2))])], [sci2exp(parseFloat(...getData(model.intyp)))], [sci2exp([parseFloat(...getData(model.out)), parseFloat(...getData(model.out2))])], [sci2exp(parseFloat(...getData(model.outtyp)))], [sci2exp(getData(model.evtin))], [sci2exp(getData(model.evtout))], [sci2exp(getData(model.state))], [sci2exp(getData(model.dstate))], [sci2exp(model.odstate)], [sci2exp(getData(model.rpar))], [sci2exp(getData(model.ipar))], [sci2exp(model.opar)], [sci2exp(parseFloat(...getData(model.nmode)))], [sci2exp(parseFloat(...getData(model.nzcross)))], [sci2exp(getData(model.firing))], ["y"], ["n"]), new ScilabDouble());
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CBLOCK4\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([4, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
-
- CBLOCK4.prototype.details = function CBLOCK4() {
- return this.x;
- }
-}
-function CCS() {
-
- CCS.prototype.define = function CCS() {
- this.ModelName = "CCS";
- this.PrametersValue = new ScilabDouble();
- this.ParametersName = new ScilabDouble();
- var model = scicos_model();
- this.Typein = [];
- this.Typeout = [];
- this.MI = [];
- this.MO = [];
- this.P = [[2,50,1,0],[70,98,2,0],[70,2,-2,0]];
- this.PortName = [["Iin"],["p"],["n"]];
-
- for (var i = 0; i < size(this.P, "r"); i++) {
- if (this.P[i][2] == 1) {
- this.Typein.push(["E"]);
- this.MI.push(this.PortName[i]);
- }
-
- if (this.P[i][2] == 2) {
- this.Typein.push(["I"]);
- this.MI.push(this.PortName[i]);
- }
- if (this.P[i][2] == -1) {
- this.Typeout.push(["E"]);
- this.MO.push(this.PortName[i]);
- }
- if (this.P[i][2] == -2) {
- this.Typeout.push(["I"]);
- this.MO.push(this.PortName[i]);
- }
- }
-
- var mo = new modelica_function();
- model.sim = new ScilabString([this.ModelName]);
- mo.inputs = new ScilabString(...this.MI);
- mo.outputs = new ScilabString(...this.MO);
- model.rpar = this.PrametersValue;
- mo.parameters = list(this.ParametersName, this.PrametersValue, new ScilabDouble(...zeros(getData(this.ParametersName))));
- var exprs = new ScilabDouble();
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CCS\",sz(1),sz(2));"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
- mo.model = new ScilabString([this.ModelName]);
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
- model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
- this.x = new standard_define(new ScilabDouble([2.1, 3]), model, exprs, list(new ScilabString([gr_i]), new ScilabDouble([0])));
- this.x.graphics.in_implicit = new ScilabDouble(this.Typein);
- this.x.graphics.out_implicit = new ScilabDouble(this.Typeout);
- return new BasicBlock(this.x);
- }
-
- CCS.prototype.details = function CCS() {
- return this.x;
- }
-}
-function CEVENTSCOPE() {
-
- CEVENTSCOPE.prototype.define = function CEVENTSCOPE() {
- this.nclock = 1;
- this.win = -1;
- this.clrs = [[1],[3],[5],[7],[9],[11],[13],[15]];
- this.wdim = [[600],[400]];
- this.wpos = [[-1],[-1]];
- this.per = 30;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["cevscpe"]), new ScilabDouble([4]));
- model.evtin = new ScilabDouble([1]);
- model.rpar = new ScilabDouble([this.per]);
- model.ipar = new ScilabDouble([this.win], [1], this.clrs[this.nclock - 1], ...this.wpos, ...this.wdim);
- model.blocktype = new ScilabString(["d"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([sci2exp(this.nclock)], this.clrs[this.nclock - 1], [this.win], [sci2exp([])], [sci2exp(this.wdim)], [this.per]);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CEVENTSCOPE\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- CEVENTSCOPE.prototype.details = function CEVENTSCOPE() {
- return this.x;
- }
-}
-function CFSCOPE() {
-
- CFSCOPE.prototype.define = function CFSCOPE() {
- this.win = -1;
- this.wdim = [[600],[400]];
- this.wpos = [[-1],[-1]];
- this.clrs = [[1],[3],[5],[7],[9],[11],[13],[15]];
- this.N = 2;
- this.ymin = -15;
- this.ymax = 15;
- this.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], [this.ymin], [this.ymax], [this.per]);
- model.ipar = new ScilabDouble([this.win], [1], [this.N], ...this.clrs, ...this.wpos, ...this.wdim, [1], [1]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
- var exprs = new ScilabString([this.clrs.toString().replace(/,/g, " ")], [this.win], [sci2exp([])], [sci2exp(this.wdim)], [this.ymin], [this.ymax], [this.per], [this.N], [1]);
- var gr_i = list(new ScilabString(["xstringb(orig(1),orig(2),\"CFSCOPE\",sz(1),sz(2));"]), new ScilabDouble([8]));
- this.x = new standard_define(new ScilabDouble([80, 80]), model, exprs, gr_i); // 2 -> 80
- this.x.graphics.style = new ScilabString(["CFSCOPE"]);
- return new BasicBlock(this.x);
- }
- CFSCOPE.prototype.details = function CFSCOPE() {
- return this.x;
- }
-}
-function CLINDUMMY_f() {
-
- CLINDUMMY_f.prototype.define = function CLINDUMMY_f() {
- this.x0 = 0;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["cdummy"]), new ScilabDouble([4]));
- model.state = new ScilabDouble([this.x0]);
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([false, true]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CLINDUMMY_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, new ScilabDouble(), gr_i);
- return new BasicBlock(this.x);
- }
- CLINDUMMY_f.prototype.details = function CLINDUMMY_f() {
- return this.x;
- }
-}
-function CLKFROM() {
-
- CLKFROM.prototype.define = function CLKFROM() {
- var model = scicos_model();
- model.sim = new ScilabString(["clkfrom"]);
- model.evtout = new ScilabDouble([1]);
- model.opar = list(new ScilabString(["A"]));
- model.blocktype = new ScilabString(["d"]);
- model.firing = new ScilabDouble([-1]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString(["A"]);
- this.x = new standard_define(new ScilabDouble([2, 1]), model, exprs, new ScilabString([" "]));
- this.x.graphics.id = new ScilabString(["From"]);
- return new BasicBlock(this.x);
- }
- CLKFROM.prototype.details = function CLKFROM() {
- return this.x;
- }
-}function CLKGOTO() {
-
- CLKGOTO.prototype.define = function CLKGOTO() {
- var model = scicos_model();
- model.sim = new ScilabString(["clkgoto"]);
- model.evtin = new ScilabDouble([1]);
- model.opar = list(new ScilabString(["A"]));
- model.ipar = new ScilabDouble([1]);
- model.blocktype = new ScilabString(["d"]);
- model.firing = new ScilabDouble([-1]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString(["A"], [sci2exp(1)]);
- this.x = new standard_define(new ScilabDouble([2, 1]), model, exprs, new ScilabString([" "]));
- this.x.graphics.id = new ScilabString(["Goto"]);
- return new BasicBlock(this.x);
- }
-
- CLKGOTO.prototype.details = function CLKGOTO() {
- return this.x;
- }
-}
-function CLKGotoTagVisibility() {
-
- CLKGotoTagVisibility.prototype.define = 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(new ScilabString(["A"]));
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabBoolean([false]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString(["A"]);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CLKGotoTagVisibility\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- CLKGotoTagVisibility.prototype.details = function CLKGotoTagVisibility() {
- return this.x;
- }
-}
-function CLKINV_f() {
-
- CLKINV_f.prototype.define = function CLKINV_f() {
- this.prt = 1;
-
- var model = scicos_model();
- model.sim = new ScilabString(["input"]);
- model.evtout = new ScilabDouble([1]);
- model.ipar = new ScilabDouble([this.prt]);
- model.blocktype = new ScilabString(["d"]);
- model.firing = new ScilabDouble([-1]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([this.prt]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CLKINV_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([1, 1]), model, exprs, gr_i);
- return new EventInBlock(this.x);
- }
- CLKINV_f.prototype.internal = function CLKINV_f() {
- this.prt = 1;
-
- var model = scicos_model();
- model.sim = new ScilabString(["input"]);
- model.evtout = new ScilabDouble([1]);
- model.ipar = new ScilabDouble([this.prt]);
- model.blocktype = new ScilabString(["d"]);
- model.firing = new ScilabDouble([-1]);
- model.dep_ut = new ScilabBoolean([false, false]);
- model.outtyp = new ScilabDouble();
-
- var exprs = new ScilabString([this.prt]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CLKINV_f\",sz(1),sz(2));"]);
- var block = new standard_define(new ScilabDouble([1, 1]), model, exprs, gr_i);
- block.graphics.style = new ScilabString(["CLKINV_f"]);
- return block;
- }
- CLKINV_f.prototype.details = function CLKINV_f() {
- return this.x;
- }
-}
-function CLKOUTV_f() {
-
- CLKOUTV_f.prototype.define = function CLKOUTV_f() {
-
- this.prt = 1;
-
- var model = scicos_model();
- model.sim = new ScilabString(["output"]);
- model.evtin = new ScilabDouble([1]);
- model.ipar = new ScilabDouble([this.prt]);
- model.blocktype = new ScilabString(["d"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([this.prt]);
- this.x = new standard_define(new ScilabDouble([1, 1]), model, exprs, new ScilabString([" "]));
- return new EventOutBlock(this.x);
- }
-
- CLKOUTV_f.prototype.internal = function CLKOUTV_f() {
-
- this.prt = 1;
-
- var model = scicos_model();
- model.sim = new ScilabString(["output"]);
- model.evtin = new ScilabDouble([1]);
- model.ipar = new ScilabDouble([this.prt]);
- model.blocktype = new ScilabString(["d"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([false, false]);
- model.outtyp = new ScilabDouble();
- var exprs = new ScilabString([this.prt]);
- var block = new standard_define(new ScilabDouble([1, 1]), model, exprs, new ScilabString([" "]));
- block.graphics.gr_i = list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CLKOUTV_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8]));
- block.graphics.style = new ScilabString(["CLKOUTV_f"]);
- return block;
- }
-
- CLKOUTV_f.prototype.details = function CLKOUTV_f() {
- return this.x;
- }
-}
-function CLKSOMV_f() {
-
- CLKSOMV_f.prototype.internal = 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 = new ScilabString(["xstringb(orig(1),orig(2),\"CLKSOMV_f\",sz(1),sz(2));"]);
- var block = new standard_define(new ScilabDouble([2, 2]), model, new ScilabDouble(), gr_i);
- return block;
- }
-
- CLKSOMV_f.prototype.define = 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 = new ScilabString(["xstringb(orig(1),orig(2),\"CLKSOMV_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, new ScilabDouble(), gr_i);
- return new RoundBlock(this.x);
- }
- CLKSOMV_f.prototype.details = function CLKSOMV_f() {
- return this.x;
- }
-}
-function CLKSOM_f() {
-
- CLKSOM_f.prototype.internal = function CLKSOM_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]);
- model.outtyp = new ScilabDouble();
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CLKSOM_f\",sz(1),sz(2));"]);
- var block = standard_define(new ScilabDouble([1, 1]), model, [], gr_i);
- block.graphics.style = new ScilabString(["CLKSOM_f"])
- return block;
- }
-}
-function CLOCK_c() {
-
- CLOCK_c.prototype.get = function CLOCK_c() {
- var options = {
- dt: ["Period", getData(this.x.model.rpar.objs[1].model.rpar)[0]],
- t0: ["Initialisation Time", getData(this.x.model.rpar.objs[1].model.firing)],
- };
- return options;
- }
-
- CLOCK_c.prototype.set = function CLOCK_c() {
- this.x.model.rpar.objs[1].model.firing = new ScilabDouble([arguments[0]["t0"]]);
- this.x.model.rpar.objs[1].model.rpar = new ScilabDouble([arguments[0]["dt"]], [arguments[0]["t0"]]);
- this.x.model.rpar.objs[1].graphics.exprs = new ScilabString([arguments[0]["dt"]], [arguments[0]["t0"]])
- return new BasicBlock(this.x);
- }
-
- CLOCK_c.prototype.define = function CLOCK_c() {
- var evtdly = new EVTDLY_c().internal();
- 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]);
-
- evtdly.model.uid = new ScilabString([count]); // changed
- evtdly.doc = list(new ScilabString([count++]));
- evtdly.model.evtin = new ScilabDouble([-1]);
- evtdly.model.evtout = new ScilabDouble([-1]);
- evtdly.graphics.peout = new ScilabDouble([4]);
-
- var output_port = new CLKOUT_f().internal();
- 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]);
-
- output_port.model.uid = new ScilabString([count]); // changed
- output_port.doc = list(new ScilabString([count++]));
-
- var split = new CLKSPLIT_f().internal();
- split.graphics.orig = new ScilabDouble([380.71066, 172]);
- split.graphics.pein = new ScilabDouble([3]);
- split.graphics.peout = new ScilabDouble([5], [6]);
- split.model.uid = new ScilabString([count]);
- split.doc = list(new ScilabString([count++]));
- split.graphics.pein = new ScilabDouble([4]); // changed
-
- var diagram = scicos_diagram();
- diagram.objs.push(output_port);
- diagram.objs.push(evtdly);
- diagram.objs.push(split);
- 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, 0]),
- to: new ScilabDouble([3, 1, 1])
- }));
- diagram.objs.push(scicos_link({
- xx: new ScilabDouble([380.71], [399]),
- yy: new ScilabDouble([172], [172]),
- ct: new ScilabDouble([5, -1]),
- from: new ScilabDouble([3, 1, 0]),
- to: new ScilabDouble([1, 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([3, 2, 0]),
- to: new ScilabDouble([2, 1, 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 = new ScilabString([]);
- 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);
- }
- CLOCK_c.prototype.details = function CLOCK_c() {
- return this.x;
- }
-}
-function CLR() {
-
- CLR.prototype.define = function CLR() {
- this.x0 = 0;
- this.A = -1;
- this.B = 1;
- this.C = 1;
- this.D = 0;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["csslti4"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.state = new ScilabDouble([this.x0]);
- model.rpar = new ScilabDouble([this.A], [this.B], [this.C], [this.D]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
-
- var exprs = new ScilabString(["1"], ["1+s"]);
- var gr_i = [];
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- CLR.prototype.details = function CLR() {
- return this.x;
- }
-}
-function CLSS() {
-
- CLSS.prototype.define = function CLSS() {
- this.x0 = 0;
- this.A = -1;
- this.B = 1;
- this.C = 1;
- this.D = 0;
- this.in1 = 1;
- this.out = 1;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["csslti4"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([this.in1]);
- model.out = new ScilabDouble([this.out]);
- model.state = new ScilabDouble([this.x0]);
- model.rpar = new ScilabDouble([this.A], [this.B], [this.C], [this.D]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
-
- var exprs = new ScilabString([this.A], [this.B], [this.C], [this.D], [this.x0]);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CLSS\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- CLSS.prototype.details = function CLSS() {
- return this.x;
- }
-}
-function CMSCOPE() {
- CMSCOPE.prototype.get = function CMSCOPE() {
-
- var options = {
- in1: ["Input ports sizes", this.in1.toString().replace(/,/g, " ")],
- clrs: ["Drawing colors (>0) or mark (<0)", this.clrs.toString().replace(/,/g, " ")],
- win: ["Output window number (-1 for automatic)", this.win],
- wpos: ["Output window position", sci2exp([])],
- wdim: ["Output window sizes", sci2exp([])],
- ymin: ["Ymin vector", this.ymin.toString().replace(/,/g, " ")],
- ymax: ["Ymax vector", this.ymax.toString().replace(/,/g, " ")],
- per: ["Refresh period", this.per.toString().replace(/,/g, " ")],
- N: ["Buffer size", this.N],
- heritance: ["Accept herited events 0/1", 0],
- nom: ["Name of Scope (label&Id)", ""]
- };
- return options;
- }
- CMSCOPE.prototype.set = function CMSCOPE() {
- this.in1 = inverse(arguments[0]["in1"]);
- this.clrs = inverse(arguments[0]["clrs"]);
- this.win = parseInt((arguments[0]["win"]));
- this.ymin = inverse(arguments[0]["ymin"]);
- this.ymax = inverse(arguments[0]["ymax"]);
- this.per = inverse(arguments[0]["per"]);
- this.N = parseInt((arguments[0]["N"]));
- this.heritance = parseInt((arguments[0]["heritance"]));
- this.nom = arguments[0]["nom"];
- this.yy = [...transpose(this.ymin), ...transpose(this.ymax)];
- this.period = transpose(this.per);
- this.x.model.ipar = new ScilabDouble([this.win], [this.in1.length], [this.N], ...this.wpos, ...this.wdim, ...this.in1, this.clrs[0], this.clrs[1],[this.heritance]);
- this.x.model.label = new ScilabString([this.nom]);
- this.x.model.evtin = new ScilabDouble(...ones(1-this.heritance,1));
- this.x.graphics.id = new ScilabString([this.nom]);
- this.x.model.rpar = new ScilabDouble([0], ...colon_operator(this.period), ...colon_operator(this.yy));
- this.x.graphics.exprs = new ScilabString([this.in1.toString().replace(/,/g, " ")], [this.clrs.toString().replace(/,/g, " ")], [this.win], [sci2exp([])], [sci2exp([])], [this.ymin.toString().replace(/,/g, " ")], [this.ymax.toString().replace(/,/g, " ")], [this.per.toString().replace(/,/g, " ")], [this.N], [0], [""]);
- return new BasicBlock(this.x);
- }
- CMSCOPE.prototype.define = function CMSCOPE() {
- this.win = -1;
- this.in1 = [[1],[1]];
- this.wdim = [[-1],[-1]];
- this.wpos = [[-1],[-1]];
- this.clrs = [[1],[3],[5],[7],[9],[11],[13],[15]];
- this.N = 20;
- this.ymin = [[-1],[-5]];
- this.ymax = [[1],[5]];
- this.per = [[30],[30]];
- this.yy = [...transpose(this.ymin), ...transpose(this.ymax)];
- this.period = transpose(this.per);
-
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["cmscope"]), new ScilabDouble([4]));
- model.in = new ScilabDouble(...this.in1);
- model.in2 = new ScilabDouble([1], [1]);
- model.intyp = new ScilabDouble([1], [1]);
- model.evtin = new ScilabDouble([1]);
- model.rpar = new ScilabDouble([0], ...colon_operator(this.period), ...colon_operator(this.yy));
- model.ipar = new ScilabDouble([this.win], [this.in1.length], [this.N], ...this.wpos, ...this.wdim, ...this.in1, this.clrs[0], this.clrs[1]);
-
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
- var exprs = new ScilabString([this.in1.toString().replace(/,/g, " ")], [this.clrs.toString().replace(/,/g, " ")], [this.win], [sci2exp([])], [sci2exp([])], [this.ymin.toString().replace(/,/g, " ")], [this.ymax.toString().replace(/,/g, " ")], [this.per.toString().replace(/,/g, " ")], [this.N], [0], [""]);
- var gr_i = list(new ScilabString(["xstringb(orig(1),orig(2),\"CMSCOPE\",sz(1),sz(2));"]), new ScilabDouble([8]));
- this.x = new standard_define(new ScilabDouble([80, 80]), model, exprs, gr_i); // 2 -> 80
- this.x.graphics.style = new ScilabString(["CMSCOPE"]);
- return new BasicBlock(this.x);
- }
- CMSCOPE.prototype.details = function CMSCOPE() {
- return this.x;
- }
-}
-function CONST() {
-
-
- CONST.prototype.define = function CONST() {
-
- this.C = 1;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["cstblk4"]), new ScilabDouble([4]));
- model.in = new ScilabDouble();
- model.out = new ScilabDouble([1]);
- model.rpar = new ScilabDouble([this.C]);
- model.blocktype = new ScilabString(["d"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([sci2exp(this.C)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CONST\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- CONST.prototype.details = function CONST() {
- return this.x;
- }
-}
-function ConstantVoltage() {
-
- ConstantVoltage.prototype.define = function ConstantVoltage() {
- this.V = 0.01;
-
- var model = scicos_model();
- model.rpar = new ScilabDouble([this.V]);
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.sim = new ScilabString(["ConstantVoltage"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var mo = new modelica_function();
- mo.model = new ScilabString(["ConstantVoltage"]);
- mo.inputs = new ScilabString(["p"]);
- mo.outputs = new ScilabString(["n"]);
- mo.parameters = list(new ScilabString(["V"]), list(new ScilabDouble([this.V])));
- model.equations = mo;
-
- var exprs = new ScilabString([this.V]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"ConstantVoltage\",sz(1),sz(2));"]);
- this.x = standard_define([1.5, 1.1], model, exprs, list(gr_i, new ScilabDouble([0])));
- this.x.graphics.in_implicit = new ScilabString(["I"]);
- this.x.graphics.out_implicit = new ScilabString(["I"]);
- return new BasicBlock(this.x);
- }
- ConstantVoltage.prototype.details = function ConstantVoltage() {
- return this.x;
- }
-}
-function CONSTRAINT2_c() {
-
- CONSTRAINT2_c.prototype.define = function CONSTRAINT2_c() {
- this.x0 = 0;
- this.xd0 = 0;
- this.id = 0;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["constraint_c"]), new ScilabDouble([10004]));
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1], [1]);
- model.state = new ScilabDouble([this.x0], [this.xd0]);
- model.ipar = new ScilabDouble([this.id]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
-
- var exprs = list(new ScilabString([sci2exp(this.x0)]), new ScilabString([sci2exp(this.xd0)]), new ScilabString([sci2exp(this.id)]));
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CONSTRAINT2_c\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- CONSTRAINT2_c.prototype.details = function CONSTRAINT2_c() {
- return this.x;
- }
-}
-
-function CONSTRAINT_c() {
-
- CONSTRAINT_c.prototype.define = function CONSTRAINT_c() {
-
- this.x0 = [[0],[0]];
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["constraint_c"]), new ScilabDouble([10004]));
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.ipar = new ScilabDouble([0]);
- model.state = new ScilabDouble(...this.x0);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
-
- var exprs = new ScilabString([0]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CONSTRAINT_c\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- CONSTRAINT_c.prototype.details = function CONSTRAINT_c() {
- return this.x;
- }
-}
-function CONST_f() {
-
- CONST_f.prototype.define = function CONST_f() {
- this.C = 1;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["cstblk"]), new ScilabDouble([1]));
- model.in = new ScilabDouble();
- model.out = new ScilabDouble([1]);
- model.rpar = new ScilabDouble([this.C]);
- model.blocktype = new ScilabString(["d"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([sci2exp(this.C)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CONST_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- CONST_f.prototype.details = function CONST_f() {
-
- return this.x;
- }
-}
-function CONST_m() {
- CONST_m.prototype.get = function CONST_m() {
-
- var options = {
- vec: ["Constant Value", this.c.toString()]
- };
- return options;
- }
- CONST_m.prototype.set = function CONST_m() {
- this.c = [parseInt(arguments[0]["vec"])];
- this.displayParameter = this.c;
- this.x.model.sim = list(new ScilabString(["cstblk4_m"]), new ScilabDouble([4]));
- this.x.model.opar = list(new ScilabDouble(this.c));
- this.x.model.rpar = new ScilabDouble();
- this.x.graphics.exprs = new ScilabString([sci2exp(this.c)]);
- return new BasicBlock(this.x);
- }
- CONST_m.prototype.internal = function CONST_m() {
- this.c = [1];
- var model = new scicos_model();
- model.sim = list(new ScilabString(["cstblk4"]), new ScilabDouble([4]));
- model.in = new ScilabDouble();
- model.out = new ScilabDouble([this.c.length]);
- model.in2 = new ScilabDouble();
- model.out2 = new ScilabDouble([this.c.length]);
- model.rpar = new ScilabDouble(this.c);
- model.opar = list();
- model.blocktype = new ScilabString(["d"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CONST_m\",sz(1),sz(2));"]);
- var exprs = new ScilabString([sci2exp(this.c)]);
- var block = new standard_define(new ScilabDouble([80, 80]), model, exprs, gr_i); // 1 -> 80
- block.graphics.style = new ScilabString(["CONST_m"]);
- return block;
- }
- CONST_m.prototype.define = function CONST_m() {
- this.c = [1];
- var model = new scicos_model();
- model.sim = list(new ScilabString(["cstblk4"]), new ScilabDouble([4]));
- model.in = new ScilabDouble();
- model.out = new ScilabDouble([this.c.length]);
- model.in2 = new ScilabDouble();
- model.out2 = new ScilabDouble([this.c.length]);
- model.rpar = new ScilabDouble(this.c);
- model.opar = list();
- model.blocktype = new ScilabString(["d"]);
- this.displayParameter = [1];
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CONST_m\",sz(1),sz(2));"]);
- var exprs = new ScilabString([sci2exp(this.c)]);
- this.x = new standard_define(new ScilabDouble([80, 80]), model, exprs, gr_i); // 1 -> 80
- this.x.graphics.style = new ScilabString(["CONST_m"]);
- return new BasicBlock(this.x);
- }
- CONST_m.prototype.details = function CONST_m() {
- return this.x;
-
- }
-}
-function CONVERT() {
-
- CONVERT.prototype.define = function CONVERT() {
- this.sgn = 2;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["convert"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([-1]);
- model.out = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2]);
- model.out2 = new ScilabDouble([-2]);
- model.intyp = new ScilabDouble([1]);
- model.outtyp = new ScilabDouble([3]);
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble([this.sgn]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([sci2exp(1)], [sci2exp(3)], [sci2exp(0)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CONVERT\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- CONVERT.prototype.details = function CONVERT() {
- return this.x;
-
- }
-
-}
-function COSBLK_f() {
-
- COSBLK_f.prototype.define = function COSBLK_f() {
- this.in1 = 1;
-
- var model = scicos_model();
- model.sim = new ScilabString(["cosblk"]);
- model.in = new ScilabDouble([-1]);
- model.out = new ScilabDouble([-1]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"COSBLK_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, new ScilabDouble(), gr_i);
- return new BasicBlock(this.x);
- }
- COSBLK_f.prototype.details = function COSBLK_f() {
- return this.x;
- }
-}function Counter() {
-
- Counter.prototype.define = function Counter() {
- this.minim = 0;
- this.maxim = 2;
- this.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([this.rule], [this.maxim], [this.minim]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([this.minim], [this.maxim], [this.rule]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Counter\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- Counter.prototype.details = function Counter() {
- return this.x;
- }
-}
-function CSCOPE() {
-
- CSCOPE.prototype.define = function CSCOPE() {
- this.win = -1;
- this.wdim = [[600],[400]];
- this.wpos = [[-1],[-1]];
- this.clrs = [[1],[3],[5],[7],[9],[11],[13],[15]];
- this.N = 20;
- this.ymin = -15;
- this.ymax = 15;
- this.per = 30;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["cscope"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([1]);
- model.evtin = new ScilabDouble([1]);
- model.rpar = new ScilabDouble([0], [this.ymin], [this.ymax], [this.per]);
- model.ipar = new ScilabDouble([this.win], [1], [this.N], ...this.clrs, ...this.wpos, ...this.wdim);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([this.clrs.toString().replace(/,/g, " ")], [this.win], [sci2exp([])], [sci2exp(this.wdim)], [this.ymin], [this.ymax], [this.per], [this.N], [0], [""]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CSCOPE\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- CSCOPE.prototype.details = function CSCOPE() {
- return this.x;
- }
-}
-function CSCOPXY() {
-
- CSCOPXY.prototype.define = function CSCOPXY() {
- this.win = -1;
- this.clrs = 4;
- this.siz = 1;
- this.wdim = [[600], [400]];
- this.wpos = [[-1], [-1]];
- this.N = 2;
- this.xmin = -15;
- this.xmax = 15;
- this.ymin = -15;
- this.ymax = 15;
- this.nbr_curves = 1;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["cscopxy"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([1], [1]);
- model.in2 = new ScilabDouble([1], [1]);
- model.intyp = new ScilabDouble([1], [1]);
- model.evtin = new ScilabDouble([1]);
- model.rpar = new ScilabDouble([this.xmin], [this.xmax], [this.ymin], [this.ymax]);
- model.ipar = new ScilabDouble([this.win], [1], [this.N], [this.clrs], [this.siz], [1], ...this.wpos, ...this.wdim, [this.nbr_curves]);
- model.blocktype = new ScilabString(["d"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([this.nbr_curves], [sci2exp(this.clrs)], [sci2exp(this.siz)], [this.win], [sci2exp([])], [sci2exp(this.wdim)], [this.xmin], [this.xmax], [this.ymin], [this.ymax], [this.N]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CSCOPE\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- CSCOPXY.prototype.details = function CSCOPXY() {
- return this.x;
- }
-}
-
-function CSCOPXY3D() {
-
- CSCOPXY3D.prototype.define = function CSCOPXY3D() {
- this.win = -1;
- this.clrs = [[1],[2],[3],[4],[5],[6],[7],[13]];
- this.siz = [[1],[1],[1],[1],[1],[1],[1],[1]];
- this.wdim = [[600],[400]];
- this.wpos = [[-1],[-1]];
- this.N = 2;
- this.param3ds = [[50],[280]];
- this.vec_x = [[-15],[15]];
- this.vec_y = [[-15],[15]];
- this.vec_z = [[-15],[15]];
- this.nbr_curves = 1;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["cscopxy3d"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([1], [1], [1]);
- model.in2 = new ScilabDouble([1], [1], [1]);
- model.intyp = new ScilabDouble([1], [1], [1]);
- model.evtin = new ScilabDouble([1]);
- model.rpar = new ScilabDouble(...this.vec_x, ...this.vec_y, ...this.vec_z, ...this.param3ds);
- model.ipar = new ScilabDouble([this.win], [8], [this.N], ...this.clrs, ...this.siz, [8], ...this.wpos, ...this.wdim, [this.nbr_curves]);
- model.blocktype = new ScilabString(["d"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([this.nbr_curves], [this.clrs.toString().replace(/,/g, " ")], [this.siz.toString().replace(/,/g, " ")], [this.win], [sci2exp([])], [sci2exp(this.wdim)], [this.vec_x.toString().replace(/,/g, " ")], [this.vec_y.toString().replace(/,/g, " ")], [this.vec_z.toString().replace(/,/g, " ")], [this.param3ds.toString().replace(/,/g, " ")], [this.N]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CSCOPE\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- CSCOPXY3D.prototype.details = function CSCOPXY3D() {
- return this.x;
- }
-}
-function CUMSUM() {
-
- CUMSUM.prototype.define = function CUMSUM() {
- var model = scicos_model();
-
- this.function_name = "cumsum_m";
- this.funtyp = 4;
-
- model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2]);
- model.intyp = new ScilabDouble([1]);
- model.out = new ScilabDouble([-1]);
- model.out2 = new ScilabDouble([-2]);
- model.outtyp = new ScilabDouble([1]);
- model.evtin = new ScilabDouble();
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.dstate = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble();
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = new ScilabString([sci2exp(1)], [sci2exp(0)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CUMSUM\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
- CUMSUM.prototype.details = function CUMSUM() {
- return this.x;
- }
-}
-function CurrentSensor() {
-
- CurrentSensor.prototype.define = function CurrentSensor() {
- var model = scicos_model();
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1], [1]);
- model.sim = new ScilabString(["CurrentSensor"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- mo.model = new ScilabString(["CurrentSensor"]);
- mo.inputs = new ScilabString(["p"]);
- mo.outputs = new ScilabString(["n"], ["i"]);
- model.equations = mo;
-
- var exprs = new ScilabDouble();
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CurrentSensor\",sz(1),sz(2));"]);
- this.x = standard_define(new ScilabDouble([2, 2]), model, exprs, list(gr_i, new ScilabDouble([0])));
- this.x.graphics.in_implicit = new ScilabString(["I"]);
- this.x.graphics.out_implicit = new ScilabString(["I"], ["E"]);
- return new BasicBlock(this.x);
- }
-
- CurrentSensor.prototype.details = function CurrentSensor() {
- return this.x;
- }
-}
-function CURV_f() {
-
- CURV_f.prototype.define = function CURV_f() {
- this.xx = [[0],[1],[2]];
- this.yy = [[-5],[5],[0]];
- this.rect = [0,-5,2,5];
- this.axisdata = [[2],[10],[2],[10]];
- this.ipar = new ScilabDouble([size(this.xx, 1)], ...this.axisdata);
- this.rpar = new ScilabDouble(...this.xx, ...this.yy, this.rect);
-
- var model = scicos_model();
- model.sim = new ScilabString(["intplt"]);
- model.in = new ScilabDouble();
- model.out = new ScilabDouble([1]);
- model.rpar = new ScilabDouble(...this.xx, ...this.yy, ...colon_operator([this.rect]));
- model.ipar = new ScilabDouble([size(this.xx, 1)], ...this.axisdata);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CURV_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, new ScilabDouble(), gr_i);
- return new BasicBlock(this.x);
- }
- CURV_f.prototype.details = function CURV_f() {
- return this.x;
- }
-}
-function CVS() {
-
- CVS.prototype.define = function CVS() {
- this.ModelName = "CVS";
- this.PrametersValue = new ScilabDouble();
- this.ParametersName = new ScilabDouble();
- var model = scicos_model();
- this.Typein = [];
- this.Typeout = [];
- this.MI = [];
- this.MO = [];
- this.P = [[2,50,1,0],[70,98,2,0],[70,2,-2,0]];
- this.PortName = [["vin"],["p"],["n"]];
-
- for (var i = 0; i < size(this.P, "r"); i++) {
- if (this.P[i][2] == 1) {
- this.Typein.push(["E"]);
- this.MI.push(this.PortName[i]);
- }
-
- if (this.P[i][2] == 2) {
- this.Typein.push(["I"]);
- this.MI.push(this.PortName[i]);
- }
- if (this.P[i][2] == -1) {
- this.Typeout.push(["E"]);
- this.MO.push(this.PortName[i]);
- }
- if (this.P[i][2] == -2) {
- this.Typeout.push(["I"]);
- this.MO.push(this.PortName[i]);
- }
- }
-
- var mo = new modelica_function();
- model.sim = new ScilabString([this.ModelName]);
- mo.inputs = new ScilabString(...this.MI);
- mo.outputs = new ScilabString(...this.MO);
- model.rpar = this.PrametersValue;
- mo.parameters = list(this.ParametersName, this.PrametersValue, new ScilabDouble(...zeros(getData(this.ParametersName))));
- var exprs = new ScilabDouble();
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CVS\",sz(1),sz(2));"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
- mo.model = new ScilabString([this.ModelName]);
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
- model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
- this.x = new standard_define(new ScilabDouble([2.1, 3]), model, exprs, list(new ScilabString([gr_i]), new ScilabDouble([0])));
- this.x.graphics.in_implicit = new ScilabDouble(this.Typein);
- this.x.graphics.out_implicit = new ScilabDouble(this.Typeout);
- return new BasicBlock(this.x);
- }
-
- CVS.prototype.details = function CVS() {
- return this.x;
- }
-}
-function c_block() {
-
- c_block.prototype.define = function c_block() {
-
- this.in1 = 1;
- this.out = 1;
- this.rpar = [];
- this.typ = "c";
- this.funam = "toto";
-
- var model = scicos_model();
- model.sim = list(new ScilabString([" "]), new ScilabDouble([2001]));
- model.in = new ScilabDouble([this.in1]);
- model.out = new ScilabDouble([this.out]);
- 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([this.typ]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = list(new ScilabString([sci2exp(this.in1)], [sci2exp(this.out)], [sci2exp(this.rpar)], [this.funam]), list(new ScilabDouble()));
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"c_block\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
- c_block.prototype.details = function c_block() {
- return this.x;
- }
-}
-function DEADBAND() {
-
- DEADBAND.prototype.define = function DEADBAND() {
- this.minp = -0.5;
- this.maxp = 0.5;
- this.rpar = new ScilabDouble([this.maxp], [this.minp]);
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["deadband"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([1]);
- model.nzcross = new ScilabDouble([2]);
- model.nmode = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.rpar = this.rpar;
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([this.maxp], [this.minp], [...getData(model.nmode).toString()]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DEADBAND\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- DEADBAND.prototype.details = function DEADBAND() {
- return this.x;
- }
-}
-function DEBUG() {
-
- DEBUG.prototype.define = function DEBUG() {
- var model = scicos_model();
- model.sim = list(new ScilabString(["%debug_scicos"]), new ScilabDouble([99]));
- model.blocktype = new ScilabString(["d"]);
-
- var exprs = list(new ScilabString([""]), new ScilabString(["xcos_debug_gui(flag,block);"]));
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DEBUG\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([8, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- DEBUG.prototype.details = function DEBUG() {
- return this.x;
- }
-}
-
-function DELAYV_f() {
-
- DELAYV_f.prototype.define = function DELAYV_f() {
- this.nin = 1;
- this.z0 = zeros(11, 1);
- this.zz0 = math.subset(this.z0, math.index(math.range(0, math.size(this.z0)[0] - 1), 0));
- this.T = 1;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["delayv"]), new ScilabDouble([1]));
- model.in = new ScilabDouble([this.nin], [1]);
- model.out = new ScilabDouble([this.nin]);
- model.evtin = new ScilabDouble([1]);
- model.evtout = new ScilabDouble([1], [1]);
- model.dstate = new ScilabDouble(...this.z0);
- model.rpar = new ScilabDouble([this.T / (size(this.zz0, "*"))]);
- model.blocktype = new ScilabString(["d"]);
- model.firing = new ScilabDouble([0, -1]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([this.nin], [this.zz0.toString().replace(/,/g, ";")], [this.T]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DELAYV_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- DELAYV_f.prototype.details = function DELAYV_f() {
- return this.x;
- }
-}
-
-function DELAY_f() {
-
- DELAY_f.prototype.define = function DELAY_f() {
- var evtdly = new EVTDLY_f().internal();
- 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]);
- evtdly.model.uid = new ScilabString([count]); // changed
- evtdly.doc = list(new ScilabString([count++]));
- evtdly.model.outtyp = new ScilabDouble();
-
- var register = new REGISTER_f().internal();
- 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]);
- register.model.uid = new ScilabString([count]); // changed
- register.doc = list(new ScilabString([count++]));
- register.model.in2 = new ScilabDouble([1]);
- register.model.intyp = new ScilabDouble([1]);
- register.model.out2 = new ScilabDouble([1]);
-
- var input_port = new IN_f().internal();
- 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]);
- input_port.model.uid = new ScilabString([count]); // changed
- input_port.doc = list(new ScilabString([count++]));
- input_port.model.outtyp = new ScilabDouble([-1]);
-
- var output_port = new OUT_f().internal();
- 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]);
- output_port.model.uid = new ScilabString([count]); // changed
- output_port.doc = list(new ScilabString([count++]));
- output_port.model.outtyp = new ScilabDouble();
-
- var split = new CLKSPLIT_f().internal();
- split.graphics.orig = new ScilabDouble([263, 271.2]);
- split.graphics.pein = new ScilabDouble([7]);
- split.graphics.peout = new ScilabDouble([9], [10]);
- split.model.uid = new ScilabString([count]); // changed
- split.doc = list(new ScilabString([count++]));
-
- 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(split);
- diagram.objs.push(scicos_link({
- xx: new ScilabDouble([296.6], [440]),
- yy: new ScilabDouble([220], [220]),
- from: new ScilabDouble([3, 1, 0]),
- to: new ScilabDouble([2, 1, 1])
- }));
- diagram.objs.push(scicos_link({
- xx: new ScilabDouble([112], [229.4]),
- yy: new ScilabDouble([220], [220]),
- from: new ScilabDouble([1, 1, 0]),
- to: new ScilabDouble([3, 1, 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, 0]),
- to: new ScilabDouble([5, 1, 1])
- }));
- 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([5, 1, 0]),
- to: new ScilabDouble([3, 1, 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([5, 2, 0]),
- to: new ScilabDouble([4, 1, 1])
- }));
-
- this.x = scicos_block();
- this.x.gui = new ScilabString(["DELAY_f"]);
- this.x.graphics.sz = new ScilabDouble([2, 2]);
- this.x.graphics.gr_i = new ScilabDouble();
- this.x.graphics.pin = new ScilabDouble([0]);
- this.x.graphics.pout = new ScilabDouble([0]);
- this.x.model.sim = new ScilabString(["csuper"]);
- this.x.model.in = new ScilabDouble([1]);
- this.x.model.out = new ScilabDouble([1]);
- this.x.model.blocktype = new ScilabString(["h"]);
- this.x.model.dep_ut = new ScilabBoolean([false, false]);
- this.x.model.rpar = diagram;
- this.x.graphics.in_implicit = new ScilabString(["E"]);
- this.x.graphics.in_style = new ScilabString([""]);
- this.x.graphics.out_implicit = new ScilabString(["E"]);
- this.x.graphics.out_style = new ScilabString([""]);
- return new BasicBlock(this.x);
- }
- DELAY_f.prototype.details = function DELAY_f() {
- return this.x;
- }
-}function DEMUX() {
-
- DEMUX.prototype.define = function DEMUX() {
- this.out = 2;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["multiplex"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([0]);
-
- var arr = [];
- arr.push(math.range(-1, -this.out, -1, true)._data);
- model.out = new ScilabDouble(...math.transpose(arr));
- model.ipar = new ScilabDouble([this.out]);
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([this.out]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DEMUX\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([.5, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- DEMUX.prototype.details = function DEMUX() {
- return this.x;
- }
-}
-function DEMUX_f() {
-
- DEMUX_f.prototype.define = function DEMUX_f() {
- this.out = 2;
- var arr = [];
- arr.push(math.range(-1, -this.out, -1, true)._data);
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["demux"]), new ScilabDouble([1]));
- model.in = new ScilabDouble([0]);
- model.out = new ScilabDouble(...math.transpose(arr));
- model.ipar = new ScilabDouble([this.out]);
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([this.out]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DEMUX_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([.5, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- DEMUX_f.prototype.details = function DEMUX_f() {
- return this.x;
- }
-}
-
-function DERIV() {
-
- DERIV.prototype.define = function DERIV() {
- var model = scicos_model();
- model.sim = list(new ScilabString(["deriv"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([-1]);
- model.out = new ScilabDouble([-1]);
- model.blocktype = new ScilabString(["x"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabDouble();
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DERIV\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- DERIV.prototype.details = function DERIV() {
- return this.x;
- }
-}
-function DFLIPFLOP() {
-
- DFLIPFLOP.prototype.define = function DFLIPFLOP() {
- var scs_m = scicos_diagram({
- version: new ScilabString(["scicos4.2"]),
- props: scicos_params({
- wpar: new ScilabDouble([600, 450, 0, 0, 600, 450]),
- Title: new ScilabString(["DFLIPFLOP"]),
- tol: new ScilabDouble([0.0001], [0.000001], [Math.pow(10, -10)], [100001], [0], [0], [0]),
- tf: new ScilabDouble([100000]),
- context: new ScilabString([" "]),
- void1: new ScilabDouble(),
- options: tlist(["scsopt", "3D", "Background", "Link", "ID", "Cmap"], new ScilabString(["scsopt", "3D", "Background", "Link", "ID", "Cmap"]), list(new ScilabBoolean([true]), new ScilabDouble([33])), new ScilabDouble([8, 1]), new ScilabDouble([1, 5]), list(new ScilabDouble([5, 1]), new ScilabDouble([4, 1])), new ScilabDouble([0.8, 0.8, 0.8])),
- void2: new ScilabDouble(),
- void3: new ScilabDouble(),
- doc: list()
- })
- });
- scs_m.objs.push(scicos_block({
- gui: new ScilabString(["CONST_m"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([109.62561, 263.44465]),
- sz: new ScilabDouble([20], [20]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["int8(0)"]),
- pin: new ScilabDouble(),
- pout: new ScilabDouble([6]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CONST_m&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabDouble(),
- out_implicit: new ScilabString(["E"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_label: new ScilabString([""]),
- style: new ScilabString(["CONST_m"])
- }),
- model: scicos_model({
- sim: list(new ScilabString(["cstblk4_m"]), new ScilabDouble([4])),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble(),
- out: new ScilabDouble([1]),
- out2: new ScilabDouble([1]),
- outtyp: new ScilabDouble([5]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble(),
- opar: list(int8([0])),
- blocktype: new ScilabString(["d"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_block({
- gui: new ScilabString(["IFTHEL_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([239.98293, 378.2166]),
- sz: new ScilabDouble([60, 60]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["1"], ["1"]),
- pin: new ScilabDouble([29]),
- pout: new ScilabDouble(),
- pein: new ScilabDouble([22]),
- peout: new ScilabDouble([16], [44]),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;IFTHEL_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabDouble(),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- style: new ScilabString(["IFTHEL_f"])
- }),
- model: scicos_model({
- sim: list(new ScilabString(["ifthel"]), new ScilabDouble([-1])),
- in: new ScilabDouble([1]),
- in2: new ScilabDouble([1]),
- intyp: new ScilabDouble([-1]),
- out: new ScilabDouble(),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble([1]),
- evtout: new ScilabDouble([1], [1]),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["l"]),
- firing: new ScilabDouble([-1, -1]),
- dep_ut: new ScilabBoolean([true, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([1]),
- nmode: new ScilabDouble([1]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_block({
- gui: new ScilabString(["LOGICAL_OP"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([152.88902, 260.24498]),
- sz: new ScilabDouble([60, 40]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["2"], ["1"], ["5"], ["0"]),
- pin: new ScilabDouble([11], [39]),
- pout: new ScilabDouble([5]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;LOGICAL_OP&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"], ["E"]),
- out_implicit: new ScilabString(["E"]),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""], [""]),
- out_label: new ScilabString([""]),
- style: new ScilabString(["LOGICAL_OP"])
- }),
- model: scicos_model({
- sim: list(new ScilabString(["logicalop_i8"]), new ScilabDouble([4])),
- in: new ScilabDouble([-1], [-1]),
- in2: new ScilabDouble([-2], [-2]),
- intyp: new ScilabDouble([5], [5]),
- out: new ScilabDouble([-1]),
- out2: new ScilabDouble([-2]),
- outtyp: new ScilabDouble([5]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([1], [0]),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([true, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_block({
- gui: new ScilabString(["SAMPHOLD_m"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([233.72156, 260.24498]),
- sz: new ScilabDouble([40, 40]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["5"]),
- pin: new ScilabDouble([5]),
- pout: new ScilabDouble([33]),
- pein: new ScilabDouble([42]),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;SAMPHOLD_m&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabString(["E"]),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- out_label: new ScilabString([""]),
- style: new ScilabString(["SAMPHOLD_m"])
- }),
- model: scicos_model({
- sim: list(new ScilabString(["samphold4_m"]), new ScilabDouble([4])),
- in: new ScilabDouble([-1]),
- in2: new ScilabDouble([-2]),
- intyp: new ScilabDouble([5]),
- out: new ScilabDouble([-1]),
- out2: new ScilabDouble([-2]),
- outtyp: new ScilabDouble([5]),
- evtin: new ScilabDouble([1]),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["d"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([true, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_link({
- xx: new ScilabDouble([221.46044], [225.15013]),
- yy: new ScilabDouble([280.24498], [280.24498]),
- id: new ScilabString(["drawlink"]),
- 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], [140.34523]),
- yy: new ScilabDouble([273.44465], [273.49157]),
- id: new ScilabString(["drawlink"]),
- 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: new ScilabString(["LOGICAL_OP"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([373.24106, 309.46812]),
- sz: new ScilabDouble([60, 40]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["1"], ["5"], ["5"], ["0"]),
- pin: new ScilabDouble([36]),
- pout: new ScilabDouble([13]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;LOGICAL_OP&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabString(["E"]),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- out_label: new ScilabString([""]),
- style: new ScilabString(["LOGICAL_OP"])
- }),
- model: scicos_model({
- sim: list(new ScilabString(["logicalop_i8"]), new ScilabDouble([4])),
- in: new ScilabDouble([-1]),
- in2: new ScilabDouble([-2]),
- intyp: new ScilabDouble([5]),
- out: new ScilabDouble([-1]),
- out2: new ScilabDouble([-2]),
- outtyp: new ScilabDouble([5]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([5], [0]),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([true, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_block({
- gui: new ScilabString(["IN_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([199.48466, 398.2166]),
- sz: new ScilabDouble([20, 20]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["3"]),
- pin: new ScilabDouble(),
- pout: new ScilabDouble([9]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;IN_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabDouble(),
- out_implicit: new ScilabString(["E"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_label: new ScilabString([""]),
- style: new ScilabString(["IN_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["input"]),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble([-1]),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([-1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([3]),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_link({
- xx: new ScilabDouble([219.48466], [222.54128]),
- yy: new ScilabDouble([408.2166], [408.2166]),
- id: new ScilabString(["drawlink"]),
- 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: new ScilabString(["IN_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([104.31759, 276.91165]),
- sz: new ScilabDouble([20, 20]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["1"]),
- pin: new ScilabDouble(),
- pout: new ScilabDouble([11]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;IN_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabDouble(),
- out_implicit: new ScilabString(["E"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_label: new ScilabString([""]),
- style: new ScilabString(["IN_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["input"]),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble([-1]),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([-1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([1]),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_link({
- xx: new ScilabDouble([124.31759], [144.31759]),
- yy: new ScilabDouble([286.91165], [286.91165]),
- id: new ScilabString(["drawlink"]),
- 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: new ScilabString(["OUT_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([457.40928, 320.20131]),
- sz: new ScilabDouble([20, 20]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["2"]),
- pin: new ScilabDouble([13]),
- pout: new ScilabDouble(),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;OUT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabDouble(),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- style: new ScilabString(["OUT_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["output"]),
- in: new ScilabDouble([-1]),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([-1]),
- out: new ScilabDouble(),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([2]),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_link({
- xx: new ScilabDouble([441.81249], [457.40928]),
- yy: new ScilabDouble([329.46812], [330.20131]),
- id: new ScilabString(["drawlink"]),
- 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: new ScilabString(["OUT_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([376.4669, 270.83282]),
- sz: new ScilabDouble([20, 20]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["1"]),
- pin: new ScilabDouble([37]),
- pout: new ScilabDouble(),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;OUT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabDouble(),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- style: new ScilabString(["OUT_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["output"]),
- in: new ScilabDouble([-1]),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([-1]),
- out: new ScilabDouble(),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([1]),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
-
- var scs_m_1 = scicos_diagram({
- version: new ScilabString(["scicos4.2"]),
- props: scicos_params({
- wpar: new ScilabDouble([600, 450, 0, 0, 600, 450]),
- Title: new ScilabString(["Untitled"]),
- tol: new ScilabDouble([0.0001], [0.000001], [Math.pow(10, -10)], [100001], [0], [0], [0]),
- tf: new ScilabDouble([100000]),
- context: new ScilabDouble(),
- void1: new ScilabDouble(),
- options: tlist(["scsopt", "3D", "Background", "Link", "ID", "Cmap"], new ScilabString(["scsopt", "3D", "Background", "Link", "ID", "Cmap"]), list(new ScilabBoolean([true]), new ScilabDouble([33])), new ScilabDouble([8, 1]), new ScilabDouble([1, 5]), list(new ScilabDouble([5, 1]), new ScilabDouble([4, 1])), new ScilabDouble([0.8, 0.8, 0.8])),
- void2: new ScilabDouble(),
- void3: new ScilabDouble(),
- doc: list()
- })
- });
- scs_m_1.objs.push(scicos_block({
- gui: new ScilabString(["ANDLOG_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([194, 133]),
- sz: new ScilabDouble([60, 60]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabDouble(),
- pin: new ScilabDouble(),
- pout: new ScilabDouble([9]),
- pein: new ScilabDouble([4], [11]),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;ANDLOG_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabDouble(),
- out_implicit: new ScilabString(["E"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_label: new ScilabString([""]),
- style: new ScilabString(["ANDLOG_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["andlog"]),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble([1]),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble([1], [1]),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["d"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m_1.objs.push(scicos_block({
- gui: new ScilabString(["CLKIN_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([149, 287]),
- sz: new ScilabDouble([20, 20]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["1"]),
- pin: new ScilabDouble(),
- pout: new ScilabDouble(),
- pein: new ScilabDouble(),
- peout: new ScilabDouble([4]),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CLKIN_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabDouble(),
- out_implicit: new ScilabDouble(),
- style: new ScilabString(["CLKIN_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["input"]),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble(),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble([1]),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([1]),
- opar: list(),
- blocktype: new ScilabString(["d"]),
- firing: new ScilabDouble([-1]),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m_1.objs.push(scicos_block({
- gui: new ScilabString(["CLKOUT_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([450, 83]),
- sz: new ScilabDouble([20, 20]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["1"]),
- pin: new ScilabDouble(),
- pout: new ScilabDouble(),
- pein: new ScilabDouble([8]),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CLKOUT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabDouble(),
- out_implicit: new ScilabDouble(),
- style: new ScilabString(["CLKOUT_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["output"]),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble(),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble([1]),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([1]),
- opar: list(),
- blocktype: new ScilabString(["d"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m_1.objs.push(scicos_link({
- xx: new ScilabDouble([169], [214], [214]),
- yy: new ScilabDouble([297], [297], [198.71]),
- id: new ScilabString(["drawlink"]),
- 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: new ScilabString(["CLKIN_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([141, 330]),
- sz: new ScilabDouble([20, 20]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["2"]),
- pin: new ScilabDouble(),
- pout: new ScilabDouble(),
- pein: new ScilabDouble(),
- peout: new ScilabDouble([6]),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CLKIN_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabDouble(),
- out_implicit: new ScilabDouble(),
- style: new ScilabString(["CLKIN_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["input"]),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble(),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble([1]),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([2]),
- opar: list(),
- blocktype: new ScilabString(["d"]),
- firing: new ScilabDouble([-1]),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m_1.objs.push(scicos_link({
- xx: new ScilabDouble([161], [234], [234]),
- yy: new ScilabDouble([340], [340], [275.78]),
- thick: new ScilabDouble([0, 0]),
- id: new ScilabString(["drawlink"]),
- ct: new ScilabDouble([5, -1]),
- from: new ScilabDouble([5, 1]),
- to: new ScilabDouble([10, 1])
- }));
- scs_m_1.objs.push(scicos_block({
- gui: new ScilabString(["IFTHEL_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([331, 137]),
- sz: new ScilabDouble([60, 60]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["1"], ["1"]),
- pin: new ScilabDouble([9]),
- pout: new ScilabDouble(),
- pein: new ScilabDouble([12]),
- peout: new ScilabDouble([8], [0]),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;IFTHEL_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabDouble(),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- style: new ScilabString(["IFTHEL_f"])
- }),
- model: scicos_model({
- sim: list(new ScilabString(["ifthel"]), new ScilabDouble([-1])),
- in: new ScilabDouble([1]),
- in2: new ScilabDouble([1]),
- intyp: new ScilabDouble([-1]),
- out: new ScilabDouble(),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble([1]),
- evtout: new ScilabDouble([1], [1]),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["l"]),
- firing: new ScilabDouble([-1, -1]),
- dep_ut: new ScilabBoolean([true, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([1]),
- nmode: new ScilabDouble([1]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m_1.objs.push(scicos_link({
- xx: new ScilabDouble([351], [351], [450]),
- yy: new ScilabDouble([131.29], [93], [93]),
- id: new ScilabString(["drawlink"]),
- 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], [322.43]),
- yy: new ScilabDouble([163], [167]),
- id: new ScilabString(["drawlink"]),
- 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: new ScilabString(["CLKSPLIT_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([234], [275.78348]),
- sz: new ScilabDouble([0.3333333, 0.3333333]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabDouble(),
- pin: new ScilabDouble(),
- pout: new ScilabDouble(),
- pein: new ScilabDouble([6]),
- peout: new ScilabDouble([11], [12]),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CLKSPLIT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabDouble(),
- out_implicit: new ScilabDouble(),
- style: new ScilabString(["CLKSPLIT_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["split"]),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble(),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble([1]),
- evtout: new ScilabDouble([1], [1]),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["d"]),
- firing: new ScilabBoolean([false, false, false]),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m_1.objs.push(scicos_link({
- xx: new ScilabDouble([234], [234]),
- yy: new ScilabDouble([275.78], [198.71]),
- id: new ScilabString(["drawlink"]),
- 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], [361], [361]),
- yy: new ScilabDouble([275.78], [275.78], [202.71]),
- id: new ScilabString(["drawlink"]),
- 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: new ScilabString(["ANDBLK"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([233.73039, 318.74407]),
- sz: new ScilabDouble([40, 40]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabDouble(),
- pin: new ScilabDouble(),
- pout: new ScilabDouble(),
- pein: new ScilabDouble([19], [16]),
- peout: new ScilabDouble([17]),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;ANDBLK&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabDouble(),
- out_implicit: new ScilabDouble(),
- style: new ScilabString(["ANDBLK"])
- }),
- model: scicos_model({
- sim: new ScilabString(["csuper"]),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble(),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble([1], [1]),
- evtout: new ScilabDouble([1]),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: scs_m_1,
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["h"]),
- firing: new ScilabBoolean([false]),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_link({
- xx: new ScilabDouble([259.98293], [260.39705]),
- yy: new ScilabDouble([372.50232], [364.45835]),
- id: new ScilabString(["drawlink"]),
- 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], [253.72572]),
- yy: new ScilabDouble([313.02978], [309.29537]),
- id: new ScilabString(["drawlink"]),
- 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 = scicos_diagram({
- version: new ScilabString(["scicos4.2"]),
- props: scicos_params({
- wpar: new ScilabDouble([600, 450, 0, 0, 600, 450]),
- Title: new ScilabString(["EDGE_TRIGGER", "./"]),
- tol: new ScilabDouble([0.0001], [0.000001], [Math.pow(10, -10)], [100001], [0], [0], [0]),
- tf: new ScilabDouble([30]),
- context: new ScilabString([" "]),
- void1: new ScilabDouble(),
- options: tlist(["scsopt", "3D", "Background", "Link", "ID", "Cmap"], new ScilabString(["scsopt", "3D", "Background", "Link", "ID", "Cmap"]), list(new ScilabBoolean([true]), new ScilabDouble([33])), new ScilabDouble([8, 1]), new ScilabDouble([1, 5]), list(new ScilabDouble([5, 1]), new ScilabDouble([4, 1])), new ScilabDouble([0.8, 0.8, 0.8])),
- void2: new ScilabDouble(),
- void3: new ScilabDouble(),
- doc: list()
- })
- });
- scs_m_1.objs.push(scicos_block({
- gui: new ScilabString(["EDGETRIGGER"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([288.58631, 257.1131]),
- sz: new ScilabDouble([60, 40]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["1"]),
- pin: new ScilabDouble([5]),
- pout: new ScilabDouble([3]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;EDGETRIGGER&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabString(["E"]),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- out_label: new ScilabString([""]),
- style: new ScilabString(["EDGETRIGGER"])
- }),
- model: scicos_model({
- sim: list(new ScilabString(["edgetrig"]), new ScilabDouble([4])),
- in: new ScilabDouble([1]),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble([1]),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble([0]),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([1]),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([true, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([1]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m_1.objs.push(scicos_block({
- gui: new ScilabString(["IFTHEL_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([388.28869, 247.1131]),
- sz: new ScilabDouble([60, 60]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["0"], ["0"]),
- pin: new ScilabDouble([3]),
- pout: new ScilabDouble(),
- pein: new ScilabDouble(),
- peout: new ScilabDouble([7], [0]),
- gr_i: new ScilabDouble(),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabDouble()
- }),
- model: scicos_model({
- sim: list(new ScilabString(["ifthel"]), new ScilabDouble([-1])),
- in: new ScilabDouble([1]),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble(),
- out2: new ScilabDouble([1]),
- outtyp: new ScilabDouble(),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble([1], [1]),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["l"]),
- firing: new ScilabDouble([-1, -1]),
- dep_ut: new ScilabBoolean([true, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m_1.objs.push(scicos_link({
- xx: new ScilabDouble([357.15774], [362.99107], [379.71726]),
- yy: new ScilabDouble([277.1131], [277.1131], [277.1131]),
- id: new ScilabString(["drawlink"]),
- 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: new ScilabString(["IN_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([240.01488, 267.1131]),
- sz: new ScilabDouble([20, 20]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["1"]),
- pin: new ScilabDouble(),
- pout: new ScilabDouble([5]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;IN_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabDouble(),
- out_implicit: new ScilabString(["E"]),
- style: new ScilabString(["IN_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["input"]),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([-1]),
- out: new ScilabDouble([-1]),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([1]),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m_1.objs.push(scicos_link({
- xx: new ScilabDouble([260.01488], [280.01488]),
- yy: new ScilabDouble([277.1131], [277.1131]),
- id: new ScilabString(["drawlink"]),
- 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: new ScilabString(["CLKOUTV_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([398.28869, 181.39881]),
- sz: new ScilabDouble([20, 30]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["1"]),
- pin: new ScilabDouble(),
- pout: new ScilabDouble(),
- pein: new ScilabDouble([7]),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CLKOUTV_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabDouble(),
- out_implicit: new ScilabDouble(),
- style: new ScilabString(["CLKOUTV_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["output"]),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble(),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble([1]),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([1]),
- opar: list(),
- blocktype: new ScilabString(["d"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m_1.objs.push(scicos_link({
- xx: new ScilabDouble([408.28869], [408.28869]),
- yy: new ScilabDouble([241.39881], [211.39881]),
- id: new ScilabString(["drawlink"]),
- 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: new ScilabString(["EDGE_TRIGGER"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([133.90637, 385.342]),
- sz: new ScilabDouble([60, 40]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabDouble(),
- pin: new ScilabDouble([26]),
- pout: new ScilabDouble(),
- pein: new ScilabDouble(),
- peout: new ScilabDouble([19]),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;EDGE_TRIGGER&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabDouble(),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- style: new ScilabString(["EDGE_TRIGGER"])
- }),
- model: scicos_model({
- sim: new ScilabString(["csuper"]),
- in: new ScilabDouble([-1]),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble(),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble([1]),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: scs_m_1,
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["h"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_link({
- xx: new ScilabDouble([163.90637], [163.90637], [247.06372]),
- yy: new ScilabDouble([379.62771], [364.45835], [364.45835]),
- id: new ScilabString(["drawlink"]),
- 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: new ScilabString(["IN_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([79.594811, 395.47647]),
- sz: new ScilabDouble([20, 20]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["2"]),
- pin: new ScilabDouble(),
- pout: new ScilabDouble([23]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;IN_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabDouble(),
- out_implicit: new ScilabString(["E"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_label: new ScilabString([""]),
- style: new ScilabString(["IN_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["input"]),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble([-1]),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([-1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([2]),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
-
- scs_m_1 = scicos_diagram({
- version: new ScilabString(["scicos4.2"]),
- props: scicos_params({
- wpar: new ScilabDouble([600, 450, 0, 0, 600, 450]),
- Title: new ScilabString(["EXTRACT_ACTIVATION", "./"]),
- tol: new ScilabDouble([0.0001], [0.000001], [Math.pow(10, -10)], [100001], [0], [0], [0]),
- tf: new ScilabDouble([30]),
- context: new ScilabString([" "]),
- void1: new ScilabDouble(),
- options: tlist(["scsopt", "3D", "Background", "Link", "ID", "Cmap"], new ScilabString(["scsopt", "3D", "Background", "Link", "ID", "Cmap"]), list(new ScilabBoolean([true]), new ScilabDouble([33])), new ScilabDouble([8, 1]), new ScilabDouble([1, 5]), list(new ScilabDouble([5, 1]), new ScilabDouble([4, 1])), new ScilabDouble([0.8, 0.8, 0.8])),
- void2: new ScilabDouble(),
- void3: new ScilabDouble(),
- doc: list()
- })
- });
- scs_m_1.objs.push(scicos_block({
- gui: new ScilabString(["IFTHEL_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([150.65045, 143.82208]),
- sz: new ScilabDouble([60, 60]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["0"], ["0"]),
- pin: new ScilabDouble([6]),
- pout: new ScilabDouble(),
- pein: new ScilabDouble(),
- peout: new ScilabDouble([3], [4]),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;IFTHEL_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabDouble(),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- style: new ScilabString(["IFTHEL_f"])
- }),
- model: scicos_model({
- sim: list(new ScilabString(["ifthel"]), new ScilabDouble([-1])),
- in: new ScilabDouble([1]),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble(),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble([1], [1]),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["l"]),
- firing: new ScilabDouble([-1, -1]),
- dep_ut: new ScilabBoolean([true, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m_1.objs.push(scicos_block({
- gui: new ScilabString(["CLKSOMV_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([169.82143, 96.146231]),
- sz: new ScilabDouble([16.666667, 16.666667]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabDouble(),
- pin: new ScilabDouble(),
- pout: new ScilabDouble(),
- pein: new ScilabDouble([3], [4], [0]),
- peout: new ScilabDouble([8]),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CLKSOMV_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabDouble(),
- out_implicit: new ScilabDouble(),
- style: new ScilabString(["CLKSOMV_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["sum"]),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble(),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble([1], [1], [1]),
- evtout: new ScilabDouble([1]),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["d"]),
- firing: new ScilabDouble([-1]),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m_1.objs.push(scicos_link({
- xx: new ScilabDouble([170.65045], [170.65045], [150.04302], [150.04302], [169.82143]),
- yy: new ScilabDouble([138.10779], [128.235], [128.235], [104.47956], [104.47956]),
- id: new ScilabString(["drawlink"]),
- 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], [190.65045], [178.15476]),
- yy: new ScilabDouble([138.10779], [111.55729], [112.8129]),
- id: new ScilabString(["drawlink"]),
- 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: new ScilabString(["IN_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([102.07902, 163.82208]),
- sz: new ScilabDouble([20, 20]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["1"]),
- pin: new ScilabDouble(),
- pout: new ScilabDouble([6]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;IN_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabDouble(),
- out_implicit: new ScilabString(["E"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_label: new ScilabString([""]),
- style: new ScilabString(["IN_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["input"]),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([-1]),
- out: new ScilabDouble([-1]),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([1]),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m_1.objs.push(scicos_link({
- xx: new ScilabDouble([122.07902], [142.07902]),
- yy: new ScilabDouble([173.82208], [173.82208]),
- id: new ScilabString(["drawlink"]),
- 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: new ScilabString(["CLKOUTV_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([168.15476, 38.527183]),
- sz: new ScilabDouble([20, 30]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["1"]),
- pin: new ScilabDouble(),
- pout: new ScilabDouble(),
- pein: new ScilabDouble([8]),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CLKOUTV_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabDouble(),
- out_implicit: new ScilabDouble(),
- style: new ScilabString(["CLKOUTV_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["output"]),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble(),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble([1]),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([1]),
- opar: list(),
- blocktype: new ScilabString(["d"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m_1.objs.push(scicos_link({
- xx: new ScilabDouble([178.15476], [178.15476]),
- yy: new ScilabDouble([98.527183], [68.527183]),
- id: new ScilabString(["drawlink"]),
- 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: new ScilabString(["Extract_Activation"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([239.82193, 456.57677]),
- sz: new ScilabDouble([60, 40]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabDouble(),
- pin: new ScilabDouble([31]),
- pout: new ScilabDouble(),
- pein: new ScilabDouble(),
- peout: new ScilabDouble([22]),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;Extract_Activation&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabDouble(),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- style: new ScilabString(["Extract_Activation"])
- }),
- model: scicos_model({
- sim: new ScilabString(["csuper"]),
- in: new ScilabDouble([-1]),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble(),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble([1]),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: scs_m_1,
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["h"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_link({
- xx: new ScilabDouble([269.82193], [269.98293]),
- yy: new ScilabDouble([450.86248], [443.93089]),
- id: new ScilabString(["drawlink"]),
- 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], [110.25582]),
- yy: new ScilabDouble([405.47647], [405.42077]),
- id: new ScilabString(["drawlink"]),
- 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: new ScilabString(["SUM_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([200.5252, 469.13173]),
- sz: new ScilabDouble([16.666667, 16.666667]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabDouble(),
- pin: new ScilabDouble([27], [0], [30]),
- pout: new ScilabDouble([31]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;SUM_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"], ["E"], ["E"]),
- out_implicit: new ScilabString(["E"]),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""], [""], [""]),
- out_label: new ScilabString([""]),
- style: new ScilabString(["SUM_f"])
- }),
- model: scicos_model({
- sim: list(new ScilabString(["plusblk"]), new ScilabDouble([2])),
- in: new ScilabDouble([-1], [-1], [-1]),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble([-1]),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([true, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_block({
- gui: new ScilabString(["SPLIT_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([110.25582], [405.42077]),
- sz: new ScilabDouble([0.3333333, 0.3333333]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabDouble(),
- pin: new ScilabDouble([23]),
- pout: new ScilabDouble([26], [27]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;SPLIT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabString(["E"], ["E"], ["E"]),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- out_label: new ScilabString([""], [""], [""]),
- style: new ScilabString(["SPLIT_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["lsplit"]),
- in: new ScilabDouble([-1]),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble([-1], [-1], [-1]),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([true, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_link({
- xx: new ScilabDouble([110.25582], [114.33667], [125.33494]),
- yy: new ScilabDouble([405.42077], [405.39945], [405.342]),
- id: new ScilabString(["drawlink"]),
- 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], [110.25582], [208.85853]),
- yy: new ScilabDouble([405.42077], [469.13173], [469.13173]),
- id: new ScilabString(["drawlink"]),
- 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: new ScilabString(["SPLIT_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([222.54128], [408.2166]),
- sz: new ScilabDouble([0.3333333, 0.3333333]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabDouble(),
- pin: new ScilabDouble([9]),
- pout: new ScilabDouble([29], [30]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;SPLIT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabString(["E"], ["E"], ["E"]),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- out_label: new ScilabString([""], [""], [""]),
- style: new ScilabString(["SPLIT_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["lsplit"]),
- in: new ScilabDouble([-1]),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble([-1], [-1], [-1]),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([true, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_link({
- xx: new ScilabDouble([222.54128], [231.4115]),
- yy: new ScilabDouble([408.2166], [408.2166]),
- id: new ScilabString(["drawlink"]),
- 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], [222.54128], [208.85853], [208.85853]),
- yy: new ScilabDouble([408.2166], [453.0015], [453.0015], [485.7984]),
- id: new ScilabString(["drawlink"]),
- 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], [231.2505]),
- yy: new ScilabDouble([477.46506], [476.57677]),
- id: new ScilabString(["drawlink"]),
- 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: new ScilabString(["SELECT_m"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([298.86371, 253.57321]),
- sz: new ScilabDouble([40, 40]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["5"], ["2"], ["1"]),
- pin: new ScilabDouble([33], [40]),
- pout: new ScilabDouble([34]),
- pein: new ScilabDouble([43], [44]),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;SELECT_m&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"], ["E"]),
- out_implicit: new ScilabString(["E"]),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""], [""]),
- out_label: new ScilabString([""]),
- style: new ScilabString(["SELECT_m"])
- }),
- model: scicos_model({
- sim: list(new ScilabString(["selector_m"]), new ScilabDouble([4])),
- in: new ScilabDouble([-1], [-1]),
- in2: new ScilabDouble([-2], [-2]),
- intyp: new ScilabDouble([5], [5]),
- out: new ScilabDouble([-1]),
- out2: new ScilabDouble([-2]),
- outtyp: new ScilabDouble([5]),
- evtin: new ScilabDouble([1], [1]),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble([1]),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([true, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_link({
- xx: new ScilabDouble([282.29299], [290.29229]),
- yy: new ScilabDouble([280.24498], [280.23987]),
- id: new ScilabString(["drawlink"]),
- 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], [357.57328], [357.57328]),
- yy: new ScilabDouble([273.57321], [273.57321], [280.83282]),
- id: new ScilabString(["drawlink"]),
- 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: new ScilabString(["SPLIT_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([357.57328, 280.83282]),
- sz: new ScilabDouble([0.3333333, 0.3333333]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabDouble(),
- pin: new ScilabDouble([34]),
- pout: new ScilabDouble([36], [37]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;SPLIT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabString(["E"], ["E"], ["E"]),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- out_label: new ScilabString([""], [""], [""]),
- style: new ScilabString(["SPLIT_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["lsplit"]),
- in: new ScilabDouble([-1]),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble([-1], [-1], [-1]),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([true, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_link({
- xx: new ScilabDouble([357.57328], [357.57328], [364.66964]),
- yy: new ScilabDouble([280.83282], [329.46812], [329.46812]),
- id: new ScilabString(["drawlink"]),
- 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], [376.4669]),
- yy: new ScilabDouble([280.83282], [280.83282]),
- id: new ScilabString(["drawlink"]),
- 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: new ScilabString(["SPLIT_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([140.34523], [273.49157]),
- sz: new ScilabDouble([0.3333333, 0.3333333]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabDouble(),
- pin: new ScilabDouble([6]),
- pout: new ScilabDouble([39], [40]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;SPLIT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabString(["E"], ["E"], ["E"]),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- out_label: new ScilabString([""], [""], [""]),
- style: new ScilabString(["SPLIT_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["lsplit"]),
- in: new ScilabDouble([-1]),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble([-1], [-1], [-1]),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([true, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_link({
- xx: new ScilabDouble([140.34523], [144.31759]),
- yy: new ScilabDouble([273.49157], [273.57832]),
- id: new ScilabString(["drawlink"]),
- 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], [140.34523], [290.29229], [290.29229]),
- yy: new ScilabDouble([273.49157], [247.70767], [247.70767], [266.90654]),
- id: new ScilabString(["drawlink"]),
- 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: new ScilabString(["CLKSPLIT_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([253.72572], [309.29537]),
- sz: new ScilabDouble([0.3333333, 0.3333333]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabDouble(),
- pin: new ScilabDouble(),
- pout: new ScilabDouble(),
- pein: new ScilabDouble([17]),
- peout: new ScilabDouble([42], [43]),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CLKSPLIT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabDouble(),
- out_implicit: new ScilabDouble(),
- style: new ScilabString(["CLKSPLIT_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["split"]),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble(),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble([1]),
- evtout: new ScilabDouble([1], [1]),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["d"]),
- firing: new ScilabBoolean([false, false, false]),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_link({
- xx: new ScilabDouble([253.72572], [253.72156]),
- yy: new ScilabDouble([309.29537], [305.95927]),
- id: new ScilabString(["drawlink"]),
- 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], [312.19705], [312.19705]),
- yy: new ScilabDouble([309.29537], [309.29537], [299.28749]),
- id: new ScilabString(["drawlink"]),
- 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], [279.98293], [325.53038], [325.53038]),
- yy: new ScilabDouble([372.50232], [315.89455], [315.89455], [299.28749]),
- id: new ScilabString(["drawlink"]),
- thick: new ScilabDouble([0, 0]),
- ct: new ScilabDouble([5, -1]),
- from: new ScilabDouble([2, 2, 0]),
- to: new ScilabDouble([32, 2, 1])
- }));
-
- var model = scicos_model();
- model.sim = new ScilabString(["csuper"]);
- model.in = new ScilabDouble([1], [1], [1]);
- model.in2 = new ScilabDouble([1], [1], [1]);
- model.out = new ScilabDouble([1], [1]);
- model.out2 = new ScilabDouble([1], [1]);
- model.intyp = new ScilabDouble([5, 1, 1]);
- model.outtyp = new ScilabDouble([5, 5]);
- model.blocktype = new ScilabString(["h"]);
- model.firing = new ScilabBoolean([false]);
- model.dep_ut = new ScilabBoolean([true, false]);
- model.rpar = scs_m;
-
- var gr_i = [];
- this.x = new standard_define(new ScilabDouble([2, 3]), model, new ScilabDouble(), gr_i);
- return new BasicBlock(this.x);
- }
- DFLIPFLOP.prototype.details = function DFLIPFLOP() {
- return this.x;
- }
-}
-function DIFF_f() {
-
- DIFF_f.prototype.define = function DIFF_f() {
- this.x0 = [[0], [0]];
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["diffblk"]), new ScilabDouble([10001]));
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.state = new ScilabDouble(...this.x0);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
-
- var exprs = new ScilabString([sci2exp(this.x0[0])], [sci2exp(this.x0[1])]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DIFF_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- DIFF_f.prototype.details = function DIFF_f() {
- return this.x;
- }
-}
-
-function Diode() {
-
- Diode.prototype.define = function Diode() {
-
- this.Ids = 1.e-6;
- this.Vt = 0.04;
- this.Maxexp = 15;
- this.R = 1.e8;
-
- var model = scicos_model();
- model.rpar = new ScilabDouble([this.Ids], [this.Vt], [this.Maxexp], [this.R]);
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.sim = new ScilabString(["Diode"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- mo.model = new ScilabString(["Diode"]);
- mo.inputs = new ScilabString(["p"]);
- mo.outputs = new ScilabString(["n"]);
- mo.parameters = list(new ScilabString(["Ids", "Vt", "Maxexp", "R"]), list(new ScilabDouble([this.Ids]), new ScilabDouble([this.Vt]), new ScilabDouble([this.Maxexp]), new ScilabDouble([this.R])));
- model.equations = mo;
-
- var exprs = new ScilabString([this.Ids], [this.Vt], [this.Maxexp], [this.R]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Diode\",sz(1),sz(2));"]);
- this.x = standard_define(new ScilabDouble([2, 1]), model, exprs, list(gr_i, 0));
- this.x.graphics.in_implicit = new ScilabString(["I"]);
- this.x.graphics.out_implicit = new ScilabString(["I"]);
- return new BasicBlock(this.x);
- }
- Diode.prototype.details = function Diode() {
- return this.x;
- }
-}
-function DLR() {
-
- DLR.prototype.define = function DLR() {
- this.x0 = 0;
- this.A = -1;
- this.B = 1;
- this.C = 1;
- this.D = 0;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["dsslti4"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.evtin = new ScilabDouble([1]);
- model.dstate = new ScilabDouble([this.x0]);
- model.rpar = new ScilabDouble([this.A], [this.B], [this.C], [this.D]);
- model.blocktype = new ScilabString(["d"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString(["1"], ["1+z"]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DLR\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- DLR.prototype.details = function DLR() {
- return this.x;
- }
-}
-
-function DLRADAPT_f() {
-
- DLRADAPT_f.prototype.define = function DLRADAPT_f() {
- this.p = [[0], [1]];
- this.rn = [];
- this.rd = [[math.complex(0.2, 0.8), math.complex(0.2, -0.8)], [math.complex(0.3, 0.7), math.complex(0.3, -0.7)]];
- this.g = [[1], [1]];
- this.last_u = [];
- this.last_y = [[0], [0]];
-
- var model = scicos_model();
- model.sim = new ScilabString(["dlradp"]);
- model.in = new ScilabDouble([1], [1]);
- model.out = new ScilabDouble([1]);
- model.evtin = new ScilabDouble([1]);
- model.dstate = new ScilabDouble(...this.last_y);
- model.rpar = new ScilabDouble(...this.p, ...real(colon_operator(this.rd)), ...math.im(colon_operator(this.rd)), ...this.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 = new ScilabString([sci2exp(this.p)], [sci2exp(this.rn)], [sci2exp(this.rd, 0)], [sci2exp(this.g)], [sci2exp(this.last_u)], [sci2exp(this.last_y)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DLRADAPT_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- DLRADAPT_f.prototype.details = function DLRADAPT_f() {
- return this.x;
- }
-}
-function DLSS() {
-
- DLSS.prototype.define = function DLSS() {
- this.x0 = 0;
- this.A = -1;
- this.B = 1;
- this.C = 1;
- this.D = 0;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["dsslti4"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.evtin = new ScilabDouble([1]);
- model.dstate = new ScilabDouble([this.x0]);
- model.rpar = new ScilabDouble([this.A], [this.B], [this.C], [this.D]);
- model.blocktype = new ScilabString(["d"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([sci2exp(this.A)], [sci2exp(this.B)], [sci2exp(this.C)], [sci2exp(this.D)], [sci2exp(this.x0)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DLSS\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- DLSS.prototype.details = function DLSS() {
- return this.x;
- }
-}
-
-function DOLLAR() {
-
- DOLLAR.prototype.define = function DOLLAR() {
- this.z = 0;
- this.inh = 0;
- this.in1 = 1;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["dollar4"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([this.in1]);
- model.out = new ScilabDouble([this.in1]);
- model.evtin = new ScilabDouble([1 - this.inh]);
- model.dstate = new ScilabDouble([this.z]);
- model.blocktype = new ScilabString(["d"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([this.z], [this.inh]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DOLLAR\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- DOLLAR.prototype.details = function DOLLAR() {
- return this.x;
- }
-}
-
-function DOLLAR_f() {
-
- DOLLAR_f.prototype.define = function DOLLAR_f() {
- this.z = 0;
- this.inh = 0;
- this.in1 = 1;
-
- var model = scicos_model();
- model.sim = new ScilabString(["dollar"]);
- model.in = new ScilabDouble([this.in1]);
- model.out = new ScilabDouble([this.in1]);
- model.evtin = new ScilabDouble([1 - this.inh]);
- model.dstate = new ScilabDouble([this.z]);
- model.blocktype = new ScilabString(["d"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([this.z], [this.inh]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DOLLAR_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- DOLLAR_f.prototype.details = function DOLLAR_f() {
- return this.x;
- }
-}
-
-function DOLLAR_m() {
-
- DOLLAR_m.prototype.define = function DOLLAR_m() {
- this.z = 0;
- this.inh = 0;
- this.in1 = 1;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["dollar4"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([this.in1]);
- model.out = new ScilabDouble([this.in1]);
- model.evtin = new ScilabDouble([1 - this.inh]);
- model.dstate = new ScilabDouble([this.z]);
- model.blocktype = new ScilabString(["d"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([this.z], [this.inh]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DOLLAR_m\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- DOLLAR_m.prototype.details = function DOLLAR_m() {
- return this.x;
- }
-}
-
-function EDGETRIGGER() {
-
- EDGETRIGGER.prototype.internal = function EDGETRIGGER() {
- this.edge = 1;
- var model = scicos_model();
- model.sim = list(new ScilabString(["edgetrig"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.in2 = new ScilabDouble([1]);
- model.out2 = new ScilabDouble([1]);
- model.intyp = new ScilabDouble([1]);
- model.outtyp = new ScilabDouble([1]);
- model.dstate = new ScilabDouble([0]);
- model.nzcross = new ScilabDouble([1]);
- model.ipar = new ScilabDouble([this.edge]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([this.edge]);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;EDGETRIGGER&quot;,sz(1),sz(2));"]);
- var block = standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- block.graphics.style = new ScilabString(["EDGETRIGGER"]);
- return block;
- }
-}
-function EDGE_TRIGGER() {
-
- EDGE_TRIGGER.prototype.define = function EDGE_TRIGGER() {
- var scs_m_1 = scicos_diagram();
- scs_m_1.objs.push(new EDGETRIGGER().internal());
- scs_m_1.objs.push(new IFTHEL_f().internal());
- scs_m_1.objs.push(new IN_f().internal());
- scs_m_1.objs.push(new CLKOUTV_f().internal());
- 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[0];
- 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"]);
- graphics.in_implicit = new ScilabString(["E"]);
- graphics.out_implicit = new ScilabString(["E"]);
- graphics.in_style = new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]);
- graphics.out_style = new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]);
- graphics.in_label = new ScilabString([""]);
- graphics.out_label = new ScilabString([""]);
- model.ipar = new ScilabDouble([0]);
- graphics.pin = new ScilabDouble([5]);
- graphics.pout = new ScilabDouble([6]);
- model.uid = new ScilabString([count]);
- blk.doc = list(new ScilabString([count++]));
- blk.graphics = graphics;
- blk.model = model;
- scs_m_1.objs[0] = blk;
-
- blk = scs_m_1.objs[1];
- 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]);
- model.uid = new ScilabString([count]);
- blk.doc = list(new ScilabString([count++]));
- blk.graphics = graphics;
- blk.model = model;
- scs_m_1.objs[1] = blk;
-
- blk = scs_m_1.objs[2];
- 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]);
- model.uid = new ScilabString([count]);
- blk.doc = list(new ScilabString([count++]));
- blk.graphics = graphics;
- blk.model = model;
- scs_m_1.objs[2] = blk;
-
- blk = scs_m_1.objs[3];
- 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]);
- model.uid = new ScilabString([count]);
- blk.doc = list(new ScilabString([count++]));
- blk.graphics = graphics;
- blk.model = model;
- scs_m_1.objs[3] = blk;
-
- var lnk = scs_m_1.objs[4];
- lnk.xx = new ScilabDouble([64], [96]);
- lnk.yy = new ScilabDouble([-40], [-20]);
- lnk.from = new ScilabDouble([3, 1, 0]);
- lnk.to = new ScilabDouble([1, 1, 1]);
- scs_m_1.objs[4] = lnk;
-
- lnk = scs_m_1.objs[5];
- lnk.xx = new ScilabDouble([164], [196]);
- lnk.yy = new ScilabDouble([-20], [-20]);
- lnk.from = new ScilabDouble([1, 1, 0]);
- lnk.to = new ScilabDouble([2, 1, 1]);
- scs_m_1.objs[5] = lnk;
-
- lnk = scs_m_1.objs[6];
- lnk.xx = new ScilabDouble([220], [220]);
- lnk.yy = new ScilabDouble([-44], [-96]);
- lnk.ct = new ScilabDouble([5, -1]);
- lnk.from = new ScilabDouble([2, 1, 0]);
- lnk.to = new ScilabDouble([4, 1, 1]);
- scs_m_1.objs[6] = lnk;
-
- model = scicos_model();
- model.sim = new ScilabString(["csuper"]);
- model.in = new ScilabDouble([1]);
- model.evtout = new ScilabDouble([1]);
- model.rpar = scs_m_1;
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;EDGE_TRIGGER&quot;,sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, new ScilabDouble(), gr_i);
- return new BasicBlock(this.x);
- }
- EDGE_TRIGGER.prototype.details = function EDGE_TRIGGER() {
- return this.x;
- }
-}
-function ENDBLK() {
-
- ENDBLK.prototype.define = function ENDBLK() {
- var scs_m_1 = scicos_diagram({
- version: new ScilabString(["scicos4.2"]),
- props: scicos_params({
- wpar: new ScilabDouble([600, 450, 0, 0, 600, 450]),
- Title: new ScilabString(["ENDBLK"]),
- tol: new ScilabDouble([0.0001], [0.000001], [Math.pow(10, -10)], [100001], [0], [0], [0]),
- tf: new ScilabDouble([100000]),
- context: new ScilabString([" "]),
- void1: new ScilabDouble(),
- options: tlist(["scsopt", "3D", "Background", "Link", "ID", "Cmap"], new ScilabString(["scsopt", "3D", "Background", "Link", "ID", "Cmap"]), list(new ScilabBoolean([true]), new ScilabDouble([33])), new ScilabDouble([8, 1]), new ScilabDouble([1, 5]), list(new ScilabDouble([5, 1]), new ScilabDouble([4, 1])), new ScilabDouble([0.8, 0.8, 0.8])),
- void2: new ScilabDouble(),
- void3: new ScilabDouble(),
- doc: list()
- })
- });
- scs_m_1.objs.push(scicos_block({
- gui: new ScilabString(["END_c"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([272.104, 249.11733]),
- sz: new ScilabDouble([40, 40]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["1.000E+08"]),
- pin: new ScilabDouble(),
- pout: new ScilabDouble(),
- pein: new ScilabDouble([2]),
- peout: new ScilabDouble([2]),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;END_c&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabDouble(),
- out_implicit: new ScilabDouble(),
- style: new ScilabString(["END_c"])
- }),
- model: scicos_model({
- sim: list(new ScilabString(["scicosexit"]), new ScilabDouble([4])),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble(),
- out: new ScilabDouble(),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble(),
- evtin: new ScilabDouble([1]),
- evtout: new ScilabDouble([1]),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["d"]),
- firing: new ScilabDouble([1.000E+08]),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m_1.objs.push(scicos_link({
- xx: new ScilabDouble([292.104], [292.104], [261.83733], [261.83733], [292.104], [292.104]),
- yy: new ScilabDouble([243.40305], [234.45067], [234.45067], [305.584], [305.584], [294.83162]),
- id: new ScilabString(["drawlink"]),
- 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: new ScilabString(["csuper"]),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble(),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: scs_m_1,
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["h"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list()
- });
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;ENDBLK&quot;,sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, new ScilabDouble(), gr_i);
- return new BasicBlock(this.x);
- }
- ENDBLK.prototype.details = function ENDBLK() {
- return this.x;
- }
-}
-function END_c() {
-
- END_c.prototype.define = function END_c() {
- this.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([this.tf]);
- model.blocktype = new ScilabString(["d"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([this.tf]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"END_c\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- END_c.prototype.details = function END_c() {
- return this.x;
- }
-}
-
-function ESELECT_f() {
-
- ESELECT_f.prototype.define = function ESELECT_f() {
- this.out = 2;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["eselect"]), new ScilabDouble([-2]));
- model.in = new ScilabDouble([1]);
- model.in2 = new ScilabDouble([1]);
- model.intyp = new ScilabDouble([-1]);
- model.evtin = new ScilabDouble([1]);
- model.evtout = new ScilabDouble(...ones(this.out, 1));
- model.blocktype = new ScilabString(["l"]);
- model.firing = new ScilabDouble(...ones(this.out, 1));
- model.dep_ut = new ScilabBoolean([true, false]);
- model.nmode = new ScilabDouble([0]);
- model.nzcross = new ScilabDouble([0]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"ESELECT_f\",sz(1),sz(2));"]);;
-
- var exprs = new ScilabString([this.out], [1], [parseInt(getData(model.nmode))]);
- this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- ESELECT_f.prototype.details = function ESELECT_f() {
- return this.x;
- }
-}
-function EVTDLY_c() {
-
- EVTDLY_c.prototype.internal = 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]);
- // changed
- model.outtyp = new ScilabDouble();
- var exprs = new ScilabString([dt], [ff]);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EVTDLY_c\",sz(1),sz(2));"]);
- var block = new standard_define(new ScilabDouble([80, 80]), model, exprs, gr_i); // 3,2 -> 80
- block.graphics.style = new ScilabString(["EVTDLY_c"]);
- return block;
-
- }
-
- EVTDLY_c.prototype.define = function EVTDLY_c() {
- this.dt = 0.1;
- this.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([this.dt], [this.ff]);
- model.blocktype = new ScilabString(["d"]);
- model.firing = new ScilabDouble([this.ff]);
- model.dep_ut = new ScilabBoolean([false, false]);
- // changed
- model.outtyp = new ScilabDouble();
- var exprs = new ScilabString([this.dt], [this.ff]);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EVTDLY_c\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([80, 80]), model, exprs, gr_i); // 3,2 -> 80
- this.x.graphics.style = new ScilabString(["EVTDLY_c"]);
- return new BasicBlock(this.x);
-
- }
-
- EVTDLY_c.prototype.details = function EVTDLY_c() {
-
- return this.x;
- }
-}
-function EVTDLY_f() {
-
- EVTDLY_f.prototype.internal = function EVTDLY_f() {
- this.dt = 0.1;
- this.ff = this.dt;
-
- var model = scicos_model();
- model.sim = new ScilabString(["evtdly"]);
- model.evtin = new ScilabDouble([1]);
- model.evtout = new ScilabDouble([1]);
- model.rpar = new ScilabDouble([this.dt]);
- model.blocktype = new ScilabString(["d"]);
- model.firing = new ScilabDouble([this.ff]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([this.dt], [sci2exp(this.ff)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EVTDLY_f\",sz(1),sz(2));"]);
- var block = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- block.graphics.style = new ScilabString(["EVTDLY_f"]);
- return block;
- }
-}function EVTGEN_f() {
-
- EVTGEN_f.prototype.define = function EVTGEN_f() {
- this.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([this.tt]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([this.tt]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EVTGEN_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- EVTGEN_f.prototype.details = function EVTGEN_f() {
- return this.x;
- }
-}
-function EVTVARDLY() {
-
- EVTVARDLY.prototype.define = function EVTVARDLY() {
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["evtvardly"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([1]);
- model.evtin = new ScilabDouble([1]);
- model.evtout = new ScilabDouble([1]);
- model.blocktype = new ScilabString(["d"]);
- model.firing = new ScilabDouble([-1]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([parseInt(getData(model.firing), 10)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EVTVARDLY\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- EVTVARDLY.prototype.details = function EVTVARDLY() {
- return this.x;
- }
-}
-
-function EXPBLK_m() {
-
- EXPBLK_m.prototype.define = function EXPBLK_m() {
- this.in1 = 1;
- this.a = math.E;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["expblk_m"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2]);
- model.out = new ScilabDouble([-1]);
- model.out2 = new ScilabDouble([-2]);
- model.intyp = new ScilabDouble([1]);
- model.outtyp = new ScilabDouble([1]);
- model.rpar = new ScilabDouble([this.a]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString(["%e"]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EXPBLK_m\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- EXPBLK_m.prototype.details = function EXPBLK_m() {
- return this.x;
- }
-}
-function EXTRACT() {
-
- EXTRACT.prototype.define = function EXTRACT() {
- this.function_name = "extract";
- this.funtyp = 4;
-
- var model = scicos_model();
- model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2]);
- model.intyp = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.out2 = new ScilabDouble([1]);
- model.outtyp = new ScilabDouble([1]);
- model.evtin = new ScilabDouble();
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.dstate = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble([1, 1, 1, 1]);
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = new ScilabString([sci2exp(1)], [sci2exp([1])], [sci2exp([1])]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EXTRACT\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
- EXTRACT.prototype.details = function EXTRACT() {
- return this.x;
- }
-}
-
-function EXTRACTBITS() {
-
- EXTRACTBITS.prototype.define = function EXTRACTBITS() {
- this.numb = [];
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["extract_bit_32_UH0"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([1]);
- model.in2 = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.out2 = new ScilabDouble([1]);
- model.intyp = new ScilabDouble([3]);
- model.outtyp = new ScilabDouble([3]);
- model.ipar = new ScilabDouble([0, ...this.numb]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([sci2exp(3)], [sci2exp(1)], [sci2exp(0)], [sci2exp(0)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EXTRACTBITS\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- EXTRACTBITS.prototype.details = function EXTRACTBITS() {
- return this.x;
- }
-}
-function EXTRACTOR() {
-
- EXTRACTOR.prototype.define = function EXTRACTOR() {
- this.ind = 1;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["extractor"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([-1]);
- model.out = new ScilabDouble([1]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
- model.ipar = new ScilabDouble([this.ind]);
-
- var exprs = new ScilabString([sci2exp(this.ind)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EXTRACTOR\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- EXTRACTOR.prototype.details = function EXTRACTOR() {
- return this.x;
- }
-}
-
-function Extract_Activation() {
-
- Extract_Activation.prototype.define = function Extract_Activation() {
- var scs_m_1 = scicos_diagram();
- scs_m_1.objs.push(new IFTHEL_f().internal());
- scs_m_1.objs.push(new CLKSOMV_f().internal());
- scs_m_1.objs.push(new IN_f().internal());
- scs_m_1.objs.push(new CLKOUTV_f().internal());
- 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[0];
- var graphics = blk.graphics;
-
- var model = blk.model;
- graphics.orig = new ScilabDouble([80, 0]);
- graphics.sz = new ScilabDouble([60, 40]);
- graphics.flip = new ScilabBoolean([true]);
- 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]);
- model.uid = new ScilabString([count]);
- blk.doc = list(new ScilabString([count++]));
- blk.graphics = graphics;
- blk.model = model;
- scs_m_1.objs[0] = blk;
-
- blk = scs_m_1.objs[1];
- graphics = blk.graphics;
- model = blk.model;
- model.outtyp = new ScilabDouble();
- model.evtin = new ScilabDouble([-1], [-1], [-1]);
- model.evtout = new ScilabDouble([-1]);
- graphics.orig = new ScilabDouble([80, -80]);
- graphics.sz = new ScilabDouble([80, 40]);
- graphics.flip = new ScilabBoolean([true]);
- graphics.pein = new ScilabDouble([5], [6], [0]);
- graphics.peout = new ScilabDouble([8]);
- graphics.style = new ScilabString(["CLKSOMV_f"]);
- model.uid = new ScilabString([count]);
- blk.doc = list(new ScilabString([count++]));
- blk.graphics = graphics;
- blk.model = model;
- scs_m_1.objs[1] = blk;
-
- blk = scs_m_1.objs[2];
- graphics = blk.graphics;
- model = blk.model;
- graphics.orig = new ScilabDouble([0, 10]);
- graphics.sz = new ScilabDouble([20, 20]);
- graphics.flip = new ScilabBoolean([true]);
- graphics.exprs = new ScilabString(["1"]);
- model.ipar = new ScilabDouble([1]);
- graphics.pout = new ScilabDouble([7]);
- model.uid = new ScilabString([count]);
- blk.doc = list(new ScilabString([count++]));
- blk.graphics = graphics;
- blk.model = model;
- scs_m_1.objs[2] = blk;
-
- blk = scs_m_1.objs[3];
- graphics = blk.graphics;
- model = blk.model;
- model.outtyp = new ScilabDouble();
- graphics.style = new ScilabString(["CLKOUTV_f"]);
- graphics.orig = new ScilabDouble([110, -140]);
- graphics.sz = new ScilabDouble([20, 20]);
- graphics.flip = new ScilabBoolean([true]);
- graphics.exprs = new ScilabString(["1"]);
- graphics.gr_i = list(new ScilabString(["xstringb(orig(1),orig(2),\"CLKOUTV_f\",sz(1),sz(2));"]), new ScilabDouble([8]));
- model.ipar = new ScilabDouble([1]);
- graphics.pein = new ScilabDouble([8]);
- model.uid = new ScilabString([count]);
- blk.doc = list(new ScilabString([count++]));
- blk.graphics = graphics;
- blk.model = model;
- scs_m_1.objs[3] = blk;
-
- var lnk = scs_m_1.objs[4];
- lnk.xx = new ScilabDouble([140], [140]);
- lnk.yy = new ScilabDouble([-44], [-76]);
- lnk.ct = new ScilabDouble([5, -1]);
- lnk.from = new ScilabDouble([1, 1, 0]);
- lnk.to = new ScilabDouble([2, 1, 1]);
- scs_m_1.objs[4] = lnk;
-
- lnk = scs_m_1.objs[5];
- lnk.xx = new ScilabDouble([160], [160]);
- lnk.yy = new ScilabDouble([-44], [-76]);
- lnk.ct = new ScilabDouble([5, -1]);
- lnk.from = new ScilabDouble([1, 2, 0]);
- lnk.to = new ScilabDouble([2, 2, 1]);
- scs_m_1.objs[5] = lnk;
-
- lnk = scs_m_1.objs[6];
- lnk.xx = new ScilabDouble([64], [116]);
- lnk.yy = new ScilabDouble([-40], [-20]);
- lnk.from = new ScilabDouble([3, 1, 0]);
- lnk.to = new ScilabDouble([1, 1, 1]);
- scs_m_1.objs[6] = lnk;
-
- lnk = scs_m_1.objs[7];
- lnk.xx = new ScilabDouble([160], [160]);
- lnk.yy = new ScilabDouble([-124], [-176]);
- lnk.ct = new ScilabDouble([5, -1]);
- lnk.from = new ScilabDouble([2, 1, 0]);
- lnk.to = new ScilabDouble([4, 1, 1]);
- scs_m_1.objs[7] = lnk;
-
- model = scicos_model();
- model.sim = new ScilabString(["csuper"]);
- model.in = new ScilabDouble([1]);
- model.evtout = new ScilabDouble([1]);
- model.rpar = scs_m_1;
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Extract_Activation\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, new ScilabDouble(), gr_i);
- return new BasicBlock(this.x);
- }
-
- Extract_Activation.prototype.details = function Extract_Activation() {
- return this.x;
- }
-}
-function EXTTRI() {
-
- EXTTRI.prototype.define = function EXTTRI() {
- this.function_name = "extrilz";
- this.funtyp = 4;
-
- var model = scicos_model();
- model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2]);
- model.intyp = new ScilabDouble([1]);
- model.out = new ScilabDouble([-1]);
- model.out2 = new ScilabDouble([-2]);
- model.outtyp = new ScilabDouble([1]);
- model.evtin = new ScilabDouble();
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.dstate = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble();
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = new ScilabString([sci2exp(1)], [sci2exp(1)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EXTTRI\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
- EXTTRI.prototype.details = function EXTTRI() {
- return this.x;
- }
-}
-
-function Flowmeter() {
-
- Flowmeter.prototype.define = function Flowmeter() {
- this.ModelName = "Flowmeter";
- this.PrametersValue = 1;
- this.ParametersName = "Qini";
-
- var model = scicos_model();
-
- this.Typein = [];
- this.Typeout = [];
-
- this.MI = [];
- this.MO = [];
- this.P = [[50,105,-1,90],[0,10,2,0],[101,10,-2,0]];
- this.PortName = [["Mesure"],["C1"],["C2"]];
-
- for (var i = 0; i < size(this.P, "r"); i++) {
- if (this.P[i][2] == 1) {
- this.Typein.push(["E"]);
- this.MI.push(this.PortName[i]);
- }
-
- if (this.P[i][2] == 2) {
- this.Typein.push(["I"]);
- this.MI.push(this.PortName[i]);
- }
- if (this.P[i][2] == -1) {
- this.Typeout.push(["E"]);
- this.MO.push(this.PortName[i]);
- }
- if (this.P[i][2] == -2) {
- this.Typeout.push(["I"]);
- this.MO.push(this.PortName[i]);
- }
- }
-
- var mo = new modelica_function();
- model.sim = new ScilabString([this.ModelName]);
- mo.inputs = new ScilabString(...this.MI);
- mo.outputs = new ScilabString(...this.MO);
- model.rpar = new ScilabDouble([this.PrametersValue]);
- mo.parameters = list(new ScilabString([this.ParametersName]), new ScilabDouble([this.PrametersValue]), new ScilabDouble(zeros([this.ParametersName])));
- var exprs = new ScilabString(["1"]);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Flowmeter\",sz(1),sz(2));"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
- mo.model = new ScilabString([this.ModelName]);
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
- model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, list(new ScilabString([gr_i]), new ScilabDouble([0])));
- this.x.graphics.in_implicit = new ScilabDouble(this.Typein);
- this.x.graphics.out_implicit = new ScilabDouble(this.Typeout);
- return new BasicBlock(this.x);
- }
-
- Flowmeter.prototype.details = function Flowmeter() {
- return this.x;
- }
-}
-function fortran_block() {
-
- fortran_block.prototype.define = function fortran_block() {
- var model = scicos_model();
- model.sim = list(new ScilabString([" "]), new ScilabDouble([1001]));
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.evtin = new ScilabDouble();
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.dstate = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble([0]);
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- this.funam = "forty";
-
- var label = list(new ScilabString([sci2exp(parseInt(getData(model.in)))], [sci2exp(parseInt(getData(model.out)))], [sci2exp(getData(model.rpar))], [this.funam]), list(new ScilabDouble()));
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"fortran_block\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([4, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
- fortran_block.prototype.details = function fortran_block() {
- return this.x;
- }
-}
-function freq_div() {
-
- freq_div.prototype.define = function freq_div() {
- var scs_m_1 = scicos_diagram();
- scs_m_1.objs.push(new Modulo_Count().internal());
- scs_m_1.objs.push(new CLKINV_f().internal());
- scs_m_1.objs.push(new CLKOUTV_f().internal());
- scs_m_1.objs.push(new IFTHEL_f().internal());
- scs_m_1.objs.push(new CLKSPLIT_f().internal());
- 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[0];
- 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]);
- graphics.out_implicit = new ScilabString(["E"]);
- graphics.out_style = new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]);
- graphics.out_label = new ScilabString([""]);
- model.uid = new ScilabString([count]);
- blk.doc = list(new ScilabString([count++]));
- blk.graphics = graphics;
- blk.model = model;
- scs_m_1.objs[0] = blk;
-
- blk = scs_m_1.objs[1];
- 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]);
- model.uid = new ScilabString([count]);
- blk.doc = list(new ScilabString([count++]));
- blk.graphics = graphics;
- blk.model = model;
- scs_m_1.objs[1] = blk;
-
- blk = scs_m_1.objs[2];
- 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]);
- model.uid = new ScilabString([count]);
- blk.doc = list(new ScilabString([count++]));
- blk.graphics = graphics;
- blk.model = model;
- scs_m_1.objs[2] = blk;
-
- blk = scs_m_1.objs[3];
- 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]);
- model.uid = new ScilabString([count]);
- blk.doc = list(new ScilabString([count++]));
- blk.graphics = graphics;
- blk.model = model;
- scs_m_1.objs[3] = blk;
-
- blk = scs_m_1.objs[4];
- 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]);
- model.uid = new ScilabString([count]);
- blk.doc = list(new ScilabString([count++]));
- blk.graphics = graphics;
- blk.model = model;
- scs_m_1.objs[4] = blk;
-
- var lnk = scs_m_1.objs[5];
- lnk.xx = new ScilabDouble([170], [170.5]);
- lnk.yy = new ScilabDouble([-44], [-75]);
- lnk.ct = new ScilabDouble([5, -1]);
- lnk.from = new ScilabDouble([2, 1, 0]);
- lnk.to = new ScilabDouble([5, 1, 1]);
- scs_m_1.objs[5] = lnk;
-
- lnk = scs_m_1.objs[6];
- lnk.xx = new ScilabDouble([104], [136]);
- lnk.yy = new ScilabDouble([-100], [-100]);
- lnk.from = new ScilabDouble([1, 1, 0]);
- lnk.to = new ScilabDouble([4, 1, 1]);
- scs_m_1.objs[6] = lnk;
-
- lnk = scs_m_1.objs[7];
- lnk.xx = new ScilabDouble([180], [180]);
- lnk.yy = new ScilabDouble([-124], [-176]);
- lnk.ct = new ScilabDouble([5, -1]);
- lnk.from = new ScilabDouble([4, 2, 0]);
- lnk.to = new ScilabDouble([3, 1, 1]);
- scs_m_1.objs[7] = lnk;
-
- lnk = scs_m_1.objs[8];
- lnk.xx = new ScilabDouble([170], [170.5]);
- lnk.yy = new ScilabDouble([-44], [-75]);
- lnk.ct = new ScilabDouble([5, -1]);
- lnk.from = new ScilabDouble([5, 1, 0]);
- lnk.to = new ScilabDouble([4, 1, 1]);
- scs_m_1.objs[8] = lnk;
-
- lnk = scs_m_1.objs[9];
- lnk.xx = new ScilabDouble([169], [170]);
- lnk.yy = new ScilabDouble([-90], [-76]);
- 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[9] = 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 = new ScilabString(["xstringb(orig(1),orig(2),&quot;freq_div&quot;,sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, new ScilabDouble(), gr_i);
- return new BasicBlock(this.x);
- }
- freq_div.prototype.details = function freq_div() {
- return this.x;
- }
-}
-function FROM() {
-
- FROM.prototype.define = function FROM() {
-
- var model = scicos_model();
- model.sim = new ScilabString(["from"]);
- model.in = new ScilabDouble();
- model.in2 = new ScilabDouble();
- model.intyp = new ScilabDouble([1]);
- model.out = new ScilabDouble([-1]);
- model.out2 = new ScilabDouble([-2]);
- model.outtyp = new ScilabDouble([-1]);
- model.ipar = new ScilabDouble();
- model.opar = list(new ScilabString(["A"]));
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString(["A"]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"FROM\",sz(1),sz(2));"]);
- 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);
- }
- FROM.prototype.details = function FROM() {
- return this.x;
- }
-}
-
-function FROMMO() {
-
- FROMMO.prototype.define = function FROMMO() {
-
- var model = scicos_model();
- model.sim = new ScilabString(["frommo"]);
- model.in = new ScilabDouble();
- model.in2 = new ScilabDouble();
- model.intyp = new ScilabDouble([1]);
- model.out = new ScilabDouble([-1]);
- model.out2 = new ScilabDouble([-2]);
- model.outtyp = new ScilabDouble([-1]);
- model.ipar = new ScilabDouble();
- model.opar = list(new ScilabString(["A"]));
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var mo = new modelica_function();
- mo.model = new ScilabString(["frommo"]);
- mo.outputs = new ScilabString(["n"]);
-
- var exprs = new ScilabString(["A"]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"FROMMO\",sz(1),sz(2));"]);
- 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);
- }
- FROMMO.prototype.details = function FROMMO() {
- return this.x;
- }
-}
-
-function FROMWSB() {
-
- FROMWSB.prototype.define = function FROMWSB() {
- var scs_m_1 = scicos_diagram({
- version: new ScilabString(["scicos4.2"]),
- props: scicos_params({
- wpar: new ScilabDouble([600, 450, 0, 0, 450, 600]),
- Title: new ScilabString(["FROMWSB"]),
- tol: new ScilabDouble([0.0001], [0.000001], [Math.pow(10, -10)], [100001], [0], [0], [0]),
- tf: new ScilabDouble([100000]),
- context: new ScilabString([" "]),
- void1: new ScilabDouble(),
- options: tlist(["scsopt", "3D", "Background", "Link", "ID", "Cmap"], new ScilabString(["scsopt", "3D", "Background", "Link", "ID", "Cmap"]), list(new ScilabBoolean([true]), new ScilabDouble([33])), new ScilabDouble([8, 1]), new ScilabDouble([1, 5]), list(new ScilabDouble([5, 1]), new ScilabDouble([4, 1])), new ScilabDouble([0.8, 0.8, 0.8])),
- void2: new ScilabDouble(),
- void3: new ScilabDouble(),
- doc: list()
- })
- });
- scs_m_1.objs.push(scicos_block({
- gui: new ScilabString(["FROMWS_c"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([260.37067, 261.584]),
- sz: new ScilabDouble([70, 40]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["V"], ["1"], ["1"], ["0"]),
- pin: new ScilabDouble(),
- pout: new ScilabDouble([4]),
- pein: new ScilabDouble([2]),
- peout: new ScilabDouble([2]),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;FROMWS_c&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabDouble(),
- out_implicit: new ScilabString(["E"]),
- out_style: new ScilabString(["ExplicitOutputPort"]),
- out_label: new ScilabString([""]),
- style: new ScilabString(["FROMWS_c"])
- }),
- model: scicos_model({
- sim: list(new ScilabString(["fromws_c"]), new ScilabDouble([4])),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble(),
- out: new ScilabDouble([-1]),
- out2: new ScilabDouble([-2]),
- outtyp: new ScilabDouble([-1]),
- evtin: new ScilabDouble([1]),
- evtout: new ScilabDouble([1]),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([1], [-31], [1], [1], [0]),
- opar: list(),
- blocktype: new ScilabString(["d"]),
- firing: new ScilabDouble([0]),
- dep_ut: new ScilabBoolean([false, true]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m_1.objs.push(scicos_block({
- gui: new ScilabString(["OUT_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([358.9421, 271.584]),
- sz: new ScilabDouble([20, 20]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["1"]),
- pin: new ScilabDouble([4]),
- pout: new ScilabDouble(),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;OUT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabDouble(),
- in_style: new ScilabString(["ExplicitInputPort"]),
- in_label: new ScilabString([""]),
- style: new ScilabString(["OUT_f"])
-
- }),
- model: scicos_model({
- sim: new ScilabString(["output"]),
- in: new ScilabDouble([-1]),
- in2: new ScilabDouble([-2]),
- intyp: new ScilabDouble([-1]),
- out: new ScilabDouble(),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble(),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([1]),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m_1.objs.push(scicos_link({
- xx: new ScilabDouble([295.37067], [295.37067], [233.23733], [233.23733], [295.37067], [295.37067]),
- yy: new ScilabDouble([255.86971], [223.45067], [223.45067], [337.85067], [337.85067], [307.29829]),
- id: new ScilabString(["drawlink"]),
- 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_link({
- xx: new ScilabDouble([338.9421], [358.9421]),
- yy: new ScilabDouble([281.584], [281.584]),
- id: new ScilabString(["drawlink"]),
- 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: new ScilabString(["csuper"]),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble([-1]),
- out2: new ScilabDouble([-2]),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: scs_m_1,
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["h"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list()
- });
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"FROMWSB\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([5, 2]), model, new ScilabDouble(), gr_i);
- return new BasicBlock(this.x);
- }
- FROMWSB.prototype.details = function FROMWSB() {
- return this.x;
- }
-}function GAINBLK() {
-
- GAINBLK.prototype.define = function GAINBLK() {
- this.gain = 1;
- this.in1 = -1;
- this.out = -1;
- this.in2 = -2;
- this.out2 = -2;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["gainblk"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([this.in1]);
- model.out = new ScilabDouble([this.out]);
- model.in2 = new ScilabDouble([this.in2]);
- model.out2 = new ScilabDouble([this.out2]);
- model.rpar = new ScilabDouble([this.gain]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([sci2exp(this.gain)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GAINBLK\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- GAINBLK.prototype.details = function GAINBLK() {
- return this.x;
- }
-}
-
-function GAINBLK_f() {
-
- GAINBLK_f.prototype.define = function GAINBLK_f() {
- this.gain = 1;
- this.in1 = 1;
- this.out = 1;
-
- var model = scicos_model();
- model.sim = new ScilabString(["gain"]);
- model.in = new ScilabDouble([this.in1]);
- model.out = new ScilabDouble([this.out]);
- model.rpar = new ScilabDouble([this.gain]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([sci2exp(this.gain)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GAINBLK_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- GAINBLK_f.prototype.details = function GAINBLK_f() {
- return this.x;
- }
-}
-
-function GAIN_f() {
-
- GAIN_f.prototype.define = function GAIN_f() {
- this.gain = 1;
- this.in1 = 1;
- this.out = 1;
-
- var model = scicos_model();
- model.sim = new ScilabString(["gain"]);
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.rpar = new ScilabDouble([this.gain]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([sci2exp(this.gain)], [sci2exp(this.in1)], [sci2exp(this.out)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GAIN_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- GAIN_f.prototype.details = function GAIN_f() {
- return this.x;
- }
-}
-
-function GENERAL_f() {
-
- GENERAL_f.prototype.define = function GENERAL_f() {
- var rpar = [[0],[0],[0],[0]];
-
- this.in1 = 1;
- this.out = 1;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["zcross"]), new ScilabDouble([1]));
- model.nzcross = new ScilabDouble([this.in1]);
- model.in = new ScilabDouble([this.in1]);
- model.evtout = new ScilabDouble(...ones(this.out, 1));
- model.rpar = new ScilabDouble([0], [0], [0], [0]);
- model.blocktype = new ScilabString(["z"]);
- model.firing = -new ScilabDouble(...ones(this.out, 1));
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([sci2exp(this.in1)], [sci2exp(this.out)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GENERAL_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- GENERAL_f.prototype.details = function GENERAL_f() {
- return this.x;
- }
-}
-function generic_block3() {
-
- generic_block3.prototype.define = function generic_block3() {
- var model = scicos_model();
- this.function_name = "sinblk";
- this.funtyp = 4;
- model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
- model.in = new ScilabDouble([1]);
- model.in2 = new ScilabDouble([1]);
- model.intyp = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.out2 = new ScilabDouble([1]);
- model.outtyp = new ScilabDouble([1]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = new ScilabString([this.function_name], [sci2exp(this.funtyp)], [sci2exp([parseInt(getData(model.in)[0]), parseInt(getData(model.in2)[0])])], [sci2exp(parseInt(getData(model.intyp)[0]))], [sci2exp([parseInt(getData(model.out)[0]), parseInt(getData(model.out2)[0])])], [sci2exp(parseInt(getData(model.outtyp)[0]))], [sci2exp(getData(model.evtin))], [sci2exp(getData(model.evtout))], [sci2exp(getData(model.state))], [sci2exp(getData(model.dstate))], [sci2exp(model.odstate)], [sci2exp(getData(model.rpar))], [sci2exp(getData(model.ipar))], [sci2exp(model.opar)], [sci2exp(parseInt(getData(model.nmode)[0]))], [sci2exp(parseInt(getData(model.nzcross)[0]))], [sci2exp(getData(model.firing))], ["y"], ["n"]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"generic_block3\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([4, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
- generic_block3.prototype.details = function generic_block3() {
- return this.x;
- }
-}
-function GENSIN_f() {
-
- GENSIN_f.prototype.define = function GENSIN_f() {
- this.rpar = [[1], [1], [0]];
-
- var model = scicos_model();
- model.sim = new ScilabString(["gensin"]);
- model.in = new ScilabDouble();
- model.out = new ScilabDouble([1]);
- model.out2 = new ScilabDouble([1]);
- model.outtyp = new ScilabDouble([1]);
- model.rpar = new ScilabDouble([1], [1], [0]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
-
- var exprs = new ScilabString(this.rpar[0], this.rpar[1], this.rpar[2]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GENSIN_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- GENSIN_f.prototype.details = function GENSIN_f() {
- return this.x;
- }
-}
-
-function GENSQR_f() {
-
- GENSQR_f.prototype.define = function GENSQR_f() {
- this.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([this.Amplitude]);
- model.blocktype = new ScilabString(["d"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([this.Amplitude]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GENSQR_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- GENSQR_f.prototype.details = function GENSQR_f() {
- return this.x;
- }
-}
-function GOTO() {
-
- GOTO.prototype.define = function GOTO() {
- var model = scicos_model();
- model.sim = new ScilabString(["goto"]);
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2]);
- model.intyp = new ScilabDouble([-1]);
- model.out = new ScilabDouble();
- model.out2 = new ScilabDouble();
- model.outtyp = new ScilabDouble([1]);
- model.ipar = new ScilabDouble([1]);
- model.opar = list(new ScilabString(["A"]));
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString(["A"], [sci2exp(1)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GOTO\",sz(1),sz(2));"]);
- 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)
- }
-
- GOTO.prototype.details = function GOTO() {
- return this.x;
- }
-}
-function GOTOMO() {
-
- GOTOMO.prototype.define = function GOTOMO() {
-
- var model = scicos_model();
- model.sim = new ScilabString(["gotomo"]);
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2]);
- model.intyp = new ScilabDouble();
- model.out = new ScilabDouble();
- model.out2 = new ScilabDouble();
- model.outtyp = new ScilabDouble([1]);
- model.ipar = new ScilabDouble([1]);
- model.opar = list(new ScilabString(["A"]));
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var mo = new modelica_function();
- mo.model = new ScilabString(["gotomo"]);
- mo.inputs = new ScilabString(["p"]);
-
- var exprs = new ScilabString(["A"], [sci2exp(1)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GOTOMO\",sz(1),sz(2));"]);
- 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);
- }
- GOTOMO.prototype.details = function GOTOMO() {
- return this.x;
- }
-}
-
-function GotoTagVisibility() {
-
- GotoTagVisibility.prototype.define = 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(new ScilabString(["A"]));
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabBoolean([false]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString(["A"]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GotoTagVisibility\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- GotoTagVisibility.prototype.details = function GotoTagVisibility() {
-
- return this.x;
- }
-}
-function GotoTagVisibilityMO() {
-
- GotoTagVisibilityMO.prototype.define = function GotoTagVisibilityMO() {
-
- var model = scicos_model();
- model.sim = new ScilabString(["gototagvisibilitymo"]);
- model.in = new ScilabDouble();
- model.in2 = new ScilabDouble();
- model.out = new ScilabDouble();
- model.out2 = new ScilabDouble();
- model.evtin = new ScilabDouble();
- model.intyp = new ScilabDouble([1]);
- model.outtyp = new ScilabDouble([1]);
- model.opar = list(new ScilabString(["A"]));
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabBoolean([false]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString(["A"]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GotoTagVisibilityMO\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- GotoTagVisibilityMO.prototype.details = function GotoTagVisibilityMO() {
- return this.x;
- }
-}
-
-function Ground() {
-
- Ground.prototype.define = function Ground() {
-
- var model = scicos_model();
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble();
- model.sim = new ScilabString(["Ground"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- mo.model = new ScilabString(["Ground"]);
- mo.inputs = new ScilabString(["p"]);
- mo.outputs = new ScilabDouble();
- model.equations = mo;
-
- var exprs = new ScilabString([""]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Ground\",sz(1),sz(2));"]);
- this.x = standard_define(new ScilabDouble([1, 1]), model, exprs, list(gr_i, new ScilabDouble([0])));
- this.x.graphics.in_implicit = new ScilabString(["I"]);
- this.x.graphics.out_implicit = new ScilabString(["I"]);
- return new GroundBlock(this.x);
- }
-
- Ground.prototype.details = function Ground() {
- return this.x;
- }
-}
-function Gyrator() {
-
- Gyrator.prototype.define = function Gyrator() {
- this.ModelName = "Gyrator";
- this.PrametersValue = [[1],[1]];
- this.ParametersName = [["G1"],["G2"]];
- this.model = scicos_model();
- this.Typein = [];
- this.Typeout = [];
- this.MI = [];
- this.MO = [];
- this.P = [[2.5, 90, 2, 0],[2.5, 10, 2, 0],[97.5, 90, -2, 0],[97.5, 10, -2, 0]];
- this.PortName = [["p1"],["n1"],["p2"],["n2"]];
-
- for (var i = 0; i < size(this.P, "r"); i++) {
- if (this.P[i][2] == 1) {
- this.Typein.push(["E"]);
- this.MI.push(this.PortName[i]);
- }
- if (this.P[i][2] == 2) {
- this.Typein.push(["I"]);
- this.MI.push(this.PortName[i]);
- }
- if (this.P[i][2] == -1) {
- this.Typeout.push(["E"]);
- this.MO.push(this.PortName[i]);
- }
- if (this.P[i][2] == -2) {
- this.Typeout.push(["I"]);
- this.MO.push(this.PortName[i]);
- }
- }
- var model = scicos_model();
- var mo = new modelica_function();
- model.sim = new ScilabString([this.ModelName]);
- mo.inputs = new ScilabString(...this.MI);
- mo.outputs = new ScilabString(...this.MO);
- console.log(this.MI);
- model.rpar = new ScilabDouble(...this.PrametersValue);
- mo.parameters = list(new ScilabString(...this.ParametersName), new ScilabDouble(...this.PrametersValue), new ScilabDouble(...zeros(this.ParametersName)));
- var exprs = new ScilabString(["1"], ["1"]);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;Gyrator&quot;,sz(1),sz(2));"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
- mo.model = new ScilabString([this.ModelName]);
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
- model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
- this.x = standard_define([2, 2], model, exprs, list(gr_i, new ScilabDouble([0])));
- this.x.graphics.in_implicit = new ScilabString(...this.Typein);
- this.x.graphics.out_implicit = new ScilabString(...this.Typeout);
- return new BasicBlock(this.x);
- }
- Gyrator.prototype.details = function Gyrator() {
- return this.x;
- }
-}
-function HALT_f() {
-
- HALT_f.prototype.define = function HALT_f() {
- this.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 = new ScilabString([this.n]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"HALT_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- HALT_f.prototype.details = function HALT_f() {
- return this.x;
- }
-}
-
-function HYSTHERESIS() {
-
- HYSTHERESIS.prototype.define = function HYSTHERESIS() {
- this.in1 = 1;
- this.ipar = 0;
- this.nzz = 2;
- this.rpar = [[1], [0], [1], [0]];
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["hystheresis"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([this.in1]);
- model.out = new ScilabDouble([1]);
- model.rpar = new ScilabDouble(...this.rpar);
- model.nzcross = new ScilabDouble([this.nzz]);
- model.nmode = new ScilabDouble([1]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString(...this.rpar, [Math.sign(this.nzz)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"HYSTHERESIS\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- HYSTHERESIS.prototype.details = function HYSTHERESIS() {
- return this.x;
- }
-}
-
-function IdealTransformer() {
-
- IdealTransformer.prototype.define = function IdealTransformer() {
- this.ModelName = "IdealTransformer";
- this.PrametersValue = [1];
- this.ParametersName = ["N"];
-
- var model = scicos_model();
-
- this.Typein = [];
- this.Typeout = [];
- this.MI = [];
- this.MO = [];
- this.P = [[2.5,90,2,0],[2.5,10,2,0],[97.5,90,-2,0],[97.5,10,-2,0]];
- this.PortName = [["p1"],["n1"],["p2"],["n2"]];
-
- for (var i = 0; i < size(this.P, "r"); i++) {
- if (this.P[i][2] == 1) {
- this.Typein.push(["E"]);
- this.MI.push(this.PortName[i]);
- }
-
- if (this.P[i][2] == 2) {
- this.Typein.push(["I"]);
- this.MI.push(this.PortName[i]);
- }
- if (this.P[i][2] == -1) {
- this.Typeout.push(["E"]);
- this.MO.push(this.PortName[i]);
- }
- if (this.P[i][2] == -2) {
- this.Typeout.push(["I"]);
- this.MO.push(this.PortName[i]);
- }
- }
- var mo = new modelica_function();
- model.sim = new ScilabString([this.ModelName]);
- mo.inputs = new ScilabString(...this.MI);
- mo.outputs = new ScilabString(...this.MO);
- model.rpar = new ScilabDouble(this.PrametersValue);
- mo.parameters = list(new ScilabString(this.ParametersName), new ScilabDouble(this.PrametersValue), new ScilabDouble(zeros(getData(this.ParametersName))));
- var exprs = new ScilabString(["1"]);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"IdealTransformer\",sz(1),sz(2));"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
- mo.model = new ScilabString([this.ModelName]);
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
- model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
- this.x = new standard_define(new ScilabDouble([2,2]), model, exprs, list(gr_i), new ScilabDouble([0]));
- this.x.graphics.in_implicit = new ScilabDouble(this.Typein);
- this.x.graphics.out_implicit = new ScilabDouble(this.Typeout);
- return new BasicBlock(this.x);
- }
-
- IdealTransformer.prototype.details = function IdealTransformer() {
- return this.x;
- }
-
-}
-function IFTHEL_f() {
-
- IFTHEL_f.prototype.internal = function IFTHEL_f() {
- var model = scicos_model();
- model.sim = list(new ScilabString(["ifthel"]), new ScilabDouble([-1]));
- model.in = new ScilabDouble([1]);
- model.in2 = new ScilabDouble([1]);
- model.intyp = new ScilabDouble([-1]);
- model.evtin = new ScilabDouble([-1]);
- model.outtyp = new ScilabDouble(); // changed
- model.evtout = new ScilabDouble([-1], [-1]) // 1, 1 -> -1, -1 inverse
- model.blocktype = new ScilabString(["l"]);
- model.firing = new ScilabDouble([-1], [-1]); // inverse
- model.dep_ut = new ScilabBoolean([true, false]);
- model.nmode = new ScilabDouble([1]);
- model.nzcross = new ScilabDouble([1]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"IFTHEL_f\",sz(1),sz(2));"]);
- var exprs = new ScilabString(["1"], ["1"]); // value model.in, model.nmode inverse
-
- var block = new standard_define(new ScilabDouble([80, 80]), model, exprs, gr_i); // 3 -> 80
- block.graphics.in_implicit = new ScilabString(["E"]);
- // changed
- block.graphics.in_label = new ScilabString([""]);
- block.graphics.in_style = new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]);
- block.graphics.style = new ScilabString(["IFTHEL_f"]);
- return block;
- }
-
- IFTHEL_f.prototype.define = function IFTHEL_f() {
- var model = scicos_model();
- model.sim = list(new ScilabString(["ifthel"]), new ScilabDouble([-1]));
- model.in = new ScilabDouble([1]);
- model.in2 = new ScilabDouble([1]);
- model.intyp = new ScilabDouble([-1]);
- model.evtin = new ScilabDouble([-1]);
- model.outtyp = new ScilabDouble(); // changed
- model.evtout = new ScilabDouble([-1], [-1]) // 1, 1 -> -1, -1 inverse
- model.blocktype = new ScilabString(["l"]);
- model.firing = new ScilabDouble([-1], [-1]); // inverse
- model.dep_ut = new ScilabBoolean([true, false]);
- model.nmode = new ScilabDouble([1]);
- model.nzcross = new ScilabDouble([1]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"IFTHEL_f\",sz(1),sz(2));"]);
- var exprs = new ScilabString(["1"], ["1"]); // value model.in, model.nmode inverse
-
- this.x = new standard_define(new ScilabDouble([80, 80]), model, exprs, gr_i); // 3 -> 80
- this.x.graphics.in_implicit = new ScilabString(["E"]);
- // changed
- this.x.graphics.in_label = new ScilabString([""]);
- this.x.graphics.in_style = new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]);
- this.x.graphics.style = new ScilabString(["IFTHEL_f"]);
- return new BasicBlock(this.x);
- }
-
- IFTHEL_f.prototype.details = function IFTHEL_f() {
- return this.x;
- }
-}
-function Inductor() {
-
- Inductor.prototype.define = function Inductor() {
- this.L = 1.0E-5;
-
- var model = scicos_model();
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.rpar = new ScilabDouble([this.L.toExponential(1)]);
- model.sim = new ScilabString(["Inductor"]);
-
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- mo.model = new ScilabString(["Inductor"]);
- mo.inputs = new ScilabString(["p"]);
- mo.outputs = new ScilabString(["n"]);
- mo.parameters = list(new ScilabString(["L"]), list(new ScilabDouble([this.L.toExponential(1)])));
- model.equations = mo;
-
- var exprs = new ScilabString([this.L]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Inductor\",sz(1),sz(2));"]);
- 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);
- }
- Inductor.prototype.details = function Inductor() {
- return this.x;
- }
-}
-
-function INIMPL_f() {
-
- INIMPL_f.prototype.define = 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 = new modelica_function();
- mo.model = new ScilabString(["PORT"]);
- mo.outputs = new ScilabString(["n"]);
- mo.inputs = new ScilabDouble();
- model.equations = mo;
-
- var exprs = new ScilabString(["1"]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;INIMPL_f&quot;,sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([1, 1]), model, exprs, gr_i);
- this.x.graphics.out_implicit = new ScilabString(["I"]);
-
- this.implicitInBlock = new ImplicitInBlock(this.x);
- this.displayParameter = [this.implicitInBlock.ordering];
- return this.implicitInBlock;
- }
- INIMPL_f.prototype.details = function INIMPL_f() {
- return this.x;
- }
-}
-function INTEGRAL_f() {
-
- INTEGRAL_f.prototype.define = function INTEGRAL_f() {
- this.x0 = 0;
-
- var model = scicos_model();
- model.sim = new ScilabString(["integr"]);
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.state = new ScilabDouble([this.x0]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
-
- var exprs = new ScilabString([sci2exp(this.x0)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"INTEGRAL_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- INTEGRAL_f.prototype.details = function INTEGRAL_f() {
- return this.x;
- }
-}
-
-function INTEGRAL_m() {
-
- INTEGRAL_m.prototype.define = function INTEGRAL_m() {
- this.maxp = 1;
- this.minp = -1;
- this.rpar = [];
-
- var model = scicos_model();
- model.state = new ScilabDouble([0]);
- model.sim = list(new ScilabString(["integral_func"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.in2 = new ScilabDouble([1]);
- model.out2 = new ScilabDouble([1]);
- model.rpar = new ScilabDouble();
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
-
- var exprs = new ScilabString([0], [0], [0], [this.maxp], [this.minp]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"INTEGRAL_m\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- INTEGRAL_m.prototype.details = function INTEGRAL_m() {
- return this.x;
- }
-}
-
-function INTMUL() {
-
- INTMUL.prototype.define = function INTMUL() {
- this.sgn = 0;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["matmul_i32"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([-1], [-2]);
- model.out = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2], [-3]);
- model.out2 = new ScilabDouble([-3]);
- model.intyp = new ScilabDouble([3, 3]);
- model.outtyp = new ScilabDouble([3]);
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble([this.sgn]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([sci2exp(3)], [sci2exp(0)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"INTMUL\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- INTMUL.prototype.details = function INTMUL() {
- return this.x;
- }
-}
-
-function INTRP2BLK_f() {
-
- INTRP2BLK_f.prototype.define = function INTRP2BLK_f() {
- this.a = [[0],[1]];
- this.b = [[0],[1]];
- this.c = [[0,1],[1,2]];
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["intrp2"]), new ScilabDouble([1]));
- model.in = new ScilabDouble([1], [1]);
- model.out = new ScilabDouble([1]);
- model.rpar = new ScilabDouble(...this.a,...this.b,...colon_operator(this.c));
- model.ipar = new ScilabDouble([2], [2]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([sci2exp(this.a)],[sci2exp(this.b)],[sci2exp(this.c)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"INTRP2BLK_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- INTRP2BLK_f.prototype.details = function INTRP2BLK_f() {
- return this.x;
- }
-}
-
-function INTRPLBLK_f() {
-
- INTRPLBLK_f.prototype.define = function INTRPLBLK_f() {
- this.a = [[0],[1]];
-
- this.b = [[0],[1]];
-
- var model = scicos_model();
- model.sim = new ScilabString(["intrpl"]);
- model.in = new ScilabDouble(1);
- model.out = new ScilabDouble(1);
- model.rpar = new ScilabDouble(...this.a, ...this.b);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true,false]);
-
- var exprs = new ScilabString([sci2exp(this.a)], [sci2exp(this.b)]);
-
- var gr_i = ["xstringb(orig(1),orig(2),\"INTRPLBLK_f\",sz(1),sz(2));"];
- this.x = new standard_define(new ScilabDouble([2,2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- INTRPLBLK_f.prototype.details = function INTRPLBLK_f() {
- return this.x;
- }
-}
-function INVBLK() {
-
- INVBLK.prototype.define = function INVBLK() {
- this.in1 = -1;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["invblk4"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([this.in1]);
- model.out = new ScilabDouble([this.in1]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([" "]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"INVBLK\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- INVBLK.prototype.details = function INVBLK() {
- return this.x;
- }
-}
-
-function IN_f () {
-
- IN_f.prototype.internal = function IN_f() {
- this.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([this.prt]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false,false]);
-
- var exprs = new ScilabString([sci2exp(this.prt)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"IN_f\",sz(1),sz(2));"]);
- var block = new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i);
- block.graphics.style = new ScilabString(["IN_f"]); // changed
- block.graphics.out_implicit = new ScilabString(["E"]);
- block.graphics.out_style = new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]);
- block.graphics.out_label = new ScilabString([""]);
- return block;
- }
-
- IN_f.prototype.define = function IN_f() {
- this.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([this.prt]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false,false]);
-
- var exprs = new ScilabString([sci2exp(this.prt)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"IN_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i);
-
- this.explicitInBlock = new ExplicitInBlock(this.x);
- this.displayParameter = [this.explicitInBlock.ordering];
- return this.explicitInBlock;
-
- }
-
- IN_f.prototype.details = function IN_f() {
- return this.x;
- }
-}
-function ISELECT_m() {
-
- ISELECT_m.prototype.define = function ISELECT_m() {
- this.z0 = 1;
- this.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.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2]);
- model.intyp = new ScilabDouble([1]);
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble();
- model.firing = new ScilabDouble();
- model.evtin = new ScilabDouble(...ones(this.nout, 1));
- model.dstate = new ScilabDouble([this.z0]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([sci2exp(1)], [sci2exp(this.nout)], [sci2exp(this.z0)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"ISELECT_m\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- ISELECT_m.prototype.details = function ISELECT_m() {
- return this.x;
- }
-}
-
-function LOGBLK_f() {
-
- LOGBLK_f.prototype.define = function LOGBLK_f() {
- this.in1 = 1;
- this.a = Math.E;
-
- var model = scicos_model();
- model.sim = new ScilabString(["logblk"]);
- model.in = new ScilabDouble([-1]);
- model.out = new ScilabDouble([-1]);
- model.rpar = new ScilabDouble([this.a]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString(["%e"]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"LOGBLK_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- LOGBLK_f.prototype.details = function LOGBLK_f() {
- return this.x;
- }
-}
-
-function LOGIC() {
-
- LOGIC.prototype.define = function LOGIC() {
- this.mat = [[0],[0],[0],[1]];
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["logic"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([1], [1]);
- model.in2 = new ScilabDouble([1], [1]);
- model.out = new ScilabDouble([1]);
- model.out2 = new ScilabDouble([1]);
- model.evtin = new ScilabDouble([1]);
- model.intyp = new ScilabDouble([5, 5]);
- model.outtyp = new ScilabDouble([5]);
- model.opar = list(int8(...this.mat));
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabBoolean([false]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([sci2exp(this.mat)], [sci2exp(0)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"LOGIC\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- LOGIC.prototype.details = function LOGIC() {
- return this.x;
- }
-}
-function LOGICAL_OP() {
-
- LOGICAL_OP.prototype.define = function LOGICAL_OP() {
- this.in1 = [[-1], [-1]];
- this.ipar = 0;
- this.nin = 2;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["logicalop"]), new ScilabDouble([4]));
- model.in = new ScilabDouble(...this.in1);
- model.out = new ScilabDouble([-1]);
- model.ipar = new ScilabDouble([this.ipar]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([this.nin], [this.ipar]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"LOGICAL_OP\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- LOGICAL_OP.prototype.details = function LOGICAL_OP() {
- return this.x;
- }
-}
-
-function LOOKUP_f() {
-
- LOOKUP_f.prototype.define = function LOOKUP_f() {
-
- var model = scicos_model();
- model.sim = new ScilabString(["lookup"]);
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.rpar = new ScilabDouble([-2], [-1], [1], [2], [-1], [1], [-1], [1]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"LOOKUP_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, [], gr_i);
- return new BasicBlock(this.x);
- }
- LOOKUP_f.prototype.details = function LOOKUP_f() {
- return this.x;
- }
-}
-
-function MATBKSL() {
-
- MATBKSL.prototype.define = function MATBKSL() {
- this.function_name = "mat_bksl";
- this.funtyp = 4;
-
- var model = scicos_model();
- model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
- model.in = new ScilabDouble([-1], [-1]);
- model.in2 = new ScilabDouble([-2], [-3]);
- model.intyp = new ScilabDouble([1, 1]);
- model.out = new ScilabDouble([-2]);
- model.out2 = new ScilabDouble([-3]);
- model.outtyp = new ScilabDouble([1]);
- model.evtin = new ScilabDouble();
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.dstate = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble();
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = new ScilabString([sci2exp(1)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATBKSL\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
- MATBKSL.prototype.details = function MATBKSL() {
- return this.x;
- }
-}
-
-function MATCATH() {
-
- MATCATH.prototype.define = function MATCATH() {
- this.funtyp = 4;
- this.function_name = "mat_cath";
-
- var model = scicos_model();
- model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
- model.in = new ScilabDouble([-1], [-1]);
- model.in2 = new ScilabDouble([-2], [-3]);
- model.intyp = new ScilabDouble([1, 1]);
- model.out = new ScilabDouble([-1]);
- model.out2 = new ScilabDouble([0]);
- model.outtyp = new ScilabDouble([-1]);
- model.evtin = new ScilabDouble();
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.dstate = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble();
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = new ScilabString([sci2exp(2)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATCATH\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 3]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
- MATCATH.prototype.details = function MATCATH() {
- return this.x;
- }
-}
-
-function MATCATV() {
-
- MATCATV.prototype.define = function MATCATV() {
- this.l1 = [[2], [2]];
- this.function_name = "mat_catv";
- this.funtyp = 4;
-
- var model = scicos_model();
- model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
- model.in2 = new ScilabDouble([-1], [-1]);
- model.in = new ScilabDouble([-2], [-3]);
- model.intyp = new ScilabDouble([-1, -1]);
- model.out = new ScilabDouble([0]);
- model.out2 = new ScilabDouble([-1]);
- model.outtyp = new ScilabDouble([-1]);
- model.evtin = new ScilabDouble();
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.dstate = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble();
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = new ScilabString([sci2exp(2)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATCATV\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 3]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
- MATCATV.prototype.details = function MATCATV() {
- return this.x;
- }
-}
-
-function MATDET() {
-
- MATDET.prototype.define = function MATDET() {
- var model = scicos_model();
-
- this.function_name = "mat_det";
- this.funtyp = 4;
-
- model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-1]);
- model.intyp = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.out2 = new ScilabDouble([1]);
- model.outtyp = new ScilabDouble([1]);
- model.evtin = new ScilabDouble();
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.dstate = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble();
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = new ScilabString([sci2exp(1)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATDET\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
-
- MATDET.prototype.details = function MATDET() {
- return this.x;
- }
-}
-function MATDIAG() {
-
- MATDIAG.prototype.define = function MATDIAG() {
- this.function_name = "mat_diag";
- this.funtyp = 4;
-
- var model = scicos_model();
- model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([1]);
- model.intyp = new ScilabDouble([1]);
- model.out = new ScilabDouble([-1]);
- model.out2 = new ScilabDouble([-1]);
- model.outtyp = new ScilabDouble([1]);
- model.evtin = new ScilabDouble();
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.dstate = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble();
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = new ScilabString([sci2exp(1)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATDIAG\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
- MATDIAG.prototype.details = function MATDIAG() {
- return this.x;
- }
-}
-
-function MATDIV() {
-
- MATDIV.prototype.define = function MATDIV() {
- var model = scicos_model();
-
- this.function_name = "mat_div";
- this.funtyp = 4;
-
- model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
- model.in = new ScilabDouble([-1], [-2]);
- model.in2 = new ScilabDouble([-3], [-3]);
- model.intyp = new ScilabDouble([1, 1]);
- model.out = new ScilabDouble([-1]);
- model.out2 = new ScilabDouble([-2]);
- model.outtyp = new ScilabDouble([1]);
- model.evtin = new ScilabDouble();
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.dstate = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble();
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = new ScilabString([sci2exp(1)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATDIV\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
-
- MATDIV.prototype.details = function MATDIV() {
- return this.x;
- }
-
-}
-function MATEIG() {
-
- MATEIG.prototype.define = function MATEIG() {
- this.function_name = "mat_vps";
- this.funtyp = 4;
-
- var model = scicos_model();
- model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-1]);
- model.intyp = new ScilabDouble([1]);
- model.out = new ScilabDouble([-1]);
- model.out2 = new ScilabDouble([1]);
- model.outtyp = new ScilabDouble([2]);
- model.evtin = new ScilabDouble();
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.dstate = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble();
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = new ScilabString([sci2exp(1)], [sci2exp(1)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATEIG\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
- MATEIG.prototype.details = function MATEIG() {
- return this.x;
- }
-}
-
-function MATEXPM() {
-
- MATEXPM.prototype.define = function MATEXPM() {
- this.function_name = "mat_expm";
- this.funtyp = 4;
- var model = scicos_model();
- model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-1]);
- model.intyp = new ScilabDouble([1]);
- model.out = new ScilabDouble([-1]);
- model.out2 = new ScilabDouble([-1]);
- model.outtyp = new ScilabDouble([1]);
- model.evtin = new ScilabDouble();
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.dstate = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble();
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = new ScilabString([sci2exp(1)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATEXPM\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
- MATEXPM.prototype.details = function MATEXPM() {
- return this.x;
- }
-}
-
-function MATINV() {
-
- MATINV.prototype.define = function MATINV() {
- this.function_name = "mat_inv";
- this.funtyp = 4;
-
- var model = scicos_model();
- model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-1]);
- model.intyp = new ScilabDouble([1]);
- model.out = new ScilabDouble([-1]);
- model.out2 = new ScilabDouble([-1]);
- model.outtyp = new ScilabDouble([1]);
- model.evtin = new ScilabDouble();
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.dstate = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble();
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = new ScilabString([sci2exp(1)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATINV\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
- MATINV.prototype.details = function MATINV() {
- return this.x;
- }
-}
-
-function MATLU() {
-
- MATLU.prototype.define = function MATLU() {
- this.function_name = "mat_lu";
- this.funtyp = 4;
-
- var model = scicos_model();
- model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-1]);
- model.intyp = new ScilabDouble([1]);
- model.out = new ScilabDouble([-1], [-1]);
- model.out2 = new ScilabDouble([-1], [-1]);
- model.outtyp = new ScilabDouble([1, 1]);
- model.evtin = new ScilabDouble();
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.dstate = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble();
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = new ScilabString([sci2exp(1)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATLU\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
- MATLU.prototype.details = function CSCOPE() {
- return this.x;
- }
-}
-
-function MATMAGPHI() {
-
- MATMAGPHI.prototype.define = function MATMAGPHI() {
- this.function_name = "matz_abs";
- this.funtyp = 4;
-
- var model = scicos_model();
- model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2]);
- model.intyp = new ScilabDouble([2]);
- model.out = new ScilabDouble([-1], [-1]);
- model.out2 = new ScilabDouble([-2], [-2]);
- model.outtyp = new ScilabDouble([1, 1]);
- model.evtin = new ScilabDouble();
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.dstate = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble();
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = new ScilabString([sci2exp(1)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATMAGPHI\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
- MATMAGPHI.prototype.details = function MATMAGPHI() {
- return this.x;
- }
-}
-
-function MATMUL() {
-
- MATMUL.prototype.define = function MATMUL() {
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["matmul_m"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([-1], [-2]);
- model.in2 = new ScilabDouble([-2], [-3]);
- model.out = new ScilabDouble([-1]);
- model.out2 = new ScilabDouble([-3]);
- model.dep_ut = new ScilabBoolean([true, false]);
- model.ipar = new ScilabDouble([1]);
-
- var label = new ScilabString([sci2exp(parseInt(getData(model.ipar)))]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATMUL\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
- MATMUL.prototype.details = function MATMUL() {
- return this.x;
- }
-}
-
-function MATPINV() {
-
- MATPINV.prototype.define = function MATPINV() {
- this.function_name = "mat_pinv";
- this.funtyp = 4;
-
- var model = scicos_model();
- model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
- model.in = new ScilabDouble([-1]);
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2]);
- model.intyp = new ScilabDouble([1]);
- model.out = new ScilabDouble([-2]);
- model.out2 = new ScilabDouble([-1]);
- model.outtyp = new ScilabDouble([1]);
- model.evtin = new ScilabDouble();
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.dstate = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble();
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = new ScilabString([sci2exp(1)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATPINV\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
- MATPINV.prototype.details = function MATPINV() {
- return this.x;
- }
-}
-
-function MATRESH() {
-
- MATRESH.prototype.define = function MATRESH() {
- this.function_name = "mat_reshape";
- this.funtyp = 4;
-
- var model = scicos_model();
- model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2]);
- model.intyp = new ScilabDouble([1]);
- model.out = new ScilabDouble([-1]);
- model.out2 = new ScilabDouble([-2]);
- model.outtyp = new ScilabDouble([1]);
- model.evtin = new ScilabDouble();
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.dstate = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble();
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = new ScilabString([sci2exp(1)], [sci2exp([1, 1])], [sci2exp([1, 1])]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATRESH\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
- MATRESH.prototype.details = function MATRESH() {
- return this.x;
- }
-}
-
-function MATSING() {
-
- MATSING.prototype.define = function MATSING() {
- var model = scicos_model();
-
- this.function_name = "mat_sing";
- this.funtyp = 4;
-
- model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2]);
- model.intyp = new ScilabDouble([1]);
- model.out = new ScilabDouble([-1]);
- model.out2 = new ScilabDouble([1]);
- model.outtyp = new ScilabDouble([1]);
- model.evtin = new ScilabDouble();
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.dstate = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble();
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = new ScilabString([sci2exp(1)], [sci2exp(1)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATSING\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
-
- MATSING.prototype.details = function MATSING() {
- return this.x;
- }
-}
-function MATSUM() {
-
- MATSUM.prototype.define = function MATSUM() {
- this.function_name = "mat_sum";
- this.funtyp = 4;
-
- var model = scicos_model();
- model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2]);
- model.intyp = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.out2 = new ScilabDouble([1]);
- model.outtyp = new ScilabDouble([1]);
- model.evtin = new ScilabDouble();
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.dstate = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble();
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = new ScilabString([sci2exp(1)], [sci2exp(0)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATSUM\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
- MATSUM.prototype.details = function MATSUM() {
- return this.x;
- }
-}
-
-function MATTRAN() {
-
- MATTRAN.prototype.define = function MATTRAN() {
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["mattran_m"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2]);
- model.out = new ScilabDouble([-2]);
- model.out2 = new ScilabDouble([-1]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = new ScilabString([sci2exp(1)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATTRAN\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
- MATTRAN.prototype.details = function MATTRAN() {
- return this.x;
- }
-}
-
-function MATZCONJ() {
-
- MATZCONJ.prototype.define = function MATZCONJ() {
- this.function_name = "matz_conj";
- this.funtyp = 4;
-
- var model = scicos_model();
- model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2]);
- model.intyp = new ScilabDouble([2]);
- model.out = new ScilabDouble([-1]);
- model.out2 = new ScilabDouble([-2]);
- model.outtyp = new ScilabDouble([2]);
- model.evtin = new ScilabDouble();
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.dstate = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble();
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = new ScilabDouble();
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATZCONJ\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
- MATZCONJ.prototype.details = function MATZCONJ() {
- return this.x;
- }
-}
-
-function MATZREIM() {
- MATZREIM.prototype.define = function MATZREIM() {
- var model = scicos_model();
-
- this.function_name = "matz_reim";
- this.funtyp = new ScilabDouble([4]);
- model.sim = list(this.function_name, this.funtyp);
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2]);
- model.intyp = new ScilabDouble([2]);
- model.out = new ScilabDouble(-1, -1);
- model.out2 = new ScilabDouble(-2, -2);
- model.outtyp = new ScilabDouble([1,1]);
- model.evtin = new ScilabDouble();
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.dstate = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble();
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true,false]);
-
- this.label = sci2exp(new ScilabDouble(1));
-
- var gr_i = ["xstringb(orig(1),orig(2),\"MATZREIM\",sz(1),sz(2));"];
- this.x = new standard_define(new ScilabDouble([3,2]), model, this.label, gr_i);
- return new BasicBlock(this.x);
- }
-
- MATZREIM.prototype.details = function MATZREIM() {
- return this.x;
- }
-}
-function MAXMIN() {
-
- MAXMIN.prototype.define = function MAXMIN() {
- var model = scicos_model();
- model.sim = list(new ScilabString(["minmax"]), new ScilabDouble([4]));
- model.out = new ScilabDouble([1]);
- model.in = new ScilabDouble([-1]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
- model.ipar = new ScilabDouble([0]);
-
- var exprs = new ScilabString(...math.transpose([[2, 1, 1]]));
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MAXMIN\",sz(1),sz(2));"]);
- 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);
- }
-
- MAXMIN.prototype.details = function MAXMIN() {
- return this.x;
- }
-}
-function MAX_f() {
-
- MAX_f.prototype.define = function MAX_f() {
- this.in = new ScilabDouble([-1]);
-
- var model = scicos_model();
- model.sim = new ScilabString(["maxblk"]);
- model.in = this.in;
- model.out = new ScilabDouble(1);
- model.dstate = new ScilabDouble([0], [0]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([" "]);
-
- var gr_i = ["xstringb(orig(1),orig(2),\"MAX_f\",sz(1),sz(2));"];
- this.x = new standard_define(new ScilabDouble([2,2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- MAX_f.prototype.details = function MAX_f() {
- return this.x;
- }
-}
-function MBLOCK() {
-
- MBLOCK.prototype.define = function MBLOCK() {
- this.in1 = ["u1"];
- this.intype = ["I"];
- this.out = [["y1"],["y2"]];
- this.outtype = [["I"],["E"]];
- this.param = [["R"],["L"]];
- this.paramv = list(new ScilabDouble([0.1]), new ScilabDouble([0.0001]));
- this.pprop = [[0],[0]];
- this.nameF = "generic";
-
- var exprs = tlist(["MBLOCK", "in", "intype", "out", "outtype", "param", "paramv", "pprop", "nameF", "funtxt"], new ScilabString(["MBLOCK", "in", "intype", "out", "outtype", "param", "paramv", "pprop", "nameF", "funtxt"]), new ScilabString([sci2exp(this.in1)]), new ScilabString([sci2exp(this.intype)]), new ScilabString([sci2exp(this.out)]), new ScilabString([sci2exp(this.outtype)]), new ScilabString([sci2exp(this.param)]), list(new ScilabString([0.1]), new ScilabString([0.0001])), new ScilabString([sci2exp(this.pprop)]), new ScilabString([this.nameF]), new ScilabDouble());
-
- var model = scicos_model();
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
- model.rpar = [];
-
- for (var i = 0; i < this.paramv.length; i++) {
- model.rpar.push(getData(this.paramv[i]));
- }
-
- model.rpar = new ScilabDouble(...model.rpar);
- var mo = new modelica_function();
- mo.model = new ScilabString([this.nameF]);
- mo.parameters = list(new ScilabString(...this.param), this.paramv);
- model.sim = list(mo.model, new ScilabDouble([30004]));
- mo.inputs = new ScilabString(this.in1);
- mo.outputs = new ScilabString(...this.out);
- model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "r"), 1));
- model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "r"), 1));
- model.equations = mo;
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MBLOCK\",sz(1),sz(2));"]);
-
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- this.x.graphics.in_implicit = new ScilabString(this.intype);
- this.x.graphics.out_implicit = new ScilabString(...this.outtype);
- return new BasicBlock(this.x);
- }
-
- MBLOCK.prototype.details = function MBLOCK() {
- return this.x;
- }
-}
-function MCLOCK_f() {
-
- MCLOCK_f.prototype.define = function MCLOCK_f() {
- this.nn = 2;
- this.dt = 0.1;
- var exprs = new ScilabString([this.dt], [this.nn]);
-
- var mfclck = new MFCLCK_f().internal();
- 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([this.nn]);
- mfclck.model.firing = new ScilabDouble([-1, 0]);
- mfclck.model.uid = new ScilabString([count]);
- mfclck.doc = list(new ScilabString([count++]));
-
- var clksom = new CLKSOM_f().internal();
- 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]);
- clksom.model.uid = new ScilabString([count]);
- clksom.doc = list(new ScilabString([count++]));
-
- var output_port1 = new CLKOUT_f().internal();
- 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]);
- output_port1.model.uid = new ScilabString([count]);
- output_port1.doc = list(new ScilabString([count++]));
-
- var output_port2 = new CLKOUT_f().internal();
- 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]);
- output_port2.model.uid = new ScilabString([count]);
- output_port2.doc = list(new ScilabString([count++]));
-
- var split1 = new CLKSPLIT_f().internal();
- split1.graphics.orig = new ScilabDouble([411.92504, 169.33333]);
- split1.graphics.pein = new ScilabDouble([3]);
- split1.graphics.peout = new ScilabDouble([9], [10]);
- split1.model.uid = new ScilabString([count]);
- split1.doc = list(new ScilabString([count++]));
-
- var split2 = new CLKSPLIT_f().internal();
- split2.graphics.orig = new ScilabDouble([482.45315, 169.33333]);
- split2.graphics.pein = new ScilabDouble([5]);
- split2.graphics.peout = new ScilabDouble([12], [13]);
- split2.model.uid = new ScilabString([count]);
- split2.doc = list(new ScilabString([count++]));
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;MCLOCK_f&quot;,sz(1),sz(2));"]);
-
- var diagram = scicos_diagram();
- diagram.objs.push(mfclck);
- diagram.objs.push(clksom);
- diagram.objs.push(output_port1);
- diagram.objs.push(output_port2);
- diagram.objs.push(split1);
- diagram.objs.push(split2);
-
- 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, 0]),
- to: new ScilabDouble([5, 1, 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, 0]),
- to: new ScilabDouble([2, 1, 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, 0]),
- to: new ScilabDouble([6, 1, 1])
- }));
- 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([5, 1, 0]),
- to: new ScilabDouble([2, 2, 1])
- }));
- 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([5, 2, 0]),
- to: new ScilabDouble([3, 1, 1])
- }));
- 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([6, 1, 0]),
- to: new ScilabDouble([1, 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([6, 2, 0]),
- to: new ScilabDouble([4, 1, 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);
- }
- MCLOCK_f.prototype.details = function MCLOCK_f() {
- return this.x;
- }
-}
-function MFCLCK_f() {
-
- MFCLCK_f.prototype.define = function MFCLCK_f() {
- this.nn = 2;
- this.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([this.dt]);
- model.ipar = new ScilabDouble([this.nn]);
- model.blocktype = new ScilabString(["d"]);
- model.firing = new ScilabDouble([-1], [0]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([this.dt], [this.nn]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MFCLCK_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- MFCLCK_f.prototype.internal = function MFCLCK_f() {
- this.nn = 2;
- this.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([this.dt]);
- model.ipar = new ScilabDouble([this.nn]);
- model.blocktype = new ScilabString(["d"]);
- model.firing = new ScilabDouble([-1], [0]);
- model.dep_ut = new ScilabBoolean([false, false]);
- model.outtyp = new ScilabDouble();
-
- var exprs = new ScilabString([this.dt], [this.nn]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MFCLCK_f\",sz(1),sz(2));"]);
- var block = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- block.graphics.style = new ScilabString(["MFCLCK_f"]);
- return block;
- }
- MFCLCK_f.prototype.details = function MFCLCK_f() {
- return this.x;
- }
-}
-function MIN_f() {
-
- MIN_f.prototype.define = function MIN_f() {
- this.in1 = -1;
-
- var model = scicos_model();
- model.sim = new ScilabString(["minblk"]);
- model.in = new ScilabDouble([this.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 = new ScilabString([sci2exp(this.in1)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MIN_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- MIN_f.prototype.details = function MIN_f() {
- return this.x;
- }
-}
-
-function Modulo_Count() {
-
- Modulo_Count.prototype.define = function Modulo_Count() {
- this.ini_c = 0;
- this.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([this.ini_c]);
- model.ipar = new ScilabDouble([this.base]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([this.ini_c], [this.base]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Modulo_Count\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- Modulo_Count.prototype.internal = function Modulo_Count() {
- this.ini_c = 0;
- this.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.out2 = new ScilabDouble([1]);
- model.dstate = new ScilabDouble([this.ini_c]);
- model.ipar = new ScilabDouble([this.base]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([this.ini_c], [this.base]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Modulo_Count\",sz(1),sz(2));"]);
- var block = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- block.graphics.style = new ScilabString(["Modulo_Count"]);
- return block;
- }
- Modulo_Count.prototype.details = function Modulo_Count() {
- return this.x;
- }
-}
-function MUX() {
-
- MUX.prototype.define = function MUX() {
- this.in1 = 2;
- var arr = [];
- arr.push(math.range(-1, -this.in1, -1, true)._data);
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["multiplex"]), new ScilabDouble([4]));
- model.in = new ScilabDouble(...math.transpose(arr));
- model.out = new ScilabDouble([0]);
- model.ipar = new ScilabDouble([this.in1]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([this.in1]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MUX\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([.5, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- MUX.prototype.details = function MUX() {
- return this.x;
- }
-}
-
-function MUX_f() {
-
- MUX_f.prototype.define = function MUX_f() {
- this.in1 = 2;
- var arr = [];
- arr.push(math.range(-1, -this.in1, -1, true)._data);
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["mux"]), new ScilabDouble([1]));
- model.in = new ScilabDouble(...math.transpose(arr));
- model.out = new ScilabDouble([0]);
- model.ipar = new ScilabDouble([this.in1]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([this.in1]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MUX_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([0.5, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- MUX_f.prototype.details = function MUX_f() {
- return this.x;
- }
-}
-
-function M_freq() {
-
- M_freq.prototype.define = 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, 1, 0], [1, 1, 1], [1, 3, 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 = new ScilabString([sci2exp([[1], [2]])], [sci2exp([[0], [0]])]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"M_freq\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- M_freq.prototype.details = function M_freq() {
- return this.x;
- }
-}
-function M_SWITCH() {
-
- M_SWITCH.prototype.define = function M_SWITCH() {
- this.in1 = [[1], [-1], [-1]];
- this.ipar = [[1], [3]];
- this.nin = 2;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["mswitch"]), new ScilabDouble([4]));
- model.in = new ScilabDouble(...this.in1);
- model.out = new ScilabDouble([-1]);
- model.ipar = new ScilabDouble(...this.ipar);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([this.nin], ...this.ipar);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"M_SWITCH\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2.5, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- M_SWITCH.prototype.details = function M_SWITCH() {
- return this.x;
- }
-}
-
-function NEGTOPOS_f() {
-
- NEGTOPOS_f.prototype.define = function NEGTOPOS_f() {
- var model = scicos_model();
- model.sim = list(new ScilabString(["zcross"]), new ScilabDouble([1]));
- model.nzcross = new ScilabDouble([1]);
- model.in = new ScilabDouble([1]);
- model.evtout = new ScilabDouble([1]);
- model.rpar = new ScilabDouble([-1], [-1], [0], [-1]);
- model.blocktype = new ScilabString(["z"]);
- model.firing = new ScilabDouble([-1]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"NEGTOPOS_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, new ScilabDouble(), gr_i);
- return new BasicBlock(this.x);
- }
-
- NEGTOPOS_f.prototype.details = function NEGTOPOS_f() {
- return this.x;
- }
-}
-function NMOS() {
-
- NMOS.prototype.define = function NMOS() {
- this.W = 20.e-6;
- this.L = 6.e-6;
- this.Beta = 0.041e-3;
- this.Vt = 0.8;
- this.K2 = 1.144;
- this.K5 = 0.7311;
- this.dW = -2.5e-6;
- this.dL = -1.5e-6;
- this.RDS = 1.e+7;
-
- var model = scicos_model();
- model.sim = new ScilabString(["NMOS"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- 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"]), new ScilabDouble([this.W], [this.L], [this.Beta], [this.Vt], [this.K2], [this.K5], [this.dW], [this.dL], [this.RDS]));
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
- model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
-
- var exprs = new ScilabString([this.W], [this.L], [this.Beta], [this.Vt], [this.K2], [this.K5], [this.dW], [this.dL], [this.RDS]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"NMOS\",sz(1),sz(2));"]);
- 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);
- }
- NMOS.prototype.details = function NMOS() {
- return this.x;
- }
-}
-
-function NPN() {
-
- NPN.prototype.define = function NPN() {
- this.ModelName = "NPN";
- this.PrametersValue = [[50], [0.1], [0], [0.02], [1.200e-10], [5.000e-09], [1.000e-12], [4.000e-13], [5.000e-13], [0.8], [0.4], [0.8], [0.333], [1.000e-15], [1.000e-15], [0.02585], [40]];
- this.ParametersName = [["Bf"], ["Br"], ["Is"], ["Vak"], ["Tauf"], ["Taur"], ["Ccs"], ["Cje"], ["Cjc"], ["Phie"], ["Me"], ["Phic"], ["Mc"], ["Gbc"], ["Gbe"], ["Vt"], ["EMinMax"]];
- this.model = scicos_model();
- this.Typein = [];
- this.Typeout = [];
- this.MI = [];
- this.MO = [];
- this.P = [[100, 90, -2, 0], [0, 50, 2, 0], [100, 10, -2, 0]];
- this.PortName = [["C"], ["B"], ["E"]];
-
- for (var i = 0; i < size(this.P, "r"); i++) {
- if (this.P[i][2] == 1) {
- this.Typein.push(["E"]);
- this.MI.push(this.PortName[i]);
- }
- if (this.P[i][2] == 2) {
- this.Typein.push(["I"]);
- this.MI.push(this.PortName[i]);
- }
- if (this.P[i][2] == -1) {
- this.Typeout.push(["E"]);
- this.MO.push(this.PortName[i]);
- }
- if (this.P[i][2] == -2) {
- this.Typeout.push(["I"]);
- this.MO.push(this.PortName[i]);
- }
- }
- var model = scicos_model();
- var mo = new modelica_function();
- model.sim = new ScilabString([this.ModelName]);
- mo.inputs = new ScilabString(...this.MI);
- mo.outputs = new ScilabString(...this.MO);
- model.rpar = new ScilabDouble(...this.PrametersValue);
- mo.parameters = list(new ScilabString(...this.ParametersName), new ScilabDouble(...this.PrametersValue), new ScilabDouble(...zeros(this.ParametersName)));
- var exprs = new ScilabString(["50"], ["0.1"], ["1.e-16"], ["0.02"], ["0.12e-9"], ["5e-9"], ["1e-12"], ["0.4e-12"], ["0.5e-12"], ["0.8"], ["0.4"], ["0.8"], ["0.333"], ["1e-15"], ["1e-15"], ["0.02585"], ["40"]);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;NPN&quot;,sz(1),sz(2));"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
- mo.model = new ScilabString([this.ModelName]);
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
- model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
- this.x = standard_define([2, 2], model, exprs, list(gr_i, new ScilabDouble([0])));
- this.x.graphics.in_implicit = new ScilabString(...this.Typein);
- this.x.graphics.out_implicit = new ScilabString(...this.Typeout);
- return new BasicBlock(this.x);
- }
- NPN.prototype.details = function NPN() {
- return this.x;
- }
-}
-function NRMSOM_f() {
-
- NRMSOM_f.prototype.define = function NRMSOM_f() {
- this.in1 = [[-1], [-1]];
- this.nin = 2;
-
- var model = scicos_model();
- model.sim = new ScilabString(["junk"]);
- model.in = new ScilabDouble(...this.in1);
- model.out = new ScilabDouble([-1]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([this.nin]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"NRMSOM_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([.2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- NRMSOM_f.prototype.details = function NRMSOM_f() {
- return this.x;
- }
-}
-
-function OpAmp() {
-
- OpAmp.prototype.define = function OpAmp() {
- this.S = [];
- this.Z = [];
-
- var model = scicos_model();
- model.sim = new ScilabString(["OpAmp"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- mo.model = model.sim;
- mo.inputs = new ScilabString(["in_p"], ["in_n"]);
- mo.outputs = new ScilabString(["out"]);
- mo.parameters = list(new ScilabDouble(), new ScilabDouble());
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
- model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
- model.rpar = new ScilabDouble();
-
- var exprs = new ScilabString();
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"OpAmp\",sz(1),sz(2));"]);
- 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);
- }
- OpAmp.prototype.details = function OpAmp() {
- return this.x;
- }
-}
-
-function OUTIMPL_f() {
-
- OUTIMPL_f.prototype.define = function OUTIMPL_f() {
- var model = scicos_model();
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([1]);
-
- this.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 = new modelica_function();
- mo.model = new ScilabString(["PORT"]);
- mo.inputs = new ScilabString(["n"]);
- mo.outputs = new ScilabDouble();
- model.equations = mo;
-
- var exprs = new ScilabString(["1"]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;OUTIMPL_f&quot;,sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([1, 1]), model, exprs, gr_i);
- this.x.graphics.in_implicit = new ScilabString(["I"]);
-
- this.implicitOutBlock = new ImplicitOutBlock(this.x);
- this.displayParameter = [this.implicitOutBlock.ordering];
- return this.implicitOutBlock;
- }
- OUTIMPL_f.prototype.details = function OUTIMPL_f() {
- return this.x;
- }
-}
-function OUT_f () {
-
- OUT_f.prototype.internal = function OUT_f() {
- this.n = -1;
- this.prt = 1;
-
- var model = scicos_model();
- model.sim = new ScilabString(["output"]);
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2]);
- model.intyp = new ScilabDouble([-1]);
- model.ipar = new ScilabDouble([this.prt]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false,false]);
- var exprs = new ScilabString([sci2exp(this.prt)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"OUT_f\",sz(1),sz(2));"]);
- var block=new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i);
- block.graphics.style = new ScilabString(["OUT_f"]); // changed
- block.graphics.in_style = new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]);
- block.graphics.in_label = new ScilabString([""]);
- block.graphics.in_implicit = new ScilabString(["E"]);
- return block;
- }
-
- OUT_f.prototype.define = function OUT_f() {
- this.n = -1;
- this.prt = 1;
-
- var model = scicos_model();
- model.sim = new ScilabString(["output"]);
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2]);
- model.intyp = new ScilabDouble([-1]);
- model.ipar=new ScilabDouble([this.prt]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false,false]);
-
- var exprs = new ScilabString([sci2exp(this.prt)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"OUT_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i);
- this.x.graphics.style = new ScilabString(["OUT_f"]);
-
- this.explicitOutBlock = new ExplicitOutBlock(this.x);
- this.displayParameter = [this.explicitOutBlock.ordering];
- return this.explicitOutBlock;
- }
-
- OUT_f.prototype.details = function OUT_f() {
- return this.x;
- }
-}
-function PDE() {
-
- PDE.prototype.define = function PDE() {
- this.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"], new ScilabString(["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"]), new ScilabString([""]), new ScilabString([""]), new ScilabString([""]), new ScilabString(["0"]), new ScilabString([""]), new ScilabString(["IN_EDP1(t)"]), new ScilabString(["0"]), new ScilabString([""]), new ScilabString(["IN_EDP2(t)"]), new ScilabString(["0"]), new ScilabString([""]), new ScilabString(["IN_EDP3(t)"]), new ScilabString(["0"]), new ScilabString([""]), new ScilabString(["IN_EDP4(t)"]), new ScilabString(["0"]), new ScilabString([""]), new ScilabString(["IN_EDP5(t)"]), new ScilabString(["0"]), new ScilabString([""]), new ScilabString(["IN_EDP6(t)"]), new ScilabString(["0"]), new ScilabString([""]), new ScilabString(["IN_EDP7(t)"]), new ScilabString(["0"]), new ScilabString(["0"]), new ScilabString(["0"]), new ScilabString(["0"]), new ScilabString(["0"]), new ScilabString(["0"]), new ScilabString([""]), new ScilabString([""]), new ScilabString([""]), new ScilabString([""]), new ScilabString([""]), new ScilabString([""]), new ScilabString([""]), new ScilabString([""]), new ScilabString(["0"]), new ScilabString(["IN_CL1(t)"]), new ScilabString(["0"]), new ScilabString(["IN_CL2(t)"]), new ScilabString([""]));
-
- var model = scicos_model();
- model.state = new ScilabDouble(...zeros(10, 1));
- model.sim = list(new ScilabString(["PDE"]), new ScilabDouble([0]));
- model.in = new ScilabDouble([1], [1], [1], [1], [1]);
- model.out = new ScilabDouble([10], [0]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
-
- var label = list(this.params_pde, new ScilabDouble(), new ScilabString([""]));
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"PDE\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 3]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
- PDE.prototype.details = function PDE() {
- return this.x;
- }
-}
-
-function PerteDP() {
-
- PerteDP.prototype.define = function PerteDP() {
- this.L = 10;
- this.D = 0.2;
- this.lambda = 0.03;
- this.z1 = 0;
- this.z2 = 0;
- this.p_rho = 0;
-
- var model = scicos_model();
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.rpar = new ScilabDouble([this.L], [this.D], [this.lambda], [this.z1], [this.z2], [this.p_rho]);
- model.sim = new ScilabString(["PerteDP"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- 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"]), new ScilabDouble([this.L], [this.D], [this.lambda], [this.z1], [this.z2], [this.p_rho]));
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
- model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
-
- var exprs = new ScilabString([this.L], [this.D], [this.lambda], [this.z1], [this.z2], [this.p_rho]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"PerteDP\",sz(1),sz(2));"]);
- 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);
- }
- PerteDP.prototype.details = function PerteDP() {
- return this.x;
- }
-
-}
-
-function PID() {
-
- PID.prototype.define = function PID() {
- var scs_m = scicos_diagram({
- version: new ScilabString(["scicos4.2"]),
- props: scicos_params({
- wpar: new ScilabDouble([600, 450, 0, 0, 600, 450]),
- Title: new ScilabString(["PID"]),
- tol: new ScilabDouble([0.0001], [0.000001], [1.000E-10], [100001], [0], [0], [0]),
- tf: new ScilabDouble([100000]),
- context: new ScilabString([" "]),
- void1: new ScilabDouble(),
- options: tlist(["scsopt", "3D", "Background", "Link", "ID", "Cmap"], new ScilabString(["scsopt", "3D", "Background", "Link", "ID", "Cmap"]), list(new ScilabBoolean([true]), new ScilabDouble([33])), new ScilabDouble([8, 1]), new ScilabDouble([1, 5]), list(new ScilabDouble([5, 1]), new ScilabDouble([4, 1])), new ScilabDouble([0.8, 0.8, 0.8])),
- void2: new ScilabDouble(),
- void3: new ScilabDouble(),
- doc: list()
- })
- });
- scs_m.objs.push(scicos_block({
- gui: new ScilabString(["INTEGRAL_m"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([318.304, 183.11733]),
- sz: new ScilabDouble([40, 40]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["0"], ["0"], ["0"], ["1"], ["-1"]),
- pin: new ScilabDouble([7]),
- pout: new ScilabDouble([9]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;INTEGRAL_m&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString(["1/s"]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabString(["E"]),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- out_label: new ScilabString([""]),
- style: new ScilabString(["INTEGRAL_m"])
- }),
- model: scicos_model({
- sim: list(new ScilabString(["integral_func"]), new ScilabDouble([4])),
- in: new ScilabDouble([1]),
- in2: new ScilabDouble([1]),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble([1]),
- out2: new ScilabDouble([1]),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble([0]),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, true]),
- label: new ScilabString(["1/s"]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_block({
- gui: new ScilabString(["SUMMATION"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([387.97067, 172.85067]),
- sz: new ScilabDouble([40, 60]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["1"], ["[1;1;1]"]),
- pin: new ScilabDouble([10], [9], [11]),
- pout: new ScilabDouble([19]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;SUMMATION&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"], ["E"], ["E"]),
- out_implicit: new ScilabString(["E"]),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""], [""], [""]),
- out_label: new ScilabString([""]),
- style: new ScilabString(["SUMMATION"])
- }),
- model: scicos_model({
- sim: list(new ScilabString(["summation"]), new ScilabDouble([4])),
- in: new ScilabDouble([-1], [-1], [-1]),
- in2: new ScilabDouble([-2], [-2], [-2]),
- intyp: new ScilabDouble([1], [1], [1]),
- out: new ScilabDouble([-1]),
- out2: new ScilabDouble([-2]),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([1], [1], [1]),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([true, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_block({
- gui: new ScilabString(["GAINBLK"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([321.23733, 235.91733]),
- sz: new ScilabDouble([40, 40]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["1"]),
- pin: new ScilabDouble([17]),
- pout: new ScilabDouble([10]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;GAINBLK&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabString(["E"]),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- out_label: new ScilabString([""]),
- style: new ScilabString(["GAINBLK"])
- }),
- model: scicos_model({
- sim: list(new ScilabString(["gainblk"]), new ScilabDouble([4])),
- in: new ScilabDouble([-1]),
- in2: new ScilabDouble([-2]),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble([-1]),
- out2: new ScilabDouble([-2]),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble([1]),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([true, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_block({
- gui: new ScilabString(["DERIV"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([319.03733, 135.45067]),
- sz: new ScilabDouble([40, 40]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabDouble(),
- pin: new ScilabDouble([8]),
- pout: new ScilabDouble([11]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;DERIV&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString(["s"]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabString(["E"]),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- out_label: new ScilabString([""]),
- style: new ScilabString(["DERIV"])
- }),
- model: scicos_model({
- sim: list(new ScilabString(["deriv"]), new ScilabDouble([4])),
- in: new ScilabDouble([-1]),
- in2: new ScilabDouble([-2]),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble([-1]),
- out2: new ScilabDouble([-2]),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["x"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([true, false]),
- label: new ScilabString(["s"]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_block({
- gui: new ScilabString(["GAINBLK"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([255.23733, 183.11733]),
- sz: new ScilabDouble([40, 40]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["1"]),
- pin: new ScilabDouble([13]),
- pout: new ScilabDouble([7]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;GAINBLK&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabString(["E"]),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- out_label: new ScilabString([""]),
- style: new ScilabString(["GAINBLK"])
- }),
- model: scicos_model({
- sim: list(new ScilabString(["gainblk"]), new ScilabDouble([4])),
- in: new ScilabDouble([-1]),
- in2: new ScilabDouble([-2]),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble([-1]),
- out2: new ScilabDouble([-2]),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble([1]),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([true, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_block({
- gui: new ScilabString(["GAINBLK"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([255.23733, 135.45067]),
- sz: new ScilabDouble([40, 40]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["1"]),
- pin: new ScilabDouble([14]),
- pout: new ScilabDouble([8]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;GAINBLK&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabString(["E"]),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- out_label: new ScilabString([""]),
- style: new ScilabString(["GAINBLK"])
- }),
- model: scicos_model({
- sim: list(new ScilabString(["gainblk"]), new ScilabDouble([4])),
- in: new ScilabDouble([-1]),
- in2: new ScilabDouble([-2]),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble([-1]),
- out2: new ScilabDouble([-2]),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble([1]),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([true, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_block({
- gui: new ScilabString(["SPLIT_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([234.704, 203.11733]),
- sz: new ScilabDouble([0.3333333, 0.3333333]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabDouble(),
- pin: new ScilabDouble([16]),
- pout: new ScilabDouble([16], [17], [0]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;SPLIT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabString(["E"], ["E"], ["E"]),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- out_label: new ScilabString([""], [""], [""]),
- style: new ScilabString(["SPLIT_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["lsplit"]),
- in: new ScilabDouble([-1]),
- in2: new ScilabDouble([1]),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble([-1], [-1], [-1]),
- out2: new ScilabDouble([1], [1], [1]),
- outtyp: new ScilabDouble([1], [1], [1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([true, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_block({
- gui: new ScilabString(["SPLIT_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([233.97067, 203.11733]),
- sz: new ScilabDouble([0.3333333, 0.3333333]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabDouble(),
- pin: new ScilabDouble([21]),
- pout: new ScilabDouble([18], [19], [0]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;SPLIT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabString(["E"], ["E"], ["E"]),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- out_label: new ScilabString([""], [""], [""]),
- style: new ScilabString(["SPLIT_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["lsplit"]),
- in: new ScilabDouble([-1]),
- in2: new ScilabDouble([1]),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble([-1], [-1], [-1]),
- out2: new ScilabDouble([1], [1], [1]),
- outtyp: new ScilabDouble([1], [1], [1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([true, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_block({
- gui: new ScilabString(["OUT_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([456.5421, 192.85067]),
- sz: new ScilabDouble([20, 20]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["1"]),
- pin: new ScilabDouble([19]),
- pout: new ScilabDouble(),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;OUT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabDouble(),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- style: new ScilabString(["OUT_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["output"]),
- in: new ScilabDouble([-1]),
- in2: new ScilabDouble([1]),
- intyp: new ScilabDouble([-1]),
- out: new ScilabDouble(),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble(),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([1]),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_block({
- gui: new ScilabString(["IN_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([193.97067, 193.11733]),
- sz: new ScilabDouble([20, 20]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["1"]),
- pin: new ScilabDouble(),
- pout: new ScilabDouble([21]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;IN_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabDouble(),
- out_implicit: new ScilabString(["E"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_label: new ScilabString([""]),
- style: new ScilabString(["IN_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["input"]),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble(),
- out: new ScilabDouble([-1]),
- out2: new ScilabDouble([1]),
- outtyp: new ScilabDouble([-1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([1]),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
-
- scs_m.objs.push(scicos_link({
- xx: new ScilabDouble([303.80876], [309.73257]),
- yy: new ScilabDouble([203.11733], [203.11733]),
- id: new ScilabString(["drawlink"]),
- 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], [310.4659]),
- yy: new ScilabDouble([155.45067], [155.45067]),
- id: new ScilabString(["drawlink"]),
- 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], [379.39924]),
- yy: new ScilabDouble([203.11733], [202.85067]),
- id: new ScilabString(["drawlink"]),
- 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], [379.39924], [379.39924]),
- yy: new ScilabDouble([255.91733], [255.91733], [217.85067]),
- id: new ScilabString(["drawlink"]),
- 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], [379.39924], [379.39924]),
- yy: new ScilabDouble([155.45067], [155.45067], [187.85067]),
- id: new ScilabString(["drawlink"]),
- 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_link({
- xx: new ScilabDouble([234.704], [246.6659]),
- yy: new ScilabDouble([203.11733], [203.11733]),
- id: new ScilabString(["drawlink"]),
- 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], [234.704], [246.6659]),
- yy: new ScilabDouble([203.11733], [155.45067], [155.45067]),
- id: new ScilabString(["drawlink"]),
- 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_link({
- xx: new ScilabDouble([233.97067], [234.704]),
- yy: new ScilabDouble([203.11733], [203.11733]),
- id: new ScilabString(["drawlink"]),
- 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], [233.97067], [312.6659]),
- yy: new ScilabDouble([203.11733], [255.91733], [255.91733]),
- id: new ScilabString(["drawlink"]),
- 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_link({
- xx: new ScilabDouble([436.5421], [456.5421]),
- yy: new ScilabDouble([202.85067], [202.85067]),
- id: new ScilabString(["drawlink"]),
- 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_link({
- xx: new ScilabDouble([213.97067], [233.97067]),
- yy: new ScilabDouble([203.11733], [203.11733]),
- id: new ScilabString(["drawlink"]),
- thick: new ScilabDouble([0, 0]),
- ct: new ScilabDouble([1, 1]),
- from: new ScilabDouble([20, 1, 0]),
- to: new ScilabDouble([15, 1, 1])
- }));
-
- var model = scicos_model();
- model.sim = new ScilabString(["csuper"]);
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2]);
- model.out = new ScilabDouble([-1]);
- model.out2 = new ScilabDouble([-2]);
- model.intyp = new ScilabDouble([1]);
- model.outtyp = new ScilabDouble([1]);
- model.blocktype = new ScilabString(["h"]);
- model.firing = new ScilabBoolean([false]);
- model.dep_ut = new ScilabBoolean([false, false]);
- model.rpar = scs_m;
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"PID\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, new ScilabDouble(), gr_i);
- return new BasicBlock(this.x);
- }
- PID.prototype.details = function PID() {
- return this.x;
- }
-}
-function PNP() {
-
- PNP.prototype.define = function PNP() {
- this.ModelName = "PNP";
- this.PrametersValue = [[50],[0.1],[0],[0.02],[1.200e-10],[5.000e-09],[1.000e-12],[4.000e-13],[5.000e-13],[0.8],[0.4],[0.8],[0.333],[1.000e-15],[1.000e-15],[0.02585],[40]];
- this.ParametersName = [["Bf"],["Br"],["Is"],["Vak"],["Tauf"],["Taur"],["Ccs"],["Cje"],["Cjc"],["Phie"],["Me"],["Phic"],["Mc"],["Gbc"],["Gbe"],["Vt"],["EMinMax"]];
-
- var model = scicos_model();
- this.Typein = [];
- this.Typeout = [];
- this.MI = [];
- this.MO = [];
- this.P = [[100, 90, -2, 0], [0, 50, 2, 0], [100, 10, -2, 0]];
- this.PortName = [["C"], ["B"], ["E"]];
-
- for (var i = 0; i < size(this.P, "r"); i++) {
- if (this.P[i][2] == 1) {
- this.Typein.push(["E"]);
- this.MI.push(this.PortName[i]);
- }
-
- if (this.P[i][2] == 2) {
- this.Typein.push(["I"]);
- this.MI.push(this.PortName[i]);
- }
- if (this.P[i][2] == -1) {
- this.Typeout.push(["E"]);
- this.MO.push(this.PortName[i]);
- }
- if (this.P[i][2] == -2) {
- this.Typeout.push(["I"]);
- this.MO.push(this.PortName[i]);
- }
- }
-
- var mo = new modelica_function();
- model.sim = new ScilabString([this.ModelName]);
- mo.inputs = new ScilabString(...this.MI);
- mo.outputs = new ScilabString(...this.MO);
- model.rpar = new ScilabDouble(...this.PrametersValue);
-
- var arr = [];
- arr.push(zeros(getData(this.ParametersName)));
- mo.parameters = list(new ScilabString(...this.ParametersName), new ScilabDouble(...this.PrametersValue), new ScilabDouble(...math.transpose(arr)));
- var exprs = new ScilabString(["50"], ["0.1"], ["1.e-16"], ["0.02"], ["0.12e-9"], ["5e-9"], ["1e-12"], ["0.4e-12"], ["0.5e-12"], ["0.8"], ["0.4"], ["0.8"], ["0.333"], ["1e-15"], ["1e-15"], ["0.02585"], ["40"]);
- var gr_i = "xstringb(orig(1),orig(2),\"PNP\",sz(1),sz(2));"
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
- mo.model = new ScilabString([this.ModelName]);
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
- model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, list(new ScilabString([gr_i]), new ScilabDouble([0])));
- this.x.graphics.in_implicit = new ScilabDouble(...this.Typein);
- this.x.graphics.out_implicit = new ScilabDouble(...this.Typeout);
-
- return new BasicBlock(this.x);
- }
-
- PNP.prototype.details = function PNP() {
- return this.x;
- }
-}
-function POSTONEG_f() {
-
- POSTONEG_f.prototype.define = function POSTONEG_f() {
- this.rpar = [[-1], [-1], [-1], [0]];
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["zcross"]), new ScilabDouble([1]));
- model.nzcross = new ScilabDouble([1]);
- model.in = new ScilabDouble([1]);
- model.evtout = new ScilabDouble([1]);
- model.rpar = new ScilabDouble([-1], [-1], [-1], [0]);
- model.blocktype = new ScilabString(["z"]);
- model.dep_ut = new ScilabBoolean([true, false]);
- model.firing = new ScilabDouble([-1]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"POSTONEG_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, [], gr_i);
- return new BasicBlock(this.x);
- }
- POSTONEG_f.prototype.details = function POSTONEG_f() {
- return this.x;
- }
-}
-
-function PotentialSensor() {
-
- PotentialSensor.prototype.define = function PotentialSensor() {
-
- var model = scicos_model();
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.rpar = new ScilabDouble();
- model.sim = new ScilabString(["PotentialSensor"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- mo.model = new ScilabString(["PotentialSensor"]);
- mo.inputs = new ScilabString(["p"]);
- mo.outputs = new ScilabString(["v"]);
- model.equations = mo;
-
- var exprs = new ScilabString([""]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"PotentialSensor\",sz(1),sz(2));"]);
- 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(["E"]);
- return new BasicBlock(this.x);
- }
- PotentialSensor.prototype.details = function PotentialSensor() {
- return this.x;
- }
-}
-
-function POWBLK_f() {
-
- POWBLK_f.prototype.define = function POWBLK_f() {
- this.in = 1;
- this.a = 1.5;
-
- var model = scicos_model();
- model.sim = new ScilabString(["powblk"]);
- model.in = new ScilabDouble([-1]);
- model.out = new ScilabDouble([-1]);
- model.rpar = new ScilabDouble([this.a]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([this.a]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"POWBLK_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- POWBLK_f.prototype.details = function POWBLK_f() {
- return this.x;
- }
-}
-function PRODUCT() {
-
- PRODUCT.prototype.define = function PRODUCT() {
- this.sgn = [[1],[-1]];
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["product"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([-1], [-1]);
- model.out = new ScilabDouble([-1]);
- model.ipar = new ScilabDouble(...this.sgn);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([sci2exp(this.sgn)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;PRODUCT&quot;,sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 3]), model, exprs, gr_i);
- return new Product(this.x);
- }
- PRODUCT.prototype.details = function PRODUCT() {
- return this.x;
- }
-}
-function PROD_f() {
-
- PROD_f.prototype.define = function PROD_f() {
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["prod"]), new ScilabDouble([2]));
- model.in = new ScilabDouble([-1], [-1]);
- model.out = new ScilabDouble([-1]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- this.x = new standard_define(new ScilabDouble([1, 1]), model, new ScilabDouble(), new ScilabString());
- return new RoundBlock(this.x);
- }
- PROD_f.prototype.details = function PROD_f() {
- return this.x;
- }
-}
-
-function PuitsP() {
-
- PuitsP.prototype.define = function PuitsP() {
- this.P0 = 100000;
- this.T0 = 290;
- this.H0 = 100000;
- this.option_temperature = 1;
-
- var model = scicos_model();
- model.rpar = new ScilabDouble([this.P0], [this.T0], [this.H0], [this.option_temperature]);
- model.sim = new ScilabString(["Puits"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- mo.model = new ScilabString(["Puits"]);
- mo.inputs = new ScilabString(["C"]);
- mo.outputs = new ScilabDouble();
- mo.parameters = list(new ScilabString(["P0"], ["T0"], ["H0"], ["option_temperature"]), new ScilabDouble([this.P0], [this.T0], [this.H0], [this.option_temperature]));
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
-
- var exprs = new ScilabString([this.P0], [this.T0], [this.H0], [this.option_temperature]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"PuitsP\",sz(1),sz(2));"]);
- this.x = standard_define([2.5, 2], model, exprs, list(gr_i, new ScilabDouble(0)));
- this.x.graphics.in_implicit = new ScilabString(["I"]);
- return new BasicBlock(this.x);
- }
- PuitsP.prototype.details = function PuitsP() {
- return this.x;
- }
-}
-
-function QUANT_f() {
-
- QUANT_f.prototype.define = function QUANT_f() {
- this.pas = 0.1;
- this.meth = 1;
-
- var model = scicos_model();
- model.sim = new ScilabString(["qzrnd"]);
- model.in = new ScilabDouble([-1]);
- model.out = new ScilabDouble([-1]);
- model.rpar = new ScilabDouble([this.pas]);
- model.ipar = new ScilabDouble([this.meth]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([this.pas], [this.meth]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"QUANT_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- QUANT_f.prototype.details = function QUANT_f() {
- return this.x;
- }
-}
-
-function RAMP() {
-
- RAMP.prototype.define = function RAMP() {
- this.slope = 0;
- this.iout = 0;
- this.stt = 0;
- this.rpar = [[this.slope], [this.stt], [this.iout]];
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["ramp"]), new ScilabDouble([4]));
- model.in = new ScilabDouble();
- model.out = new ScilabDouble([1]);
- model.rpar = new ScilabDouble(...this.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 = new ScilabString(...this.rpar);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"RAMP\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- RAMP.prototype.details = function RAMP() {
- return this.x;
- }
-}
-
-function RAND_m() {
-
- RAND_m.prototype.define = function RAND_m() {
- this.a = 0;
- this.b = 1;
- this.dt = 0;
- this.flag = 0;
- this.function_name = "rndblk_m";
- this.funtyp = 4;
-
- var model = scicos_model();
- model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
- model.in = new ScilabDouble();
- model.in2 = new ScilabDouble();
- model.intyp = new ScilabDouble();
- model.out = new ScilabDouble([1]);
- model.out2 = new ScilabDouble([1]);
- model.outtyp = new ScilabDouble([1]);
- model.evtin = new ScilabDouble([1]);
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.dstate = new ScilabDouble([parseInt(Math.random() * 10000000)], [0 * this.a]);
- model.rpar = new ScilabDouble([this.a, this.b]);
- model.ipar = new ScilabDouble([this.flag]);
- model.blocktype = new ScilabString(["d"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([sci2exp(1)], [this.flag], [sci2exp([this.a])], [sci2exp([this.b])], [sci2exp([parseInt(getData(model.dstate)[0]), parseInt(Math.random() * 10000000)])]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"RAND_m\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- RAND_m.prototype.details = function RAND_m() {
- return this.x;
- }
-}
-
-function RATELIMITER() {
-
- RATELIMITER.prototype.define = function RATELIMITER() {
- this.minp = -1;
- this.maxp = 1;
- this.rpar = [[this.maxp], [this.minp]];
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["ratelimiter"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.rpar = new ScilabDouble(...this.rpar);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([this.maxp], [this.minp]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"RATELIMITER\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3.5, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- RATELIMITER.prototype.details = function RATELIMITER() {
- return this.x;
- }
-}
-
-function READAU_f() {
-
- READAU_f.prototype.define = function READAU_f() {
- this.frmt = "uc ";
- this.fname = "test.au";
- this.lunit = 0;
- this.N = 20;
- this.M = 1;
- this.tmask = [];
- this.swap = 0;
- this.offset = 1;
- this.outmask = 1;
- this.ievt = 0;
- this.nout = size(this.outmask, "*");
- var model = scicos_model();
- model.sim = list(new ScilabString(["readau"]), new ScilabDouble([2]));
- model.out = new ScilabDouble([this.nout]);
- model.evtin = new ScilabDouble([1]);
- model.dstate = new ScilabDouble([1], [1], [this.lunit], ...zeros(this.N * this.M, 1));
- model.ipar = new ScilabDouble([this.fname.length], ..._str2code(this.frmt), [this.ievt], [this.N], [this.M], [this.swap], [this.offset], ..._str2code(this.fname), [this.outmask]);
- model.blocktype = new ScilabString(["d"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([this.fname], [this.N], [this.swap]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"READAU_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([5, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- READAU_f.prototype.details = function READAU_f() {
- return this.x;
- }
-}
-function READC_f() {
-
- READC_f.prototype.define = function READC_f() {
- this.frmt = "d ";
- this.fname = "foo";
- this.lunit = 0;
- this.N = 20;
- this.M = 1;
- this.rpar = [];
- this.tmask = 0;
- this.swap = 0;
- this.offset = 1;
- this.outmask = 1;
- this.ievt = 0;
- this.nout = size(this.outmask, "*");
-
- var ipar = new ScilabDouble([this.fname.length], ..._str2code(this.frmt), [this.ievt], [this.N], [this.M], [this.swap], [this.offset], ..._str2code(this.fname), [this.tmask], [this.outmask]);
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["readc"]), new ScilabDouble([2]));
- model.out = new ScilabDouble([this.nout]);
- model.evtin = new ScilabDouble([1]);
- model.evtout = new ScilabDouble();
- model.dstate = new ScilabDouble([1], [1], [this.lunit], ...zeros(this.N * this.M, 1));
- model.ipar = ipar;
- model.blocktype = new ScilabString(["d"]);
- model.firing = new ScilabDouble([-1]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString(["[]"], [this.outmask], [this.fname], [this.frmt], [this.M], [this.N], [this.offset], [this.swap]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"READC_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- READC_f.prototype.details = function READC_f() {
- return this.x;
- }
-}
-function REGISTER() {
-
- REGISTER.prototype.define = function REGISTER() {
- this.z0 = new ScilabDouble(...zeros(10, 1));
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["delay4"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.evtin = new ScilabDouble([1]);
- model.dstate = this.z0;
- model.blocktype = new ScilabString(["d"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString(this.z0);
-
- var gr_i = ["xstringb(orig(1),orig(2),\"REGISTER\",sz(1),sz(2));"];
- this.x = new standard_define(new ScilabDouble([3,2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
-
- }
-
- REGISTER.prototype.details = function REGISTER() {
- return this.x;
- }
-}
-function REGISTER_f () {
-
- REGISTER_f.prototype.internal = function REGISTER_f() {
- this.z0 = zeros(10,1);
-
- var model = scicos_model();
- model.sim = new ScilabString(["delay"]);
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.evtin = new ScilabDouble([1]);
- model.dstate= new ScilabDouble(...this.z0);
- model.blocktype = new ScilabString(["d"]);
- model.dep_ut = new ScilabBoolean([false,false]);
-
- var exprs = new ScilabString([this.z0.toString().replace(/,/g, ";")]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"REGISTER_f\",sz(1),sz(2));"]);
- var block=new standard_define(new ScilabDouble([2.5,2.5]),model,exprs,gr_i);
- block.graphics.style = new ScilabString(["REGISTER_f"]);
- block.graphics.in_implicit = new ScilabString(["E"]); // changed
- block.graphics.out_implicit = new ScilabString(["E"]);
- block.graphics.in_style = new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]);
- block.graphics.out_style = new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]);
- block.graphics.in_label = new ScilabString([""]);
- block.graphics.out_label = new ScilabString([""]);
- return block;
- }
-}
-function RELATIONALOP() {
-
- RELATIONALOP.prototype.define = function RELATIONALOP() {
- this.ipar = 2;
- this.label = "&lt";
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["relationalop"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([1], [1]);
- model.out = new ScilabDouble([1]);
- model.ipar = new ScilabDouble([this.ipar]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([this.ipar], [0]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"RELATIONALOP\",sz(1),sz(2));"]);
- 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);
- }
- RELATIONALOP.prototype.details = function RELATIONALOP() {
- return this.x;
- }
-}
-
-function RELAY_f() {
-
- RELAY_f.prototype.define = function RELAY_f() {
- this.i0 = 0;
- this.in1 = [[-1], [-1]];
- this.nin = 2;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["relay"]), new ScilabDouble([2]));
- model.in = new ScilabDouble(...this.in1);
- model.out = new ScilabDouble([-1]);
- model.evtin = new ScilabDouble(...ones(this.in1));
- model.dstate = new ScilabDouble([this.i0]);
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, true]);
-
- var exprs = new ScilabString([this.nin], [this.i0 + 1]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"RELAY_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- RELAY_f.prototype.details = function RELAY_f() {
- return this.x;
- }
-}
-
-function Resistor() {
-
- Resistor.prototype.define = function Resistor() {
- this.R = 0.01;
-
- var model = scicos_model();
- model.rpar = new ScilabDouble([this.R]);
- model.sim = new ScilabString(["resistor"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- mo.model = new ScilabString(["Resistor"]);
- mo.inputs = new ScilabString(["p"]);
- mo.outputs = new ScilabString(["n"]);
- mo.parameters = list(new ScilabString(["R"]), list(new ScilabDouble([this.R])));
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
- model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
-
- var exprs = new ScilabString([this.R]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Resistor\",sz(1),sz(2));"]);
- 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);
- }
- Resistor.prototype.details = function Resistor() {
- return this.x;
- }
-}
-
-function RFILE_f() {
-
- RFILE_f.prototype.define = function RFILE_f() {
- this.out = 1;
- this.nout = this.out;
- this.frmt = "(7(e10.3,1x))";
- this.fname = "foo";
- this.lunit = 0;
- this.N = 2;
- this.rpar = [];
- this.tmask = 0;
- this.outmask = 1;
-
- var ipar = new ScilabDouble([this.fname.length], [this.frmt.length], [0], [this.N], ..._str2code(this.fname), ..._str2code(this.frmt), [this.tmask], [this.outmask]);
-
- var dstate = new ScilabDouble([1], [1], [this.lunit], ...zeros((this.nout) * this.N, 1));
-
- var model = scicos_model();
- model.sim = new ScilabString(["readf"]);
- model.out = new ScilabDouble([this.nout]);
- model.evtin = new ScilabDouble([1]);
- model.dstate = dstate;
- model.ipar = ipar;
- model.blocktype = new ScilabString(["d"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([sci2exp([])], [sci2exp(this.outmask)], [this.fname], [this.frmt], [this.N], [this.out]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"RFILE_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- RFILE_f.prototype.details = function RFILE_f() {
- return this.x;
- }
-}
-function RICC() {
-
- RICC.prototype.define = function RICC() {
- this.function_name = "ricc_m";
- this.funtyp = 4;
-
- var model = scicos_model();
- model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
- model.in = new ScilabDouble([-1], [-1], [-1]);
- model.in2 = new ScilabDouble([-1], [-1], [-1]);
- model.intyp = new ScilabDouble([1, 1, 1]);
- model.out = new ScilabDouble([-1]);
- model.out2 = new ScilabDouble([-1]);
- model.outtyp = new ScilabDouble([1]);
- model.evtin = new ScilabDouble();
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.dstate = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble([1], [1]);
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = new ScilabString([sci2exp(1)], [sci2exp(1)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"RICC\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
- RICC.prototype.details = function RICC() {
- return this.x;
- }
-}
-
-function ROOTCOEF() {
-
- ROOTCOEF.prototype.define = function ROOTCOEF() {
- this.function_name = "root_coef";
- this.funtyp = 4;
-
- var model = scicos_model();
- model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([1]);
- model.intyp = new ScilabDouble([1]);
- model.out = new ScilabDouble([-2]);
- model.out2 = new ScilabDouble([1]);
- model.outtyp = new ScilabDouble([1]);
- model.evtin = new ScilabDouble();
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.dstate = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble();
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = new ScilabString([sci2exp(1)], [sci2exp(1)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"ROOTCOEF\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
- ROOTCOEF.prototype.details = function ROOTCOEF() {
- return this.x;
- }
-}
-
-function SAMPHOLD_m() {
-
- SAMPHOLD_m.prototype.define = function SAMPHOLD_m() {
- var model = scicos_model();
- model.sim = list(new ScilabString(["samphold4_m"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2]);
- model.intyp = new ScilabDouble([1]);
- model.outtyp = new ScilabDouble([1]);
- model.out = new ScilabDouble([-1]);
- model.out2 = new ScilabDouble([-2]);
- model.evtin = new ScilabDouble([1]);
- model.blocktype = new ScilabString(["d"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = [sci2exp(1)];
-
- var gr_i = ["xstringb(orig(1),orig(2),\"SAMPHOLD_m\",sz(1),sz(2));"];
- this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
-
- }
-
- SAMPHOLD_m.prototype.details = function SAMPHOLD_m() {
- return this.x;
- }
-}
-function SampleCLK() {
-
- SampleCLK.prototype.define = 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 = new ScilabString([sci2exp(1)], [sci2exp(0)]);
-
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, ["xstringb(orig(1),orig(2),\"SampleCLK\",sz(1),sz(2));"]);
- return new BasicBlock(this.x);
- }
- SampleCLK.prototype.details = function SampleCLK() {
- return this.x;
- }
-}
-
-function SATURATION() {
-
- SATURATION.prototype.define = function SATURATION() {
- this.minp = -1;
- this.maxp = 1;
- this.rpar = [[this.maxp], [this.minp]];
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["satur"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([1]);
- model.nzcross = new ScilabDouble([2]);
- model.nmode = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.rpar = new ScilabDouble(...this.rpar);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([this.maxp], [this.minp], [parseInt(getData(model.nmode)[0])]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SATURATION\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- SATURATION.prototype.details = function SATURATION() {
- return this.x;
- }
-}
-
-function SAWTOOTH_f() {
-
- SAWTOOTH_f.prototype.define = 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 = new ScilabString([" "]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SAWTOOTH_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- SAWTOOTH_f.prototype.details = function SAWTOOTH_f() {
- return this.x;
- }
-}
-function SCALAR2VECTOR() {
-
- SCALAR2VECTOR.prototype.define = function SCALAR2VECTOR() {
- this.nout = -1;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["scalar2vector"]), new ScilabDouble([4]));
- model.out = new ScilabDouble([this.nout]);
- model.in = new ScilabDouble([1]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([this.nout]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SCALAR2VECTOR\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- SCALAR2VECTOR.prototype.details = function SCALAR2VECTOR() {
- return this.x;
- }
-}
-
-function scifunc_block_m() {
-
- scifunc_block_m.prototype.define = function scifunc_block_m() {
- this.in1 = 1;
- this.out = 1;
- this.clkin = [];
- this.clkout = [];
- this.x0 = [];
- this.z0 = [];
- this.typ = "c";
- this.auto = [];
- this.rpar = [];
- this.it = 1;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["scifunc"]), new ScilabDouble([3]));
- model.in = new ScilabDouble([this.in1]);
- model.in2 = new ScilabDouble([this.in1]);
- model.intyp = new ScilabDouble([this.it]);
- model.out = new ScilabDouble([this.out]);
- model.out2 = new ScilabDouble([this.out]);
- model.outtyp = new ScilabDouble([this.it]);
- 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.opar = list();
- model.blocktype = new ScilabString([this.typ]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = list(new ScilabString([sci2exp([this.in1, this.in1])], [sci2exp([this.out, this.out])], [sci2exp(this.clkin)], [sci2exp(this.clkout)], [sci2exp(this.x0)], [sci2exp(this.z0)], [sci2exp(this.rpar)], [sci2exp(this.auto)], [sci2exp(0)]), list(new ScilabString(["y1=sin(u1)"]), new ScilabString([" "]), new ScilabString([" "]), new ScilabString(["y1=sin(u1)"]), new ScilabString([" "]), new ScilabString([" "]), new ScilabString([" "])));
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"scifunc_block_m\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- scifunc_block_m.prototype.details = function scifunc_block_m() {
- return this.x;
- }
-}
-function SELECT_m() {
-
- SELECT_m.prototype.define = function SELECT_m() {
- this.z0 = 1;
- this.nin = 2;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["selector_m"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([-1], [-1]);
- model.in2 = new ScilabDouble([-2], [-2]);
- model.intyp = new ScilabDouble([1]);
- model.out = new ScilabDouble([-1]);
- model.out2 = new ScilabDouble([-2]);
- model.outtyp = new ScilabDouble([1]);
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble();
- model.firing = new ScilabDouble();
- model.evtin = new ScilabDouble(...ones(this.nin, 1));
- model.dstate = new ScilabDouble([this.z0]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([sci2exp(1)], [sci2exp([this.nin])], [sci2exp([this.z0])]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SELECT_m\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- SELECT_m.prototype.details = function SELECT_m() {
- return this.x;
- }
-}
-
-function SELF_SWITCH() {
-
- SELF_SWITCH.prototype.define = function SELF_SWITCH() {
- this.stateOpen = true;
-
- this.x = scicos_block();
- this.x.gui = new ScilabString(["SELF_SWITCH"]);
- this.x.graphics.sz = new ScilabDouble([2, 2]);
- this.x.graphics.gr_i = new ScilabDouble();
- this.x.graphics.pin = new ScilabDouble([0]);
- this.x.graphics.pout = new ScilabDouble([0]);
- this.x.model.sim = new ScilabString(["csuper"]);
- this.x.model.in = new ScilabDouble([1]);
- this.x.model.out = new ScilabDouble([1]);
- this.x.model.blocktype = new ScilabString(["h"]);
- this.x.model.dep_ut = new ScilabBoolean([false, false]);
- this.x.model.rpar = genSwitchInnerDiagram(this.stateOpen);
- this.x.model.opar = list(new ScilabBoolean([this.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;SELF_SWITCH_OFF"]);
- return new BasicBlock(this.x);
- }
-
- SELF_SWITCH.prototype.details = function SELF_SWITCH() {
- return this.x;
- }
-}
-function SHIFT() {
-
- SHIFT.prototype.define = function SHIFT() {
- this.sgn = [[0],[0]];
- this.OPER = 0;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["shift_32_LA"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([-1]);
- model.out = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2]);
- model.out2 = new ScilabDouble([-2]);
- model.intyp = new ScilabDouble([3]);
- model.outtyp = new ScilabDouble([3]);
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble(...this.sgn);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([sci2exp(3)], [sci2exp(0)], [sci2exp(0)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SHIFT\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- SHIFT.prototype.details = function SHIFT() {
- return this.x;
- }
-}
-function Sigbuilder() {
-
- Sigbuilder.prototype.define = function Sigbuilder() {
- var scs_m_1 = scicos_diagram({
- version: new ScilabString(["scicos4.2"]),
- props: scicos_params({
- wpar: new ScilabDouble([600, 450, 0, 0, 450, 600]),
- Title: new ScilabString(["Sigbuilder"]),
- tol: new ScilabDouble([0.0001], [0.000001], [Math.pow(10, -10)], [100001], [0], [0], [0]),
- tf: new ScilabDouble([100]),
- context: new ScilabString([" "]),
- void1: new ScilabDouble(),
- options: tlist(["scsopt", "3D", "Background", "Link", "ID", "Cmap"], new ScilabString(["scsopt", "3D", "Background", "Link", "ID", "Cmap"]), list(new ScilabBoolean([true]), new ScilabDouble([33])), new ScilabDouble([8, 1]), new ScilabDouble([1, 5]), list(new ScilabDouble([5, 1]), new ScilabDouble([4, 1])), new ScilabDouble([0.8, 0.8, 0.8])),
- void2: new ScilabDouble(),
- void3: new ScilabDouble(),
- doc: list()
- })
- });
- scs_m_1.objs.push(scicos_block({
- gui: new ScilabString(["CURVE_c"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([329.63473, 606.18517]),
- sz: new ScilabDouble([40, 40]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["3"], ["[0,1,2]"], ["[10,20,-30]"], ["y"], ["n"]),
- pin: new ScilabDouble(),
- pout: new ScilabDouble([6]),
- pein: new ScilabDouble([4]),
- peout: new ScilabDouble([2]),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CURVE_c&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabDouble(),
- out_implicit: new ScilabString(["E"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_label: new ScilabString([""]),
- style: new ScilabString(["CURVE_c"])
- }),
- model: scicos_model({
- sim: list(new ScilabString(["curve_c"]), new ScilabDouble([4])),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble(),
- out: new ScilabDouble([1]),
- out2: new ScilabDouble([1]),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble([1]),
- evtout: new ScilabDouble([1]),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble([0], [1], [2], [10], [20], [-30]),
- ipar: new ScilabDouble([3], [3], [1]),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble([0]),
- dep_ut: new ScilabBoolean([false, true]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m_1.objs.push(scicos_block({
- gui: new ScilabString(["CLKSPLIT_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([349.49528, 565.10704]),
- sz: new ScilabDouble([0.3333333, 0.3333333]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabDouble(),
- pin: new ScilabDouble(),
- pout: new ScilabDouble(),
- pein: new ScilabDouble([2]),
- peout: new ScilabDouble([8], [4]),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CLKSPLIT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabDouble(),
- out_implicit: new ScilabDouble(),
- style: new ScilabString(["CLKSPLIT_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["split"]),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble(),
- out: new ScilabDouble(),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble(),
- evtin: new ScilabDouble([1]),
- evtout: new ScilabDouble([1], [1]),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["d"]),
- firing: new ScilabBoolean([-1], [-1]),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m_1.objs.push(scicos_block({
- gui: new ScilabString(["OUT_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([398.20616, 616.18517]),
- sz: new ScilabDouble([20, 20]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["1"]),
- pin: new ScilabDouble([6]),
- pout: new ScilabDouble(),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;OUT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabDouble(),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- style: new ScilabString(["OUT_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["output"]),
- in: new ScilabDouble([-1]),
- in2: new ScilabDouble([-2]),
- intyp: new ScilabDouble([-1]),
- out: new ScilabDouble(),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble(),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([1]),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m_1.objs.push(scicos_block({
- gui: new ScilabString(["CLKOUTV_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([339.49528, 505.10704]),
- sz: new ScilabDouble([20, 30]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["1"]),
- pin: new ScilabDouble(),
- pout: new ScilabDouble(),
- pein: new ScilabDouble([8]),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CLKOUTV_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabDouble(),
- out_implicit: new ScilabDouble(),
- style: new ScilabString(["CLKOUTV_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["output"]),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble(),
- out: new ScilabDouble(),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble(),
- evtin: new ScilabDouble([1]),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([1]),
- opar: list(),
- blocktype: new ScilabString(["d"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m_1.objs.push(scicos_link({
- xx: new ScilabDouble([349.63473], [349.49528]),
- yy: new ScilabDouble([600.47089], [565.10704]),
- id: new ScilabString(["drawlink"]),
- 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_link({
- xx: new ScilabDouble([349.49528], [266.69602], [266.69602], [270.35525], [342.80795], [342.80795], [349.63473]),
- yy: new ScilabDouble([565.10704], [565.10704], [680.99483], [680.99483], [680.99483], [651.89946], [651.89946]),
- id: new ScilabString(["drawlink"]),
- 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_link({
- xx: new ScilabDouble([378.20616], [398.20616]),
- yy: new ScilabDouble([626.18517], [626.18517]),
- id: new ScilabString(["drawlink"]),
- 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_link({
- xx: new ScilabDouble([349.49528], [349.49528]),
- yy: new ScilabDouble([565.10704], [535.10704]),
- id: new ScilabString(["drawlink"]),
- 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: new ScilabString(["csuper"]),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble(),
- out: new ScilabDouble([-1]),
- out2: new ScilabDouble([1]),
- outtyp: new ScilabDouble([1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble([1]),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: scs_m_1,
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["h"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list()
- });
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Sigbuilder\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, new ScilabDouble(), gr_i);
- return new BasicBlock(this.x);
- }
- Sigbuilder.prototype.details = function Sigbuilder() {
- return this.x;
- }
-}
-function SIGNUM() {
-
- SIGNUM.prototype.define = function SIGNUM() {
- this.nu = -1;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["signum"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([this.nu]);
- model.out = new ScilabDouble([this.nu]);
- model.nzcross = new ScilabDouble([this.nu]);
- model.nmode = new ScilabDouble([this.nu]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([1]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SIGNUM\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- SIGNUM.prototype.details = function SIGNUM() {
- return this.x;
- }
-}
-
-function SINBLK_f() {
-
- SINBLK_f.prototype.define = function SINBLK_f() {
-
- var model = scicos_model();
- model.sim = new ScilabString(["sinblk"]);
- model.in = new ScilabDouble([-1]);
- model.out = new ScilabDouble([-1]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([" "]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SINBLK_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- SINBLK_f.prototype.details = function SINBLK_f() {
- return this.x;
- }
-}
-
-function SineVoltage() {
-
- SineVoltage.prototype.define = function SineVoltage() {
- var model = scicos_model();
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
-
- this.V = 1;
- this.ph = 0;
- this.frq = 1;
- this.offset = 0;
- this.start = 0;
-
- model.rpar = new ScilabDouble([this.V], [this.ph], [this.frq], [this.offset], [this.start]);
- model.sim = new ScilabString(["SineVoltage"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- 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(new ScilabDouble([this.V]), new ScilabDouble([this.ph]), new ScilabDouble([this.frq]), new ScilabDouble([this.offset]), new ScilabDouble([this.start])));
- model.equations = mo;
-
- var exprs = new ScilabString([this.V], [this.ph], [this.frq], [this.offset], [this.start]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SineVoltage\",sz(1),sz(2));"]);
- 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);
- }
-
- SineVoltage.prototype.details = function SineVoltage() {
- return this.x;
- }
-}
-function SOM_f() {
-
- SOM_f.prototype.define = function SOM_f() {
- this.sgn = [[1], [1], [1]];
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["sum"]), new ScilabDouble([2]));
- model.in = new ScilabDouble([-1], [-1], [-1]);
- model.out = new ScilabDouble([-1]);
- model.rpar = new ScilabDouble(...this.sgn);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([sci2exp(1)], [sci2exp(this.sgn)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SOM_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2,2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- SINBLK_f.prototype.details = function SINBLK_f() {
- return this.x;
- }
-}
-function SourceP() {
-
- SourceP.prototype.define = function SourceP() {
- var model = scicos_model();
-
- this.P0 = 300000;
- this.T0 = 290;
- this.H0 = 100000;
- this.option_temperature = 1;
-
- model.rpar = new ScilabDouble([this.P0], [this.T0], [this.H0], [this.option_temperature]);
- model.sim = new ScilabString(["Source"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- mo.model = new ScilabString(["Source"]);
- mo.inputs = new ScilabDouble();
- mo.outputs = new ScilabString(["C"]);
- mo.parameters = list(new ScilabString(["P0"], ["T0"], ["H0"], ["option_temperature"]), new ScilabDouble([this.P0], [this.T0], [this.H0], [this.option_temperature]));
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
- model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
-
- var exprs = new ScilabString([this.P0], [this.T0], [this.H0], [this.option_temperature]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SourceP\",sz(1),sz(2));"]);
- this.x = new standard_define([2.5, 2], model, exprs, list(gr_i, new ScilabDouble([0])));
- this.x.graphics.out_implicit = new ScilabString(["I"]);
- return new BasicBlock(this.x);
- }
-
- SourceP.prototype.details = function SourceP() {
- return this.x;
- }
-}
-function SQRT() {
-
- SQRT.prototype.define = function SQRT() {
- var model = scicos_model();
- model.sim = list(new ScilabString(["mat_sqrt"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2]);
- model.intyp = new ScilabDouble([1]);
- model.outtyp = new ScilabDouble([1]);
- model.out = new ScilabDouble([-1]);
- model.out2 = new ScilabDouble([-2]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = new ScilabString([sci2exp(1)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SQRT\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
-
- SQRT.prototype.details = function SQRT() {
- return this.x;
- }
-}
-function SRFLIPFLOP() {
-
- SRFLIPFLOP.prototype.define = function SRFLIPFLOP() {
- var scs_m = scicos_diagram({
- version: new ScilabString(["scicos4.2"]),
- props: scicos_params({
- wpar: new ScilabDouble([600, 450, 0, 0, 450, 600]),
- Title: new ScilabString(["SRFLIPFLOP"]),
- tol: new ScilabDouble([0.0001], [0.000001], [Math.pow(10, -10)], [100001], [0], [0], [0]),
- tf: new ScilabDouble([100000]),
- context: new ScilabString([" "]),
- void1: new ScilabDouble(),
- options: tlist(["scsopt", "3D", "Background", "Link", "ID", "Cmap"], new ScilabString(["scsopt", "3D", "Background", "Link", "ID", "Cmap"]), list(new ScilabBoolean([true]), new ScilabDouble([33])), new ScilabDouble([8, 1]), new ScilabDouble([1, 5]), list(new ScilabDouble([5, 1]), new ScilabDouble([4, 1])), new ScilabDouble([0.8, 0.8, 0.8])),
- void2: new ScilabDouble(),
- void3: new ScilabDouble(),
- doc: list()
- })
- });
- scs_m.objs.push(scicos_block({
- gui: new ScilabString(["LOGIC"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([298.504, 201.45067]),
- sz: new ScilabDouble([40, 40]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["[0 1;1 0;1 0;1 0;0 1;0 1;0 0;0 0]"], ["1"]),
- pin: new ScilabDouble([4], [10], [12]),
- pout: new ScilabDouble([3], [8]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;LOGIC&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"], ["E"], ["E"]),
- out_implicit: new ScilabString(["E"], ["E"]),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""], [""], [""]),
- out_label: new ScilabString([""], [""]),
- style: new ScilabString(["LOGIC"])
- }),
- model: scicos_model({
- sim: list(new ScilabString(["logic"]), new ScilabDouble([4])),
- in: new ScilabDouble([1], [1], [1]),
- in2: new ScilabDouble([1], [1], [1]),
- intyp: new ScilabDouble([5], [5], [5]),
- out: new ScilabDouble([1], [1]),
- out2: new ScilabDouble([1], [1]),
- outtyp: new ScilabDouble([5], [5]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble(),
- opar: list(int8([0, 1], [1, 0], [1, 0], [1, 0], [0, 1], [0, 1], [0, 0], [0, 0])),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabBoolean([false]),
- dep_ut: new ScilabBoolean([true, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_block({
- gui: new ScilabString(["DOLLAR_m"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([299.23733, 254.25067]),
- sz: new ScilabDouble([40, 40]),
- flip: new ScilabBoolean([false]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["int8(0)"], ["1"]),
- pin: new ScilabDouble([6]),
- pout: new ScilabDouble([4]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;DOLLAR_m&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabString(["E"]),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- out_label: new ScilabString([""]),
- style: new ScilabString(["DOLLAR_m"])
- }),
- model: scicos_model({
- sim: list(new ScilabString(["dollar4_m"]), new ScilabDouble([4])),
- in: new ScilabDouble([1]),
- in2: new ScilabDouble([1]),
- intyp: new ScilabDouble([5]),
- out: new ScilabDouble([1]),
- out2: new ScilabDouble([1]),
- outtyp: new ScilabDouble([5]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(int8([0])),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["d"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_block({
- gui: new ScilabString(["SPLIT_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([363.03733, 248.584]),
- sz: new ScilabDouble([0.3333333, 0.3333333]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabDouble(),
- pin: new ScilabDouble([3]),
- pout: new ScilabDouble([10], [14], [0]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;SPLIT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabString(["E"], ["E"], ["E"]),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- out_label: new ScilabString([""], [""], [""]),
- style: new ScilabString(["SPLIT_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["lsplit"]),
- in: new ScilabDouble([-1]),
- in2: new ScilabDouble([1]),
- intyp: new ScilabDouble([1]),
- out: new ScilabDouble([-1], [-1], [-1]),
- out2: new ScilabDouble([1], [1], [1]),
- outtyp: new ScilabDouble([1], [1], [1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble(),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([true, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_block({
- gui: new ScilabString(["OUT_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([367.07543, 204.784]),
- sz: new ScilabDouble([20, 20]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["2"]),
- pin: new ScilabDouble([8]),
- pout: new ScilabDouble(),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;OUT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabDouble(),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- style: new ScilabString(["OUT_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["output"]),
- in: new ScilabDouble([-1]),
- in2: new ScilabDouble([1]),
- intyp: new ScilabDouble([-1]),
- out: new ScilabDouble(),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble(),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([2]),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_block({
- gui: new ScilabString(["IN_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([249.93257, 211.45067]),
- sz: new ScilabDouble([20, 20]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["1"]),
- pin: new ScilabDouble(),
- pout: new ScilabDouble([10]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;IN_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabDouble(),
- out_implicit: new ScilabString(["E"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_label: new ScilabString([""]),
- style: new ScilabString(["IN_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["input"]),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble(),
- out: new ScilabDouble([-1]),
- out2: new ScilabDouble([1]),
- outtyp: new ScilabDouble([-1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([1]),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_block({
- gui: new ScilabString(["IN_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([249.93257, 201.45067]),
- sz: new ScilabDouble([20, 20]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["2"]),
- pin: new ScilabDouble(),
- pout: new ScilabDouble([12]),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;IN_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabDouble(),
- out_implicit: new ScilabString(["E"]),
- out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
- out_label: new ScilabString([""]),
- style: new ScilabString(["IN_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["input"]),
- in: new ScilabDouble(),
- in2: new ScilabDouble(),
- intyp: new ScilabDouble(),
- out: new ScilabDouble([-1]),
- out2: new ScilabDouble([1]),
- outtyp: new ScilabDouble([-1]),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([2]),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
- scs_m.objs.push(scicos_block({
- gui: new ScilabString(["OUT_f"]),
- graphics: scicos_graphics({
- orig: new ScilabDouble([383.03733, 238.584]),
- sz: new ScilabDouble([20, 20]),
- flip: new ScilabBoolean([true]),
- theta: new ScilabDouble([0]),
- exprs: new ScilabString(["1"]),
- pin: new ScilabDouble([14]),
- pout: new ScilabDouble(),
- pein: new ScilabDouble(),
- peout: new ScilabDouble(),
- gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;OUT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
- id: new ScilabString([""]),
- in_implicit: new ScilabString(["E"]),
- out_implicit: new ScilabDouble(),
- in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
- in_label: new ScilabString([""]),
- style: new ScilabString(["OUT_f"])
- }),
- model: scicos_model({
- sim: new ScilabString(["output"]),
- in: new ScilabDouble([-1]),
- in2: new ScilabDouble([1]),
- intyp: new ScilabDouble([-1]),
- out: new ScilabDouble(),
- out2: new ScilabDouble(),
- outtyp: new ScilabDouble(),
- evtin: new ScilabDouble(),
- evtout: new ScilabDouble(),
- state: new ScilabDouble(),
- dstate: new ScilabDouble(),
- odstate: list(),
- rpar: new ScilabDouble(),
- ipar: new ScilabDouble([1]),
- opar: list(),
- blocktype: new ScilabString(["c"]),
- firing: new ScilabDouble(),
- dep_ut: new ScilabBoolean([false, false]),
- label: new ScilabString([""]),
- nzcross: new ScilabDouble([0]),
- nmode: new ScilabDouble([0]),
- equations: list(),
- uid: new ScilabString([count])
- }),
- doc: list(new ScilabString([count++]))
- }));
-
- scs_m.objs.push(scicos_link({
- xx: new ScilabDouble([347.07543], [363.03733], [363.03733]),
- yy: new ScilabDouble([228.11733], [228.11733], [248.584]),
- id: new ScilabString(['drawlink']),
- 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], [272.104], [272.104], [289.93257]),
- yy: new ScilabDouble([274.25067], [274.25067], [231.45067], [231.45067]),
- id: new ScilabString(['drawlink']),
- 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_link({
- xx: new ScilabDouble([363.03733], [363.03733], [344.95162]),
- yy: new ScilabDouble([248.584], [274.25067], [274.25067]),
- id: new ScilabString(['drawlink']),
- 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_link({
- xx: new ScilabDouble([347.07543], [367.07543]),
- yy: new ScilabDouble([214.784], [214.784]),
- id: new ScilabString(['drawlink']),
- 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_link({
- xx: new ScilabDouble([269.93257], [289.93257]),
- yy: new ScilabDouble([221.45067], [221.45067]),
- id: new ScilabString(['drawlink']),
- 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_link({
- xx: new ScilabDouble([269.93257], [289.93257]),
- yy: new ScilabDouble([211.45067], [221.45067]),
- id: new ScilabString(['drawlink']),
- 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_link({
- xx: new ScilabDouble([363.03733], [383.03733]),
- yy: new ScilabDouble([248.584], [248.584]),
- id: new ScilabString(['drawlink']),
- thick: new ScilabDouble([0, 0]),
- ct: new ScilabDouble([1, 1]),
- from: new ScilabDouble([5, 2, 0]),
- to: new ScilabDouble([13, 1, 1])
- }));
-
- var model = scicos_model();
- model.sim = new ScilabString(["csuper"]);
- model.in = new ScilabDouble([1], [1]);
- model.in2 = new ScilabDouble([1], [1]);
- model.out = new ScilabDouble([1], [1]);
- model.out2 = new ScilabDouble([1], [1]);
- model.intyp = new ScilabDouble([5, 5]);
- model.outtyp = new ScilabDouble([5, 5]);
- model.blocktype = new ScilabString(["h"]);
- model.firing = new ScilabBoolean([false]);
- model.dep_ut = new ScilabBoolean([true, false]);
- model.rpar = scs_m;
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SRFLIPFLOP\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 3]), model, new ScilabDouble(), gr_i);
- return new BasicBlock(this.x);
- }
- SRFLIPFLOP.prototype.details = function SRFLIPFLOP() {
- return this.x;
- }
-}
-function STEP_FUNCTION() {
-
- STEP_FUNCTION.prototype.define = function STEP_FUNCTION() {
- var scs_m_1 = scicos_diagram();
- scs_m_1.objs.push(new STEP().internal());
- scs_m_1.objs.push(new OUT_f().internal());
- scs_m_1.objs.push(scicos_link({}));
- scs_m_1.objs.push(scicos_link({}));
-
- var blk = scs_m_1.objs[0];
- var graphics = blk.graphics;
-
- var model = blk.model;
- graphics.orig = new ScilabDouble([0, 0]);
- graphics.sz = new ScilabDouble([40, 40]);
- graphics.flip = new ScilabBoolean([true]);
- graphics.pein = new ScilabDouble([4]);
- graphics.peout = new ScilabDouble([4]);
- graphics.pout = new ScilabDouble([3]);
- graphics.out_implicit = new ScilabString(["E"]);
- graphics.in_style = new ScilabDouble();
- graphics.out_style = new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]);
- graphics.in_label = new ScilabDouble();
- graphics.out_label = new ScilabString([""]);
- model.evtin = new ScilabDouble([-1]);
- model.evtout = new ScilabDouble([-1]);
- model.uid = new ScilabString([count]);
- blk.graphics = graphics;
- blk.model = model;
- blk.doc = list(new ScilabString([count++]));
- scs_m_1.objs[0] = blk;
-
- blk = scs_m_1.objs[1];
- graphics = blk.graphics;
- model = blk.model;
- graphics.orig = new ScilabDouble([80, 10]);
- graphics.sz = new ScilabDouble([20, 20]);
- graphics.flip = new ScilabBoolean([true]);
- graphics.exprs = new ScilabString(["1"]);
- model.ipar = new ScilabDouble([1]);
- graphics.pin = new ScilabDouble([3]);
- model.outtyp = new ScilabDouble();
- model.uid = new ScilabString([count]);
- blk.doc = list(new ScilabString([count++]));
- blk.graphics = graphics;
- blk.model = model;
- scs_m_1.objs[1] = blk;
-
- var lnk = scs_m_1.objs[2];
- lnk.xx = new ScilabDouble([104], [136]);
- lnk.yy = new ScilabDouble([-40], [-60]);
- lnk.from = new ScilabDouble([1, 1, 0]);
- lnk.to = new ScilabDouble([2, 1, 1]);
- scs_m_1.objs[2] = lnk;
-
- lnk = scs_m_1.objs[3];
- 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[3] = 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 = new ScilabString(["xstringb(orig(1),orig(2),\"STEP_FUNCTION\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, new ScilabString(), gr_i);
- return new BasicBlock(this.x);
- }
-
- STEP_FUNCTION.prototype.details = function STEP_FUNCTION() {
- return this.x;
- }
-}
-function SUBMAT() {
-
- SUBMAT.prototype.define = function SUBMAT() {
- var model = scicos_model();
-
- this.function_name = new ScilabString(["submat"]);
-
- this.funtyp = new ScilabDouble([4]);
- model.sim = list(this.function_name, this.funtyp);
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2]);
- model.intyp = new ScilabDouble([1]);
- model.out = new ScilabDouble([-1]);
- model.out2 = new ScilabDouble([-2]);
- model.outtyp = new ScilabDouble([1]);
- model.evtin = new ScilabDouble();
- model.evtout = new ScilabDouble();
- model.state = new ScilabDouble();
- model.dstate = new ScilabDouble();
- model.rpar = new ScilabDouble();
- model.ipar = new ScilabDouble([1], [1], [1], [1]);
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- this.label = new ScilabString([sci2exp(1)], [sci2exp(1)], [sci2exp(1)], [sci2exp(1)], [sci2exp(1)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SUBMAT\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2.5, 2]), model, this.label, gr_i);
-
- return new BasicBlock(this.x);
-
- }
- SUBMAT.prototype.details = function SUBMAT() {
- return this.x;
-
- }
-}
-function SUMMATION() {
- SUMMATION.prototype.define = function SUMMATION() {
- this.sgn = [[1],[-1]];
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["summation"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([-1], [-1]);
- model.out = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2], [-2]);
- model.out2 = new ScilabDouble([-2]);
- model.ipar = new ScilabDouble(...this.sgn);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([sci2exp(this.sgn)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SUMMATION\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 3]), model, exprs, gr_i);
- return new Summation(this.x);
- }
-
- SUMMATION.prototype.details = function SUMMATION() {
- return this.x;
- }
-}
-function SUM_f() {
-
- SUM_f.prototype.define = function SUM_f() {
- var model = scicos_model();
-
- model.sim = list(new ScilabString(["plusblk"]), new ScilabDouble([2]));
- model.in = new ScilabDouble([-1], [-1], [-1]);
- model.out = new ScilabDouble([-1]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SUM_f\",sz(1),sz(2));"]);
- var exprs = new ScilabString();
-
- this.x = new standard_define(new ScilabDouble([1, 1]), model, exprs, gr_i);
-
- return new RoundBlock(this.x);
-
- }
-
- SUM_f.prototype.details = function SUM_f() {
- return this.x;
-
- }
-}
-function SUPER_f() {
-
- SUPER_f.prototype.define = function SUPER_f() {
- var scs = scicos_diagram();
- scs.props.title = new ScilabString(["Super_Block"]);
-
- var in1 = new IN_f().internal();
- in1.graphics.orig = new ScilabDouble([40, 40]);
- in1.graphics.sz = new ScilabDouble([20, 20]);
- in1.graphics.flip = new ScilabBoolean([true]);
- in1.graphics.pout = new ScilabDouble([0]);
- in1.model.uid = new ScilabString([count]);
- in1.doc = list(new ScilabString([count++]));
-
- var out = new OUT_f().internal();
- out.graphics.orig = new ScilabDouble([240, 40]);
- out.graphics.sz = new ScilabDouble([20, 20]);
- out.graphics.flip = new ScilabBoolean([true]);
- out.graphics.pin = new ScilabDouble([0]);
- out.model.outtyp = new ScilabDouble();
- out.model.uid = new ScilabString([count]);
- out.doc = list(new ScilabString([count++]));
- scs.objs.push(in1);
- scs.objs.push(out);
-
- var model = scicos_model();
- model.sim = new ScilabString(["super"]);
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.rpar = scs;
- model.blocktype = new ScilabString(["h"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var gr_i = ["xstringb(orig(1),orig(2),\"SUPER_f\",sz(1),sz(2));"];
- this.x = new standard_define(new ScilabDouble([2, 2]), model, new ScilabDouble(), gr_i);
- return new SuperBlock(this.x);
- }
-
- SUPER_f.prototype.details = function SUPER_f() {
- return this.x;
- }
-}
-function Switch() {
-
- Switch.prototype.define = function Switch() {
- var model = scicos_model();
-
- this.Ron = 0.01;
- this.Roff = 1e5;
- this.S = [["Ron"], ["Roff"]];
-
- var scope = {
- Ron: 0.01,
- Roff: 1e5
- }
- this.Z = math.eval('[ Ron ; Roff ]', scope)._data;
-
- model.sim = new ScilabString(["Switch"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- mo.model = model.sim;
- mo.inputs = new ScilabString(["p"], ["inp"]);
- mo.outputs = new ScilabString(["n"]);
- mo.parameters = list(new ScilabString(...this.S), new ScilabDouble(...this.Z));
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
- model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
- model.rpar = new ScilabDouble(...this.Z);
-
- var exprs = new ScilabString(...this.Z);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Switch\",sz(1),sz(2));"]);
- this.x = standard_define(new ScilabDouble([2, 2]), model, exprs, list(gr_i, new ScilabDouble(0)));
- this.x.graphics.in_implicit = new ScilabString([["I"], ["E"]]);
- this.x.graphics.out_implicit = new ScilabString(["I"]);
- return new BasicBlock(this.x);
- }
-
- Switch.prototype.details = function Switch() {
- this.x;
- }
-}
-function SWITCH2_m() {
-
- SWITCH2_m.prototype.define = function SWITCH2_m() {
- this.ipar = [0];
- this.nzz = 1;
- this.rpar = 0;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["switch2_m"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([-1], [1], [-1]);
- model.in2 = new ScilabDouble([-2], [1], [-2]);
- model.intyp = new ScilabDouble([1]);
- model.out = new ScilabDouble([-1]);
- model.out2 = new ScilabDouble([-2]);
- model.outtyp = new ScilabDouble([1]);
- model.ipar = new ScilabDouble(this.ipar);
- model.rpar = new ScilabDouble([this.rpar]);
- model.nzcross = new ScilabDouble([this.nzz]);
- model.nmode = new ScilabDouble([1]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([1], this.ipar, [this.rpar], [this.nzz]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SWITCH2_m\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- SWITCH2_m.prototype.details = function SWITCH2_m() {
- return this.x;
- }
-}
-function SWITCH_f() {
-
- SWITCH_f.prototype.define = function SWITCH_f() {
- this.i0 = 0;
- this.in1 = [[-1], [-1]];
- this.nin = 2;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["switchn"]), new ScilabDouble([2]));
- model.in = new ScilabDouble(...this.in1);
- model.out = new ScilabDouble([-1]);
- model.ipar = new ScilabDouble([this.i0]);
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, true]);
-
- var exprs = new ScilabString([this.nin], [this.i0 + 1]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SWITCH_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- SWITCH_f.prototype.internal = function SWITCH_f() {
- this.i0 = 0;
- this.in1 = [[-1],[-1]];
- this.nin = 2;
-
- var model = scicos_model();
- model.sim=list(new ScilabString(["switchn"]),new ScilabDouble([2]));
- model.in=new ScilabDouble(...this.in1);
- model.out = new ScilabDouble([-1]);
- model.ipar=new ScilabDouble([this.i0]);
- model.blocktype = new ScilabString(["c"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true,true]);
-
- var exprs = new ScilabString([this.nin],[this.i0+1]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SWITCH_f\",sz(1),sz(2));"]);
- var block=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
- return block;
- }
-
- SWITCH_f.prototype.details = function SWITCH_f() {
- return this.x;
- }
-}
-function TANBLK_f() {
-
- TANBLK_f.prototype.define = function TANBLK_f() {
- this.in1 = -1;
-
- var model = scicos_model();
- model.sim = new ScilabString(["tanblk"]);
- model.in = new ScilabDouble([this.in1]);
- model.out = new ScilabDouble([this.in1]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([sci2exp(in1)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"TANBLK_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- TANBLK_f.prototype.details = function TANBLK_f() {
- return this.x;
- }
-}
-function TCLSS() {
-
- TCLSS.prototype.define = function TCLSS() {
- this.x0 = 0;
- this.A = 0;
- this.B = 1;
- this.C = 1;
- this.D = 0;
- this.in1 = 1;
- this.nx = size(this.x0, "*");
- this.out = 1;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["tcslti4"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([this.in1], [this.nx]);
- model.out = new ScilabDouble([this.out]);
- model.evtin = new ScilabDouble([1]);
- model.state = new ScilabDouble([this.x0]);
- model.rpar = new ScilabDouble([this.A], [this.B], [this.C], [this.D]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
-
- var exprs = new ScilabString([sci2exp(this.A)], [sci2exp(this.B)], [sci2exp(this.C)], [sci2exp(this.D)], [sci2exp(this.x0)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"TCLSS\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
-
- TCLSS.prototype.details = function TCLSS() {
- return this.x;
- }
-}
-function TEXT_f() {
-
- TEXT_f.prototype.define = function TEXT_f() {
- this.font = 2;
- this.siz = 1;
-
- var model = scicos_model();
- model.sim = new ScilabString(["text"]);
- model.rpar = new ScilabString(["Text"]);
- model.ipar = new ScilabDouble([this.font], [this.siz]);
-
- var exprs = ["Text", this.font, this.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(["Text", "graphics", "model", "void", "gui"], new ScilabString(["Text", "graphics", "model", "void", "gui"]), graphics, model, new ScilabString([" "]), new ScilabString(["TEXT_f"]));
- return new TextBlock(this.x);
- }
-
- TEXT_f.prototype.details = function TEXT_f() {
- return this.x;
- }
-}
-function TIME_DELAY() {
-
- TIME_DELAY.prototype.define = function TIME_DELAY() {
- this.nin = 1;
- this.T = 1;
- this.init = 0;
- this.N = 1024;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["time_delay"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([this.nin]);
- model.out = new ScilabDouble([this.nin]);
- model.rpar = new ScilabDouble([this.T, this.init]);
- model.ipar = new ScilabDouble([this.N]);
- model.blocktype = new ScilabString(["x"]);
- model.dep_ut = new ScilabBoolean([false, true]);
-
- var exprs = new ScilabString([this.T], [this.init], [this.N]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"TIME_DELAY\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3.5, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- TIME_DELAY.prototype.details = function TIME_DELAY() {
- return this.x;
- }
-}
-function TIME_f() {
-
- TIME_f.prototype.define = 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 = new ScilabString(["xstringb(orig(1),orig(2),\"TIME_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, new ScilabDouble(), gr_i);
- return new BasicBlock(this.x);
- }
-
- TIME_f.prototype.details = function TIME_f() {
- return this.x;
- }
-}
-function TKSCALE() {
-
- TKSCALE.prototype.define = function TKSCALE() {
- this.a = -10;
- this.b = 10;
- this.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([this.a], [this.b], [this.f]);
- model.blocktype = new ScilabString(["d"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([sci2exp(this.a)], [sci2exp(this.b)], [sci2exp(this.f)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"TKSCALE\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- TKSCALE.prototype.details = function TKSCALE() {
- return this.x;
- }
-}
-function TOWS_c() {
-
- TOWS_c.prototype.define = function TOWS_c() {
- this.nu = -1;
- this.nz = 128;
- this.varnam = "A";
- this.herit = 0;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["tows_c"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([this.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([this.nz], [this.varnam.length], ascii(this.varnam));
- model.blocktype = new ScilabString(["d"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"TOWS_c\",sz(1),sz(2));"]);;
-
- var exprs = new ScilabString([this.nz], [this.varnam], [this.herit]);
- this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- TOWS_c.prototype.details = function TOWS_c() {
- return this.x;
- }
-}
-function TRASH_f() {
-
- TRASH_f.prototype.define = function TRASH_f() {
- this.in1 = -1;
-
- var model = scicos_model();
- model.sim = new ScilabString(["trash"]);
- model.in = new ScilabDouble([this.in1]);
- model.evtin = new ScilabDouble([1]);
- model.blocktype = new ScilabString(["d"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([" "]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"TRASH_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- TRASH_f.prototype.details = function TRASH_f() {
- return this.x;
- }
-}
-function TrigFun() {
-
- TrigFun.prototype.define = function TrigFun() {
- var model = scicos_model();
- model.sim = list(new ScilabString(["sin_blk"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([-1]);
- model.out = new ScilabDouble([-1]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString(["sin"]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"TrigFun\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- TrigFun.prototype.details = function TrigFun() {
- return this.x;
- }
-}
-function VanneReglante() {
-
- VanneReglante.prototype.define = function VanneReglante() {
- var model = scicos_model();
- model.in = new ScilabDouble([1], [1]);
- model.out = new ScilabDouble([1]);
-
- this.Cvmax = 8005.42;
- this.p_rho = 0;
-
- model.rpar = new ScilabDouble([this.Cvmax], [this.p_rho]);
- model.sim = new ScilabString(["VanneReglante"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- mo.model = new ScilabString(["VanneReglante"]);
- mo.inputs = new ScilabString(["C1", "Ouv"]);
- mo.outputs = new ScilabString(["C2"]);
- mo.parameters = list(new ScilabString(["Cvmax"], ["p_rho"]), new ScilabDouble([this.Cvmax], [this.p_rho]));
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
- model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
-
- var exprs = new ScilabString([this.Cvmax], [this.p_rho]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"VanneReglante\",sz(1),sz(2));"]);
- this.x = standard_define([2, 2], model, exprs, list(gr_i, new ScilabDouble([0])));
- this.x.graphics.in_implicit = new ScilabString(["I"], ["E"]);
- this.x.graphics.out_implicit = new ScilabString(["I"]);
- return new BasicBlock(this.x);
- }
-
- VanneReglante.prototype.details = function VanneReglante() {
- return this.x;
- }
-}
-function VariableResistor() {
-
- VariableResistor.prototype.define = 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 = new modelica_function();
- mo.model = new ScilabString(["VariableResistor"]);
- mo.inputs = new ScilabString(["p", "R"]);
- mo.outputs = new ScilabString(["n"]);
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
- model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
-
- var exprs = new ScilabDouble();
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"VariableResistor\",sz(1),sz(2));"]);;
- 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);
- }
-
- VariableResistor.prototype.details = function VariableResistor() {
- return this.x;
- }
-}
-function VARIABLE_DELAY() {
-
- VARIABLE_DELAY.prototype.define = function VARIABLE_DELAY() {
- this.nin = 1;
- this.T = 1;
- this.init = 0;
- this.N = 1024;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["variable_delay"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([this.nin], [1]);
- model.out = new ScilabDouble([this.nin]);
- model.rpar = new ScilabDouble([this.T, this.init]);
- model.ipar = new ScilabDouble([this.N]);
- model.blocktype = new ScilabString(["d"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([this.T], [this.init], [this.N]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"VARIABLE_DELAY\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- VARIABLE_DELAY.prototype.details = function VARIABLE_DELAY() {
- return this.x;
- }
-}
-function VirtualCLK0() {
-
- VirtualCLK0.prototype.define = 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 = new ScilabDouble();
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, new ScilabString([" "]));
- return new BasicBlock(this.x);
- }
-
- VirtualCLK0.prototype.details = function VirtualCLK0() {
- return this.x;
- }
-
-}
-function VoltageSensor() {
-
- VoltageSensor.prototype.define = function VoltageSensor() {
- var model = scicos_model();
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1], [, 1]);
- model.sim = new ScilabString(["VoltageSensor"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- mo.model = new ScilabString(["VoltageSensor"]);
- mo.inputs = new ScilabString(["p"]);
- mo.outputs = new ScilabString(["n"], ["v"]);
- model.equations = mo;
-
- var exprs = new ScilabDouble();
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"VoltageSensor\",sz(1),sz(2));"]);;
- this.x = standard_define([2, 2], model, exprs, list(gr_i, new ScilabDouble([0])));
- this.x.graphics.in_implicit = new ScilabString(["I"]);
- this.x.graphics.out_implicit = new ScilabString(["I"], ["E"]);
- return new VoltageSensorBlock(this.x);
- }
-
- VoltageSensor.prototype.details = function VoltageSensor() {
- return this.x;
- }
-}
-function VsourceAC() {
-
- VsourceAC.prototype.define = function VsourceAC() {
- var model = scicos_model();
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
-
- this.VA = 220;
-
- this.FR = 50;
- model.rpar = new ScilabDouble([this.VA], [this.FR]);
- model.sim = new ScilabString(["VsourceAC"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = modelica_function();
- mo.model = new ScilabString(["VsourceAC"]);
- mo.inputs = new ScilabString(["p"]);
- mo.outputs = new ScilabString(["n"]);
- mo.parameters = list(new ScilabString(["VA"], ["f"]), list(new ScilabDouble([this.VA]), new ScilabDouble([this.FR])));
- model.equations = mo;
-
- var exprs = new ScilabString([this.VA], [this.FR]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"VsourceAC\",sz(1),sz(2));"]);
-
- 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);
- }
-
- VsourceAC.prototype.details = function VsourceAC() {
- return this.x;
- }
-}
-function VVsourceAC() {
-
- VVsourceAC.prototype.define = function VVsourceAC() {
- var model = scicos_model();
-
- model.in = new ScilabDouble([1], [1]);
- model.out = new ScilabDouble([1]);
-
- this.VA = 220;
- this.FR = 50;
-
- model.rpar = new ScilabDouble([this.FR]);
- model.sim = new ScilabString(["VVsourceAC"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = modelica_function();
- mo.model = new ScilabString(["VVsourceAC"]);
- mo.inputs = new ScilabString(["p", "VA"]);
- mo.outputs = new ScilabString(["n"]);
- mo.parameters = list(new ScilabString(["f"]), list(new ScilabDouble([this.FR])));
- model.equations = mo;
-
- var exprs = new ScilabString([this.FR]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"VVsourceAC\",sz(1),sz(2));"]);
-
-
- 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);
- }
-
- VVsourceAC.prototype.details = function VVsourceAC() {
- return this.x;
- }
-}
-function WRITEAU_f() {
-
- WRITEAU_f.prototype.define = function WRITEAU_f() {
- this.in1 = 1;
- this.nin = math.sum(this.in1);
- this.frmt = "uc ";
- this.fname = "/dev/audio";
- this.swap = 0;
- this.lunit = 0;
- this.N = 2;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["writeau"]), new ScilabDouble([2]));
- model.in = new ScilabDouble([this.in1]);
- model.evtin = new ScilabDouble([1]);
- model.dstate = new ScilabDouble([-1], [this.lunit], ...zeros((this.nin + 1) * this.N, 1));
- model.ipar = new ScilabDouble([this.fname.length], ..._str2code(this.frmt), [this.N], [this.swap], ..._str2code(this.fname));
- model.blocktype = new ScilabString(["d"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([this.N], [this.swap]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"WRITEAU_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- WRITEAU_f.prototype.details = function WRITEAU_f() {
- return this.x;
- }
-}
-function WRITEC_f() {
-
- WRITEC_f.prototype.define = function WRITEC_f() {
- this.in = 1;
- this.nin = math.sum(this.in);
- this.frmt = "c ";
- this.fname = "foo";
- this.swap = 0;
- this.lunit = 0;
- this.N = 2;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["writec"]), new ScilabDouble([2]));
- model.in = new ScilabDouble([this.in]);
- model.evtin = new ScilabDouble([1]);
- model.dstate = new ScilabDouble([-1], [this.lunit], ...zeros((this.nin + 1) * this.N, 1));
- model.ipar = new ScilabDouble([this.fname.length], ..._str2code(this.frmt), [this.N], [this.swap], ..._str2code(this.fname));
- model.blocktype = new ScilabString(["d"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([sci2exp(this.in)], [this.fname], [this.frmt], [this.N], [this.swap]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"WRITEC_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
-
- WRITEC_f.prototype.details = function WRITEC_f() {
- return this.x;
- }
-}
-function ZCROSS_f() {
-
- ZCROSS_f.prototype.define = function ZCROSS_f() {
- this.rpar = [[-1], [-1], [0], [0]];
-
- this.in = 1;
-
- var model = scicos_model();
- model.sim = list(new ScilabString(["zcross"]), new ScilabDouble([1]));
- model.in = new ScilabDouble([this.in]);
- model.nzcross = new ScilabDouble([this.in]);
- model.evtout = new ScilabDouble([1]);
- model.rpar = new ScilabDouble([-1], [-1], [0], [0]);
- model.blocktype = new ScilabString(["z"]);
- model.firing = new ScilabDouble([-1]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([sci2exp(this.in)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"ZCROSS_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
-
- return new BasicBlock(this.x);
- }
-
- ZCROSS_f.prototype.details = function ZCROSS_f() {
- return this.x;
- }
-}
+function ABS_VALUE() {
+
+ ABS_VALUE.prototype.define = function ABS_VALUE() {
+
+ this.nu = -1;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["absolute_value"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([this.nu]);
+ model.out = new ScilabDouble([this.nu]);
+ model.nzcross = new ScilabDouble([this.nu]);
+ model.nmode = new ScilabDouble([this.nu]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([1]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"ABS_VALUE\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ this.x.graphics.style = new ScilabString(["ABS_VALUE"]);
+ return new BasicBlock(this.x);
+
+ }
+
+ ABS_VALUE.prototype.details = function ABS_VALUE() {
+ return this.x;
+ }
+
+}
+function AFFICH_m() {
+
+ AFFICH_m.prototype.define = function AFFICH_m() {
+ this.font = 1;
+ this.fontsize = 1;
+ this.colr = 1;
+ this.nt = 5;
+ this.nd = 1;
+ this.in1 = [1, 1];
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["affich2"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([this.in1[0]]);
+ model.in2 = new ScilabDouble([this.in1[1]]);
+ model.evtin = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble([-1], [0], [0], [1], [1], [0], ...zeros(this.in1[0] * this.in1[1], 1));
+ model.ipar = new ScilabDouble([this.font], [this.fontsize], [this.colr], [1000], [this.nt], [this.nd], [this.in1[0]]);
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+ model.label = new ScilabString([""]);
+ var exprs = new ScilabString([sci2exp([parseFloat(...getData(model.in)), parseFloat(...getData(model.in2))])], [this.font.toString()], [this.fontsize.toString()], [this.colr.toString()], [this.nt.toString()], [this.nd.toString()], [(0).toString()]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"AFFICH_m\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ this.x.graphics.style = new ScilabString(["AFFICH_m"]);
+ return new AfficheBlock(this.x);
+ }
+
+ AFFICH_m.prototype.details = function AFFICH_m() {
+ return this.x;
+ }
+}
+function ANDBLK() {
+
+ ANDBLK.prototype.define = function ANDBLK() {
+
+ var andlog = new ANDLOG_f().internal();
+ 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]);
+ andlog.model.uid = new ScilabString([count]);
+ andlog.doc = list(new ScilabString([count++]));
+
+ var input_port1 = new CLKIN_f().internal();
+ 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]);
+ input_port1.model.uid = new ScilabString([count]);
+ input_port1.doc = list(new ScilabString([count++]));
+
+ var output_port = new CLKOUT_f().internal();
+ 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]);
+ output_port.model.uid = new ScilabString([count]);
+ output_port.doc = list(new ScilabString([count++]));
+
+ var input_port2 = new CLKIN_f().internal();
+ 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]);
+ input_port2.model.uid = new ScilabString([count]);
+ input_port2.doc = list(new ScilabString([count++]));
+
+ var ifthel = new IFTHEL_f().internal();
+ 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]);
+ ifthel.model.uid = new ScilabString([count]);
+ ifthel.doc = list(new ScilabString([count++]));
+
+
+ var split = new CLKSPLIT_f().internal();
+ split.graphics.orig = new ScilabDouble([234, 275.78348]);
+ split.graphics.pein = new ScilabDouble([6]);
+ split.graphics.peout = new ScilabDouble([11], [12]);
+ split.model.uid = new ScilabString([count]);
+ split.doc = list(new ScilabString([count++]));
+
+ var diagram = scicos_diagram();
+ diagram.objs.push(andlog);
+ diagram.objs.push(input_port1);
+ diagram.objs.push(output_port);
+ diagram.objs.push(input_port2);
+ diagram.objs.push(ifthel);
+ diagram.objs.push(split);
+ 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, 0]),
+ to: new ScilabDouble([1, 1, 1])
+ }));
+ 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([4, 1, 0]),
+ to: new ScilabDouble([6, 1, 1])
+ }));
+ 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([5, 1, 0]),
+ to: new ScilabDouble([3, 1, 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, 0]),
+ to: new ScilabDouble([5, 1, 1])
+ }));
+ 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([6, 1, 0]),
+ to: new ScilabDouble([1, 2, 1])
+ }));
+ 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([6, 2, 0]),
+ to: new ScilabDouble([5, 1, 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);
+ }
+ ANDBLK.prototype.details = function ANDBLK() {
+ return this.x;
+ }
+
+}
+function ANDLOG_f() {
+
+ ANDLOG_f.prototype.internal = function ANDLOG_f() {
+ var model = scicos_model();
+ model.sim = new ScilabString(["andlog"]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]); // null -> 1
+ model.evtin = new ScilabDouble([-1], [-1]); // 1, 1 -> -1, -1
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"ANDLOG_f\",sz(1),sz(2));"]);
+ var block = new standard_define(new ScilabDouble([80, 80]), model, new ScilabDouble(), gr_i); // 3 -> 80
+
+ // Style
+ block.graphics.out_implicit = new ScilabString(["E"]);
+ // changed
+ block.graphics.out_label = new ScilabString([""]);
+ block.graphics.out_style = new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]);
+ block.graphics.style = new ScilabString(["ANDLOG_f"]);
+ return block;
+ }
+
+ ANDLOG_f.prototype.define = function ANDLOG_f() {
+ var model = scicos_model();
+ model.sim = new ScilabString(["andlog"]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]); // null -> 1
+ model.evtin = new ScilabDouble([-1], [-1]); // 1, 1 -> -1, -1
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"ANDLOG_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([80, 80]), model, new ScilabDouble(), gr_i); // 3 -> 80
+
+ // Style
+ this.x.graphics.out_implicit = new ScilabString(["E"]);
+ // changed
+ this.x.graphics.out_label = new ScilabString([""]);
+ this.x.graphics.out_style = new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]);
+ this.x.graphics.style = new ScilabString(["ANDLOG_f"]);
+ return new BasicBlock(this.x);
+ }
+
+ ANDLOG_f.prototype.details = function ANDLOG() {
+ return this.x;
+ }
+}
+function AUTOMAT() {
+
+ AUTOMAT.prototype.define = function AUTOMAT() {
+ this.NMode = 2;
+ this.Minitial = 1;
+ this.NX = 1;
+ this.X0 = [0.0];
+ this.XP = [[1],[1]];
+ this.C1 = [2];
+ this.C2 = [1];
+
+ var exprs = new ScilabString([this.NMode.toString()], [this.Minitial.toString()], [this.NX.toString()], [sci2exp(this.X0)], [sci2exp(this.XP)], [sci2exp(this.C1)], [sci2exp(this.C2)]);
+ var ipar = new ScilabDouble([this.NMode], [this.Minitial], [this.NX], ...this.XP, this.C1, this.C2);
+ var rpar = new ScilabDouble(this.X0);
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["automat"]), new ScilabDouble([10004]));
+ model.in = new ScilabDouble([2 * this.NX + 1], [2 * this.NX + 1]);
+ model.out = new ScilabDouble([2], [2 * this.NX]);
+ model.state = new ScilabDouble(...ones(2 * this.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 = new ScilabString(["xstringb(orig(1),orig(2),\"AUTOMAT\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+
+ }
+
+ AUTOMAT.prototype.details = function AUTOMAT() {
+ return this.x;
+ }
+}
+function Bache() {
+
+ Bache.prototype.define = function Bache() {
+ this.in1 = 2;
+ this.out = 3;
+
+ var model = scicos_model();
+ model.in = new ScilabDouble(math.transpose(math.range(-1, -this.in1, -1, true)));
+ model.out = new ScilabDouble(math.transpose(math.range(-1, -this.out, -1, true)));
+
+ this.Patm = 1.013E5;
+ this.A = 1;
+ this.ze1 = 40;
+ this.ze2 = 0;
+ this.zs1 = 40;
+ this.zs2 = 0;
+ this.z0 = 30;
+ this.T0 = 290;
+ this.p_rho = 0;
+
+ model.rpar = new ScilabDouble([this.Patm], [this.A], [this.ze1], [this.ze2], [this.zs1], [this.zs2], [this.z0], [this.T0], [this.p_rho]);
+ model.sim = new ScilabString(["Bache"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ 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"]), new ScilabDouble([this.Patm], [this.A], [this.ze1], [this.ze2], [this.zs1], [this.zs2], [this.z0], [this.T0], [this.p_rho]));
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(getData(mo.inputs), '*'), 1));
+ model.out = new ScilabDouble(...ones(size(getData(mo.outputs), '*'), 1));
+
+ var exprs = new ScilabString([this.Patm.toString()], [this.A.toString()], [this.ze1.toString()], [this.ze2.toString()], [this.zs1.toString()], [this.zs2.toString()], [this.z0.toString()], [this.T0.toString()], [this.p_rho.toString()]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Bache\",sz(1),sz(2));"]);
+ this.x = new 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);
+ }
+ Bache.prototype.details = function Bache() {
+ return this.x;
+ }
+}
+function BACKLASH() {
+ BACKLASH.prototype.define = function BACKLASH() {
+
+ var exprs = new ScilabString(["0"], ["1"], ["1"]);
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["backlash"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([0], [1]);
+ model.nzcross = new ScilabDouble([2]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"BACKLASH\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x)
+ }
+ BACKLASH.prototype.details = function BACKLASH() {
+ return this.x;
+ }
+}
+function BARXY() {
+
+ BARXY.prototype.define = function BARXY() {
+
+ var model = scicos_model();
+ this.xmin = -15;
+ this.xmax = 15;
+ this.ymin = -15;
+ this.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.in = new ScilabDouble([-1], [-1]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble();
+ model.evtin = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([this.xmin], [this.xmax], [this.ymin], [this.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);
+ }
+ BARXY.prototype.details = function BARXY() {
+ return this.x;
+ }
+
+}
+function BIGSOM_f() {
+
+ BIGSOM_f.prototype.define = function BIGSOM_f() {
+ this.sgn = [[1],[1]];
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["sum"]), new ScilabDouble([2]));
+ model.in = new ScilabDouble([-1], [-1]);
+ model.out = new ScilabDouble([-1]);
+ model.rpar = new ScilabDouble(...this.sgn);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([sci2exp(this.sgn)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"BIGSOM_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 3]), model, exprs, gr_i);
+ this.x.graphics.style = new ScilabString(["BIGSOM_f"]);
+ return new BigSom(this.x);
+ }
+ BIGSOM_f.prototype.details = function BIGSOM_f() {
+ return this.x;
+ }
+}
+function BITCLEAR() {
+ BITCLEAR.prototype.define = function BITCLEAR() {
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["bit_clear_32"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([1]);
+ model.in2 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([3]);
+ model.outtyp = new ScilabDouble([3]);
+ model.opar = list(int32([0]));
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([sci2exp(3)], [sci2exp(0)]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"BITCLEAR\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ BITCLEAR.prototype.details = function BITCLEAR() {
+ return this.x;
+ }
+}
+function BITSET() {
+
+ BITSET.prototype.define = function BITSET() {
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["bit_set_32"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([1]);
+ model.in2 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([3]);
+ model.outtyp = new ScilabDouble([3]);
+ model.opar = list(uint32([0]));
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([sci2exp(3)], [sci2exp(0)]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"BITSET\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ BITSET.prototype.details = function BITSET() {
+ return this.x;
+ }
+}
+function BOUNCE() {
+
+ BOUNCE.prototype.define = function BOUNCE() {
+ this.n = 2;
+
+ this.k = 0;
+ this.ipar = [];
+
+ for (var i = 1; i <= this.n; i++) {
+ for (var j = i + 1; j <= this.n; j++) {
+ this.ipar[this.k] = [i];
+ this.k++;
+ this.ipar[this.k] = [j];
+ this.k++;
+ }
+ }
+
+ this.walls = [[0],[5],[0],[5]];
+ this.x1 = [[2],[2.5]];
+ this.xd = [[0],[0]];
+ this.y1 = [[3],[5]];
+ this.yd = [[0],[0]];
+ this.g = 9.81;
+ this.C = 0;
+ this.rpar1 = ones(this.n, 1);
+ this.rpar2 = this.rpar1;
+ this.state = [...math.transpose(this.x1), ...math.transpose(this.xd), ...math.transpose(this.y1), ...math.transpose(this.yd)];
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["bounce_ball"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble();
+ model.out = new ScilabDouble([this.n], [this.n]);
+ model.state = new ScilabDouble(...colon_operator(this.state));
+ model.rpar = new ScilabDouble(...this.rpar1, ...this.rpar2, ...this.walls, [this.g], [this.C]);
+ model.ipar = new ScilabDouble(...this.ipar);
+ model.nzcross = new ScilabDouble([this.n * (this.n - 1) / 2 + 4 * this.n]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+
+ var exprs = new ScilabString([sci2exp(this.rpar1)], [sci2exp(this.rpar2)], [sci2exp(this.walls)], [sci2exp(this.x1)], [sci2exp(this.xd)], [sci2exp(this.y1)], [sci2exp(this.yd)]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"BOUNCE\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+
+ return new BasicBlock(this.x);
+ }
+
+ BOUNCE.prototype.details = function BOUNCE() {
+
+ return this.x;
+ }
+}
+function BOUNCEXY() {
+
+ BOUNCEXY.prototype.define = function BOUNCEXY() {
+ this.win = -1;
+ this.imode = 1;
+ this.clrs = [[1],[2]];
+ this.siz = [[1],[1]];
+ this.xmin = -5;
+ this.xmax = 5;
+ this.ymin = 0;
+ this.ymax = 15;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["bouncexy"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([-1], [-1]);
+ model.in2 = new ScilabDouble([1], [1]);
+ model.intyp = new ScilabDouble([1], [1]);
+ model.evtin = new ScilabDouble([1]);
+
+
+ this.z = [];
+
+ for (var i = 0; i < size(this.clrs, "*"); i++) {
+ this.z[6 * (i) + 0] = [0];
+ this.z[6 * (i) + 1] = [0];
+ this.z[6 * (i) + 2] = [2 * this.siz[i]];
+ this.z[6 * (i) + 3] = [2 * this.siz[i]];
+ this.z[6 * (i) + 4] = [0.000];
+ this.z[6 * (i) + 5] = [64.0 * 360.000];
+
+ }
+
+ model.dstate = new ScilabDouble(...this.z);
+ model.rpar = new ScilabDouble([this.xmin], [this.xmax], [this.ymin], [this.ymax]);
+ model.ipar = new ScilabDouble([this.win], [this.imode], ...colon_operator(this.clrs));
+ model.blocktype = new ScilabString("d");
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([sci2exp(this.clrs)], [sci2exp(this.siz)], [sci2exp(this.win)], [sci2exp(1)], [sci2exp(this.xmin)], [sci2exp(this.xmax)], [sci2exp(this.ymin)], [sci2exp(this.ymax)]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"BOUNCEXY\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ BOUNCEXY.prototype.details = function BOUNCEXY() {
+
+ return this.x;
+ }
+}
+function BPLATFORM() {
+
+ BPLATFORM.prototype.define = function BPLATFORM() {
+
+ this.plen = 2;
+ this.csiz = 2;
+ this.phi = 0;
+ this.xmin = -5;
+ this.xmax = 5;
+ this.ymin = 0;
+ this.ymax = 15;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["bplatform2"]), new ScilabDouble([5]));
+ model.in = new ScilabDouble([1], [1]);
+ model.evtin = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble([0]);
+ model.rpar = new ScilabDouble([this.plen], [this.csiz], [this.phi], [this.xmin], [this.xmax], [this.ymin], [this.ymax]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([this.plen], [this.csiz], [this.phi], [this.xmin], [this.xmax], [this.ymin], [this.ymax]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"BPLATFORM\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ BPLATFORM.prototype.details = function BPLATFORM() {
+
+ return this.x;
+ }
+
+}
+function CANIMXY() {
+
+ CANIMXY.prototype.define = function CANIMXY() {
+ this.win = -1;
+ this.clrs = -4;
+ this.N = 2;
+ this.siz = 1;
+ this.wpos = [[-1],[-1]];
+ this.wdim = [[-1],[-1]];
+ this.xmin = -15;
+ this.xmax = 15;
+ this.ymin = -15;
+ this.ymax = 15;
+ this.nbr_curves = 1;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["canimxy"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([1], [1]);
+ model.in2 = new ScilabDouble([1], [1]);
+ model.intyp = new ScilabDouble([1], [1]);
+ model.evtin = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([this.xmin], [this.xmax], [this.ymin], [this.ymax]);
+ model.ipar = new ScilabDouble([this.win], [1], [this.N], [this.clrs], [this.siz], [0], ...this.wpos, ...this.wdim, [this.nbr_curves]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([this.nbr_curves], [this.clrs], [this.siz], [this.win], ["[]"], ["[]"], [this.xmin], [this.xmax], [this.ymin], [this.ymax], [this.N]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CANIMXY\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ CANIMXY.prototype.details = function CANIMXY() {
+ return this.x;
+ }
+}
+function CANIMXY3D() {
+
+ CANIMXY3D.prototype.define = function CANIMXY3D() {
+ this.win = -1;
+ this.N = 2;
+ this.clrs = [[1],[2],[3],[4],[5],[6],[7],[13]];
+ this.siz = [[1],[1],[1],[1],[1],[1],[1],[1]];
+ this.wpos = [[-1],[-1]];
+ this.wdim = [[-1],[-1]];
+ this.param3ds = [[50],[280]];
+ this.vec_x = [[-15],[15]];
+ this.vec_y = [[-15],[15]];
+ this.vec_z = [[-15],[15]];
+ this.nbr_curves = 1;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["canimxy3d"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([1], [1], [1]);
+ model.evtin = new ScilabDouble([1]);
+ model.in2 = new ScilabDouble([1], [1], [1]);
+ model.intyp = new ScilabDouble([1], [1], [1]);
+ model.rpar = new ScilabDouble(...colon_operator(this.vec_x), ...colon_operator(this.vec_y), ...colon_operator(this.vec_z), ...colon_operator(this.param3ds));
+ model.ipar = new ScilabDouble([this.win], [8], [this.N], ...colon_operator(this.clrs), ...colon_operator(this.siz), [8], ...colon_operator(this.wpos), ...colon_operator(this.wdim), [this.nbr_curves]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([this.nbr_curves], [this.clrs.toString().replace(/,/g, " ")], [this.siz.toString().replace(/,/g, " ")], [this.win], ["[]"], ["[]"], [this.vec_x.toString().replace(/,/g, " ")], [this.vec_y.toString().replace(/,/g, " ")], [this.vec_z.toString().replace(/,/g, " ")], [this.param3ds.toString().replace(/,/g, " ")], [this.N]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CANIMXY3D\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ CANIMXY3D.prototype.details = function CANIMXY3D() {
+ return this.x;
+ }
+
+}
+function Capacitor() {
+
+ Capacitor.prototype.define = 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 = new modelica_function();
+ mo.model = new ScilabString(["Capacitor"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["n"]);
+ mo.parameters = list(new ScilabString(["C", "v"]), list(new ScilabDouble([C]), new ScilabDouble([v])), new ScilabDouble([0, 1]));
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
+ model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
+
+ var exprs = new ScilabString([C], [v]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Capacitor\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 1.1]), model, exprs, list(gr_i, new ScilabDouble([0])));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x);
+ }
+ Capacitor.prototype.details = function Capacitor() {
+ return this.x;
+ }
+}
+function CBLOCK() {
+
+ CBLOCK.prototype.define = function CBLOCK() {
+ this.in1 = 1;
+ this.out = 1;
+ this.clkin = [];
+ this.clkout = [];
+ this.x0 = [];
+ this.z0 = [];
+ this.typ = "c";
+ this.auto = [];
+ this.rpar = [];
+ this.ipar = [];
+ this.funam = "toto";
+ this.ng = 0;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([" "]), new ScilabDouble([2004]));
+ model.in = new ScilabDouble([this.in1]);
+ model.out = new ScilabDouble([this.out]);
+ 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([this.typ]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+ model.nzcross = new ScilabDouble([this.ng]);
+
+ var label = list(new ScilabString([this.funam], ["n"], [sci2exp(this.in1)], [sci2exp(this.out)], [sci2exp(this.clkin)], [sci2exp(this.clkout)], [sci2exp(this.x0)], [sci2exp(0)], [sci2exp(this.z0)], [sci2exp(this.rpar)], [sci2exp(this.ipar)], [sci2exp(this.auto)], ["y"], ["n"]), new ScilabDouble());
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CBLOCK\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([4, 2]), model, label, gr_i);
+ return new BasicBlock(this.x)
+ }
+
+
+ CBLOCK.prototype.details = function CBLOCK() {
+
+ return this.x;
+ }
+}
+function CBLOCK4() {
+
+ CBLOCK4.prototype.define = function CBLOCK4() {
+
+ this.funam = "toto";
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([" "]), new ScilabDouble([2004]));
+ model.in = new ScilabDouble([1]);
+ model.in2 = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = list(new ScilabString([this.funam], ["n"], [sci2exp([parseFloat(...getData(model.in)), parseFloat(...getData(model.in2))])], [sci2exp(parseFloat(...getData(model.intyp)))], [sci2exp([parseFloat(...getData(model.out)), parseFloat(...getData(model.out2))])], [sci2exp(parseFloat(...getData(model.outtyp)))], [sci2exp(getData(model.evtin))], [sci2exp(getData(model.evtout))], [sci2exp(getData(model.state))], [sci2exp(getData(model.dstate))], [sci2exp(model.odstate)], [sci2exp(getData(model.rpar))], [sci2exp(getData(model.ipar))], [sci2exp(model.opar)], [sci2exp(parseFloat(...getData(model.nmode)))], [sci2exp(parseFloat(...getData(model.nzcross)))], [sci2exp(getData(model.firing))], ["y"], ["n"]), new ScilabDouble());
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CBLOCK4\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([4, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ CBLOCK4.prototype.details = function CBLOCK4() {
+ return this.x;
+ }
+}
+function CCS() {
+
+ CCS.prototype.define = function CCS() {
+ this.ModelName = "CCS";
+ this.PrametersValue = new ScilabDouble();
+ this.ParametersName = new ScilabDouble();
+ var model = scicos_model();
+ this.Typein = [];
+ this.Typeout = [];
+ this.MI = [];
+ this.MO = [];
+ this.P = [[2,50,1,0],[70,98,2,0],[70,2,-2,0]];
+ this.PortName = [["Iin"],["p"],["n"]];
+
+ for (var i = 0; i < size(this.P, "r"); i++) {
+ if (this.P[i][2] == 1) {
+ this.Typein.push(["E"]);
+ this.MI.push(this.PortName[i]);
+ }
+
+ if (this.P[i][2] == 2) {
+ this.Typein.push(["I"]);
+ this.MI.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -1) {
+ this.Typeout.push(["E"]);
+ this.MO.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -2) {
+ this.Typeout.push(["I"]);
+ this.MO.push(this.PortName[i]);
+ }
+ }
+
+ var mo = new modelica_function();
+ model.sim = new ScilabString([this.ModelName]);
+ mo.inputs = new ScilabString(...this.MI);
+ mo.outputs = new ScilabString(...this.MO);
+ model.rpar = this.PrametersValue;
+ mo.parameters = list(this.ParametersName, this.PrametersValue, new ScilabDouble(...zeros(getData(this.ParametersName))));
+ var exprs = new ScilabDouble();
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CCS\",sz(1),sz(2));"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+ mo.model = new ScilabString([this.ModelName]);
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
+ model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
+ this.x = new standard_define(new ScilabDouble([2.1, 3]), model, exprs, list(new ScilabString([gr_i]), new ScilabDouble([0])));
+ this.x.graphics.in_implicit = new ScilabDouble(this.Typein);
+ this.x.graphics.out_implicit = new ScilabDouble(this.Typeout);
+ return new BasicBlock(this.x);
+ }
+
+ CCS.prototype.details = function CCS() {
+ return this.x;
+ }
+}
+function CEVENTSCOPE() {
+
+ CEVENTSCOPE.prototype.define = function CEVENTSCOPE() {
+ this.nclock = 1;
+ this.win = -1;
+ this.clrs = [[1],[3],[5],[7],[9],[11],[13],[15]];
+ this.wdim = [[600],[400]];
+ this.wpos = [[-1],[-1]];
+ this.per = 30;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["cevscpe"]), new ScilabDouble([4]));
+ model.evtin = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([this.per]);
+ model.ipar = new ScilabDouble([this.win], [1], this.clrs[this.nclock - 1], ...this.wpos, ...this.wdim);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([sci2exp(this.nclock)], this.clrs[this.nclock - 1], [this.win], [sci2exp([])], [sci2exp(this.wdim)], [this.per]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CEVENTSCOPE\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ CEVENTSCOPE.prototype.details = function CEVENTSCOPE() {
+ return this.x;
+ }
+}
+function CFSCOPE() {
+
+ CFSCOPE.prototype.define = function CFSCOPE() {
+ this.win = -1;
+ this.wdim = [[600],[400]];
+ this.wpos = [[-1],[-1]];
+ this.clrs = [[1],[3],[5],[7],[9],[11],[13],[15]];
+ this.N = 2;
+ this.ymin = -15;
+ this.ymax = 15;
+ this.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], [this.ymin], [this.ymax], [this.per]);
+ model.ipar = new ScilabDouble([this.win], [1], [this.N], ...this.clrs, ...this.wpos, ...this.wdim, [1], [1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+ var exprs = new ScilabString([this.clrs.toString().replace(/,/g, " ")], [this.win], [sci2exp([])], [sci2exp(this.wdim)], [this.ymin], [this.ymax], [this.per], [this.N], [1]);
+ var gr_i = list(new ScilabString(["xstringb(orig(1),orig(2),\"CFSCOPE\",sz(1),sz(2));"]), new ScilabDouble([8]));
+ this.x = new standard_define(new ScilabDouble([80, 80]), model, exprs, gr_i); // 2 -> 80
+ this.x.graphics.style = new ScilabString(["CFSCOPE"]);
+ return new BasicBlock(this.x);
+ }
+ CFSCOPE.prototype.details = function CFSCOPE() {
+ return this.x;
+ }
+}
+function CLINDUMMY_f() {
+
+ CLINDUMMY_f.prototype.define = function CLINDUMMY_f() {
+ this.x0 = 0;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["cdummy"]), new ScilabDouble([4]));
+ model.state = new ScilabDouble([this.x0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([false, true]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CLINDUMMY_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, new ScilabDouble(), gr_i);
+ return new BasicBlock(this.x);
+ }
+ CLINDUMMY_f.prototype.details = function CLINDUMMY_f() {
+ return this.x;
+ }
+}
+function CLKFROM() {
+
+ CLKFROM.prototype.define = function CLKFROM() {
+ var model = scicos_model();
+ model.sim = new ScilabString(["clkfrom"]);
+ model.evtout = new ScilabDouble([1]);
+ model.opar = list(new ScilabString(["A"]));
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([-1]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString(["A"]);
+ this.x = new standard_define(new ScilabDouble([2, 1]), model, exprs, new ScilabString([" "]));
+ this.x.graphics.id = new ScilabString(["From"]);
+ return new BasicBlock(this.x);
+ }
+ CLKFROM.prototype.details = function CLKFROM() {
+ return this.x;
+ }
+}function CLKGOTO() {
+
+ CLKGOTO.prototype.define = function CLKGOTO() {
+ var model = scicos_model();
+ model.sim = new ScilabString(["clkgoto"]);
+ model.evtin = new ScilabDouble([1]);
+ model.opar = list(new ScilabString(["A"]));
+ model.ipar = new ScilabDouble([1]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([-1]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString(["A"], [sci2exp(1)]);
+ this.x = new standard_define(new ScilabDouble([2, 1]), model, exprs, new ScilabString([" "]));
+ this.x.graphics.id = new ScilabString(["Goto"]);
+ return new BasicBlock(this.x);
+ }
+
+ CLKGOTO.prototype.details = function CLKGOTO() {
+ return this.x;
+ }
+}
+function CLKGotoTagVisibility() {
+
+ CLKGotoTagVisibility.prototype.define = 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(new ScilabString(["A"]));
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabBoolean([false]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString(["A"]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CLKGotoTagVisibility\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ CLKGotoTagVisibility.prototype.details = function CLKGotoTagVisibility() {
+ return this.x;
+ }
+}
+function CLKINV_f() {
+
+ CLKINV_f.prototype.define = function CLKINV_f() {
+ this.prt = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["input"]);
+ model.evtout = new ScilabDouble([1]);
+ model.ipar = new ScilabDouble([this.prt]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([-1]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([this.prt]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CLKINV_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([1, 1]), model, exprs, gr_i);
+ return new EventInBlock(this.x);
+ }
+ CLKINV_f.prototype.internal = function CLKINV_f() {
+ this.prt = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["input"]);
+ model.evtout = new ScilabDouble([1]);
+ model.ipar = new ScilabDouble([this.prt]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([-1]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+ model.outtyp = new ScilabDouble();
+
+ var exprs = new ScilabString([this.prt]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CLKINV_f\",sz(1),sz(2));"]);
+ var block = new standard_define(new ScilabDouble([1, 1]), model, exprs, gr_i);
+ block.graphics.style = new ScilabString(["CLKINV_f"]);
+ return block;
+ }
+ CLKINV_f.prototype.details = function CLKINV_f() {
+ return this.x;
+ }
+}
+function CLKOUTV_f() {
+
+ CLKOUTV_f.prototype.define = function CLKOUTV_f() {
+
+ this.prt = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["output"]);
+ model.evtin = new ScilabDouble([1]);
+ model.ipar = new ScilabDouble([this.prt]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([this.prt]);
+ this.x = new standard_define(new ScilabDouble([1, 1]), model, exprs, new ScilabString([" "]));
+ return new EventOutBlock(this.x);
+ }
+
+ CLKOUTV_f.prototype.internal = function CLKOUTV_f() {
+
+ this.prt = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["output"]);
+ model.evtin = new ScilabDouble([1]);
+ model.ipar = new ScilabDouble([this.prt]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([false, false]);
+ model.outtyp = new ScilabDouble();
+ var exprs = new ScilabString([this.prt]);
+ var block = new standard_define(new ScilabDouble([1, 1]), model, exprs, new ScilabString([" "]));
+ block.graphics.gr_i = list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CLKOUTV_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8]));
+ block.graphics.style = new ScilabString(["CLKOUTV_f"]);
+ return block;
+ }
+
+ CLKOUTV_f.prototype.details = function CLKOUTV_f() {
+ return this.x;
+ }
+}
+function CLKSOMV_f() {
+
+ CLKSOMV_f.prototype.internal = 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 = new ScilabString(["xstringb(orig(1),orig(2),\"CLKSOMV_f\",sz(1),sz(2));"]);
+ var block = new standard_define(new ScilabDouble([2, 2]), model, new ScilabDouble(), gr_i);
+ return block;
+ }
+
+ CLKSOMV_f.prototype.define = 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 = new ScilabString(["xstringb(orig(1),orig(2),\"CLKSOMV_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, new ScilabDouble(), gr_i);
+ return new RoundBlock(this.x);
+ }
+ CLKSOMV_f.prototype.details = function CLKSOMV_f() {
+ return this.x;
+ }
+}
+function CLKSOM_f() {
+
+ CLKSOM_f.prototype.internal = function CLKSOM_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]);
+ model.outtyp = new ScilabDouble();
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CLKSOM_f\",sz(1),sz(2));"]);
+ var block = standard_define(new ScilabDouble([1, 1]), model, [], gr_i);
+ block.graphics.style = new ScilabString(["CLKSOM_f"])
+ return block;
+ }
+}
+function CLOCK_c() {
+
+ CLOCK_c.prototype.get = function CLOCK_c() {
+ var options = {
+ dt: ["Period", getData(this.x.model.rpar.objs[1].model.rpar)[0]],
+ t0: ["Initialisation Time", getData(this.x.model.rpar.objs[1].model.firing)],
+ };
+ return options;
+ }
+
+ CLOCK_c.prototype.set = function CLOCK_c() {
+ this.x.model.rpar.objs[1].model.firing = new ScilabDouble([arguments[0]["t0"]]);
+ this.x.model.rpar.objs[1].model.rpar = new ScilabDouble([arguments[0]["dt"]], [arguments[0]["t0"]]);
+ this.x.model.rpar.objs[1].graphics.exprs = new ScilabString([arguments[0]["dt"]], [arguments[0]["t0"]])
+ return new BasicBlock(this.x);
+ }
+
+ CLOCK_c.prototype.define = function CLOCK_c() {
+ var evtdly = new EVTDLY_c().internal();
+ 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]);
+
+ evtdly.model.uid = new ScilabString([count]); // changed
+ evtdly.doc = list(new ScilabString([count++]));
+ evtdly.model.evtin = new ScilabDouble([-1]);
+ evtdly.model.evtout = new ScilabDouble([-1]);
+ evtdly.graphics.peout = new ScilabDouble([4]);
+
+ var output_port = new CLKOUT_f().internal();
+ 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]);
+
+ output_port.model.uid = new ScilabString([count]); // changed
+ output_port.doc = list(new ScilabString([count++]));
+
+ var split = new CLKSPLIT_f().internal();
+ split.graphics.orig = new ScilabDouble([380.71066, 172]);
+ split.graphics.pein = new ScilabDouble([3]);
+ split.graphics.peout = new ScilabDouble([5], [6]);
+ split.model.uid = new ScilabString([count]);
+ split.doc = list(new ScilabString([count++]));
+ split.graphics.pein = new ScilabDouble([4]); // changed
+
+ var diagram = scicos_diagram();
+ diagram.objs.push(output_port);
+ diagram.objs.push(evtdly);
+ diagram.objs.push(split);
+ 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, 0]),
+ to: new ScilabDouble([3, 1, 1])
+ }));
+ diagram.objs.push(scicos_link({
+ xx: new ScilabDouble([380.71], [399]),
+ yy: new ScilabDouble([172], [172]),
+ ct: new ScilabDouble([5, -1]),
+ from: new ScilabDouble([3, 1, 0]),
+ to: new ScilabDouble([1, 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([3, 2, 0]),
+ to: new ScilabDouble([2, 1, 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 = new ScilabString([]);
+ 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);
+ }
+ CLOCK_c.prototype.details = function CLOCK_c() {
+ return this.x;
+ }
+}
+function CLR() {
+
+ CLR.prototype.define = function CLR() {
+ this.x0 = 0;
+ this.A = -1;
+ this.B = 1;
+ this.C = 1;
+ this.D = 0;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["csslti4"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.state = new ScilabDouble([this.x0]);
+ model.rpar = new ScilabDouble([this.A], [this.B], [this.C], [this.D]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+
+ var exprs = new ScilabString(["1"], ["1+s"]);
+ var gr_i = [];
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ CLR.prototype.details = function CLR() {
+ return this.x;
+ }
+}
+function CLSS() {
+
+ CLSS.prototype.define = function CLSS() {
+ this.x0 = 0;
+ this.A = -1;
+ this.B = 1;
+ this.C = 1;
+ this.D = 0;
+ this.in1 = 1;
+ this.out = 1;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["csslti4"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([this.in1]);
+ model.out = new ScilabDouble([this.out]);
+ model.state = new ScilabDouble([this.x0]);
+ model.rpar = new ScilabDouble([this.A], [this.B], [this.C], [this.D]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+
+ var exprs = new ScilabString([this.A], [this.B], [this.C], [this.D], [this.x0]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CLSS\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ CLSS.prototype.details = function CLSS() {
+ return this.x;
+ }
+}
+function CMSCOPE() {
+ CMSCOPE.prototype.get = function CMSCOPE() {
+
+ var options = {
+ in1: ["Input ports sizes", this.in1.toString().replace(/,/g, " ")],
+ clrs: ["Drawing colors (>0) or mark (<0)", this.clrs.toString().replace(/,/g, " ")],
+ win: ["Output window number (-1 for automatic)", this.win],
+ wpos: ["Output window position", sci2exp([])],
+ wdim: ["Output window sizes", sci2exp([])],
+ ymin: ["Ymin vector", this.ymin.toString().replace(/,/g, " ")],
+ ymax: ["Ymax vector", this.ymax.toString().replace(/,/g, " ")],
+ per: ["Refresh period", this.per.toString().replace(/,/g, " ")],
+ N: ["Buffer size", this.N],
+ heritance: ["Accept herited events 0/1", 0],
+ nom: ["Name of Scope (label&Id)", ""]
+ };
+ return options;
+ }
+ CMSCOPE.prototype.set = function CMSCOPE() {
+ this.in1 = inverse(arguments[0]["in1"]);
+ this.clrs = inverse(arguments[0]["clrs"]);
+ this.win = parseInt((arguments[0]["win"]));
+ this.ymin = inverse(arguments[0]["ymin"]);
+ this.ymax = inverse(arguments[0]["ymax"]);
+ this.per = inverse(arguments[0]["per"]);
+ this.N = parseInt((arguments[0]["N"]));
+ this.heritance = parseInt((arguments[0]["heritance"]));
+ this.nom = arguments[0]["nom"];
+ this.yy = [...transpose(this.ymin), ...transpose(this.ymax)];
+ this.period = transpose(this.per);
+ this.x.model.ipar = new ScilabDouble([this.win], [this.in1.length], [this.N], ...this.wpos, ...this.wdim, ...this.in1, this.clrs[0], this.clrs[1],[this.heritance]);
+ this.x.model.label = new ScilabString([this.nom]);
+ this.x.model.evtin = new ScilabDouble(...ones(1-this.heritance,1));
+ this.x.graphics.id = new ScilabString([this.nom]);
+ this.x.model.rpar = new ScilabDouble([0], ...colon_operator(this.period), ...colon_operator(this.yy));
+ this.x.graphics.exprs = new ScilabString([this.in1.toString().replace(/,/g, " ")], [this.clrs.toString().replace(/,/g, " ")], [this.win], [sci2exp([])], [sci2exp([])], [this.ymin.toString().replace(/,/g, " ")], [this.ymax.toString().replace(/,/g, " ")], [this.per.toString().replace(/,/g, " ")], [this.N], [0], [""]);
+ return new BasicBlock(this.x);
+ }
+ CMSCOPE.prototype.define = function CMSCOPE() {
+ this.win = -1;
+ this.in1 = [[1],[1]];
+ this.wdim = [[-1],[-1]];
+ this.wpos = [[-1],[-1]];
+ this.clrs = [[1],[3],[5],[7],[9],[11],[13],[15]];
+ this.N = 20;
+ this.ymin = [[-1],[-5]];
+ this.ymax = [[1],[5]];
+ this.per = [[30],[30]];
+ this.yy = [...transpose(this.ymin), ...transpose(this.ymax)];
+ this.period = transpose(this.per);
+
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["cmscope"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble(...this.in1);
+ model.in2 = new ScilabDouble([1], [1]);
+ model.intyp = new ScilabDouble([1], [1]);
+ model.evtin = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([0], ...colon_operator(this.period), ...colon_operator(this.yy));
+ model.ipar = new ScilabDouble([this.win], [this.in1.length], [this.N], ...this.wpos, ...this.wdim, ...this.in1, this.clrs[0], this.clrs[1]);
+
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+ var exprs = new ScilabString([this.in1.toString().replace(/,/g, " ")], [this.clrs.toString().replace(/,/g, " ")], [this.win], [sci2exp([])], [sci2exp([])], [this.ymin.toString().replace(/,/g, " ")], [this.ymax.toString().replace(/,/g, " ")], [this.per.toString().replace(/,/g, " ")], [this.N], [0], [""]);
+ var gr_i = list(new ScilabString(["xstringb(orig(1),orig(2),\"CMSCOPE\",sz(1),sz(2));"]), new ScilabDouble([8]));
+ this.x = new standard_define(new ScilabDouble([80, 80]), model, exprs, gr_i); // 2 -> 80
+ this.x.graphics.style = new ScilabString(["CMSCOPE"]);
+ return new BasicBlock(this.x);
+ }
+ CMSCOPE.prototype.details = function CMSCOPE() {
+ return this.x;
+ }
+}
+function CONST() {
+
+
+ CONST.prototype.define = function CONST() {
+
+ this.C = 1;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["cstblk4"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble();
+ model.out = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([this.C]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([sci2exp(this.C)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CONST\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ CONST.prototype.details = function CONST() {
+ return this.x;
+ }
+}
+function ConstantVoltage() {
+
+ ConstantVoltage.prototype.define = function ConstantVoltage() {
+ this.V = 0.01;
+
+ var model = scicos_model();
+ model.rpar = new ScilabDouble([this.V]);
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.sim = new ScilabString(["ConstantVoltage"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var mo = new modelica_function();
+ mo.model = new ScilabString(["ConstantVoltage"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["n"]);
+ mo.parameters = list(new ScilabString(["V"]), list(new ScilabDouble([this.V])));
+ model.equations = mo;
+
+ var exprs = new ScilabString([this.V]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"ConstantVoltage\",sz(1),sz(2));"]);
+ this.x = standard_define([1.5, 1.1], model, exprs, list(gr_i, new ScilabDouble([0])));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x);
+ }
+ ConstantVoltage.prototype.details = function ConstantVoltage() {
+ return this.x;
+ }
+}
+function CONSTRAINT2_c() {
+
+ CONSTRAINT2_c.prototype.define = function CONSTRAINT2_c() {
+ this.x0 = 0;
+ this.xd0 = 0;
+ this.id = 0;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["constraint_c"]), new ScilabDouble([10004]));
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1], [1]);
+ model.state = new ScilabDouble([this.x0], [this.xd0]);
+ model.ipar = new ScilabDouble([this.id]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+
+ var exprs = list(new ScilabString([sci2exp(this.x0)]), new ScilabString([sci2exp(this.xd0)]), new ScilabString([sci2exp(this.id)]));
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CONSTRAINT2_c\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ CONSTRAINT2_c.prototype.details = function CONSTRAINT2_c() {
+ return this.x;
+ }
+}
+
+function CONSTRAINT_c() {
+
+ CONSTRAINT_c.prototype.define = function CONSTRAINT_c() {
+
+ this.x0 = [[0],[0]];
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["constraint_c"]), new ScilabDouble([10004]));
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.ipar = new ScilabDouble([0]);
+ model.state = new ScilabDouble(...this.x0);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+
+ var exprs = new ScilabString([0]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CONSTRAINT_c\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ CONSTRAINT_c.prototype.details = function CONSTRAINT_c() {
+ return this.x;
+ }
+}
+function CONST_f() {
+
+ CONST_f.prototype.define = function CONST_f() {
+ this.C = 1;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["cstblk"]), new ScilabDouble([1]));
+ model.in = new ScilabDouble();
+ model.out = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([this.C]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([sci2exp(this.C)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CONST_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ CONST_f.prototype.details = function CONST_f() {
+
+ return this.x;
+ }
+}
+function CONST_m() {
+ CONST_m.prototype.get = function CONST_m() {
+
+ var options = {
+ vec: ["Constant Value", this.c.toString()]
+ };
+ return options;
+ }
+ CONST_m.prototype.set = function CONST_m() {
+ this.c = [parseInt(arguments[0]["vec"])];
+ this.displayParameter = this.c;
+ this.x.model.sim = list(new ScilabString(["cstblk4_m"]), new ScilabDouble([4]));
+ this.x.model.opar = list(new ScilabDouble(this.c));
+ this.x.model.rpar = new ScilabDouble();
+ this.x.graphics.exprs = new ScilabString([sci2exp(this.c)]);
+ return new BasicBlock(this.x);
+ }
+ CONST_m.prototype.internal = function CONST_m() {
+ this.c = [1];
+ var model = new scicos_model();
+ model.sim = list(new ScilabString(["cstblk4"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble();
+ model.out = new ScilabDouble([this.c.length]);
+ model.in2 = new ScilabDouble();
+ model.out2 = new ScilabDouble([this.c.length]);
+ model.rpar = new ScilabDouble(this.c);
+ model.opar = list();
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CONST_m\",sz(1),sz(2));"]);
+ var exprs = new ScilabString([sci2exp(this.c)]);
+ var block = new standard_define(new ScilabDouble([80, 80]), model, exprs, gr_i); // 1 -> 80
+ block.graphics.style = new ScilabString(["CONST_m"]);
+ return block;
+ }
+ CONST_m.prototype.define = function CONST_m() {
+ this.c = [1];
+ var model = new scicos_model();
+ model.sim = list(new ScilabString(["cstblk4"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble();
+ model.out = new ScilabDouble([this.c.length]);
+ model.in2 = new ScilabDouble();
+ model.out2 = new ScilabDouble([this.c.length]);
+ model.rpar = new ScilabDouble(this.c);
+ model.opar = list();
+ model.blocktype = new ScilabString(["d"]);
+ this.displayParameter = [1];
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CONST_m\",sz(1),sz(2));"]);
+ var exprs = new ScilabString([sci2exp(this.c)]);
+ this.x = new standard_define(new ScilabDouble([80, 80]), model, exprs, gr_i); // 1 -> 80
+ this.x.graphics.style = new ScilabString(["CONST_m"]);
+ return new BasicBlock(this.x);
+ }
+ CONST_m.prototype.details = function CONST_m() {
+ return this.x;
+
+ }
+}
+function CONVERT() {
+
+ CONVERT.prototype.define = function CONVERT() {
+ this.sgn = 2;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["convert"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([-1]);
+ model.out = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.out2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([3]);
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble([this.sgn]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([sci2exp(1)], [sci2exp(3)], [sci2exp(0)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CONVERT\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ CONVERT.prototype.details = function CONVERT() {
+ return this.x;
+
+ }
+
+}
+function COSBLK_f() {
+
+ COSBLK_f.prototype.define = function COSBLK_f() {
+ this.in1 = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["cosblk"]);
+ model.in = new ScilabDouble([-1]);
+ model.out = new ScilabDouble([-1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"COSBLK_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, new ScilabDouble(), gr_i);
+ return new BasicBlock(this.x);
+ }
+ COSBLK_f.prototype.details = function COSBLK_f() {
+ return this.x;
+ }
+}function Counter() {
+
+ Counter.prototype.define = function Counter() {
+ this.minim = 0;
+ this.maxim = 2;
+ this.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([this.rule], [this.maxim], [this.minim]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([this.minim], [this.maxim], [this.rule]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Counter\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ Counter.prototype.details = function Counter() {
+ return this.x;
+ }
+}
+function CSCOPE() {
+
+ CSCOPE.prototype.define = function CSCOPE() {
+ this.win = -1;
+ this.wdim = [[600],[400]];
+ this.wpos = [[-1],[-1]];
+ this.clrs = [[1],[3],[5],[7],[9],[11],[13],[15]];
+ this.N = 20;
+ this.ymin = -15;
+ this.ymax = 15;
+ this.per = 30;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["cscope"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([0], [this.ymin], [this.ymax], [this.per]);
+ model.ipar = new ScilabDouble([this.win], [1], [this.N], ...this.clrs, ...this.wpos, ...this.wdim);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([this.clrs.toString().replace(/,/g, " ")], [this.win], [sci2exp([])], [sci2exp(this.wdim)], [this.ymin], [this.ymax], [this.per], [this.N], [0], [""]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CSCOPE\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ CSCOPE.prototype.details = function CSCOPE() {
+ return this.x;
+ }
+}
+function CSCOPXY() {
+
+ CSCOPXY.prototype.define = function CSCOPXY() {
+ this.win = -1;
+ this.clrs = 4;
+ this.siz = 1;
+ this.wdim = [[600], [400]];
+ this.wpos = [[-1], [-1]];
+ this.N = 2;
+ this.xmin = -15;
+ this.xmax = 15;
+ this.ymin = -15;
+ this.ymax = 15;
+ this.nbr_curves = 1;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["cscopxy"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([1], [1]);
+ model.in2 = new ScilabDouble([1], [1]);
+ model.intyp = new ScilabDouble([1], [1]);
+ model.evtin = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([this.xmin], [this.xmax], [this.ymin], [this.ymax]);
+ model.ipar = new ScilabDouble([this.win], [1], [this.N], [this.clrs], [this.siz], [1], ...this.wpos, ...this.wdim, [this.nbr_curves]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([this.nbr_curves], [sci2exp(this.clrs)], [sci2exp(this.siz)], [this.win], [sci2exp([])], [sci2exp(this.wdim)], [this.xmin], [this.xmax], [this.ymin], [this.ymax], [this.N]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CSCOPE\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ CSCOPXY.prototype.details = function CSCOPXY() {
+ return this.x;
+ }
+}
+
+function CSCOPXY3D() {
+
+ CSCOPXY3D.prototype.define = function CSCOPXY3D() {
+ this.win = -1;
+ this.clrs = [[1],[2],[3],[4],[5],[6],[7],[13]];
+ this.siz = [[1],[1],[1],[1],[1],[1],[1],[1]];
+ this.wdim = [[600],[400]];
+ this.wpos = [[-1],[-1]];
+ this.N = 2;
+ this.param3ds = [[50],[280]];
+ this.vec_x = [[-15],[15]];
+ this.vec_y = [[-15],[15]];
+ this.vec_z = [[-15],[15]];
+ this.nbr_curves = 1;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["cscopxy3d"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([1], [1], [1]);
+ model.in2 = new ScilabDouble([1], [1], [1]);
+ model.intyp = new ScilabDouble([1], [1], [1]);
+ model.evtin = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble(...this.vec_x, ...this.vec_y, ...this.vec_z, ...this.param3ds);
+ model.ipar = new ScilabDouble([this.win], [8], [this.N], ...this.clrs, ...this.siz, [8], ...this.wpos, ...this.wdim, [this.nbr_curves]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([this.nbr_curves], [this.clrs.toString().replace(/,/g, " ")], [this.siz.toString().replace(/,/g, " ")], [this.win], [sci2exp([])], [sci2exp(this.wdim)], [this.vec_x.toString().replace(/,/g, " ")], [this.vec_y.toString().replace(/,/g, " ")], [this.vec_z.toString().replace(/,/g, " ")], [this.param3ds.toString().replace(/,/g, " ")], [this.N]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CSCOPE\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ CSCOPXY3D.prototype.details = function CSCOPXY3D() {
+ return this.x;
+ }
+}
+function CUMSUM() {
+
+ CUMSUM.prototype.define = function CUMSUM() {
+ var model = scicos_model();
+
+ this.function_name = "cumsum_m";
+ this.funtyp = 4;
+
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)], [sci2exp(0)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CUMSUM\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ CUMSUM.prototype.details = function CUMSUM() {
+ return this.x;
+ }
+}
+function CurrentSensor() {
+
+ CurrentSensor.prototype.define = function CurrentSensor() {
+ var model = scicos_model();
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1], [1]);
+ model.sim = new ScilabString(["CurrentSensor"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ mo.model = new ScilabString(["CurrentSensor"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["n"], ["i"]);
+ model.equations = mo;
+
+ var exprs = new ScilabDouble();
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CurrentSensor\",sz(1),sz(2));"]);
+ this.x = standard_define(new ScilabDouble([2, 2]), model, exprs, list(gr_i, new ScilabDouble([0])));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"], ["E"]);
+ return new BasicBlock(this.x);
+ }
+
+ CurrentSensor.prototype.details = function CurrentSensor() {
+ return this.x;
+ }
+}
+function CURV_f() {
+
+ CURV_f.prototype.define = function CURV_f() {
+ this.xx = [[0],[1],[2]];
+ this.yy = [[-5],[5],[0]];
+ this.rect = [0,-5,2,5];
+ this.axisdata = [[2],[10],[2],[10]];
+ this.ipar = new ScilabDouble([size(this.xx, 1)], ...this.axisdata);
+ this.rpar = new ScilabDouble(...this.xx, ...this.yy, this.rect);
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["intplt"]);
+ model.in = new ScilabDouble();
+ model.out = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble(...this.xx, ...this.yy, ...colon_operator([this.rect]));
+ model.ipar = new ScilabDouble([size(this.xx, 1)], ...this.axisdata);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CURV_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, new ScilabDouble(), gr_i);
+ return new BasicBlock(this.x);
+ }
+ CURV_f.prototype.details = function CURV_f() {
+ return this.x;
+ }
+}
+function CVS() {
+
+ CVS.prototype.define = function CVS() {
+ this.ModelName = "CVS";
+ this.PrametersValue = new ScilabDouble();
+ this.ParametersName = new ScilabDouble();
+ var model = scicos_model();
+ this.Typein = [];
+ this.Typeout = [];
+ this.MI = [];
+ this.MO = [];
+ this.P = [[2,50,1,0],[70,98,2,0],[70,2,-2,0]];
+ this.PortName = [["vin"],["p"],["n"]];
+
+ for (var i = 0; i < size(this.P, "r"); i++) {
+ if (this.P[i][2] == 1) {
+ this.Typein.push(["E"]);
+ this.MI.push(this.PortName[i]);
+ }
+
+ if (this.P[i][2] == 2) {
+ this.Typein.push(["I"]);
+ this.MI.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -1) {
+ this.Typeout.push(["E"]);
+ this.MO.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -2) {
+ this.Typeout.push(["I"]);
+ this.MO.push(this.PortName[i]);
+ }
+ }
+
+ var mo = new modelica_function();
+ model.sim = new ScilabString([this.ModelName]);
+ mo.inputs = new ScilabString(...this.MI);
+ mo.outputs = new ScilabString(...this.MO);
+ model.rpar = this.PrametersValue;
+ mo.parameters = list(this.ParametersName, this.PrametersValue, new ScilabDouble(...zeros(getData(this.ParametersName))));
+ var exprs = new ScilabDouble();
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CVS\",sz(1),sz(2));"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+ mo.model = new ScilabString([this.ModelName]);
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
+ model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
+ this.x = new standard_define(new ScilabDouble([2.1, 3]), model, exprs, list(new ScilabString([gr_i]), new ScilabDouble([0])));
+ this.x.graphics.in_implicit = new ScilabDouble(this.Typein);
+ this.x.graphics.out_implicit = new ScilabDouble(this.Typeout);
+ return new BasicBlock(this.x);
+ }
+
+ CVS.prototype.details = function CVS() {
+ return this.x;
+ }
+}
+function c_block() {
+
+ c_block.prototype.define = function c_block() {
+
+ this.in1 = 1;
+ this.out = 1;
+ this.rpar = [];
+ this.typ = "c";
+ this.funam = "toto";
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([" "]), new ScilabDouble([2001]));
+ model.in = new ScilabDouble([this.in1]);
+ model.out = new ScilabDouble([this.out]);
+ 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([this.typ]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = list(new ScilabString([sci2exp(this.in1)], [sci2exp(this.out)], [sci2exp(this.rpar)], [this.funam]), list(new ScilabDouble()));
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"c_block\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ c_block.prototype.details = function c_block() {
+ return this.x;
+ }
+}
+function DEADBAND() {
+
+ DEADBAND.prototype.define = function DEADBAND() {
+ this.minp = -0.5;
+ this.maxp = 0.5;
+ this.rpar = new ScilabDouble([this.maxp], [this.minp]);
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["deadband"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([1]);
+ model.nzcross = new ScilabDouble([2]);
+ model.nmode = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar = this.rpar;
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([this.maxp], [this.minp], [...getData(model.nmode).toString()]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DEADBAND\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ DEADBAND.prototype.details = function DEADBAND() {
+ return this.x;
+ }
+}
+function DEBUG() {
+
+ DEBUG.prototype.define = function DEBUG() {
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["%debug_scicos"]), new ScilabDouble([99]));
+ model.blocktype = new ScilabString(["d"]);
+
+ var exprs = list(new ScilabString([""]), new ScilabString(["xcos_debug_gui(flag,block);"]));
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DEBUG\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([8, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ DEBUG.prototype.details = function DEBUG() {
+ return this.x;
+ }
+}
+
+function DELAYV_f() {
+
+ DELAYV_f.prototype.define = function DELAYV_f() {
+ this.nin = 1;
+ this.z0 = zeros(11, 1);
+ this.zz0 = math.subset(this.z0, math.index(math.range(0, math.size(this.z0)[0] - 1), 0));
+ this.T = 1;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["delayv"]), new ScilabDouble([1]));
+ model.in = new ScilabDouble([this.nin], [1]);
+ model.out = new ScilabDouble([this.nin]);
+ model.evtin = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble([1], [1]);
+ model.dstate = new ScilabDouble(...this.z0);
+ model.rpar = new ScilabDouble([this.T / (size(this.zz0, "*"))]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([0, -1]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([this.nin], [this.zz0.toString().replace(/,/g, ";")], [this.T]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DELAYV_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ DELAYV_f.prototype.details = function DELAYV_f() {
+ return this.x;
+ }
+}
+
+function DELAY_f() {
+
+ DELAY_f.prototype.define = function DELAY_f() {
+ var evtdly = new EVTDLY_f().internal();
+ 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]);
+ evtdly.model.uid = new ScilabString([count]); // changed
+ evtdly.doc = list(new ScilabString([count++]));
+ evtdly.model.outtyp = new ScilabDouble();
+
+ var register = new REGISTER_f().internal();
+ 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]);
+ register.model.uid = new ScilabString([count]); // changed
+ register.doc = list(new ScilabString([count++]));
+ register.model.in2 = new ScilabDouble([1]);
+ register.model.intyp = new ScilabDouble([1]);
+ register.model.out2 = new ScilabDouble([1]);
+
+ var input_port = new IN_f().internal();
+ 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]);
+ input_port.model.uid = new ScilabString([count]); // changed
+ input_port.doc = list(new ScilabString([count++]));
+ input_port.model.outtyp = new ScilabDouble([-1]);
+
+ var output_port = new OUT_f().internal();
+ 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]);
+ output_port.model.uid = new ScilabString([count]); // changed
+ output_port.doc = list(new ScilabString([count++]));
+ output_port.model.outtyp = new ScilabDouble();
+
+ var split = new CLKSPLIT_f().internal();
+ split.graphics.orig = new ScilabDouble([263, 271.2]);
+ split.graphics.pein = new ScilabDouble([7]);
+ split.graphics.peout = new ScilabDouble([9], [10]);
+ split.model.uid = new ScilabString([count]); // changed
+ split.doc = list(new ScilabString([count++]));
+
+ 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(split);
+ diagram.objs.push(scicos_link({
+ xx: new ScilabDouble([296.6], [440]),
+ yy: new ScilabDouble([220], [220]),
+ from: new ScilabDouble([3, 1, 0]),
+ to: new ScilabDouble([2, 1, 1])
+ }));
+ diagram.objs.push(scicos_link({
+ xx: new ScilabDouble([112], [229.4]),
+ yy: new ScilabDouble([220], [220]),
+ from: new ScilabDouble([1, 1, 0]),
+ to: new ScilabDouble([3, 1, 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, 0]),
+ to: new ScilabDouble([5, 1, 1])
+ }));
+ 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([5, 1, 0]),
+ to: new ScilabDouble([3, 1, 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([5, 2, 0]),
+ to: new ScilabDouble([4, 1, 1])
+ }));
+
+ this.x = scicos_block();
+ this.x.gui = new ScilabString(["DELAY_f"]);
+ this.x.graphics.sz = new ScilabDouble([2, 2]);
+ this.x.graphics.gr_i = new ScilabDouble();
+ this.x.graphics.pin = new ScilabDouble([0]);
+ this.x.graphics.pout = new ScilabDouble([0]);
+ this.x.model.sim = new ScilabString(["csuper"]);
+ this.x.model.in = new ScilabDouble([1]);
+ this.x.model.out = new ScilabDouble([1]);
+ this.x.model.blocktype = new ScilabString(["h"]);
+ this.x.model.dep_ut = new ScilabBoolean([false, false]);
+ this.x.model.rpar = diagram;
+ this.x.graphics.in_implicit = new ScilabString(["E"]);
+ this.x.graphics.in_style = new ScilabString([""]);
+ this.x.graphics.out_implicit = new ScilabString(["E"]);
+ this.x.graphics.out_style = new ScilabString([""]);
+ return new BasicBlock(this.x);
+ }
+ DELAY_f.prototype.details = function DELAY_f() {
+ return this.x;
+ }
+}function DEMUX() {
+
+ DEMUX.prototype.define = function DEMUX() {
+ this.out = 2;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["multiplex"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([0]);
+
+ var arr = [];
+ arr.push(math.range(-1, -this.out, -1, true)._data);
+ model.out = new ScilabDouble(...math.transpose(arr));
+ model.ipar = new ScilabDouble([this.out]);
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([this.out]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DEMUX\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([.5, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ DEMUX.prototype.details = function DEMUX() {
+ return this.x;
+ }
+}
+function DEMUX_f() {
+
+ DEMUX_f.prototype.define = function DEMUX_f() {
+ this.out = 2;
+ var arr = [];
+ arr.push(math.range(-1, -this.out, -1, true)._data);
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["demux"]), new ScilabDouble([1]));
+ model.in = new ScilabDouble([0]);
+ model.out = new ScilabDouble(...math.transpose(arr));
+ model.ipar = new ScilabDouble([this.out]);
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([this.out]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DEMUX_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([.5, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ DEMUX_f.prototype.details = function DEMUX_f() {
+ return this.x;
+ }
+}
+
+function DERIV() {
+
+ DERIV.prototype.define = function DERIV() {
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["deriv"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([-1]);
+ model.out = new ScilabDouble([-1]);
+ model.blocktype = new ScilabString(["x"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabDouble();
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DERIV\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ DERIV.prototype.details = function DERIV() {
+ return this.x;
+ }
+}
+function DFLIPFLOP() {
+
+ DFLIPFLOP.prototype.define = function DFLIPFLOP() {
+ var scs_m = scicos_diagram({
+ version: new ScilabString(["scicos4.2"]),
+ props: scicos_params({
+ wpar: new ScilabDouble([600, 450, 0, 0, 600, 450]),
+ Title: new ScilabString(["DFLIPFLOP"]),
+ tol: new ScilabDouble([0.0001], [0.000001], [Math.pow(10, -10)], [100001], [0], [0], [0]),
+ tf: new ScilabDouble([100000]),
+ context: new ScilabString([" "]),
+ void1: new ScilabDouble(),
+ options: tlist(["scsopt", "3D", "Background", "Link", "ID", "Cmap"], new ScilabString(["scsopt", "3D", "Background", "Link", "ID", "Cmap"]), list(new ScilabBoolean([true]), new ScilabDouble([33])), new ScilabDouble([8, 1]), new ScilabDouble([1, 5]), list(new ScilabDouble([5, 1]), new ScilabDouble([4, 1])), new ScilabDouble([0.8, 0.8, 0.8])),
+ void2: new ScilabDouble(),
+ void3: new ScilabDouble(),
+ doc: list()
+ })
+ });
+ scs_m.objs.push(scicos_block({
+ gui: new ScilabString(["CONST_m"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([109.62561, 263.44465]),
+ sz: new ScilabDouble([20], [20]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["int8(0)"]),
+ pin: new ScilabDouble(),
+ pout: new ScilabDouble([6]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CONST_m&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabDouble(),
+ out_implicit: new ScilabString(["E"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_label: new ScilabString([""]),
+ style: new ScilabString(["CONST_m"])
+ }),
+ model: scicos_model({
+ sim: list(new ScilabString(["cstblk4_m"]), new ScilabDouble([4])),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble(),
+ out: new ScilabDouble([1]),
+ out2: new ScilabDouble([1]),
+ outtyp: new ScilabDouble([5]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(int8([0])),
+ blocktype: new ScilabString(["d"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_block({
+ gui: new ScilabString(["IFTHEL_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([239.98293, 378.2166]),
+ sz: new ScilabDouble([60, 60]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["1"], ["1"]),
+ pin: new ScilabDouble([29]),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble([22]),
+ peout: new ScilabDouble([16], [44]),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;IFTHEL_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabDouble(),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ style: new ScilabString(["IFTHEL_f"])
+ }),
+ model: scicos_model({
+ sim: list(new ScilabString(["ifthel"]), new ScilabDouble([-1])),
+ in: new ScilabDouble([1]),
+ in2: new ScilabDouble([1]),
+ intyp: new ScilabDouble([-1]),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble([1]),
+ evtout: new ScilabDouble([1], [1]),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["l"]),
+ firing: new ScilabDouble([-1, -1]),
+ dep_ut: new ScilabBoolean([true, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([1]),
+ nmode: new ScilabDouble([1]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_block({
+ gui: new ScilabString(["LOGICAL_OP"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([152.88902, 260.24498]),
+ sz: new ScilabDouble([60, 40]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["2"], ["1"], ["5"], ["0"]),
+ pin: new ScilabDouble([11], [39]),
+ pout: new ScilabDouble([5]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;LOGICAL_OP&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"], ["E"]),
+ out_implicit: new ScilabString(["E"]),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""], [""]),
+ out_label: new ScilabString([""]),
+ style: new ScilabString(["LOGICAL_OP"])
+ }),
+ model: scicos_model({
+ sim: list(new ScilabString(["logicalop_i8"]), new ScilabDouble([4])),
+ in: new ScilabDouble([-1], [-1]),
+ in2: new ScilabDouble([-2], [-2]),
+ intyp: new ScilabDouble([5], [5]),
+ out: new ScilabDouble([-1]),
+ out2: new ScilabDouble([-2]),
+ outtyp: new ScilabDouble([5]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([1], [0]),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([true, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_block({
+ gui: new ScilabString(["SAMPHOLD_m"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([233.72156, 260.24498]),
+ sz: new ScilabDouble([40, 40]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["5"]),
+ pin: new ScilabDouble([5]),
+ pout: new ScilabDouble([33]),
+ pein: new ScilabDouble([42]),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;SAMPHOLD_m&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabString(["E"]),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ out_label: new ScilabString([""]),
+ style: new ScilabString(["SAMPHOLD_m"])
+ }),
+ model: scicos_model({
+ sim: list(new ScilabString(["samphold4_m"]), new ScilabDouble([4])),
+ in: new ScilabDouble([-1]),
+ in2: new ScilabDouble([-2]),
+ intyp: new ScilabDouble([5]),
+ out: new ScilabDouble([-1]),
+ out2: new ScilabDouble([-2]),
+ outtyp: new ScilabDouble([5]),
+ evtin: new ScilabDouble([1]),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["d"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([true, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_link({
+ xx: new ScilabDouble([221.46044], [225.15013]),
+ yy: new ScilabDouble([280.24498], [280.24498]),
+ id: new ScilabString(["drawlink"]),
+ 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], [140.34523]),
+ yy: new ScilabDouble([273.44465], [273.49157]),
+ id: new ScilabString(["drawlink"]),
+ 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: new ScilabString(["LOGICAL_OP"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([373.24106, 309.46812]),
+ sz: new ScilabDouble([60, 40]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["1"], ["5"], ["5"], ["0"]),
+ pin: new ScilabDouble([36]),
+ pout: new ScilabDouble([13]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;LOGICAL_OP&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabString(["E"]),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ out_label: new ScilabString([""]),
+ style: new ScilabString(["LOGICAL_OP"])
+ }),
+ model: scicos_model({
+ sim: list(new ScilabString(["logicalop_i8"]), new ScilabDouble([4])),
+ in: new ScilabDouble([-1]),
+ in2: new ScilabDouble([-2]),
+ intyp: new ScilabDouble([5]),
+ out: new ScilabDouble([-1]),
+ out2: new ScilabDouble([-2]),
+ outtyp: new ScilabDouble([5]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([5], [0]),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([true, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_block({
+ gui: new ScilabString(["IN_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([199.48466, 398.2166]),
+ sz: new ScilabDouble([20, 20]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["3"]),
+ pin: new ScilabDouble(),
+ pout: new ScilabDouble([9]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;IN_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabDouble(),
+ out_implicit: new ScilabString(["E"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_label: new ScilabString([""]),
+ style: new ScilabString(["IN_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["input"]),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble([-1]),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([-1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([3]),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_link({
+ xx: new ScilabDouble([219.48466], [222.54128]),
+ yy: new ScilabDouble([408.2166], [408.2166]),
+ id: new ScilabString(["drawlink"]),
+ 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: new ScilabString(["IN_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([104.31759, 276.91165]),
+ sz: new ScilabDouble([20, 20]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["1"]),
+ pin: new ScilabDouble(),
+ pout: new ScilabDouble([11]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;IN_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabDouble(),
+ out_implicit: new ScilabString(["E"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_label: new ScilabString([""]),
+ style: new ScilabString(["IN_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["input"]),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble([-1]),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([-1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([1]),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_link({
+ xx: new ScilabDouble([124.31759], [144.31759]),
+ yy: new ScilabDouble([286.91165], [286.91165]),
+ id: new ScilabString(["drawlink"]),
+ 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: new ScilabString(["OUT_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([457.40928, 320.20131]),
+ sz: new ScilabDouble([20, 20]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["2"]),
+ pin: new ScilabDouble([13]),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;OUT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabDouble(),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ style: new ScilabString(["OUT_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["output"]),
+ in: new ScilabDouble([-1]),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([-1]),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([2]),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_link({
+ xx: new ScilabDouble([441.81249], [457.40928]),
+ yy: new ScilabDouble([329.46812], [330.20131]),
+ id: new ScilabString(["drawlink"]),
+ 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: new ScilabString(["OUT_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([376.4669, 270.83282]),
+ sz: new ScilabDouble([20, 20]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["1"]),
+ pin: new ScilabDouble([37]),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;OUT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabDouble(),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ style: new ScilabString(["OUT_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["output"]),
+ in: new ScilabDouble([-1]),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([-1]),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([1]),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+
+ var scs_m_1 = scicos_diagram({
+ version: new ScilabString(["scicos4.2"]),
+ props: scicos_params({
+ wpar: new ScilabDouble([600, 450, 0, 0, 600, 450]),
+ Title: new ScilabString(["Untitled"]),
+ tol: new ScilabDouble([0.0001], [0.000001], [Math.pow(10, -10)], [100001], [0], [0], [0]),
+ tf: new ScilabDouble([100000]),
+ context: new ScilabDouble(),
+ void1: new ScilabDouble(),
+ options: tlist(["scsopt", "3D", "Background", "Link", "ID", "Cmap"], new ScilabString(["scsopt", "3D", "Background", "Link", "ID", "Cmap"]), list(new ScilabBoolean([true]), new ScilabDouble([33])), new ScilabDouble([8, 1]), new ScilabDouble([1, 5]), list(new ScilabDouble([5, 1]), new ScilabDouble([4, 1])), new ScilabDouble([0.8, 0.8, 0.8])),
+ void2: new ScilabDouble(),
+ void3: new ScilabDouble(),
+ doc: list()
+ })
+ });
+ scs_m_1.objs.push(scicos_block({
+ gui: new ScilabString(["ANDLOG_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([194, 133]),
+ sz: new ScilabDouble([60, 60]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabDouble(),
+ pin: new ScilabDouble(),
+ pout: new ScilabDouble([9]),
+ pein: new ScilabDouble([4], [11]),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;ANDLOG_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabDouble(),
+ out_implicit: new ScilabString(["E"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_label: new ScilabString([""]),
+ style: new ScilabString(["ANDLOG_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["andlog"]),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble([1]),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble([1], [1]),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["d"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m_1.objs.push(scicos_block({
+ gui: new ScilabString(["CLKIN_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([149, 287]),
+ sz: new ScilabDouble([20, 20]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["1"]),
+ pin: new ScilabDouble(),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble([4]),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CLKIN_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabDouble(),
+ out_implicit: new ScilabDouble(),
+ style: new ScilabString(["CLKIN_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["input"]),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble([1]),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([1]),
+ opar: list(),
+ blocktype: new ScilabString(["d"]),
+ firing: new ScilabDouble([-1]),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m_1.objs.push(scicos_block({
+ gui: new ScilabString(["CLKOUT_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([450, 83]),
+ sz: new ScilabDouble([20, 20]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["1"]),
+ pin: new ScilabDouble(),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble([8]),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CLKOUT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabDouble(),
+ out_implicit: new ScilabDouble(),
+ style: new ScilabString(["CLKOUT_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["output"]),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble([1]),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([1]),
+ opar: list(),
+ blocktype: new ScilabString(["d"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m_1.objs.push(scicos_link({
+ xx: new ScilabDouble([169], [214], [214]),
+ yy: new ScilabDouble([297], [297], [198.71]),
+ id: new ScilabString(["drawlink"]),
+ 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: new ScilabString(["CLKIN_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([141, 330]),
+ sz: new ScilabDouble([20, 20]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["2"]),
+ pin: new ScilabDouble(),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble([6]),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CLKIN_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabDouble(),
+ out_implicit: new ScilabDouble(),
+ style: new ScilabString(["CLKIN_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["input"]),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble([1]),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([2]),
+ opar: list(),
+ blocktype: new ScilabString(["d"]),
+ firing: new ScilabDouble([-1]),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m_1.objs.push(scicos_link({
+ xx: new ScilabDouble([161], [234], [234]),
+ yy: new ScilabDouble([340], [340], [275.78]),
+ thick: new ScilabDouble([0, 0]),
+ id: new ScilabString(["drawlink"]),
+ ct: new ScilabDouble([5, -1]),
+ from: new ScilabDouble([5, 1]),
+ to: new ScilabDouble([10, 1])
+ }));
+ scs_m_1.objs.push(scicos_block({
+ gui: new ScilabString(["IFTHEL_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([331, 137]),
+ sz: new ScilabDouble([60, 60]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["1"], ["1"]),
+ pin: new ScilabDouble([9]),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble([12]),
+ peout: new ScilabDouble([8], [0]),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;IFTHEL_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabDouble(),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ style: new ScilabString(["IFTHEL_f"])
+ }),
+ model: scicos_model({
+ sim: list(new ScilabString(["ifthel"]), new ScilabDouble([-1])),
+ in: new ScilabDouble([1]),
+ in2: new ScilabDouble([1]),
+ intyp: new ScilabDouble([-1]),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble([1]),
+ evtout: new ScilabDouble([1], [1]),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["l"]),
+ firing: new ScilabDouble([-1, -1]),
+ dep_ut: new ScilabBoolean([true, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([1]),
+ nmode: new ScilabDouble([1]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m_1.objs.push(scicos_link({
+ xx: new ScilabDouble([351], [351], [450]),
+ yy: new ScilabDouble([131.29], [93], [93]),
+ id: new ScilabString(["drawlink"]),
+ 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], [322.43]),
+ yy: new ScilabDouble([163], [167]),
+ id: new ScilabString(["drawlink"]),
+ 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: new ScilabString(["CLKSPLIT_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([234], [275.78348]),
+ sz: new ScilabDouble([0.3333333, 0.3333333]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabDouble(),
+ pin: new ScilabDouble(),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble([6]),
+ peout: new ScilabDouble([11], [12]),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CLKSPLIT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabDouble(),
+ out_implicit: new ScilabDouble(),
+ style: new ScilabString(["CLKSPLIT_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["split"]),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble([1]),
+ evtout: new ScilabDouble([1], [1]),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["d"]),
+ firing: new ScilabBoolean([false, false, false]),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m_1.objs.push(scicos_link({
+ xx: new ScilabDouble([234], [234]),
+ yy: new ScilabDouble([275.78], [198.71]),
+ id: new ScilabString(["drawlink"]),
+ 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], [361], [361]),
+ yy: new ScilabDouble([275.78], [275.78], [202.71]),
+ id: new ScilabString(["drawlink"]),
+ 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: new ScilabString(["ANDBLK"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([233.73039, 318.74407]),
+ sz: new ScilabDouble([40, 40]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabDouble(),
+ pin: new ScilabDouble(),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble([19], [16]),
+ peout: new ScilabDouble([17]),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;ANDBLK&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabDouble(),
+ out_implicit: new ScilabDouble(),
+ style: new ScilabString(["ANDBLK"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["csuper"]),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble([1], [1]),
+ evtout: new ScilabDouble([1]),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: scs_m_1,
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["h"]),
+ firing: new ScilabBoolean([false]),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_link({
+ xx: new ScilabDouble([259.98293], [260.39705]),
+ yy: new ScilabDouble([372.50232], [364.45835]),
+ id: new ScilabString(["drawlink"]),
+ 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], [253.72572]),
+ yy: new ScilabDouble([313.02978], [309.29537]),
+ id: new ScilabString(["drawlink"]),
+ 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 = scicos_diagram({
+ version: new ScilabString(["scicos4.2"]),
+ props: scicos_params({
+ wpar: new ScilabDouble([600, 450, 0, 0, 600, 450]),
+ Title: new ScilabString(["EDGE_TRIGGER", "./"]),
+ tol: new ScilabDouble([0.0001], [0.000001], [Math.pow(10, -10)], [100001], [0], [0], [0]),
+ tf: new ScilabDouble([30]),
+ context: new ScilabString([" "]),
+ void1: new ScilabDouble(),
+ options: tlist(["scsopt", "3D", "Background", "Link", "ID", "Cmap"], new ScilabString(["scsopt", "3D", "Background", "Link", "ID", "Cmap"]), list(new ScilabBoolean([true]), new ScilabDouble([33])), new ScilabDouble([8, 1]), new ScilabDouble([1, 5]), list(new ScilabDouble([5, 1]), new ScilabDouble([4, 1])), new ScilabDouble([0.8, 0.8, 0.8])),
+ void2: new ScilabDouble(),
+ void3: new ScilabDouble(),
+ doc: list()
+ })
+ });
+ scs_m_1.objs.push(scicos_block({
+ gui: new ScilabString(["EDGETRIGGER"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([288.58631, 257.1131]),
+ sz: new ScilabDouble([60, 40]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["1"]),
+ pin: new ScilabDouble([5]),
+ pout: new ScilabDouble([3]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;EDGETRIGGER&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabString(["E"]),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ out_label: new ScilabString([""]),
+ style: new ScilabString(["EDGETRIGGER"])
+ }),
+ model: scicos_model({
+ sim: list(new ScilabString(["edgetrig"]), new ScilabDouble([4])),
+ in: new ScilabDouble([1]),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble([1]),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble([0]),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([1]),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([true, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([1]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m_1.objs.push(scicos_block({
+ gui: new ScilabString(["IFTHEL_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([388.28869, 247.1131]),
+ sz: new ScilabDouble([60, 60]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["0"], ["0"]),
+ pin: new ScilabDouble([3]),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble([7], [0]),
+ gr_i: new ScilabDouble(),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabDouble()
+ }),
+ model: scicos_model({
+ sim: list(new ScilabString(["ifthel"]), new ScilabDouble([-1])),
+ in: new ScilabDouble([1]),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble([1]),
+ outtyp: new ScilabDouble(),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble([1], [1]),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["l"]),
+ firing: new ScilabDouble([-1, -1]),
+ dep_ut: new ScilabBoolean([true, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m_1.objs.push(scicos_link({
+ xx: new ScilabDouble([357.15774], [362.99107], [379.71726]),
+ yy: new ScilabDouble([277.1131], [277.1131], [277.1131]),
+ id: new ScilabString(["drawlink"]),
+ 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: new ScilabString(["IN_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([240.01488, 267.1131]),
+ sz: new ScilabDouble([20, 20]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["1"]),
+ pin: new ScilabDouble(),
+ pout: new ScilabDouble([5]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;IN_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabDouble(),
+ out_implicit: new ScilabString(["E"]),
+ style: new ScilabString(["IN_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["input"]),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([-1]),
+ out: new ScilabDouble([-1]),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([1]),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m_1.objs.push(scicos_link({
+ xx: new ScilabDouble([260.01488], [280.01488]),
+ yy: new ScilabDouble([277.1131], [277.1131]),
+ id: new ScilabString(["drawlink"]),
+ 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: new ScilabString(["CLKOUTV_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([398.28869, 181.39881]),
+ sz: new ScilabDouble([20, 30]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["1"]),
+ pin: new ScilabDouble(),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble([7]),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CLKOUTV_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabDouble(),
+ out_implicit: new ScilabDouble(),
+ style: new ScilabString(["CLKOUTV_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["output"]),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble([1]),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([1]),
+ opar: list(),
+ blocktype: new ScilabString(["d"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m_1.objs.push(scicos_link({
+ xx: new ScilabDouble([408.28869], [408.28869]),
+ yy: new ScilabDouble([241.39881], [211.39881]),
+ id: new ScilabString(["drawlink"]),
+ 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: new ScilabString(["EDGE_TRIGGER"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([133.90637, 385.342]),
+ sz: new ScilabDouble([60, 40]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabDouble(),
+ pin: new ScilabDouble([26]),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble([19]),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;EDGE_TRIGGER&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabDouble(),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ style: new ScilabString(["EDGE_TRIGGER"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["csuper"]),
+ in: new ScilabDouble([-1]),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble([1]),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: scs_m_1,
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["h"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_link({
+ xx: new ScilabDouble([163.90637], [163.90637], [247.06372]),
+ yy: new ScilabDouble([379.62771], [364.45835], [364.45835]),
+ id: new ScilabString(["drawlink"]),
+ 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: new ScilabString(["IN_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([79.594811, 395.47647]),
+ sz: new ScilabDouble([20, 20]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["2"]),
+ pin: new ScilabDouble(),
+ pout: new ScilabDouble([23]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;IN_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabDouble(),
+ out_implicit: new ScilabString(["E"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_label: new ScilabString([""]),
+ style: new ScilabString(["IN_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["input"]),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble([-1]),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([-1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([2]),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+
+ scs_m_1 = scicos_diagram({
+ version: new ScilabString(["scicos4.2"]),
+ props: scicos_params({
+ wpar: new ScilabDouble([600, 450, 0, 0, 600, 450]),
+ Title: new ScilabString(["EXTRACT_ACTIVATION", "./"]),
+ tol: new ScilabDouble([0.0001], [0.000001], [Math.pow(10, -10)], [100001], [0], [0], [0]),
+ tf: new ScilabDouble([30]),
+ context: new ScilabString([" "]),
+ void1: new ScilabDouble(),
+ options: tlist(["scsopt", "3D", "Background", "Link", "ID", "Cmap"], new ScilabString(["scsopt", "3D", "Background", "Link", "ID", "Cmap"]), list(new ScilabBoolean([true]), new ScilabDouble([33])), new ScilabDouble([8, 1]), new ScilabDouble([1, 5]), list(new ScilabDouble([5, 1]), new ScilabDouble([4, 1])), new ScilabDouble([0.8, 0.8, 0.8])),
+ void2: new ScilabDouble(),
+ void3: new ScilabDouble(),
+ doc: list()
+ })
+ });
+ scs_m_1.objs.push(scicos_block({
+ gui: new ScilabString(["IFTHEL_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([150.65045, 143.82208]),
+ sz: new ScilabDouble([60, 60]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["0"], ["0"]),
+ pin: new ScilabDouble([6]),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble([3], [4]),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;IFTHEL_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabDouble(),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ style: new ScilabString(["IFTHEL_f"])
+ }),
+ model: scicos_model({
+ sim: list(new ScilabString(["ifthel"]), new ScilabDouble([-1])),
+ in: new ScilabDouble([1]),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble([1], [1]),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["l"]),
+ firing: new ScilabDouble([-1, -1]),
+ dep_ut: new ScilabBoolean([true, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m_1.objs.push(scicos_block({
+ gui: new ScilabString(["CLKSOMV_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([169.82143, 96.146231]),
+ sz: new ScilabDouble([16.666667, 16.666667]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabDouble(),
+ pin: new ScilabDouble(),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble([3], [4], [0]),
+ peout: new ScilabDouble([8]),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CLKSOMV_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabDouble(),
+ out_implicit: new ScilabDouble(),
+ style: new ScilabString(["CLKSOMV_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["sum"]),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble([1], [1], [1]),
+ evtout: new ScilabDouble([1]),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["d"]),
+ firing: new ScilabDouble([-1]),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m_1.objs.push(scicos_link({
+ xx: new ScilabDouble([170.65045], [170.65045], [150.04302], [150.04302], [169.82143]),
+ yy: new ScilabDouble([138.10779], [128.235], [128.235], [104.47956], [104.47956]),
+ id: new ScilabString(["drawlink"]),
+ 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], [190.65045], [178.15476]),
+ yy: new ScilabDouble([138.10779], [111.55729], [112.8129]),
+ id: new ScilabString(["drawlink"]),
+ 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: new ScilabString(["IN_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([102.07902, 163.82208]),
+ sz: new ScilabDouble([20, 20]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["1"]),
+ pin: new ScilabDouble(),
+ pout: new ScilabDouble([6]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;IN_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabDouble(),
+ out_implicit: new ScilabString(["E"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_label: new ScilabString([""]),
+ style: new ScilabString(["IN_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["input"]),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([-1]),
+ out: new ScilabDouble([-1]),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([1]),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m_1.objs.push(scicos_link({
+ xx: new ScilabDouble([122.07902], [142.07902]),
+ yy: new ScilabDouble([173.82208], [173.82208]),
+ id: new ScilabString(["drawlink"]),
+ 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: new ScilabString(["CLKOUTV_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([168.15476, 38.527183]),
+ sz: new ScilabDouble([20, 30]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["1"]),
+ pin: new ScilabDouble(),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble([8]),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CLKOUTV_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabDouble(),
+ out_implicit: new ScilabDouble(),
+ style: new ScilabString(["CLKOUTV_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["output"]),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble([1]),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([1]),
+ opar: list(),
+ blocktype: new ScilabString(["d"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m_1.objs.push(scicos_link({
+ xx: new ScilabDouble([178.15476], [178.15476]),
+ yy: new ScilabDouble([98.527183], [68.527183]),
+ id: new ScilabString(["drawlink"]),
+ 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: new ScilabString(["Extract_Activation"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([239.82193, 456.57677]),
+ sz: new ScilabDouble([60, 40]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabDouble(),
+ pin: new ScilabDouble([31]),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble([22]),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;Extract_Activation&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabDouble(),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ style: new ScilabString(["Extract_Activation"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["csuper"]),
+ in: new ScilabDouble([-1]),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble([1]),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: scs_m_1,
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["h"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_link({
+ xx: new ScilabDouble([269.82193], [269.98293]),
+ yy: new ScilabDouble([450.86248], [443.93089]),
+ id: new ScilabString(["drawlink"]),
+ 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], [110.25582]),
+ yy: new ScilabDouble([405.47647], [405.42077]),
+ id: new ScilabString(["drawlink"]),
+ 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: new ScilabString(["SUM_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([200.5252, 469.13173]),
+ sz: new ScilabDouble([16.666667, 16.666667]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabDouble(),
+ pin: new ScilabDouble([27], [0], [30]),
+ pout: new ScilabDouble([31]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;SUM_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"], ["E"], ["E"]),
+ out_implicit: new ScilabString(["E"]),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""], [""], [""]),
+ out_label: new ScilabString([""]),
+ style: new ScilabString(["SUM_f"])
+ }),
+ model: scicos_model({
+ sim: list(new ScilabString(["plusblk"]), new ScilabDouble([2])),
+ in: new ScilabDouble([-1], [-1], [-1]),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble([-1]),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([true, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_block({
+ gui: new ScilabString(["SPLIT_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([110.25582], [405.42077]),
+ sz: new ScilabDouble([0.3333333, 0.3333333]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabDouble(),
+ pin: new ScilabDouble([23]),
+ pout: new ScilabDouble([26], [27]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;SPLIT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabString(["E"], ["E"], ["E"]),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ out_label: new ScilabString([""], [""], [""]),
+ style: new ScilabString(["SPLIT_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["lsplit"]),
+ in: new ScilabDouble([-1]),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble([-1], [-1], [-1]),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([true, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_link({
+ xx: new ScilabDouble([110.25582], [114.33667], [125.33494]),
+ yy: new ScilabDouble([405.42077], [405.39945], [405.342]),
+ id: new ScilabString(["drawlink"]),
+ 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], [110.25582], [208.85853]),
+ yy: new ScilabDouble([405.42077], [469.13173], [469.13173]),
+ id: new ScilabString(["drawlink"]),
+ 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: new ScilabString(["SPLIT_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([222.54128], [408.2166]),
+ sz: new ScilabDouble([0.3333333, 0.3333333]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabDouble(),
+ pin: new ScilabDouble([9]),
+ pout: new ScilabDouble([29], [30]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;SPLIT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabString(["E"], ["E"], ["E"]),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ out_label: new ScilabString([""], [""], [""]),
+ style: new ScilabString(["SPLIT_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["lsplit"]),
+ in: new ScilabDouble([-1]),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble([-1], [-1], [-1]),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([true, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_link({
+ xx: new ScilabDouble([222.54128], [231.4115]),
+ yy: new ScilabDouble([408.2166], [408.2166]),
+ id: new ScilabString(["drawlink"]),
+ 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], [222.54128], [208.85853], [208.85853]),
+ yy: new ScilabDouble([408.2166], [453.0015], [453.0015], [485.7984]),
+ id: new ScilabString(["drawlink"]),
+ 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], [231.2505]),
+ yy: new ScilabDouble([477.46506], [476.57677]),
+ id: new ScilabString(["drawlink"]),
+ 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: new ScilabString(["SELECT_m"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([298.86371, 253.57321]),
+ sz: new ScilabDouble([40, 40]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["5"], ["2"], ["1"]),
+ pin: new ScilabDouble([33], [40]),
+ pout: new ScilabDouble([34]),
+ pein: new ScilabDouble([43], [44]),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;SELECT_m&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"], ["E"]),
+ out_implicit: new ScilabString(["E"]),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""], [""]),
+ out_label: new ScilabString([""]),
+ style: new ScilabString(["SELECT_m"])
+ }),
+ model: scicos_model({
+ sim: list(new ScilabString(["selector_m"]), new ScilabDouble([4])),
+ in: new ScilabDouble([-1], [-1]),
+ in2: new ScilabDouble([-2], [-2]),
+ intyp: new ScilabDouble([5], [5]),
+ out: new ScilabDouble([-1]),
+ out2: new ScilabDouble([-2]),
+ outtyp: new ScilabDouble([5]),
+ evtin: new ScilabDouble([1], [1]),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble([1]),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([true, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_link({
+ xx: new ScilabDouble([282.29299], [290.29229]),
+ yy: new ScilabDouble([280.24498], [280.23987]),
+ id: new ScilabString(["drawlink"]),
+ 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], [357.57328], [357.57328]),
+ yy: new ScilabDouble([273.57321], [273.57321], [280.83282]),
+ id: new ScilabString(["drawlink"]),
+ 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: new ScilabString(["SPLIT_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([357.57328, 280.83282]),
+ sz: new ScilabDouble([0.3333333, 0.3333333]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabDouble(),
+ pin: new ScilabDouble([34]),
+ pout: new ScilabDouble([36], [37]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;SPLIT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabString(["E"], ["E"], ["E"]),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ out_label: new ScilabString([""], [""], [""]),
+ style: new ScilabString(["SPLIT_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["lsplit"]),
+ in: new ScilabDouble([-1]),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble([-1], [-1], [-1]),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([true, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_link({
+ xx: new ScilabDouble([357.57328], [357.57328], [364.66964]),
+ yy: new ScilabDouble([280.83282], [329.46812], [329.46812]),
+ id: new ScilabString(["drawlink"]),
+ 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], [376.4669]),
+ yy: new ScilabDouble([280.83282], [280.83282]),
+ id: new ScilabString(["drawlink"]),
+ 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: new ScilabString(["SPLIT_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([140.34523], [273.49157]),
+ sz: new ScilabDouble([0.3333333, 0.3333333]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabDouble(),
+ pin: new ScilabDouble([6]),
+ pout: new ScilabDouble([39], [40]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;SPLIT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabString(["E"], ["E"], ["E"]),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ out_label: new ScilabString([""], [""], [""]),
+ style: new ScilabString(["SPLIT_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["lsplit"]),
+ in: new ScilabDouble([-1]),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble([-1], [-1], [-1]),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([true, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_link({
+ xx: new ScilabDouble([140.34523], [144.31759]),
+ yy: new ScilabDouble([273.49157], [273.57832]),
+ id: new ScilabString(["drawlink"]),
+ 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], [140.34523], [290.29229], [290.29229]),
+ yy: new ScilabDouble([273.49157], [247.70767], [247.70767], [266.90654]),
+ id: new ScilabString(["drawlink"]),
+ 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: new ScilabString(["CLKSPLIT_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([253.72572], [309.29537]),
+ sz: new ScilabDouble([0.3333333, 0.3333333]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabDouble(),
+ pin: new ScilabDouble(),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble([17]),
+ peout: new ScilabDouble([42], [43]),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CLKSPLIT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabDouble(),
+ out_implicit: new ScilabDouble(),
+ style: new ScilabString(["CLKSPLIT_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["split"]),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble([1]),
+ evtout: new ScilabDouble([1], [1]),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["d"]),
+ firing: new ScilabBoolean([false, false, false]),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_link({
+ xx: new ScilabDouble([253.72572], [253.72156]),
+ yy: new ScilabDouble([309.29537], [305.95927]),
+ id: new ScilabString(["drawlink"]),
+ 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], [312.19705], [312.19705]),
+ yy: new ScilabDouble([309.29537], [309.29537], [299.28749]),
+ id: new ScilabString(["drawlink"]),
+ 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], [279.98293], [325.53038], [325.53038]),
+ yy: new ScilabDouble([372.50232], [315.89455], [315.89455], [299.28749]),
+ id: new ScilabString(["drawlink"]),
+ thick: new ScilabDouble([0, 0]),
+ ct: new ScilabDouble([5, -1]),
+ from: new ScilabDouble([2, 2, 0]),
+ to: new ScilabDouble([32, 2, 1])
+ }));
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["csuper"]);
+ model.in = new ScilabDouble([1], [1], [1]);
+ model.in2 = new ScilabDouble([1], [1], [1]);
+ model.out = new ScilabDouble([1], [1]);
+ model.out2 = new ScilabDouble([1], [1]);
+ model.intyp = new ScilabDouble([5, 1, 1]);
+ model.outtyp = new ScilabDouble([5, 5]);
+ model.blocktype = new ScilabString(["h"]);
+ model.firing = new ScilabBoolean([false]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+ model.rpar = scs_m;
+
+ var gr_i = [];
+ this.x = new standard_define(new ScilabDouble([2, 3]), model, new ScilabDouble(), gr_i);
+ return new BasicBlock(this.x);
+ }
+ DFLIPFLOP.prototype.details = function DFLIPFLOP() {
+ return this.x;
+ }
+}
+function DIFF_f() {
+
+ DIFF_f.prototype.define = function DIFF_f() {
+ this.x0 = [[0], [0]];
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["diffblk"]), new ScilabDouble([10001]));
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.state = new ScilabDouble(...this.x0);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+
+ var exprs = new ScilabString([sci2exp(this.x0[0])], [sci2exp(this.x0[1])]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DIFF_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ DIFF_f.prototype.details = function DIFF_f() {
+ return this.x;
+ }
+}
+
+function Diode() {
+
+ Diode.prototype.define = function Diode() {
+
+ this.Ids = 1.e-6;
+ this.Vt = 0.04;
+ this.Maxexp = 15;
+ this.R = 1.e8;
+
+ var model = scicos_model();
+ model.rpar = new ScilabDouble([this.Ids], [this.Vt], [this.Maxexp], [this.R]);
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.sim = new ScilabString(["Diode"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ mo.model = new ScilabString(["Diode"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["n"]);
+ mo.parameters = list(new ScilabString(["Ids", "Vt", "Maxexp", "R"]), list(new ScilabDouble([this.Ids]), new ScilabDouble([this.Vt]), new ScilabDouble([this.Maxexp]), new ScilabDouble([this.R])));
+ model.equations = mo;
+
+ var exprs = new ScilabString([this.Ids], [this.Vt], [this.Maxexp], [this.R]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Diode\",sz(1),sz(2));"]);
+ this.x = standard_define(new ScilabDouble([2, 1]), model, exprs, list(gr_i, 0));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x);
+ }
+ Diode.prototype.details = function Diode() {
+ return this.x;
+ }
+}
+function DLR() {
+
+ DLR.prototype.define = function DLR() {
+ this.x0 = 0;
+ this.A = -1;
+ this.B = 1;
+ this.C = 1;
+ this.D = 0;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["dsslti4"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble([this.x0]);
+ model.rpar = new ScilabDouble([this.A], [this.B], [this.C], [this.D]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString(["1"], ["1+z"]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DLR\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ DLR.prototype.details = function DLR() {
+ return this.x;
+ }
+}
+
+function DLRADAPT_f() {
+
+ DLRADAPT_f.prototype.define = function DLRADAPT_f() {
+ this.p = [[0], [1]];
+ this.rn = [];
+ this.rd = [[math.complex(0.2, 0.8), math.complex(0.2, -0.8)], [math.complex(0.3, 0.7), math.complex(0.3, -0.7)]];
+ this.g = [[1], [1]];
+ this.last_u = [];
+ this.last_y = [[0], [0]];
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["dlradp"]);
+ model.in = new ScilabDouble([1], [1]);
+ model.out = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble(...this.last_y);
+ model.rpar = new ScilabDouble(...this.p, ...real(colon_operator(this.rd)), ...math.im(colon_operator(this.rd)), ...this.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 = new ScilabString([sci2exp(this.p)], [sci2exp(this.rn)], [sci2exp(this.rd, 0)], [sci2exp(this.g)], [sci2exp(this.last_u)], [sci2exp(this.last_y)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DLRADAPT_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ DLRADAPT_f.prototype.details = function DLRADAPT_f() {
+ return this.x;
+ }
+}
+function DLSS() {
+
+ DLSS.prototype.define = function DLSS() {
+ this.x0 = 0;
+ this.A = -1;
+ this.B = 1;
+ this.C = 1;
+ this.D = 0;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["dsslti4"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble([this.x0]);
+ model.rpar = new ScilabDouble([this.A], [this.B], [this.C], [this.D]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([sci2exp(this.A)], [sci2exp(this.B)], [sci2exp(this.C)], [sci2exp(this.D)], [sci2exp(this.x0)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DLSS\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ DLSS.prototype.details = function DLSS() {
+ return this.x;
+ }
+}
+
+function DOLLAR() {
+
+ DOLLAR.prototype.define = function DOLLAR() {
+ this.z = 0;
+ this.inh = 0;
+ this.in1 = 1;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["dollar4"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([this.in1]);
+ model.out = new ScilabDouble([this.in1]);
+ model.evtin = new ScilabDouble([1 - this.inh]);
+ model.dstate = new ScilabDouble([this.z]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([this.z], [this.inh]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DOLLAR\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ DOLLAR.prototype.details = function DOLLAR() {
+ return this.x;
+ }
+}
+
+function DOLLAR_f() {
+
+ DOLLAR_f.prototype.define = function DOLLAR_f() {
+ this.z = 0;
+ this.inh = 0;
+ this.in1 = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["dollar"]);
+ model.in = new ScilabDouble([this.in1]);
+ model.out = new ScilabDouble([this.in1]);
+ model.evtin = new ScilabDouble([1 - this.inh]);
+ model.dstate = new ScilabDouble([this.z]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([this.z], [this.inh]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DOLLAR_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ DOLLAR_f.prototype.details = function DOLLAR_f() {
+ return this.x;
+ }
+}
+
+function DOLLAR_m() {
+
+ DOLLAR_m.prototype.define = function DOLLAR_m() {
+ this.z = 0;
+ this.inh = 0;
+ this.in1 = 1;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["dollar4"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([this.in1]);
+ model.out = new ScilabDouble([this.in1]);
+ model.evtin = new ScilabDouble([1 - this.inh]);
+ model.dstate = new ScilabDouble([this.z]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([this.z], [this.inh]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DOLLAR_m\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ DOLLAR_m.prototype.details = function DOLLAR_m() {
+ return this.x;
+ }
+}
+
+function EDGETRIGGER() {
+
+ EDGETRIGGER.prototype.internal = function EDGETRIGGER() {
+ this.edge = 1;
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["edgetrig"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.in2 = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble([0]);
+ model.nzcross = new ScilabDouble([1]);
+ model.ipar = new ScilabDouble([this.edge]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([this.edge]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;EDGETRIGGER&quot;,sz(1),sz(2));"]);
+ var block = standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ block.graphics.style = new ScilabString(["EDGETRIGGER"]);
+ return block;
+ }
+}
+function EDGE_TRIGGER() {
+
+ EDGE_TRIGGER.prototype.define = function EDGE_TRIGGER() {
+ var scs_m_1 = scicos_diagram();
+ scs_m_1.objs.push(new EDGETRIGGER().internal());
+ scs_m_1.objs.push(new IFTHEL_f().internal());
+ scs_m_1.objs.push(new IN_f().internal());
+ scs_m_1.objs.push(new CLKOUTV_f().internal());
+ 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[0];
+ 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"]);
+ graphics.in_implicit = new ScilabString(["E"]);
+ graphics.out_implicit = new ScilabString(["E"]);
+ graphics.in_style = new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]);
+ graphics.out_style = new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]);
+ graphics.in_label = new ScilabString([""]);
+ graphics.out_label = new ScilabString([""]);
+ model.ipar = new ScilabDouble([0]);
+ graphics.pin = new ScilabDouble([5]);
+ graphics.pout = new ScilabDouble([6]);
+ model.uid = new ScilabString([count]);
+ blk.doc = list(new ScilabString([count++]));
+ blk.graphics = graphics;
+ blk.model = model;
+ scs_m_1.objs[0] = blk;
+
+ blk = scs_m_1.objs[1];
+ 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]);
+ model.uid = new ScilabString([count]);
+ blk.doc = list(new ScilabString([count++]));
+ blk.graphics = graphics;
+ blk.model = model;
+ scs_m_1.objs[1] = blk;
+
+ blk = scs_m_1.objs[2];
+ 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]);
+ model.uid = new ScilabString([count]);
+ blk.doc = list(new ScilabString([count++]));
+ blk.graphics = graphics;
+ blk.model = model;
+ scs_m_1.objs[2] = blk;
+
+ blk = scs_m_1.objs[3];
+ 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]);
+ model.uid = new ScilabString([count]);
+ blk.doc = list(new ScilabString([count++]));
+ blk.graphics = graphics;
+ blk.model = model;
+ scs_m_1.objs[3] = blk;
+
+ var lnk = scs_m_1.objs[4];
+ lnk.xx = new ScilabDouble([64], [96]);
+ lnk.yy = new ScilabDouble([-40], [-20]);
+ lnk.from = new ScilabDouble([3, 1, 0]);
+ lnk.to = new ScilabDouble([1, 1, 1]);
+ scs_m_1.objs[4] = lnk;
+
+ lnk = scs_m_1.objs[5];
+ lnk.xx = new ScilabDouble([164], [196]);
+ lnk.yy = new ScilabDouble([-20], [-20]);
+ lnk.from = new ScilabDouble([1, 1, 0]);
+ lnk.to = new ScilabDouble([2, 1, 1]);
+ scs_m_1.objs[5] = lnk;
+
+ lnk = scs_m_1.objs[6];
+ lnk.xx = new ScilabDouble([220], [220]);
+ lnk.yy = new ScilabDouble([-44], [-96]);
+ lnk.ct = new ScilabDouble([5, -1]);
+ lnk.from = new ScilabDouble([2, 1, 0]);
+ lnk.to = new ScilabDouble([4, 1, 1]);
+ scs_m_1.objs[6] = lnk;
+
+ model = scicos_model();
+ model.sim = new ScilabString(["csuper"]);
+ model.in = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble([1]);
+ model.rpar = scs_m_1;
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;EDGE_TRIGGER&quot;,sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, new ScilabDouble(), gr_i);
+ return new BasicBlock(this.x);
+ }
+ EDGE_TRIGGER.prototype.details = function EDGE_TRIGGER() {
+ return this.x;
+ }
+}
+function ENDBLK() {
+
+ ENDBLK.prototype.define = function ENDBLK() {
+ var scs_m_1 = scicos_diagram({
+ version: new ScilabString(["scicos4.2"]),
+ props: scicos_params({
+ wpar: new ScilabDouble([600, 450, 0, 0, 600, 450]),
+ Title: new ScilabString(["ENDBLK"]),
+ tol: new ScilabDouble([0.0001], [0.000001], [Math.pow(10, -10)], [100001], [0], [0], [0]),
+ tf: new ScilabDouble([100000]),
+ context: new ScilabString([" "]),
+ void1: new ScilabDouble(),
+ options: tlist(["scsopt", "3D", "Background", "Link", "ID", "Cmap"], new ScilabString(["scsopt", "3D", "Background", "Link", "ID", "Cmap"]), list(new ScilabBoolean([true]), new ScilabDouble([33])), new ScilabDouble([8, 1]), new ScilabDouble([1, 5]), list(new ScilabDouble([5, 1]), new ScilabDouble([4, 1])), new ScilabDouble([0.8, 0.8, 0.8])),
+ void2: new ScilabDouble(),
+ void3: new ScilabDouble(),
+ doc: list()
+ })
+ });
+ scs_m_1.objs.push(scicos_block({
+ gui: new ScilabString(["END_c"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([272.104, 249.11733]),
+ sz: new ScilabDouble([40, 40]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["1.000E+08"]),
+ pin: new ScilabDouble(),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble([2]),
+ peout: new ScilabDouble([2]),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;END_c&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabDouble(),
+ out_implicit: new ScilabDouble(),
+ style: new ScilabString(["END_c"])
+ }),
+ model: scicos_model({
+ sim: list(new ScilabString(["scicosexit"]), new ScilabDouble([4])),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble(),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble(),
+ evtin: new ScilabDouble([1]),
+ evtout: new ScilabDouble([1]),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["d"]),
+ firing: new ScilabDouble([1.000E+08]),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m_1.objs.push(scicos_link({
+ xx: new ScilabDouble([292.104], [292.104], [261.83733], [261.83733], [292.104], [292.104]),
+ yy: new ScilabDouble([243.40305], [234.45067], [234.45067], [305.584], [305.584], [294.83162]),
+ id: new ScilabString(["drawlink"]),
+ 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: new ScilabString(["csuper"]),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: scs_m_1,
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["h"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list()
+ });
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;ENDBLK&quot;,sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, new ScilabDouble(), gr_i);
+ return new BasicBlock(this.x);
+ }
+ ENDBLK.prototype.details = function ENDBLK() {
+ return this.x;
+ }
+}
+function END_c() {
+
+ END_c.prototype.define = function END_c() {
+ this.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([this.tf]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([this.tf]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"END_c\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ END_c.prototype.details = function END_c() {
+ return this.x;
+ }
+}
+
+function ESELECT_f() {
+
+ ESELECT_f.prototype.define = function ESELECT_f() {
+ this.out = 2;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["eselect"]), new ScilabDouble([-2]));
+ model.in = new ScilabDouble([1]);
+ model.in2 = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([-1]);
+ model.evtin = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble(...ones(this.out, 1));
+ model.blocktype = new ScilabString(["l"]);
+ model.firing = new ScilabDouble(...ones(this.out, 1));
+ model.dep_ut = new ScilabBoolean([true, false]);
+ model.nmode = new ScilabDouble([0]);
+ model.nzcross = new ScilabDouble([0]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"ESELECT_f\",sz(1),sz(2));"]);;
+
+ var exprs = new ScilabString([this.out], [1], [parseInt(getData(model.nmode))]);
+ this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ ESELECT_f.prototype.details = function ESELECT_f() {
+ return this.x;
+ }
+}
+function EVTDLY_c() {
+
+ EVTDLY_c.prototype.internal = 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]);
+ // changed
+ model.outtyp = new ScilabDouble();
+ var exprs = new ScilabString([dt], [ff]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EVTDLY_c\",sz(1),sz(2));"]);
+ var block = new standard_define(new ScilabDouble([80, 80]), model, exprs, gr_i); // 3,2 -> 80
+ block.graphics.style = new ScilabString(["EVTDLY_c"]);
+ return block;
+
+ }
+
+ EVTDLY_c.prototype.define = function EVTDLY_c() {
+ this.dt = 0.1;
+ this.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([this.dt], [this.ff]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([this.ff]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+ // changed
+ model.outtyp = new ScilabDouble();
+ var exprs = new ScilabString([this.dt], [this.ff]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EVTDLY_c\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([80, 80]), model, exprs, gr_i); // 3,2 -> 80
+ this.x.graphics.style = new ScilabString(["EVTDLY_c"]);
+ return new BasicBlock(this.x);
+
+ }
+
+ EVTDLY_c.prototype.details = function EVTDLY_c() {
+
+ return this.x;
+ }
+}
+function EVTDLY_f() {
+
+ EVTDLY_f.prototype.internal = function EVTDLY_f() {
+ this.dt = 0.1;
+ this.ff = this.dt;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["evtdly"]);
+ model.evtin = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([this.dt]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([this.ff]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([this.dt], [sci2exp(this.ff)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EVTDLY_f\",sz(1),sz(2));"]);
+ var block = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ block.graphics.style = new ScilabString(["EVTDLY_f"]);
+ return block;
+ }
+}function EVTGEN_f() {
+
+ EVTGEN_f.prototype.define = function EVTGEN_f() {
+ this.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([this.tt]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([this.tt]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EVTGEN_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ EVTGEN_f.prototype.details = function EVTGEN_f() {
+ return this.x;
+ }
+}
+function EVTVARDLY() {
+
+ EVTVARDLY.prototype.define = function EVTVARDLY() {
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["evtvardly"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble([1]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([-1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([parseInt(getData(model.firing), 10)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EVTVARDLY\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ EVTVARDLY.prototype.details = function EVTVARDLY() {
+ return this.x;
+ }
+}
+
+function EXPBLK_m() {
+
+ EXPBLK_m.prototype.define = function EXPBLK_m() {
+ this.in1 = 1;
+ this.a = math.E;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["expblk_m"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([this.a]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString(["%e"]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EXPBLK_m\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ EXPBLK_m.prototype.details = function EXPBLK_m() {
+ return this.x;
+ }
+}
+function EXTRACT() {
+
+ EXTRACT.prototype.define = function EXTRACT() {
+ this.function_name = "extract";
+ this.funtyp = 4;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble([1, 1, 1, 1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)], [sci2exp([1])], [sci2exp([1])]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EXTRACT\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ EXTRACT.prototype.details = function EXTRACT() {
+ return this.x;
+ }
+}
+
+function EXTRACTBITS() {
+
+ EXTRACTBITS.prototype.define = function EXTRACTBITS() {
+ this.numb = [];
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["extract_bit_32_UH0"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([1]);
+ model.in2 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([3]);
+ model.outtyp = new ScilabDouble([3]);
+ model.ipar = new ScilabDouble([0, ...this.numb]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([sci2exp(3)], [sci2exp(1)], [sci2exp(0)], [sci2exp(0)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EXTRACTBITS\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ EXTRACTBITS.prototype.details = function EXTRACTBITS() {
+ return this.x;
+ }
+}
+function EXTRACTOR() {
+
+ EXTRACTOR.prototype.define = function EXTRACTOR() {
+ this.ind = 1;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["extractor"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([-1]);
+ model.out = new ScilabDouble([1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+ model.ipar = new ScilabDouble([this.ind]);
+
+ var exprs = new ScilabString([sci2exp(this.ind)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EXTRACTOR\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ EXTRACTOR.prototype.details = function EXTRACTOR() {
+ return this.x;
+ }
+}
+
+function Extract_Activation() {
+
+ Extract_Activation.prototype.define = function Extract_Activation() {
+ var scs_m_1 = scicos_diagram();
+ scs_m_1.objs.push(new IFTHEL_f().internal());
+ scs_m_1.objs.push(new CLKSOMV_f().internal());
+ scs_m_1.objs.push(new IN_f().internal());
+ scs_m_1.objs.push(new CLKOUTV_f().internal());
+ 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[0];
+ var graphics = blk.graphics;
+
+ var model = blk.model;
+ graphics.orig = new ScilabDouble([80, 0]);
+ graphics.sz = new ScilabDouble([60, 40]);
+ graphics.flip = new ScilabBoolean([true]);
+ 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]);
+ model.uid = new ScilabString([count]);
+ blk.doc = list(new ScilabString([count++]));
+ blk.graphics = graphics;
+ blk.model = model;
+ scs_m_1.objs[0] = blk;
+
+ blk = scs_m_1.objs[1];
+ graphics = blk.graphics;
+ model = blk.model;
+ model.outtyp = new ScilabDouble();
+ model.evtin = new ScilabDouble([-1], [-1], [-1]);
+ model.evtout = new ScilabDouble([-1]);
+ graphics.orig = new ScilabDouble([80, -80]);
+ graphics.sz = new ScilabDouble([80, 40]);
+ graphics.flip = new ScilabBoolean([true]);
+ graphics.pein = new ScilabDouble([5], [6], [0]);
+ graphics.peout = new ScilabDouble([8]);
+ graphics.style = new ScilabString(["CLKSOMV_f"]);
+ model.uid = new ScilabString([count]);
+ blk.doc = list(new ScilabString([count++]));
+ blk.graphics = graphics;
+ blk.model = model;
+ scs_m_1.objs[1] = blk;
+
+ blk = scs_m_1.objs[2];
+ graphics = blk.graphics;
+ model = blk.model;
+ graphics.orig = new ScilabDouble([0, 10]);
+ graphics.sz = new ScilabDouble([20, 20]);
+ graphics.flip = new ScilabBoolean([true]);
+ graphics.exprs = new ScilabString(["1"]);
+ model.ipar = new ScilabDouble([1]);
+ graphics.pout = new ScilabDouble([7]);
+ model.uid = new ScilabString([count]);
+ blk.doc = list(new ScilabString([count++]));
+ blk.graphics = graphics;
+ blk.model = model;
+ scs_m_1.objs[2] = blk;
+
+ blk = scs_m_1.objs[3];
+ graphics = blk.graphics;
+ model = blk.model;
+ model.outtyp = new ScilabDouble();
+ graphics.style = new ScilabString(["CLKOUTV_f"]);
+ graphics.orig = new ScilabDouble([110, -140]);
+ graphics.sz = new ScilabDouble([20, 20]);
+ graphics.flip = new ScilabBoolean([true]);
+ graphics.exprs = new ScilabString(["1"]);
+ graphics.gr_i = list(new ScilabString(["xstringb(orig(1),orig(2),\"CLKOUTV_f\",sz(1),sz(2));"]), new ScilabDouble([8]));
+ model.ipar = new ScilabDouble([1]);
+ graphics.pein = new ScilabDouble([8]);
+ model.uid = new ScilabString([count]);
+ blk.doc = list(new ScilabString([count++]));
+ blk.graphics = graphics;
+ blk.model = model;
+ scs_m_1.objs[3] = blk;
+
+ var lnk = scs_m_1.objs[4];
+ lnk.xx = new ScilabDouble([140], [140]);
+ lnk.yy = new ScilabDouble([-44], [-76]);
+ lnk.ct = new ScilabDouble([5, -1]);
+ lnk.from = new ScilabDouble([1, 1, 0]);
+ lnk.to = new ScilabDouble([2, 1, 1]);
+ scs_m_1.objs[4] = lnk;
+
+ lnk = scs_m_1.objs[5];
+ lnk.xx = new ScilabDouble([160], [160]);
+ lnk.yy = new ScilabDouble([-44], [-76]);
+ lnk.ct = new ScilabDouble([5, -1]);
+ lnk.from = new ScilabDouble([1, 2, 0]);
+ lnk.to = new ScilabDouble([2, 2, 1]);
+ scs_m_1.objs[5] = lnk;
+
+ lnk = scs_m_1.objs[6];
+ lnk.xx = new ScilabDouble([64], [116]);
+ lnk.yy = new ScilabDouble([-40], [-20]);
+ lnk.from = new ScilabDouble([3, 1, 0]);
+ lnk.to = new ScilabDouble([1, 1, 1]);
+ scs_m_1.objs[6] = lnk;
+
+ lnk = scs_m_1.objs[7];
+ lnk.xx = new ScilabDouble([160], [160]);
+ lnk.yy = new ScilabDouble([-124], [-176]);
+ lnk.ct = new ScilabDouble([5, -1]);
+ lnk.from = new ScilabDouble([2, 1, 0]);
+ lnk.to = new ScilabDouble([4, 1, 1]);
+ scs_m_1.objs[7] = lnk;
+
+ model = scicos_model();
+ model.sim = new ScilabString(["csuper"]);
+ model.in = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble([1]);
+ model.rpar = scs_m_1;
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Extract_Activation\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, new ScilabDouble(), gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ Extract_Activation.prototype.details = function Extract_Activation() {
+ return this.x;
+ }
+}
+function EXTTRI() {
+
+ EXTTRI.prototype.define = function EXTTRI() {
+ this.function_name = "extrilz";
+ this.funtyp = 4;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)], [sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EXTTRI\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ EXTTRI.prototype.details = function EXTTRI() {
+ return this.x;
+ }
+}
+
+function Flowmeter() {
+
+ Flowmeter.prototype.define = function Flowmeter() {
+ this.ModelName = "Flowmeter";
+ this.PrametersValue = 1;
+ this.ParametersName = "Qini";
+
+ var model = scicos_model();
+
+ this.Typein = [];
+ this.Typeout = [];
+
+ this.MI = [];
+ this.MO = [];
+ this.P = [[50,105,-1,90],[0,10,2,0],[101,10,-2,0]];
+ this.PortName = [["Mesure"],["C1"],["C2"]];
+
+ for (var i = 0; i < size(this.P, "r"); i++) {
+ if (this.P[i][2] == 1) {
+ this.Typein.push(["E"]);
+ this.MI.push(this.PortName[i]);
+ }
+
+ if (this.P[i][2] == 2) {
+ this.Typein.push(["I"]);
+ this.MI.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -1) {
+ this.Typeout.push(["E"]);
+ this.MO.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -2) {
+ this.Typeout.push(["I"]);
+ this.MO.push(this.PortName[i]);
+ }
+ }
+
+ var mo = new modelica_function();
+ model.sim = new ScilabString([this.ModelName]);
+ mo.inputs = new ScilabString(...this.MI);
+ mo.outputs = new ScilabString(...this.MO);
+ model.rpar = new ScilabDouble([this.PrametersValue]);
+ mo.parameters = list(new ScilabString([this.ParametersName]), new ScilabDouble([this.PrametersValue]), new ScilabDouble(zeros([this.ParametersName])));
+ var exprs = new ScilabString(["1"]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Flowmeter\",sz(1),sz(2));"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+ mo.model = new ScilabString([this.ModelName]);
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
+ model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, list(new ScilabString([gr_i]), new ScilabDouble([0])));
+ this.x.graphics.in_implicit = new ScilabDouble(this.Typein);
+ this.x.graphics.out_implicit = new ScilabDouble(this.Typeout);
+ return new BasicBlock(this.x);
+ }
+
+ Flowmeter.prototype.details = function Flowmeter() {
+ return this.x;
+ }
+}
+function fortran_block() {
+
+ fortran_block.prototype.define = function fortran_block() {
+ var model = scicos_model();
+ model.sim = list(new ScilabString([" "]), new ScilabDouble([1001]));
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble([0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ this.funam = "forty";
+
+ var label = list(new ScilabString([sci2exp(parseInt(getData(model.in)))], [sci2exp(parseInt(getData(model.out)))], [sci2exp(getData(model.rpar))], [this.funam]), list(new ScilabDouble()));
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"fortran_block\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([4, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ fortran_block.prototype.details = function fortran_block() {
+ return this.x;
+ }
+}
+function freq_div() {
+
+ freq_div.prototype.define = function freq_div() {
+ var scs_m_1 = scicos_diagram();
+ scs_m_1.objs.push(new Modulo_Count().internal());
+ scs_m_1.objs.push(new CLKINV_f().internal());
+ scs_m_1.objs.push(new CLKOUTV_f().internal());
+ scs_m_1.objs.push(new IFTHEL_f().internal());
+ scs_m_1.objs.push(new CLKSPLIT_f().internal());
+ 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[0];
+ 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]);
+ graphics.out_implicit = new ScilabString(["E"]);
+ graphics.out_style = new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]);
+ graphics.out_label = new ScilabString([""]);
+ model.uid = new ScilabString([count]);
+ blk.doc = list(new ScilabString([count++]));
+ blk.graphics = graphics;
+ blk.model = model;
+ scs_m_1.objs[0] = blk;
+
+ blk = scs_m_1.objs[1];
+ 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]);
+ model.uid = new ScilabString([count]);
+ blk.doc = list(new ScilabString([count++]));
+ blk.graphics = graphics;
+ blk.model = model;
+ scs_m_1.objs[1] = blk;
+
+ blk = scs_m_1.objs[2];
+ 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]);
+ model.uid = new ScilabString([count]);
+ blk.doc = list(new ScilabString([count++]));
+ blk.graphics = graphics;
+ blk.model = model;
+ scs_m_1.objs[2] = blk;
+
+ blk = scs_m_1.objs[3];
+ 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]);
+ model.uid = new ScilabString([count]);
+ blk.doc = list(new ScilabString([count++]));
+ blk.graphics = graphics;
+ blk.model = model;
+ scs_m_1.objs[3] = blk;
+
+ blk = scs_m_1.objs[4];
+ 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]);
+ model.uid = new ScilabString([count]);
+ blk.doc = list(new ScilabString([count++]));
+ blk.graphics = graphics;
+ blk.model = model;
+ scs_m_1.objs[4] = blk;
+
+ var lnk = scs_m_1.objs[5];
+ lnk.xx = new ScilabDouble([170], [170.5]);
+ lnk.yy = new ScilabDouble([-44], [-75]);
+ lnk.ct = new ScilabDouble([5, -1]);
+ lnk.from = new ScilabDouble([2, 1, 0]);
+ lnk.to = new ScilabDouble([5, 1, 1]);
+ scs_m_1.objs[5] = lnk;
+
+ lnk = scs_m_1.objs[6];
+ lnk.xx = new ScilabDouble([104], [136]);
+ lnk.yy = new ScilabDouble([-100], [-100]);
+ lnk.from = new ScilabDouble([1, 1, 0]);
+ lnk.to = new ScilabDouble([4, 1, 1]);
+ scs_m_1.objs[6] = lnk;
+
+ lnk = scs_m_1.objs[7];
+ lnk.xx = new ScilabDouble([180], [180]);
+ lnk.yy = new ScilabDouble([-124], [-176]);
+ lnk.ct = new ScilabDouble([5, -1]);
+ lnk.from = new ScilabDouble([4, 2, 0]);
+ lnk.to = new ScilabDouble([3, 1, 1]);
+ scs_m_1.objs[7] = lnk;
+
+ lnk = scs_m_1.objs[8];
+ lnk.xx = new ScilabDouble([170], [170.5]);
+ lnk.yy = new ScilabDouble([-44], [-75]);
+ lnk.ct = new ScilabDouble([5, -1]);
+ lnk.from = new ScilabDouble([5, 1, 0]);
+ lnk.to = new ScilabDouble([4, 1, 1]);
+ scs_m_1.objs[8] = lnk;
+
+ lnk = scs_m_1.objs[9];
+ lnk.xx = new ScilabDouble([169], [170]);
+ lnk.yy = new ScilabDouble([-90], [-76]);
+ 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[9] = 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 = new ScilabString(["xstringb(orig(1),orig(2),&quot;freq_div&quot;,sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, new ScilabDouble(), gr_i);
+ return new BasicBlock(this.x);
+ }
+ freq_div.prototype.details = function freq_div() {
+ return this.x;
+ }
+}
+function FROM() {
+
+ FROM.prototype.define = function FROM() {
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["from"]);
+ model.in = new ScilabDouble();
+ model.in2 = new ScilabDouble();
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.outtyp = new ScilabDouble([-1]);
+ model.ipar = new ScilabDouble();
+ model.opar = list(new ScilabString(["A"]));
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString(["A"]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"FROM\",sz(1),sz(2));"]);
+ 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);
+ }
+ FROM.prototype.details = function FROM() {
+ return this.x;
+ }
+}
+
+function FROMMO() {
+
+ FROMMO.prototype.define = function FROMMO() {
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["frommo"]);
+ model.in = new ScilabDouble();
+ model.in2 = new ScilabDouble();
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.outtyp = new ScilabDouble([-1]);
+ model.ipar = new ScilabDouble();
+ model.opar = list(new ScilabString(["A"]));
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var mo = new modelica_function();
+ mo.model = new ScilabString(["frommo"]);
+ mo.outputs = new ScilabString(["n"]);
+
+ var exprs = new ScilabString(["A"]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"FROMMO\",sz(1),sz(2));"]);
+ 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);
+ }
+ FROMMO.prototype.details = function FROMMO() {
+ return this.x;
+ }
+}
+
+function FROMWSB() {
+
+ FROMWSB.prototype.define = function FROMWSB() {
+ var scs_m_1 = scicos_diagram({
+ version: new ScilabString(["scicos4.2"]),
+ props: scicos_params({
+ wpar: new ScilabDouble([600, 450, 0, 0, 450, 600]),
+ Title: new ScilabString(["FROMWSB"]),
+ tol: new ScilabDouble([0.0001], [0.000001], [Math.pow(10, -10)], [100001], [0], [0], [0]),
+ tf: new ScilabDouble([100000]),
+ context: new ScilabString([" "]),
+ void1: new ScilabDouble(),
+ options: tlist(["scsopt", "3D", "Background", "Link", "ID", "Cmap"], new ScilabString(["scsopt", "3D", "Background", "Link", "ID", "Cmap"]), list(new ScilabBoolean([true]), new ScilabDouble([33])), new ScilabDouble([8, 1]), new ScilabDouble([1, 5]), list(new ScilabDouble([5, 1]), new ScilabDouble([4, 1])), new ScilabDouble([0.8, 0.8, 0.8])),
+ void2: new ScilabDouble(),
+ void3: new ScilabDouble(),
+ doc: list()
+ })
+ });
+ scs_m_1.objs.push(scicos_block({
+ gui: new ScilabString(["FROMWS_c"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([260.37067, 261.584]),
+ sz: new ScilabDouble([70, 40]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["V"], ["1"], ["1"], ["0"]),
+ pin: new ScilabDouble(),
+ pout: new ScilabDouble([4]),
+ pein: new ScilabDouble([2]),
+ peout: new ScilabDouble([2]),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;FROMWS_c&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabDouble(),
+ out_implicit: new ScilabString(["E"]),
+ out_style: new ScilabString(["ExplicitOutputPort"]),
+ out_label: new ScilabString([""]),
+ style: new ScilabString(["FROMWS_c"])
+ }),
+ model: scicos_model({
+ sim: list(new ScilabString(["fromws_c"]), new ScilabDouble([4])),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble(),
+ out: new ScilabDouble([-1]),
+ out2: new ScilabDouble([-2]),
+ outtyp: new ScilabDouble([-1]),
+ evtin: new ScilabDouble([1]),
+ evtout: new ScilabDouble([1]),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([1], [-31], [1], [1], [0]),
+ opar: list(),
+ blocktype: new ScilabString(["d"]),
+ firing: new ScilabDouble([0]),
+ dep_ut: new ScilabBoolean([false, true]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m_1.objs.push(scicos_block({
+ gui: new ScilabString(["OUT_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([358.9421, 271.584]),
+ sz: new ScilabDouble([20, 20]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["1"]),
+ pin: new ScilabDouble([4]),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;OUT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabDouble(),
+ in_style: new ScilabString(["ExplicitInputPort"]),
+ in_label: new ScilabString([""]),
+ style: new ScilabString(["OUT_f"])
+
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["output"]),
+ in: new ScilabDouble([-1]),
+ in2: new ScilabDouble([-2]),
+ intyp: new ScilabDouble([-1]),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble(),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([1]),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m_1.objs.push(scicos_link({
+ xx: new ScilabDouble([295.37067], [295.37067], [233.23733], [233.23733], [295.37067], [295.37067]),
+ yy: new ScilabDouble([255.86971], [223.45067], [223.45067], [337.85067], [337.85067], [307.29829]),
+ id: new ScilabString(["drawlink"]),
+ 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_link({
+ xx: new ScilabDouble([338.9421], [358.9421]),
+ yy: new ScilabDouble([281.584], [281.584]),
+ id: new ScilabString(["drawlink"]),
+ 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: new ScilabString(["csuper"]),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble([-1]),
+ out2: new ScilabDouble([-2]),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: scs_m_1,
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["h"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list()
+ });
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"FROMWSB\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([5, 2]), model, new ScilabDouble(), gr_i);
+ return new BasicBlock(this.x);
+ }
+ FROMWSB.prototype.details = function FROMWSB() {
+ return this.x;
+ }
+}function GAINBLK() {
+
+ GAINBLK.prototype.define = function GAINBLK() {
+ this.gain = 1;
+ this.in1 = -1;
+ this.out = -1;
+ this.in2 = -2;
+ this.out2 = -2;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["gainblk"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([this.in1]);
+ model.out = new ScilabDouble([this.out]);
+ model.in2 = new ScilabDouble([this.in2]);
+ model.out2 = new ScilabDouble([this.out2]);
+ model.rpar = new ScilabDouble([this.gain]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([sci2exp(this.gain)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GAINBLK\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ GAINBLK.prototype.details = function GAINBLK() {
+ return this.x;
+ }
+}
+
+function GAINBLK_f() {
+
+ GAINBLK_f.prototype.define = function GAINBLK_f() {
+ this.gain = 1;
+ this.in1 = 1;
+ this.out = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["gain"]);
+ model.in = new ScilabDouble([this.in1]);
+ model.out = new ScilabDouble([this.out]);
+ model.rpar = new ScilabDouble([this.gain]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([sci2exp(this.gain)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GAINBLK_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ GAINBLK_f.prototype.details = function GAINBLK_f() {
+ return this.x;
+ }
+}
+
+function GAIN_f() {
+
+ GAIN_f.prototype.define = function GAIN_f() {
+ this.gain = 1;
+ this.in1 = 1;
+ this.out = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["gain"]);
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([this.gain]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([sci2exp(this.gain)], [sci2exp(this.in1)], [sci2exp(this.out)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GAIN_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ GAIN_f.prototype.details = function GAIN_f() {
+ return this.x;
+ }
+}
+
+function GENERAL_f() {
+
+ GENERAL_f.prototype.define = function GENERAL_f() {
+ var rpar = [[0],[0],[0],[0]];
+
+ this.in1 = 1;
+ this.out = 1;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["zcross"]), new ScilabDouble([1]));
+ model.nzcross = new ScilabDouble([this.in1]);
+ model.in = new ScilabDouble([this.in1]);
+ model.evtout = new ScilabDouble(...ones(this.out, 1));
+ model.rpar = new ScilabDouble([0], [0], [0], [0]);
+ model.blocktype = new ScilabString(["z"]);
+ model.firing = -new ScilabDouble(...ones(this.out, 1));
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([sci2exp(this.in1)], [sci2exp(this.out)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GENERAL_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ GENERAL_f.prototype.details = function GENERAL_f() {
+ return this.x;
+ }
+}
+function generic_block3() {
+
+ generic_block3.prototype.define = function generic_block3() {
+ var model = scicos_model();
+ this.function_name = "sinblk";
+ this.funtyp = 4;
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([1]);
+ model.in2 = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([this.function_name], [sci2exp(this.funtyp)], [sci2exp([parseInt(getData(model.in)[0]), parseInt(getData(model.in2)[0])])], [sci2exp(parseInt(getData(model.intyp)[0]))], [sci2exp([parseInt(getData(model.out)[0]), parseInt(getData(model.out2)[0])])], [sci2exp(parseInt(getData(model.outtyp)[0]))], [sci2exp(getData(model.evtin))], [sci2exp(getData(model.evtout))], [sci2exp(getData(model.state))], [sci2exp(getData(model.dstate))], [sci2exp(model.odstate)], [sci2exp(getData(model.rpar))], [sci2exp(getData(model.ipar))], [sci2exp(model.opar)], [sci2exp(parseInt(getData(model.nmode)[0]))], [sci2exp(parseInt(getData(model.nzcross)[0]))], [sci2exp(getData(model.firing))], ["y"], ["n"]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"generic_block3\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([4, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ generic_block3.prototype.details = function generic_block3() {
+ return this.x;
+ }
+}
+function GENSIN_f() {
+
+ GENSIN_f.prototype.define = function GENSIN_f() {
+ this.rpar = [[1], [1], [0]];
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["gensin"]);
+ model.in = new ScilabDouble();
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([1], [1], [0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+
+ var exprs = new ScilabString(this.rpar[0], this.rpar[1], this.rpar[2]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GENSIN_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ GENSIN_f.prototype.details = function GENSIN_f() {
+ return this.x;
+ }
+}
+
+function GENSQR_f() {
+
+ GENSQR_f.prototype.define = function GENSQR_f() {
+ this.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([this.Amplitude]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([this.Amplitude]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GENSQR_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ GENSQR_f.prototype.details = function GENSQR_f() {
+ return this.x;
+ }
+}
+function GOTO() {
+
+ GOTO.prototype.define = function GOTO() {
+ var model = scicos_model();
+ model.sim = new ScilabString(["goto"]);
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([-1]);
+ model.out = new ScilabDouble();
+ model.out2 = new ScilabDouble();
+ model.outtyp = new ScilabDouble([1]);
+ model.ipar = new ScilabDouble([1]);
+ model.opar = list(new ScilabString(["A"]));
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString(["A"], [sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GOTO\",sz(1),sz(2));"]);
+ 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)
+ }
+
+ GOTO.prototype.details = function GOTO() {
+ return this.x;
+ }
+}
+function GOTOMO() {
+
+ GOTOMO.prototype.define = function GOTOMO() {
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["gotomo"]);
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble();
+ model.out = new ScilabDouble();
+ model.out2 = new ScilabDouble();
+ model.outtyp = new ScilabDouble([1]);
+ model.ipar = new ScilabDouble([1]);
+ model.opar = list(new ScilabString(["A"]));
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var mo = new modelica_function();
+ mo.model = new ScilabString(["gotomo"]);
+ mo.inputs = new ScilabString(["p"]);
+
+ var exprs = new ScilabString(["A"], [sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GOTOMO\",sz(1),sz(2));"]);
+ 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);
+ }
+ GOTOMO.prototype.details = function GOTOMO() {
+ return this.x;
+ }
+}
+
+function GotoTagVisibility() {
+
+ GotoTagVisibility.prototype.define = 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(new ScilabString(["A"]));
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabBoolean([false]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString(["A"]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GotoTagVisibility\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ GotoTagVisibility.prototype.details = function GotoTagVisibility() {
+
+ return this.x;
+ }
+}
+function GotoTagVisibilityMO() {
+
+ GotoTagVisibilityMO.prototype.define = function GotoTagVisibilityMO() {
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["gototagvisibilitymo"]);
+ model.in = new ScilabDouble();
+ model.in2 = new ScilabDouble();
+ model.out = new ScilabDouble();
+ model.out2 = new ScilabDouble();
+ model.evtin = new ScilabDouble();
+ model.intyp = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.opar = list(new ScilabString(["A"]));
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabBoolean([false]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString(["A"]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GotoTagVisibilityMO\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ GotoTagVisibilityMO.prototype.details = function GotoTagVisibilityMO() {
+ return this.x;
+ }
+}
+
+function Ground() {
+
+ Ground.prototype.define = function Ground() {
+
+ var model = scicos_model();
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble();
+ model.sim = new ScilabString(["Ground"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ mo.model = new ScilabString(["Ground"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabDouble();
+ model.equations = mo;
+
+ var exprs = new ScilabString([""]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Ground\",sz(1),sz(2));"]);
+ this.x = standard_define(new ScilabDouble([1, 1]), model, exprs, list(gr_i, new ScilabDouble([0])));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new GroundBlock(this.x);
+ }
+
+ Ground.prototype.details = function Ground() {
+ return this.x;
+ }
+}
+function Gyrator() {
+
+ Gyrator.prototype.define = function Gyrator() {
+ this.ModelName = "Gyrator";
+ this.PrametersValue = [[1],[1]];
+ this.ParametersName = [["G1"],["G2"]];
+ this.model = scicos_model();
+ this.Typein = [];
+ this.Typeout = [];
+ this.MI = [];
+ this.MO = [];
+ this.P = [[2.5, 90, 2, 0],[2.5, 10, 2, 0],[97.5, 90, -2, 0],[97.5, 10, -2, 0]];
+ this.PortName = [["p1"],["n1"],["p2"],["n2"]];
+
+ for (var i = 0; i < size(this.P, "r"); i++) {
+ if (this.P[i][2] == 1) {
+ this.Typein.push(["E"]);
+ this.MI.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == 2) {
+ this.Typein.push(["I"]);
+ this.MI.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -1) {
+ this.Typeout.push(["E"]);
+ this.MO.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -2) {
+ this.Typeout.push(["I"]);
+ this.MO.push(this.PortName[i]);
+ }
+ }
+ var model = scicos_model();
+ var mo = new modelica_function();
+ model.sim = new ScilabString([this.ModelName]);
+ mo.inputs = new ScilabString(...this.MI);
+ mo.outputs = new ScilabString(...this.MO);
+ console.log(this.MI);
+ model.rpar = new ScilabDouble(...this.PrametersValue);
+ mo.parameters = list(new ScilabString(...this.ParametersName), new ScilabDouble(...this.PrametersValue), new ScilabDouble(...zeros(this.ParametersName)));
+ var exprs = new ScilabString(["1"], ["1"]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;Gyrator&quot;,sz(1),sz(2));"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+ mo.model = new ScilabString([this.ModelName]);
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
+ model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
+ this.x = standard_define([2, 2], model, exprs, list(gr_i, new ScilabDouble([0])));
+ this.x.graphics.in_implicit = new ScilabString(...this.Typein);
+ this.x.graphics.out_implicit = new ScilabString(...this.Typeout);
+ return new BasicBlock(this.x);
+ }
+ Gyrator.prototype.details = function Gyrator() {
+ return this.x;
+ }
+}
+function HALT_f() {
+
+ HALT_f.prototype.define = function HALT_f() {
+ this.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 = new ScilabString([this.n]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"HALT_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ HALT_f.prototype.details = function HALT_f() {
+ return this.x;
+ }
+}
+
+function HYSTHERESIS() {
+
+ HYSTHERESIS.prototype.define = function HYSTHERESIS() {
+ this.in1 = 1;
+ this.ipar = 0;
+ this.nzz = 2;
+ this.rpar = [[1], [0], [1], [0]];
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["hystheresis"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([this.in1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble(...this.rpar);
+ model.nzcross = new ScilabDouble([this.nzz]);
+ model.nmode = new ScilabDouble([1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString(...this.rpar, [Math.sign(this.nzz)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"HYSTHERESIS\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ HYSTHERESIS.prototype.details = function HYSTHERESIS() {
+ return this.x;
+ }
+}
+
+function IdealTransformer() {
+
+ IdealTransformer.prototype.define = function IdealTransformer() {
+ this.ModelName = "IdealTransformer";
+ this.PrametersValue = [1];
+ this.ParametersName = ["N"];
+
+ var model = scicos_model();
+
+ this.Typein = [];
+ this.Typeout = [];
+ this.MI = [];
+ this.MO = [];
+ this.P = [[2.5,90,2,0],[2.5,10,2,0],[97.5,90,-2,0],[97.5,10,-2,0]];
+ this.PortName = [["p1"],["n1"],["p2"],["n2"]];
+
+ for (var i = 0; i < size(this.P, "r"); i++) {
+ if (this.P[i][2] == 1) {
+ this.Typein.push(["E"]);
+ this.MI.push(this.PortName[i]);
+ }
+
+ if (this.P[i][2] == 2) {
+ this.Typein.push(["I"]);
+ this.MI.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -1) {
+ this.Typeout.push(["E"]);
+ this.MO.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -2) {
+ this.Typeout.push(["I"]);
+ this.MO.push(this.PortName[i]);
+ }
+ }
+ var mo = new modelica_function();
+ model.sim = new ScilabString([this.ModelName]);
+ mo.inputs = new ScilabString(...this.MI);
+ mo.outputs = new ScilabString(...this.MO);
+ model.rpar = new ScilabDouble(this.PrametersValue);
+ mo.parameters = list(new ScilabString(this.ParametersName), new ScilabDouble(this.PrametersValue), new ScilabDouble(zeros(getData(this.ParametersName))));
+ var exprs = new ScilabString(["1"]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"IdealTransformer\",sz(1),sz(2));"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+ mo.model = new ScilabString([this.ModelName]);
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
+ model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
+ this.x = new standard_define(new ScilabDouble([2,2]), model, exprs, list(gr_i), new ScilabDouble([0]));
+ this.x.graphics.in_implicit = new ScilabDouble(this.Typein);
+ this.x.graphics.out_implicit = new ScilabDouble(this.Typeout);
+ return new BasicBlock(this.x);
+ }
+
+ IdealTransformer.prototype.details = function IdealTransformer() {
+ return this.x;
+ }
+
+}
+function IFTHEL_f() {
+
+ IFTHEL_f.prototype.internal = function IFTHEL_f() {
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["ifthel"]), new ScilabDouble([-1]));
+ model.in = new ScilabDouble([1]);
+ model.in2 = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([-1]);
+ model.evtin = new ScilabDouble([-1]);
+ model.outtyp = new ScilabDouble(); // changed
+ model.evtout = new ScilabDouble([-1], [-1]) // 1, 1 -> -1, -1 inverse
+ model.blocktype = new ScilabString(["l"]);
+ model.firing = new ScilabDouble([-1], [-1]); // inverse
+ model.dep_ut = new ScilabBoolean([true, false]);
+ model.nmode = new ScilabDouble([1]);
+ model.nzcross = new ScilabDouble([1]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"IFTHEL_f\",sz(1),sz(2));"]);
+ var exprs = new ScilabString(["1"], ["1"]); // value model.in, model.nmode inverse
+
+ var block = new standard_define(new ScilabDouble([80, 80]), model, exprs, gr_i); // 3 -> 80
+ block.graphics.in_implicit = new ScilabString(["E"]);
+ // changed
+ block.graphics.in_label = new ScilabString([""]);
+ block.graphics.in_style = new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]);
+ block.graphics.style = new ScilabString(["IFTHEL_f"]);
+ return block;
+ }
+
+ IFTHEL_f.prototype.define = function IFTHEL_f() {
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["ifthel"]), new ScilabDouble([-1]));
+ model.in = new ScilabDouble([1]);
+ model.in2 = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([-1]);
+ model.evtin = new ScilabDouble([-1]);
+ model.outtyp = new ScilabDouble(); // changed
+ model.evtout = new ScilabDouble([-1], [-1]) // 1, 1 -> -1, -1 inverse
+ model.blocktype = new ScilabString(["l"]);
+ model.firing = new ScilabDouble([-1], [-1]); // inverse
+ model.dep_ut = new ScilabBoolean([true, false]);
+ model.nmode = new ScilabDouble([1]);
+ model.nzcross = new ScilabDouble([1]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"IFTHEL_f\",sz(1),sz(2));"]);
+ var exprs = new ScilabString(["1"], ["1"]); // value model.in, model.nmode inverse
+
+ this.x = new standard_define(new ScilabDouble([80, 80]), model, exprs, gr_i); // 3 -> 80
+ this.x.graphics.in_implicit = new ScilabString(["E"]);
+ // changed
+ this.x.graphics.in_label = new ScilabString([""]);
+ this.x.graphics.in_style = new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]);
+ this.x.graphics.style = new ScilabString(["IFTHEL_f"]);
+ return new BasicBlock(this.x);
+ }
+
+ IFTHEL_f.prototype.details = function IFTHEL_f() {
+ return this.x;
+ }
+}
+function Inductor() {
+
+ Inductor.prototype.define = function Inductor() {
+ this.L = 1.0E-5;
+
+ var model = scicos_model();
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([this.L.toExponential(1)]);
+ model.sim = new ScilabString(["Inductor"]);
+
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ mo.model = new ScilabString(["Inductor"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["n"]);
+ mo.parameters = list(new ScilabString(["L"]), list(new ScilabDouble([this.L.toExponential(1)])));
+ model.equations = mo;
+
+ var exprs = new ScilabString([this.L]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Inductor\",sz(1),sz(2));"]);
+ 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);
+ }
+ Inductor.prototype.details = function Inductor() {
+ return this.x;
+ }
+}
+
+function INIMPL_f() {
+
+ INIMPL_f.prototype.define = 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 = new modelica_function();
+ mo.model = new ScilabString(["PORT"]);
+ mo.outputs = new ScilabString(["n"]);
+ mo.inputs = new ScilabDouble();
+ model.equations = mo;
+
+ var exprs = new ScilabString(["1"]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;INIMPL_f&quot;,sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([1, 1]), model, exprs, gr_i);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+
+ this.implicitInBlock = new ImplicitInBlock(this.x);
+ this.displayParameter = [this.implicitInBlock.ordering];
+ return this.implicitInBlock;
+ }
+ INIMPL_f.prototype.details = function INIMPL_f() {
+ return this.x;
+ }
+}
+function INTEGRAL_f() {
+
+ INTEGRAL_f.prototype.define = function INTEGRAL_f() {
+ this.x0 = 0;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["integr"]);
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.state = new ScilabDouble([this.x0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+
+ var exprs = new ScilabString([sci2exp(this.x0)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"INTEGRAL_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ INTEGRAL_f.prototype.details = function INTEGRAL_f() {
+ return this.x;
+ }
+}
+
+function INTEGRAL_m() {
+
+ INTEGRAL_m.prototype.define = function INTEGRAL_m() {
+ this.maxp = 1;
+ this.minp = -1;
+ this.rpar = [];
+
+ var model = scicos_model();
+ model.state = new ScilabDouble([0]);
+ model.sim = list(new ScilabString(["integral_func"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.in2 = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+
+ var exprs = new ScilabString([0], [0], [0], [this.maxp], [this.minp]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"INTEGRAL_m\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ INTEGRAL_m.prototype.details = function INTEGRAL_m() {
+ return this.x;
+ }
+}
+
+function INTMUL() {
+
+ INTMUL.prototype.define = function INTMUL() {
+ this.sgn = 0;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["matmul_i32"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([-1], [-2]);
+ model.out = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2], [-3]);
+ model.out2 = new ScilabDouble([-3]);
+ model.intyp = new ScilabDouble([3, 3]);
+ model.outtyp = new ScilabDouble([3]);
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble([this.sgn]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([sci2exp(3)], [sci2exp(0)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"INTMUL\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ INTMUL.prototype.details = function INTMUL() {
+ return this.x;
+ }
+}
+
+function INTRP2BLK_f() {
+
+ INTRP2BLK_f.prototype.define = function INTRP2BLK_f() {
+ this.a = [[0],[1]];
+ this.b = [[0],[1]];
+ this.c = [[0,1],[1,2]];
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["intrp2"]), new ScilabDouble([1]));
+ model.in = new ScilabDouble([1], [1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble(...this.a,...this.b,...colon_operator(this.c));
+ model.ipar = new ScilabDouble([2], [2]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([sci2exp(this.a)],[sci2exp(this.b)],[sci2exp(this.c)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"INTRP2BLK_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ INTRP2BLK_f.prototype.details = function INTRP2BLK_f() {
+ return this.x;
+ }
+}
+
+function INTRPLBLK_f() {
+
+ INTRPLBLK_f.prototype.define = function INTRPLBLK_f() {
+ this.a = [[0],[1]];
+
+ this.b = [[0],[1]];
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["intrpl"]);
+ model.in = new ScilabDouble(1);
+ model.out = new ScilabDouble(1);
+ model.rpar = new ScilabDouble(...this.a, ...this.b);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ var exprs = new ScilabString([sci2exp(this.a)], [sci2exp(this.b)]);
+
+ var gr_i = ["xstringb(orig(1),orig(2),\"INTRPLBLK_f\",sz(1),sz(2));"];
+ this.x = new standard_define(new ScilabDouble([2,2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ INTRPLBLK_f.prototype.details = function INTRPLBLK_f() {
+ return this.x;
+ }
+}
+function INVBLK() {
+
+ INVBLK.prototype.define = function INVBLK() {
+ this.in1 = -1;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["invblk4"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([this.in1]);
+ model.out = new ScilabDouble([this.in1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([" "]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"INVBLK\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ INVBLK.prototype.details = function INVBLK() {
+ return this.x;
+ }
+}
+
+function IN_f () {
+
+ IN_f.prototype.internal = function IN_f() {
+ this.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([this.prt]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = new ScilabString([sci2exp(this.prt)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"IN_f\",sz(1),sz(2));"]);
+ var block = new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i);
+ block.graphics.style = new ScilabString(["IN_f"]); // changed
+ block.graphics.out_implicit = new ScilabString(["E"]);
+ block.graphics.out_style = new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]);
+ block.graphics.out_label = new ScilabString([""]);
+ return block;
+ }
+
+ IN_f.prototype.define = function IN_f() {
+ this.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([this.prt]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = new ScilabString([sci2exp(this.prt)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"IN_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i);
+
+ this.explicitInBlock = new ExplicitInBlock(this.x);
+ this.displayParameter = [this.explicitInBlock.ordering];
+ return this.explicitInBlock;
+
+ }
+
+ IN_f.prototype.details = function IN_f() {
+ return this.x;
+ }
+}
+function ISELECT_m() {
+
+ ISELECT_m.prototype.define = function ISELECT_m() {
+ this.z0 = 1;
+ this.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.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.firing = new ScilabDouble();
+ model.evtin = new ScilabDouble(...ones(this.nout, 1));
+ model.dstate = new ScilabDouble([this.z0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([sci2exp(1)], [sci2exp(this.nout)], [sci2exp(this.z0)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"ISELECT_m\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ ISELECT_m.prototype.details = function ISELECT_m() {
+ return this.x;
+ }
+}
+
+function LOGBLK_f() {
+
+ LOGBLK_f.prototype.define = function LOGBLK_f() {
+ this.in1 = 1;
+ this.a = Math.E;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["logblk"]);
+ model.in = new ScilabDouble([-1]);
+ model.out = new ScilabDouble([-1]);
+ model.rpar = new ScilabDouble([this.a]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString(["%e"]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"LOGBLK_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ LOGBLK_f.prototype.details = function LOGBLK_f() {
+ return this.x;
+ }
+}
+
+function LOGIC() {
+
+ LOGIC.prototype.define = function LOGIC() {
+ this.mat = [[0],[0],[0],[1]];
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["logic"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([1], [1]);
+ model.in2 = new ScilabDouble([1], [1]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([5, 5]);
+ model.outtyp = new ScilabDouble([5]);
+ model.opar = list(int8(...this.mat));
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabBoolean([false]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([sci2exp(this.mat)], [sci2exp(0)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"LOGIC\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ LOGIC.prototype.details = function LOGIC() {
+ return this.x;
+ }
+}
+function LOGICAL_OP() {
+
+ LOGICAL_OP.prototype.define = function LOGICAL_OP() {
+ this.in1 = [[-1], [-1]];
+ this.ipar = 0;
+ this.nin = 2;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["logicalop"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble(...this.in1);
+ model.out = new ScilabDouble([-1]);
+ model.ipar = new ScilabDouble([this.ipar]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([this.nin], [this.ipar]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"LOGICAL_OP\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ LOGICAL_OP.prototype.details = function LOGICAL_OP() {
+ return this.x;
+ }
+}
+
+function LOOKUP_f() {
+
+ LOOKUP_f.prototype.define = function LOOKUP_f() {
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["lookup"]);
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([-2], [-1], [1], [2], [-1], [1], [-1], [1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"LOOKUP_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, [], gr_i);
+ return new BasicBlock(this.x);
+ }
+ LOOKUP_f.prototype.details = function LOOKUP_f() {
+ return this.x;
+ }
+}
+
+function MATBKSL() {
+
+ MATBKSL.prototype.define = function MATBKSL() {
+ this.function_name = "mat_bksl";
+ this.funtyp = 4;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1], [-1]);
+ model.in2 = new ScilabDouble([-2], [-3]);
+ model.intyp = new ScilabDouble([1, 1]);
+ model.out = new ScilabDouble([-2]);
+ model.out2 = new ScilabDouble([-3]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATBKSL\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MATBKSL.prototype.details = function MATBKSL() {
+ return this.x;
+ }
+}
+
+function MATCATH() {
+
+ MATCATH.prototype.define = function MATCATH() {
+ this.funtyp = 4;
+ this.function_name = "mat_cath";
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1], [-1]);
+ model.in2 = new ScilabDouble([-2], [-3]);
+ model.intyp = new ScilabDouble([1, 1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([0]);
+ model.outtyp = new ScilabDouble([-1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(2)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATCATH\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 3]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MATCATH.prototype.details = function MATCATH() {
+ return this.x;
+ }
+}
+
+function MATCATV() {
+
+ MATCATV.prototype.define = function MATCATV() {
+ this.l1 = [[2], [2]];
+ this.function_name = "mat_catv";
+ this.funtyp = 4;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in2 = new ScilabDouble([-1], [-1]);
+ model.in = new ScilabDouble([-2], [-3]);
+ model.intyp = new ScilabDouble([-1, -1]);
+ model.out = new ScilabDouble([0]);
+ model.out2 = new ScilabDouble([-1]);
+ model.outtyp = new ScilabDouble([-1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(2)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATCATV\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 3]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MATCATV.prototype.details = function MATCATV() {
+ return this.x;
+ }
+}
+
+function MATDET() {
+
+ MATDET.prototype.define = function MATDET() {
+ var model = scicos_model();
+
+ this.function_name = "mat_det";
+ this.funtyp = 4;
+
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-1]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATDET\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ MATDET.prototype.details = function MATDET() {
+ return this.x;
+ }
+}
+function MATDIAG() {
+
+ MATDIAG.prototype.define = function MATDIAG() {
+ this.function_name = "mat_diag";
+ this.funtyp = 4;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATDIAG\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MATDIAG.prototype.details = function MATDIAG() {
+ return this.x;
+ }
+}
+
+function MATDIV() {
+
+ MATDIV.prototype.define = function MATDIV() {
+ var model = scicos_model();
+
+ this.function_name = "mat_div";
+ this.funtyp = 4;
+
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1], [-2]);
+ model.in2 = new ScilabDouble([-3], [-3]);
+ model.intyp = new ScilabDouble([1, 1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATDIV\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ MATDIV.prototype.details = function MATDIV() {
+ return this.x;
+ }
+
+}
+function MATEIG() {
+
+ MATEIG.prototype.define = function MATEIG() {
+ this.function_name = "mat_vps";
+ this.funtyp = 4;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-1]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([2]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)], [sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATEIG\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MATEIG.prototype.details = function MATEIG() {
+ return this.x;
+ }
+}
+
+function MATEXPM() {
+
+ MATEXPM.prototype.define = function MATEXPM() {
+ this.function_name = "mat_expm";
+ this.funtyp = 4;
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-1]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATEXPM\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MATEXPM.prototype.details = function MATEXPM() {
+ return this.x;
+ }
+}
+
+function MATINV() {
+
+ MATINV.prototype.define = function MATINV() {
+ this.function_name = "mat_inv";
+ this.funtyp = 4;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-1]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATINV\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MATINV.prototype.details = function MATINV() {
+ return this.x;
+ }
+}
+
+function MATLU() {
+
+ MATLU.prototype.define = function MATLU() {
+ this.function_name = "mat_lu";
+ this.funtyp = 4;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-1]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1], [-1]);
+ model.out2 = new ScilabDouble([-1], [-1]);
+ model.outtyp = new ScilabDouble([1, 1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATLU\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MATLU.prototype.details = function CSCOPE() {
+ return this.x;
+ }
+}
+
+function MATMAGPHI() {
+
+ MATMAGPHI.prototype.define = function MATMAGPHI() {
+ this.function_name = "matz_abs";
+ this.funtyp = 4;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([2]);
+ model.out = new ScilabDouble([-1], [-1]);
+ model.out2 = new ScilabDouble([-2], [-2]);
+ model.outtyp = new ScilabDouble([1, 1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATMAGPHI\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MATMAGPHI.prototype.details = function MATMAGPHI() {
+ return this.x;
+ }
+}
+
+function MATMUL() {
+
+ MATMUL.prototype.define = function MATMUL() {
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["matmul_m"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([-1], [-2]);
+ model.in2 = new ScilabDouble([-2], [-3]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-3]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+ model.ipar = new ScilabDouble([1]);
+
+ var label = new ScilabString([sci2exp(parseInt(getData(model.ipar)))]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATMUL\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MATMUL.prototype.details = function MATMUL() {
+ return this.x;
+ }
+}
+
+function MATPINV() {
+
+ MATPINV.prototype.define = function MATPINV() {
+ this.function_name = "mat_pinv";
+ this.funtyp = 4;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1]);
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-2]);
+ model.out2 = new ScilabDouble([-1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATPINV\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MATPINV.prototype.details = function MATPINV() {
+ return this.x;
+ }
+}
+
+function MATRESH() {
+
+ MATRESH.prototype.define = function MATRESH() {
+ this.function_name = "mat_reshape";
+ this.funtyp = 4;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)], [sci2exp([1, 1])], [sci2exp([1, 1])]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATRESH\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MATRESH.prototype.details = function MATRESH() {
+ return this.x;
+ }
+}
+
+function MATSING() {
+
+ MATSING.prototype.define = function MATSING() {
+ var model = scicos_model();
+
+ this.function_name = "mat_sing";
+ this.funtyp = 4;
+
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)], [sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATSING\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ MATSING.prototype.details = function MATSING() {
+ return this.x;
+ }
+}
+function MATSUM() {
+
+ MATSUM.prototype.define = function MATSUM() {
+ this.function_name = "mat_sum";
+ this.funtyp = 4;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)], [sci2exp(0)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATSUM\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MATSUM.prototype.details = function MATSUM() {
+ return this.x;
+ }
+}
+
+function MATTRAN() {
+
+ MATTRAN.prototype.define = function MATTRAN() {
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["mattran_m"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.out = new ScilabDouble([-2]);
+ model.out2 = new ScilabDouble([-1]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATTRAN\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MATTRAN.prototype.details = function MATTRAN() {
+ return this.x;
+ }
+}
+
+function MATZCONJ() {
+
+ MATZCONJ.prototype.define = function MATZCONJ() {
+ this.function_name = "matz_conj";
+ this.funtyp = 4;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([2]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.outtyp = new ScilabDouble([2]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabDouble();
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MATZCONJ\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MATZCONJ.prototype.details = function MATZCONJ() {
+ return this.x;
+ }
+}
+
+function MATZREIM() {
+ MATZREIM.prototype.define = function MATZREIM() {
+ var model = scicos_model();
+
+ this.function_name = "matz_reim";
+ this.funtyp = new ScilabDouble([4]);
+ model.sim = list(this.function_name, this.funtyp);
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([2]);
+ model.out = new ScilabDouble(-1, -1);
+ model.out2 = new ScilabDouble(-2, -2);
+ model.outtyp = new ScilabDouble([1,1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,false]);
+
+ this.label = sci2exp(new ScilabDouble(1));
+
+ var gr_i = ["xstringb(orig(1),orig(2),\"MATZREIM\",sz(1),sz(2));"];
+ this.x = new standard_define(new ScilabDouble([3,2]), model, this.label, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ MATZREIM.prototype.details = function MATZREIM() {
+ return this.x;
+ }
+}
+function MAXMIN() {
+
+ MAXMIN.prototype.define = function MAXMIN() {
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["minmax"]), new ScilabDouble([4]));
+ model.out = new ScilabDouble([1]);
+ model.in = new ScilabDouble([-1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+ model.ipar = new ScilabDouble([0]);
+
+ var exprs = new ScilabString(...math.transpose([[2, 1, 1]]));
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MAXMIN\",sz(1),sz(2));"]);
+ 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);
+ }
+
+ MAXMIN.prototype.details = function MAXMIN() {
+ return this.x;
+ }
+}
+function MAX_f() {
+
+ MAX_f.prototype.define = function MAX_f() {
+ this.in = new ScilabDouble([-1]);
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["maxblk"]);
+ model.in = this.in;
+ model.out = new ScilabDouble(1);
+ model.dstate = new ScilabDouble([0], [0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([" "]);
+
+ var gr_i = ["xstringb(orig(1),orig(2),\"MAX_f\",sz(1),sz(2));"];
+ this.x = new standard_define(new ScilabDouble([2,2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ MAX_f.prototype.details = function MAX_f() {
+ return this.x;
+ }
+}
+function MBLOCK() {
+
+ MBLOCK.prototype.define = function MBLOCK() {
+ this.in1 = ["u1"];
+ this.intype = ["I"];
+ this.out = [["y1"],["y2"]];
+ this.outtype = [["I"],["E"]];
+ this.param = [["R"],["L"]];
+ this.paramv = list(new ScilabDouble([0.1]), new ScilabDouble([0.0001]));
+ this.pprop = [[0],[0]];
+ this.nameF = "generic";
+
+ var exprs = tlist(["MBLOCK", "in", "intype", "out", "outtype", "param", "paramv", "pprop", "nameF", "funtxt"], new ScilabString(["MBLOCK", "in", "intype", "out", "outtype", "param", "paramv", "pprop", "nameF", "funtxt"]), new ScilabString([sci2exp(this.in1)]), new ScilabString([sci2exp(this.intype)]), new ScilabString([sci2exp(this.out)]), new ScilabString([sci2exp(this.outtype)]), new ScilabString([sci2exp(this.param)]), list(new ScilabString([0.1]), new ScilabString([0.0001])), new ScilabString([sci2exp(this.pprop)]), new ScilabString([this.nameF]), new ScilabDouble());
+
+ var model = scicos_model();
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+ model.rpar = [];
+
+ for (var i = 0; i < this.paramv.length; i++) {
+ model.rpar.push(getData(this.paramv[i]));
+ }
+
+ model.rpar = new ScilabDouble(...model.rpar);
+ var mo = new modelica_function();
+ mo.model = new ScilabString([this.nameF]);
+ mo.parameters = list(new ScilabString(...this.param), this.paramv);
+ model.sim = list(mo.model, new ScilabDouble([30004]));
+ mo.inputs = new ScilabString(this.in1);
+ mo.outputs = new ScilabString(...this.out);
+ model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "r"), 1));
+ model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "r"), 1));
+ model.equations = mo;
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MBLOCK\",sz(1),sz(2));"]);
+
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ this.x.graphics.in_implicit = new ScilabString(this.intype);
+ this.x.graphics.out_implicit = new ScilabString(...this.outtype);
+ return new BasicBlock(this.x);
+ }
+
+ MBLOCK.prototype.details = function MBLOCK() {
+ return this.x;
+ }
+}
+function MCLOCK_f() {
+
+ MCLOCK_f.prototype.define = function MCLOCK_f() {
+ this.nn = 2;
+ this.dt = 0.1;
+ var exprs = new ScilabString([this.dt], [this.nn]);
+
+ var mfclck = new MFCLCK_f().internal();
+ 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([this.nn]);
+ mfclck.model.firing = new ScilabDouble([-1, 0]);
+ mfclck.model.uid = new ScilabString([count]);
+ mfclck.doc = list(new ScilabString([count++]));
+
+ var clksom = new CLKSOM_f().internal();
+ 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]);
+ clksom.model.uid = new ScilabString([count]);
+ clksom.doc = list(new ScilabString([count++]));
+
+ var output_port1 = new CLKOUT_f().internal();
+ 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]);
+ output_port1.model.uid = new ScilabString([count]);
+ output_port1.doc = list(new ScilabString([count++]));
+
+ var output_port2 = new CLKOUT_f().internal();
+ 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]);
+ output_port2.model.uid = new ScilabString([count]);
+ output_port2.doc = list(new ScilabString([count++]));
+
+ var split1 = new CLKSPLIT_f().internal();
+ split1.graphics.orig = new ScilabDouble([411.92504, 169.33333]);
+ split1.graphics.pein = new ScilabDouble([3]);
+ split1.graphics.peout = new ScilabDouble([9], [10]);
+ split1.model.uid = new ScilabString([count]);
+ split1.doc = list(new ScilabString([count++]));
+
+ var split2 = new CLKSPLIT_f().internal();
+ split2.graphics.orig = new ScilabDouble([482.45315, 169.33333]);
+ split2.graphics.pein = new ScilabDouble([5]);
+ split2.graphics.peout = new ScilabDouble([12], [13]);
+ split2.model.uid = new ScilabString([count]);
+ split2.doc = list(new ScilabString([count++]));
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;MCLOCK_f&quot;,sz(1),sz(2));"]);
+
+ var diagram = scicos_diagram();
+ diagram.objs.push(mfclck);
+ diagram.objs.push(clksom);
+ diagram.objs.push(output_port1);
+ diagram.objs.push(output_port2);
+ diagram.objs.push(split1);
+ diagram.objs.push(split2);
+
+ 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, 0]),
+ to: new ScilabDouble([5, 1, 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, 0]),
+ to: new ScilabDouble([2, 1, 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, 0]),
+ to: new ScilabDouble([6, 1, 1])
+ }));
+ 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([5, 1, 0]),
+ to: new ScilabDouble([2, 2, 1])
+ }));
+ 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([5, 2, 0]),
+ to: new ScilabDouble([3, 1, 1])
+ }));
+ 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([6, 1, 0]),
+ to: new ScilabDouble([1, 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([6, 2, 0]),
+ to: new ScilabDouble([4, 1, 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);
+ }
+ MCLOCK_f.prototype.details = function MCLOCK_f() {
+ return this.x;
+ }
+}
+function MFCLCK_f() {
+
+ MFCLCK_f.prototype.define = function MFCLCK_f() {
+ this.nn = 2;
+ this.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([this.dt]);
+ model.ipar = new ScilabDouble([this.nn]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([-1], [0]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([this.dt], [this.nn]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MFCLCK_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MFCLCK_f.prototype.internal = function MFCLCK_f() {
+ this.nn = 2;
+ this.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([this.dt]);
+ model.ipar = new ScilabDouble([this.nn]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([-1], [0]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+ model.outtyp = new ScilabDouble();
+
+ var exprs = new ScilabString([this.dt], [this.nn]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MFCLCK_f\",sz(1),sz(2));"]);
+ var block = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ block.graphics.style = new ScilabString(["MFCLCK_f"]);
+ return block;
+ }
+ MFCLCK_f.prototype.details = function MFCLCK_f() {
+ return this.x;
+ }
+}
+function MIN_f() {
+
+ MIN_f.prototype.define = function MIN_f() {
+ this.in1 = -1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["minblk"]);
+ model.in = new ScilabDouble([this.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 = new ScilabString([sci2exp(this.in1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MIN_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MIN_f.prototype.details = function MIN_f() {
+ return this.x;
+ }
+}
+
+function Modulo_Count() {
+
+ Modulo_Count.prototype.define = function Modulo_Count() {
+ this.ini_c = 0;
+ this.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([this.ini_c]);
+ model.ipar = new ScilabDouble([this.base]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([this.ini_c], [this.base]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Modulo_Count\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ Modulo_Count.prototype.internal = function Modulo_Count() {
+ this.ini_c = 0;
+ this.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.out2 = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble([this.ini_c]);
+ model.ipar = new ScilabDouble([this.base]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([this.ini_c], [this.base]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Modulo_Count\",sz(1),sz(2));"]);
+ var block = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ block.graphics.style = new ScilabString(["Modulo_Count"]);
+ return block;
+ }
+ Modulo_Count.prototype.details = function Modulo_Count() {
+ return this.x;
+ }
+}
+function MUX() {
+
+ MUX.prototype.define = function MUX() {
+ this.in1 = 2;
+ var arr = [];
+ arr.push(math.range(-1, -this.in1, -1, true)._data);
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["multiplex"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble(...math.transpose(arr));
+ model.out = new ScilabDouble([0]);
+ model.ipar = new ScilabDouble([this.in1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([this.in1]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MUX\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([.5, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MUX.prototype.details = function MUX() {
+ return this.x;
+ }
+}
+
+function MUX_f() {
+
+ MUX_f.prototype.define = function MUX_f() {
+ this.in1 = 2;
+ var arr = [];
+ arr.push(math.range(-1, -this.in1, -1, true)._data);
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["mux"]), new ScilabDouble([1]));
+ model.in = new ScilabDouble(...math.transpose(arr));
+ model.out = new ScilabDouble([0]);
+ model.ipar = new ScilabDouble([this.in1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([this.in1]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MUX_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([0.5, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ MUX_f.prototype.details = function MUX_f() {
+ return this.x;
+ }
+}
+
+function M_freq() {
+
+ M_freq.prototype.define = 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, 1, 0], [1, 1, 1], [1, 3, 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 = new ScilabString([sci2exp([[1], [2]])], [sci2exp([[0], [0]])]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"M_freq\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ M_freq.prototype.details = function M_freq() {
+ return this.x;
+ }
+}
+function M_SWITCH() {
+
+ M_SWITCH.prototype.define = function M_SWITCH() {
+ this.in1 = [[1], [-1], [-1]];
+ this.ipar = [[1], [3]];
+ this.nin = 2;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["mswitch"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble(...this.in1);
+ model.out = new ScilabDouble([-1]);
+ model.ipar = new ScilabDouble(...this.ipar);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([this.nin], ...this.ipar);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"M_SWITCH\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2.5, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ M_SWITCH.prototype.details = function M_SWITCH() {
+ return this.x;
+ }
+}
+
+function NEGTOPOS_f() {
+
+ NEGTOPOS_f.prototype.define = function NEGTOPOS_f() {
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["zcross"]), new ScilabDouble([1]));
+ model.nzcross = new ScilabDouble([1]);
+ model.in = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([-1], [-1], [0], [-1]);
+ model.blocktype = new ScilabString(["z"]);
+ model.firing = new ScilabDouble([-1]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"NEGTOPOS_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, new ScilabDouble(), gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ NEGTOPOS_f.prototype.details = function NEGTOPOS_f() {
+ return this.x;
+ }
+}
+function NMOS() {
+
+ NMOS.prototype.define = function NMOS() {
+ this.W = 20.e-6;
+ this.L = 6.e-6;
+ this.Beta = 0.041e-3;
+ this.Vt = 0.8;
+ this.K2 = 1.144;
+ this.K5 = 0.7311;
+ this.dW = -2.5e-6;
+ this.dL = -1.5e-6;
+ this.RDS = 1.e+7;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["NMOS"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ 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"]), new ScilabDouble([this.W], [this.L], [this.Beta], [this.Vt], [this.K2], [this.K5], [this.dW], [this.dL], [this.RDS]));
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
+ model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
+
+ var exprs = new ScilabString([this.W], [this.L], [this.Beta], [this.Vt], [this.K2], [this.K5], [this.dW], [this.dL], [this.RDS]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"NMOS\",sz(1),sz(2));"]);
+ 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);
+ }
+ NMOS.prototype.details = function NMOS() {
+ return this.x;
+ }
+}
+
+function NPN() {
+
+ NPN.prototype.define = function NPN() {
+ this.ModelName = "NPN";
+ this.PrametersValue = [[50], [0.1], [0], [0.02], [1.200e-10], [5.000e-09], [1.000e-12], [4.000e-13], [5.000e-13], [0.8], [0.4], [0.8], [0.333], [1.000e-15], [1.000e-15], [0.02585], [40]];
+ this.ParametersName = [["Bf"], ["Br"], ["Is"], ["Vak"], ["Tauf"], ["Taur"], ["Ccs"], ["Cje"], ["Cjc"], ["Phie"], ["Me"], ["Phic"], ["Mc"], ["Gbc"], ["Gbe"], ["Vt"], ["EMinMax"]];
+ this.model = scicos_model();
+ this.Typein = [];
+ this.Typeout = [];
+ this.MI = [];
+ this.MO = [];
+ this.P = [[100, 90, -2, 0], [0, 50, 2, 0], [100, 10, -2, 0]];
+ this.PortName = [["C"], ["B"], ["E"]];
+
+ for (var i = 0; i < size(this.P, "r"); i++) {
+ if (this.P[i][2] == 1) {
+ this.Typein.push(["E"]);
+ this.MI.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == 2) {
+ this.Typein.push(["I"]);
+ this.MI.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -1) {
+ this.Typeout.push(["E"]);
+ this.MO.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -2) {
+ this.Typeout.push(["I"]);
+ this.MO.push(this.PortName[i]);
+ }
+ }
+ var model = scicos_model();
+ var mo = new modelica_function();
+ model.sim = new ScilabString([this.ModelName]);
+ mo.inputs = new ScilabString(...this.MI);
+ mo.outputs = new ScilabString(...this.MO);
+ model.rpar = new ScilabDouble(...this.PrametersValue);
+ mo.parameters = list(new ScilabString(...this.ParametersName), new ScilabDouble(...this.PrametersValue), new ScilabDouble(...zeros(this.ParametersName)));
+ var exprs = new ScilabString(["50"], ["0.1"], ["1.e-16"], ["0.02"], ["0.12e-9"], ["5e-9"], ["1e-12"], ["0.4e-12"], ["0.5e-12"], ["0.8"], ["0.4"], ["0.8"], ["0.333"], ["1e-15"], ["1e-15"], ["0.02585"], ["40"]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;NPN&quot;,sz(1),sz(2));"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+ mo.model = new ScilabString([this.ModelName]);
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
+ model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
+ this.x = standard_define([2, 2], model, exprs, list(gr_i, new ScilabDouble([0])));
+ this.x.graphics.in_implicit = new ScilabString(...this.Typein);
+ this.x.graphics.out_implicit = new ScilabString(...this.Typeout);
+ return new BasicBlock(this.x);
+ }
+ NPN.prototype.details = function NPN() {
+ return this.x;
+ }
+}
+function NRMSOM_f() {
+
+ NRMSOM_f.prototype.define = function NRMSOM_f() {
+ this.in1 = [[-1], [-1]];
+ this.nin = 2;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["junk"]);
+ model.in = new ScilabDouble(...this.in1);
+ model.out = new ScilabDouble([-1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([this.nin]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"NRMSOM_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([.2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ NRMSOM_f.prototype.details = function NRMSOM_f() {
+ return this.x;
+ }
+}
+
+function OpAmp() {
+
+ OpAmp.prototype.define = function OpAmp() {
+ this.S = [];
+ this.Z = [];
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["OpAmp"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ mo.model = model.sim;
+ mo.inputs = new ScilabString(["in_p"], ["in_n"]);
+ mo.outputs = new ScilabString(["out"]);
+ mo.parameters = list(new ScilabDouble(), new ScilabDouble());
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
+ model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
+ model.rpar = new ScilabDouble();
+
+ var exprs = new ScilabString();
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"OpAmp\",sz(1),sz(2));"]);
+ 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);
+ }
+ OpAmp.prototype.details = function OpAmp() {
+ return this.x;
+ }
+}
+
+function OUTIMPL_f() {
+
+ OUTIMPL_f.prototype.define = function OUTIMPL_f() {
+ var model = scicos_model();
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([1]);
+
+ this.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 = new modelica_function();
+ mo.model = new ScilabString(["PORT"]);
+ mo.inputs = new ScilabString(["n"]);
+ mo.outputs = new ScilabDouble();
+ model.equations = mo;
+
+ var exprs = new ScilabString(["1"]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;OUTIMPL_f&quot;,sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([1, 1]), model, exprs, gr_i);
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+
+ this.implicitOutBlock = new ImplicitOutBlock(this.x);
+ this.displayParameter = [this.implicitOutBlock.ordering];
+ return this.implicitOutBlock;
+ }
+ OUTIMPL_f.prototype.details = function OUTIMPL_f() {
+ return this.x;
+ }
+}
+function OUT_f () {
+
+ OUT_f.prototype.internal = function OUT_f() {
+ this.n = -1;
+ this.prt = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["output"]);
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([-1]);
+ model.ipar = new ScilabDouble([this.prt]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+ var exprs = new ScilabString([sci2exp(this.prt)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"OUT_f\",sz(1),sz(2));"]);
+ var block=new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i);
+ block.graphics.style = new ScilabString(["OUT_f"]); // changed
+ block.graphics.in_style = new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]);
+ block.graphics.in_label = new ScilabString([""]);
+ block.graphics.in_implicit = new ScilabString(["E"]);
+ return block;
+ }
+
+ OUT_f.prototype.define = function OUT_f() {
+ this.n = -1;
+ this.prt = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["output"]);
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([-1]);
+ model.ipar=new ScilabDouble([this.prt]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = new ScilabString([sci2exp(this.prt)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"OUT_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i);
+ this.x.graphics.style = new ScilabString(["OUT_f"]);
+
+ this.explicitOutBlock = new ExplicitOutBlock(this.x);
+ this.displayParameter = [this.explicitOutBlock.ordering];
+ return this.explicitOutBlock;
+ }
+
+ OUT_f.prototype.details = function OUT_f() {
+ return this.x;
+ }
+}
+function PDE() {
+
+ PDE.prototype.define = function PDE() {
+ this.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"], new ScilabString(["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"]), new ScilabString([""]), new ScilabString([""]), new ScilabString([""]), new ScilabString(["0"]), new ScilabString([""]), new ScilabString(["IN_EDP1(t)"]), new ScilabString(["0"]), new ScilabString([""]), new ScilabString(["IN_EDP2(t)"]), new ScilabString(["0"]), new ScilabString([""]), new ScilabString(["IN_EDP3(t)"]), new ScilabString(["0"]), new ScilabString([""]), new ScilabString(["IN_EDP4(t)"]), new ScilabString(["0"]), new ScilabString([""]), new ScilabString(["IN_EDP5(t)"]), new ScilabString(["0"]), new ScilabString([""]), new ScilabString(["IN_EDP6(t)"]), new ScilabString(["0"]), new ScilabString([""]), new ScilabString(["IN_EDP7(t)"]), new ScilabString(["0"]), new ScilabString(["0"]), new ScilabString(["0"]), new ScilabString(["0"]), new ScilabString(["0"]), new ScilabString(["0"]), new ScilabString([""]), new ScilabString([""]), new ScilabString([""]), new ScilabString([""]), new ScilabString([""]), new ScilabString([""]), new ScilabString([""]), new ScilabString([""]), new ScilabString(["0"]), new ScilabString(["IN_CL1(t)"]), new ScilabString(["0"]), new ScilabString(["IN_CL2(t)"]), new ScilabString([""]));
+
+ var model = scicos_model();
+ model.state = new ScilabDouble(...zeros(10, 1));
+ model.sim = list(new ScilabString(["PDE"]), new ScilabDouble([0]));
+ model.in = new ScilabDouble([1], [1], [1], [1], [1]);
+ model.out = new ScilabDouble([10], [0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+
+ var label = list(this.params_pde, new ScilabDouble(), new ScilabString([""]));
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"PDE\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 3]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ PDE.prototype.details = function PDE() {
+ return this.x;
+ }
+}
+
+function PerteDP() {
+
+ PerteDP.prototype.define = function PerteDP() {
+ this.L = 10;
+ this.D = 0.2;
+ this.lambda = 0.03;
+ this.z1 = 0;
+ this.z2 = 0;
+ this.p_rho = 0;
+
+ var model = scicos_model();
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([this.L], [this.D], [this.lambda], [this.z1], [this.z2], [this.p_rho]);
+ model.sim = new ScilabString(["PerteDP"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ 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"]), new ScilabDouble([this.L], [this.D], [this.lambda], [this.z1], [this.z2], [this.p_rho]));
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
+ model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
+
+ var exprs = new ScilabString([this.L], [this.D], [this.lambda], [this.z1], [this.z2], [this.p_rho]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"PerteDP\",sz(1),sz(2));"]);
+ 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);
+ }
+ PerteDP.prototype.details = function PerteDP() {
+ return this.x;
+ }
+
+}
+
+function PID() {
+
+ PID.prototype.define = function PID() {
+ var scs_m = scicos_diagram({
+ version: new ScilabString(["scicos4.2"]),
+ props: scicos_params({
+ wpar: new ScilabDouble([600, 450, 0, 0, 600, 450]),
+ Title: new ScilabString(["PID"]),
+ tol: new ScilabDouble([0.0001], [0.000001], [1.000E-10], [100001], [0], [0], [0]),
+ tf: new ScilabDouble([100000]),
+ context: new ScilabString([" "]),
+ void1: new ScilabDouble(),
+ options: tlist(["scsopt", "3D", "Background", "Link", "ID", "Cmap"], new ScilabString(["scsopt", "3D", "Background", "Link", "ID", "Cmap"]), list(new ScilabBoolean([true]), new ScilabDouble([33])), new ScilabDouble([8, 1]), new ScilabDouble([1, 5]), list(new ScilabDouble([5, 1]), new ScilabDouble([4, 1])), new ScilabDouble([0.8, 0.8, 0.8])),
+ void2: new ScilabDouble(),
+ void3: new ScilabDouble(),
+ doc: list()
+ })
+ });
+ scs_m.objs.push(scicos_block({
+ gui: new ScilabString(["INTEGRAL_m"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([318.304, 183.11733]),
+ sz: new ScilabDouble([40, 40]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["0"], ["0"], ["0"], ["1"], ["-1"]),
+ pin: new ScilabDouble([7]),
+ pout: new ScilabDouble([9]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;INTEGRAL_m&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString(["1/s"]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabString(["E"]),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ out_label: new ScilabString([""]),
+ style: new ScilabString(["INTEGRAL_m"])
+ }),
+ model: scicos_model({
+ sim: list(new ScilabString(["integral_func"]), new ScilabDouble([4])),
+ in: new ScilabDouble([1]),
+ in2: new ScilabDouble([1]),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble([1]),
+ out2: new ScilabDouble([1]),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble([0]),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, true]),
+ label: new ScilabString(["1/s"]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_block({
+ gui: new ScilabString(["SUMMATION"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([387.97067, 172.85067]),
+ sz: new ScilabDouble([40, 60]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["1"], ["[1;1;1]"]),
+ pin: new ScilabDouble([10], [9], [11]),
+ pout: new ScilabDouble([19]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;SUMMATION&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"], ["E"], ["E"]),
+ out_implicit: new ScilabString(["E"]),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""], [""], [""]),
+ out_label: new ScilabString([""]),
+ style: new ScilabString(["SUMMATION"])
+ }),
+ model: scicos_model({
+ sim: list(new ScilabString(["summation"]), new ScilabDouble([4])),
+ in: new ScilabDouble([-1], [-1], [-1]),
+ in2: new ScilabDouble([-2], [-2], [-2]),
+ intyp: new ScilabDouble([1], [1], [1]),
+ out: new ScilabDouble([-1]),
+ out2: new ScilabDouble([-2]),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([1], [1], [1]),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([true, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_block({
+ gui: new ScilabString(["GAINBLK"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([321.23733, 235.91733]),
+ sz: new ScilabDouble([40, 40]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["1"]),
+ pin: new ScilabDouble([17]),
+ pout: new ScilabDouble([10]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;GAINBLK&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabString(["E"]),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ out_label: new ScilabString([""]),
+ style: new ScilabString(["GAINBLK"])
+ }),
+ model: scicos_model({
+ sim: list(new ScilabString(["gainblk"]), new ScilabDouble([4])),
+ in: new ScilabDouble([-1]),
+ in2: new ScilabDouble([-2]),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble([-1]),
+ out2: new ScilabDouble([-2]),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble([1]),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([true, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_block({
+ gui: new ScilabString(["DERIV"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([319.03733, 135.45067]),
+ sz: new ScilabDouble([40, 40]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabDouble(),
+ pin: new ScilabDouble([8]),
+ pout: new ScilabDouble([11]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;DERIV&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString(["s"]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabString(["E"]),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ out_label: new ScilabString([""]),
+ style: new ScilabString(["DERIV"])
+ }),
+ model: scicos_model({
+ sim: list(new ScilabString(["deriv"]), new ScilabDouble([4])),
+ in: new ScilabDouble([-1]),
+ in2: new ScilabDouble([-2]),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble([-1]),
+ out2: new ScilabDouble([-2]),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["x"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([true, false]),
+ label: new ScilabString(["s"]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_block({
+ gui: new ScilabString(["GAINBLK"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([255.23733, 183.11733]),
+ sz: new ScilabDouble([40, 40]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["1"]),
+ pin: new ScilabDouble([13]),
+ pout: new ScilabDouble([7]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;GAINBLK&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabString(["E"]),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ out_label: new ScilabString([""]),
+ style: new ScilabString(["GAINBLK"])
+ }),
+ model: scicos_model({
+ sim: list(new ScilabString(["gainblk"]), new ScilabDouble([4])),
+ in: new ScilabDouble([-1]),
+ in2: new ScilabDouble([-2]),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble([-1]),
+ out2: new ScilabDouble([-2]),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble([1]),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([true, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_block({
+ gui: new ScilabString(["GAINBLK"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([255.23733, 135.45067]),
+ sz: new ScilabDouble([40, 40]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["1"]),
+ pin: new ScilabDouble([14]),
+ pout: new ScilabDouble([8]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;GAINBLK&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabString(["E"]),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ out_label: new ScilabString([""]),
+ style: new ScilabString(["GAINBLK"])
+ }),
+ model: scicos_model({
+ sim: list(new ScilabString(["gainblk"]), new ScilabDouble([4])),
+ in: new ScilabDouble([-1]),
+ in2: new ScilabDouble([-2]),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble([-1]),
+ out2: new ScilabDouble([-2]),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble([1]),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([true, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_block({
+ gui: new ScilabString(["SPLIT_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([234.704, 203.11733]),
+ sz: new ScilabDouble([0.3333333, 0.3333333]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabDouble(),
+ pin: new ScilabDouble([16]),
+ pout: new ScilabDouble([16], [17], [0]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;SPLIT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabString(["E"], ["E"], ["E"]),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ out_label: new ScilabString([""], [""], [""]),
+ style: new ScilabString(["SPLIT_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["lsplit"]),
+ in: new ScilabDouble([-1]),
+ in2: new ScilabDouble([1]),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble([-1], [-1], [-1]),
+ out2: new ScilabDouble([1], [1], [1]),
+ outtyp: new ScilabDouble([1], [1], [1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([true, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_block({
+ gui: new ScilabString(["SPLIT_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([233.97067, 203.11733]),
+ sz: new ScilabDouble([0.3333333, 0.3333333]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabDouble(),
+ pin: new ScilabDouble([21]),
+ pout: new ScilabDouble([18], [19], [0]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;SPLIT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabString(["E"], ["E"], ["E"]),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ out_label: new ScilabString([""], [""], [""]),
+ style: new ScilabString(["SPLIT_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["lsplit"]),
+ in: new ScilabDouble([-1]),
+ in2: new ScilabDouble([1]),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble([-1], [-1], [-1]),
+ out2: new ScilabDouble([1], [1], [1]),
+ outtyp: new ScilabDouble([1], [1], [1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([true, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_block({
+ gui: new ScilabString(["OUT_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([456.5421, 192.85067]),
+ sz: new ScilabDouble([20, 20]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["1"]),
+ pin: new ScilabDouble([19]),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;OUT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabDouble(),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ style: new ScilabString(["OUT_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["output"]),
+ in: new ScilabDouble([-1]),
+ in2: new ScilabDouble([1]),
+ intyp: new ScilabDouble([-1]),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble(),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([1]),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_block({
+ gui: new ScilabString(["IN_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([193.97067, 193.11733]),
+ sz: new ScilabDouble([20, 20]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["1"]),
+ pin: new ScilabDouble(),
+ pout: new ScilabDouble([21]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;IN_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabDouble(),
+ out_implicit: new ScilabString(["E"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_label: new ScilabString([""]),
+ style: new ScilabString(["IN_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["input"]),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble(),
+ out: new ScilabDouble([-1]),
+ out2: new ScilabDouble([1]),
+ outtyp: new ScilabDouble([-1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([1]),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+
+ scs_m.objs.push(scicos_link({
+ xx: new ScilabDouble([303.80876], [309.73257]),
+ yy: new ScilabDouble([203.11733], [203.11733]),
+ id: new ScilabString(["drawlink"]),
+ 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], [310.4659]),
+ yy: new ScilabDouble([155.45067], [155.45067]),
+ id: new ScilabString(["drawlink"]),
+ 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], [379.39924]),
+ yy: new ScilabDouble([203.11733], [202.85067]),
+ id: new ScilabString(["drawlink"]),
+ 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], [379.39924], [379.39924]),
+ yy: new ScilabDouble([255.91733], [255.91733], [217.85067]),
+ id: new ScilabString(["drawlink"]),
+ 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], [379.39924], [379.39924]),
+ yy: new ScilabDouble([155.45067], [155.45067], [187.85067]),
+ id: new ScilabString(["drawlink"]),
+ 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_link({
+ xx: new ScilabDouble([234.704], [246.6659]),
+ yy: new ScilabDouble([203.11733], [203.11733]),
+ id: new ScilabString(["drawlink"]),
+ 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], [234.704], [246.6659]),
+ yy: new ScilabDouble([203.11733], [155.45067], [155.45067]),
+ id: new ScilabString(["drawlink"]),
+ 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_link({
+ xx: new ScilabDouble([233.97067], [234.704]),
+ yy: new ScilabDouble([203.11733], [203.11733]),
+ id: new ScilabString(["drawlink"]),
+ 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], [233.97067], [312.6659]),
+ yy: new ScilabDouble([203.11733], [255.91733], [255.91733]),
+ id: new ScilabString(["drawlink"]),
+ 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_link({
+ xx: new ScilabDouble([436.5421], [456.5421]),
+ yy: new ScilabDouble([202.85067], [202.85067]),
+ id: new ScilabString(["drawlink"]),
+ 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_link({
+ xx: new ScilabDouble([213.97067], [233.97067]),
+ yy: new ScilabDouble([203.11733], [203.11733]),
+ id: new ScilabString(["drawlink"]),
+ thick: new ScilabDouble([0, 0]),
+ ct: new ScilabDouble([1, 1]),
+ from: new ScilabDouble([20, 1, 0]),
+ to: new ScilabDouble([15, 1, 1])
+ }));
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["csuper"]);
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.blocktype = new ScilabString(["h"]);
+ model.firing = new ScilabBoolean([false]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+ model.rpar = scs_m;
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"PID\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, new ScilabDouble(), gr_i);
+ return new BasicBlock(this.x);
+ }
+ PID.prototype.details = function PID() {
+ return this.x;
+ }
+}
+function PNP() {
+
+ PNP.prototype.define = function PNP() {
+ this.ModelName = "PNP";
+ this.PrametersValue = [[50],[0.1],[0],[0.02],[1.200e-10],[5.000e-09],[1.000e-12],[4.000e-13],[5.000e-13],[0.8],[0.4],[0.8],[0.333],[1.000e-15],[1.000e-15],[0.02585],[40]];
+ this.ParametersName = [["Bf"],["Br"],["Is"],["Vak"],["Tauf"],["Taur"],["Ccs"],["Cje"],["Cjc"],["Phie"],["Me"],["Phic"],["Mc"],["Gbc"],["Gbe"],["Vt"],["EMinMax"]];
+
+ var model = scicos_model();
+ this.Typein = [];
+ this.Typeout = [];
+ this.MI = [];
+ this.MO = [];
+ this.P = [[100, 90, -2, 0], [0, 50, 2, 0], [100, 10, -2, 0]];
+ this.PortName = [["C"], ["B"], ["E"]];
+
+ for (var i = 0; i < size(this.P, "r"); i++) {
+ if (this.P[i][2] == 1) {
+ this.Typein.push(["E"]);
+ this.MI.push(this.PortName[i]);
+ }
+
+ if (this.P[i][2] == 2) {
+ this.Typein.push(["I"]);
+ this.MI.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -1) {
+ this.Typeout.push(["E"]);
+ this.MO.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -2) {
+ this.Typeout.push(["I"]);
+ this.MO.push(this.PortName[i]);
+ }
+ }
+
+ var mo = new modelica_function();
+ model.sim = new ScilabString([this.ModelName]);
+ mo.inputs = new ScilabString(...this.MI);
+ mo.outputs = new ScilabString(...this.MO);
+ model.rpar = new ScilabDouble(...this.PrametersValue);
+
+ var arr = [];
+ arr.push(zeros(getData(this.ParametersName)));
+ mo.parameters = list(new ScilabString(...this.ParametersName), new ScilabDouble(...this.PrametersValue), new ScilabDouble(...math.transpose(arr)));
+ var exprs = new ScilabString(["50"], ["0.1"], ["1.e-16"], ["0.02"], ["0.12e-9"], ["5e-9"], ["1e-12"], ["0.4e-12"], ["0.5e-12"], ["0.8"], ["0.4"], ["0.8"], ["0.333"], ["1e-15"], ["1e-15"], ["0.02585"], ["40"]);
+ var gr_i = "xstringb(orig(1),orig(2),\"PNP\",sz(1),sz(2));"
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+ mo.model = new ScilabString([this.ModelName]);
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
+ model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, list(new ScilabString([gr_i]), new ScilabDouble([0])));
+ this.x.graphics.in_implicit = new ScilabDouble(...this.Typein);
+ this.x.graphics.out_implicit = new ScilabDouble(...this.Typeout);
+
+ return new BasicBlock(this.x);
+ }
+
+ PNP.prototype.details = function PNP() {
+ return this.x;
+ }
+}
+function POSTONEG_f() {
+
+ POSTONEG_f.prototype.define = function POSTONEG_f() {
+ this.rpar = [[-1], [-1], [-1], [0]];
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["zcross"]), new ScilabDouble([1]));
+ model.nzcross = new ScilabDouble([1]);
+ model.in = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([-1], [-1], [-1], [0]);
+ model.blocktype = new ScilabString(["z"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+ model.firing = new ScilabDouble([-1]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"POSTONEG_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, [], gr_i);
+ return new BasicBlock(this.x);
+ }
+ POSTONEG_f.prototype.details = function POSTONEG_f() {
+ return this.x;
+ }
+}
+
+function PotentialSensor() {
+
+ PotentialSensor.prototype.define = function PotentialSensor() {
+
+ var model = scicos_model();
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble();
+ model.sim = new ScilabString(["PotentialSensor"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ mo.model = new ScilabString(["PotentialSensor"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["v"]);
+ model.equations = mo;
+
+ var exprs = new ScilabString([""]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"PotentialSensor\",sz(1),sz(2));"]);
+ 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(["E"]);
+ return new BasicBlock(this.x);
+ }
+ PotentialSensor.prototype.details = function PotentialSensor() {
+ return this.x;
+ }
+}
+
+function POWBLK_f() {
+
+ POWBLK_f.prototype.define = function POWBLK_f() {
+ this.in = 1;
+ this.a = 1.5;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["powblk"]);
+ model.in = new ScilabDouble([-1]);
+ model.out = new ScilabDouble([-1]);
+ model.rpar = new ScilabDouble([this.a]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([this.a]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"POWBLK_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ POWBLK_f.prototype.details = function POWBLK_f() {
+ return this.x;
+ }
+}
+function PRODUCT() {
+
+ PRODUCT.prototype.define = function PRODUCT() {
+ this.sgn = [[1],[-1]];
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["product"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([-1], [-1]);
+ model.out = new ScilabDouble([-1]);
+ model.ipar = new ScilabDouble(...this.sgn);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([sci2exp(this.sgn)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;PRODUCT&quot;,sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 3]), model, exprs, gr_i);
+ return new Product(this.x);
+ }
+ PRODUCT.prototype.details = function PRODUCT() {
+ return this.x;
+ }
+}
+function PROD_f() {
+
+ PROD_f.prototype.define = function PROD_f() {
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["prod"]), new ScilabDouble([2]));
+ model.in = new ScilabDouble([-1], [-1]);
+ model.out = new ScilabDouble([-1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ this.x = new standard_define(new ScilabDouble([1, 1]), model, new ScilabDouble(), new ScilabString());
+ return new RoundBlock(this.x);
+ }
+ PROD_f.prototype.details = function PROD_f() {
+ return this.x;
+ }
+}
+
+function PuitsP() {
+
+ PuitsP.prototype.define = function PuitsP() {
+ this.P0 = 100000;
+ this.T0 = 290;
+ this.H0 = 100000;
+ this.option_temperature = 1;
+
+ var model = scicos_model();
+ model.rpar = new ScilabDouble([this.P0], [this.T0], [this.H0], [this.option_temperature]);
+ model.sim = new ScilabString(["Puits"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ mo.model = new ScilabString(["Puits"]);
+ mo.inputs = new ScilabString(["C"]);
+ mo.outputs = new ScilabDouble();
+ mo.parameters = list(new ScilabString(["P0"], ["T0"], ["H0"], ["option_temperature"]), new ScilabDouble([this.P0], [this.T0], [this.H0], [this.option_temperature]));
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
+
+ var exprs = new ScilabString([this.P0], [this.T0], [this.H0], [this.option_temperature]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"PuitsP\",sz(1),sz(2));"]);
+ this.x = standard_define([2.5, 2], model, exprs, list(gr_i, new ScilabDouble(0)));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x);
+ }
+ PuitsP.prototype.details = function PuitsP() {
+ return this.x;
+ }
+}
+
+function QUANT_f() {
+
+ QUANT_f.prototype.define = function QUANT_f() {
+ this.pas = 0.1;
+ this.meth = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["qzrnd"]);
+ model.in = new ScilabDouble([-1]);
+ model.out = new ScilabDouble([-1]);
+ model.rpar = new ScilabDouble([this.pas]);
+ model.ipar = new ScilabDouble([this.meth]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([this.pas], [this.meth]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"QUANT_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ QUANT_f.prototype.details = function QUANT_f() {
+ return this.x;
+ }
+}
+
+function RAMP() {
+
+ RAMP.prototype.define = function RAMP() {
+ this.slope = 0;
+ this.iout = 0;
+ this.stt = 0;
+ this.rpar = [[this.slope], [this.stt], [this.iout]];
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["ramp"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble();
+ model.out = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble(...this.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 = new ScilabString(...this.rpar);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"RAMP\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ RAMP.prototype.details = function RAMP() {
+ return this.x;
+ }
+}
+
+function RAND_m() {
+
+ RAND_m.prototype.define = function RAND_m() {
+ this.a = 0;
+ this.b = 1;
+ this.dt = 0;
+ this.flag = 0;
+ this.function_name = "rndblk_m";
+ this.funtyp = 4;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble();
+ model.in2 = new ScilabDouble();
+ model.intyp = new ScilabDouble();
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble([parseInt(Math.random() * 10000000)], [0 * this.a]);
+ model.rpar = new ScilabDouble([this.a, this.b]);
+ model.ipar = new ScilabDouble([this.flag]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([sci2exp(1)], [this.flag], [sci2exp([this.a])], [sci2exp([this.b])], [sci2exp([parseInt(getData(model.dstate)[0]), parseInt(Math.random() * 10000000)])]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"RAND_m\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ RAND_m.prototype.details = function RAND_m() {
+ return this.x;
+ }
+}
+
+function RATELIMITER() {
+
+ RATELIMITER.prototype.define = function RATELIMITER() {
+ this.minp = -1;
+ this.maxp = 1;
+ this.rpar = [[this.maxp], [this.minp]];
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["ratelimiter"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble(...this.rpar);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([this.maxp], [this.minp]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"RATELIMITER\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3.5, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ RATELIMITER.prototype.details = function RATELIMITER() {
+ return this.x;
+ }
+}
+
+function READAU_f() {
+
+ READAU_f.prototype.define = function READAU_f() {
+ this.frmt = "uc ";
+ this.fname = "test.au";
+ this.lunit = 0;
+ this.N = 20;
+ this.M = 1;
+ this.tmask = [];
+ this.swap = 0;
+ this.offset = 1;
+ this.outmask = 1;
+ this.ievt = 0;
+ this.nout = size(this.outmask, "*");
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["readau"]), new ScilabDouble([2]));
+ model.out = new ScilabDouble([this.nout]);
+ model.evtin = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble([1], [1], [this.lunit], ...zeros(this.N * this.M, 1));
+ model.ipar = new ScilabDouble([this.fname.length], ..._str2code(this.frmt), [this.ievt], [this.N], [this.M], [this.swap], [this.offset], ..._str2code(this.fname), [this.outmask]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([this.fname], [this.N], [this.swap]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"READAU_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([5, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ READAU_f.prototype.details = function READAU_f() {
+ return this.x;
+ }
+}
+function READC_f() {
+
+ READC_f.prototype.define = function READC_f() {
+ this.frmt = "d ";
+ this.fname = "foo";
+ this.lunit = 0;
+ this.N = 20;
+ this.M = 1;
+ this.rpar = [];
+ this.tmask = 0;
+ this.swap = 0;
+ this.offset = 1;
+ this.outmask = 1;
+ this.ievt = 0;
+ this.nout = size(this.outmask, "*");
+
+ var ipar = new ScilabDouble([this.fname.length], ..._str2code(this.frmt), [this.ievt], [this.N], [this.M], [this.swap], [this.offset], ..._str2code(this.fname), [this.tmask], [this.outmask]);
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["readc"]), new ScilabDouble([2]));
+ model.out = new ScilabDouble([this.nout]);
+ model.evtin = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble();
+ model.dstate = new ScilabDouble([1], [1], [this.lunit], ...zeros(this.N * this.M, 1));
+ model.ipar = ipar;
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([-1]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString(["[]"], [this.outmask], [this.fname], [this.frmt], [this.M], [this.N], [this.offset], [this.swap]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"READC_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ READC_f.prototype.details = function READC_f() {
+ return this.x;
+ }
+}
+function REGISTER() {
+
+ REGISTER.prototype.define = function REGISTER() {
+ this.z0 = new ScilabDouble(...zeros(10, 1));
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["delay4"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble([1]);
+ model.dstate = this.z0;
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString(this.z0);
+
+ var gr_i = ["xstringb(orig(1),orig(2),\"REGISTER\",sz(1),sz(2));"];
+ this.x = new standard_define(new ScilabDouble([3,2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+
+ }
+
+ REGISTER.prototype.details = function REGISTER() {
+ return this.x;
+ }
+}
+function REGISTER_f () {
+
+ REGISTER_f.prototype.internal = function REGISTER_f() {
+ this.z0 = zeros(10,1);
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["delay"]);
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble([1]);
+ model.dstate= new ScilabDouble(...this.z0);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = new ScilabString([this.z0.toString().replace(/,/g, ";")]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"REGISTER_f\",sz(1),sz(2));"]);
+ var block=new standard_define(new ScilabDouble([2.5,2.5]),model,exprs,gr_i);
+ block.graphics.style = new ScilabString(["REGISTER_f"]);
+ block.graphics.in_implicit = new ScilabString(["E"]); // changed
+ block.graphics.out_implicit = new ScilabString(["E"]);
+ block.graphics.in_style = new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]);
+ block.graphics.out_style = new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]);
+ block.graphics.in_label = new ScilabString([""]);
+ block.graphics.out_label = new ScilabString([""]);
+ return block;
+ }
+}
+function RELATIONALOP() {
+
+ RELATIONALOP.prototype.define = function RELATIONALOP() {
+ this.ipar = 2;
+ this.label = "&lt";
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["relationalop"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([1], [1]);
+ model.out = new ScilabDouble([1]);
+ model.ipar = new ScilabDouble([this.ipar]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([this.ipar], [0]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"RELATIONALOP\",sz(1),sz(2));"]);
+ 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);
+ }
+ RELATIONALOP.prototype.details = function RELATIONALOP() {
+ return this.x;
+ }
+}
+
+function RELAY_f() {
+
+ RELAY_f.prototype.define = function RELAY_f() {
+ this.i0 = 0;
+ this.in1 = [[-1], [-1]];
+ this.nin = 2;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["relay"]), new ScilabDouble([2]));
+ model.in = new ScilabDouble(...this.in1);
+ model.out = new ScilabDouble([-1]);
+ model.evtin = new ScilabDouble(...ones(this.in1));
+ model.dstate = new ScilabDouble([this.i0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, true]);
+
+ var exprs = new ScilabString([this.nin], [this.i0 + 1]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"RELAY_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ RELAY_f.prototype.details = function RELAY_f() {
+ return this.x;
+ }
+}
+
+function Resistor() {
+
+ Resistor.prototype.define = function Resistor() {
+ this.R = 0.01;
+
+ var model = scicos_model();
+ model.rpar = new ScilabDouble([this.R]);
+ model.sim = new ScilabString(["resistor"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ mo.model = new ScilabString(["Resistor"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["n"]);
+ mo.parameters = list(new ScilabString(["R"]), list(new ScilabDouble([this.R])));
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
+ model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
+
+ var exprs = new ScilabString([this.R]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Resistor\",sz(1),sz(2));"]);
+ 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);
+ }
+ Resistor.prototype.details = function Resistor() {
+ return this.x;
+ }
+}
+
+function RFILE_f() {
+
+ RFILE_f.prototype.define = function RFILE_f() {
+ this.out = 1;
+ this.nout = this.out;
+ this.frmt = "(7(e10.3,1x))";
+ this.fname = "foo";
+ this.lunit = 0;
+ this.N = 2;
+ this.rpar = [];
+ this.tmask = 0;
+ this.outmask = 1;
+
+ var ipar = new ScilabDouble([this.fname.length], [this.frmt.length], [0], [this.N], ..._str2code(this.fname), ..._str2code(this.frmt), [this.tmask], [this.outmask]);
+
+ var dstate = new ScilabDouble([1], [1], [this.lunit], ...zeros((this.nout) * this.N, 1));
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["readf"]);
+ model.out = new ScilabDouble([this.nout]);
+ model.evtin = new ScilabDouble([1]);
+ model.dstate = dstate;
+ model.ipar = ipar;
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([sci2exp([])], [sci2exp(this.outmask)], [this.fname], [this.frmt], [this.N], [this.out]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"RFILE_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ RFILE_f.prototype.details = function RFILE_f() {
+ return this.x;
+ }
+}
+function RICC() {
+
+ RICC.prototype.define = function RICC() {
+ this.function_name = "ricc_m";
+ this.funtyp = 4;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1], [-1], [-1]);
+ model.in2 = new ScilabDouble([-1], [-1], [-1]);
+ model.intyp = new ScilabDouble([1, 1, 1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble([1], [1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)], [sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"RICC\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ RICC.prototype.details = function RICC() {
+ return this.x;
+ }
+}
+
+function ROOTCOEF() {
+
+ ROOTCOEF.prototype.define = function ROOTCOEF() {
+ this.function_name = "root_coef";
+ this.funtyp = 4;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([this.function_name]), new ScilabDouble([this.funtyp]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-2]);
+ model.out2 = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)], [sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"ROOTCOEF\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ ROOTCOEF.prototype.details = function ROOTCOEF() {
+ return this.x;
+ }
+}
+
+function SAMPHOLD_m() {
+
+ SAMPHOLD_m.prototype.define = function SAMPHOLD_m() {
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["samphold4_m"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.evtin = new ScilabDouble([1]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = [sci2exp(1)];
+
+ var gr_i = ["xstringb(orig(1),orig(2),\"SAMPHOLD_m\",sz(1),sz(2));"];
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+
+ }
+
+ SAMPHOLD_m.prototype.details = function SAMPHOLD_m() {
+ return this.x;
+ }
+}
+function SampleCLK() {
+
+ SampleCLK.prototype.define = 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 = new ScilabString([sci2exp(1)], [sci2exp(0)]);
+
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, ["xstringb(orig(1),orig(2),\"SampleCLK\",sz(1),sz(2));"]);
+ return new BasicBlock(this.x);
+ }
+ SampleCLK.prototype.details = function SampleCLK() {
+ return this.x;
+ }
+}
+
+function SATURATION() {
+
+ SATURATION.prototype.define = function SATURATION() {
+ this.minp = -1;
+ this.maxp = 1;
+ this.rpar = [[this.maxp], [this.minp]];
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["satur"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([1]);
+ model.nzcross = new ScilabDouble([2]);
+ model.nmode = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble(...this.rpar);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([this.maxp], [this.minp], [parseInt(getData(model.nmode)[0])]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SATURATION\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ SATURATION.prototype.details = function SATURATION() {
+ return this.x;
+ }
+}
+
+function SAWTOOTH_f() {
+
+ SAWTOOTH_f.prototype.define = 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 = new ScilabString([" "]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SAWTOOTH_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ SAWTOOTH_f.prototype.details = function SAWTOOTH_f() {
+ return this.x;
+ }
+}
+function SCALAR2VECTOR() {
+
+ SCALAR2VECTOR.prototype.define = function SCALAR2VECTOR() {
+ this.nout = -1;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["scalar2vector"]), new ScilabDouble([4]));
+ model.out = new ScilabDouble([this.nout]);
+ model.in = new ScilabDouble([1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([this.nout]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SCALAR2VECTOR\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ SCALAR2VECTOR.prototype.details = function SCALAR2VECTOR() {
+ return this.x;
+ }
+}
+
+function scifunc_block_m() {
+
+ scifunc_block_m.prototype.define = function scifunc_block_m() {
+ this.in1 = 1;
+ this.out = 1;
+ this.clkin = [];
+ this.clkout = [];
+ this.x0 = [];
+ this.z0 = [];
+ this.typ = "c";
+ this.auto = [];
+ this.rpar = [];
+ this.it = 1;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["scifunc"]), new ScilabDouble([3]));
+ model.in = new ScilabDouble([this.in1]);
+ model.in2 = new ScilabDouble([this.in1]);
+ model.intyp = new ScilabDouble([this.it]);
+ model.out = new ScilabDouble([this.out]);
+ model.out2 = new ScilabDouble([this.out]);
+ model.outtyp = new ScilabDouble([this.it]);
+ 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.opar = list();
+ model.blocktype = new ScilabString([this.typ]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = list(new ScilabString([sci2exp([this.in1, this.in1])], [sci2exp([this.out, this.out])], [sci2exp(this.clkin)], [sci2exp(this.clkout)], [sci2exp(this.x0)], [sci2exp(this.z0)], [sci2exp(this.rpar)], [sci2exp(this.auto)], [sci2exp(0)]), list(new ScilabString(["y1=sin(u1)"]), new ScilabString([" "]), new ScilabString([" "]), new ScilabString(["y1=sin(u1)"]), new ScilabString([" "]), new ScilabString([" "]), new ScilabString([" "])));
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"scifunc_block_m\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ scifunc_block_m.prototype.details = function scifunc_block_m() {
+ return this.x;
+ }
+}
+function SELECT_m() {
+
+ SELECT_m.prototype.define = function SELECT_m() {
+ this.z0 = 1;
+ this.nin = 2;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["selector_m"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([-1], [-1]);
+ model.in2 = new ScilabDouble([-2], [-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble();
+ model.firing = new ScilabDouble();
+ model.evtin = new ScilabDouble(...ones(this.nin, 1));
+ model.dstate = new ScilabDouble([this.z0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([sci2exp(1)], [sci2exp([this.nin])], [sci2exp([this.z0])]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SELECT_m\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ SELECT_m.prototype.details = function SELECT_m() {
+ return this.x;
+ }
+}
+
+function SELF_SWITCH() {
+
+ SELF_SWITCH.prototype.define = function SELF_SWITCH() {
+ this.stateOpen = true;
+
+ this.x = scicos_block();
+ this.x.gui = new ScilabString(["SELF_SWITCH"]);
+ this.x.graphics.sz = new ScilabDouble([2, 2]);
+ this.x.graphics.gr_i = new ScilabDouble();
+ this.x.graphics.pin = new ScilabDouble([0]);
+ this.x.graphics.pout = new ScilabDouble([0]);
+ this.x.model.sim = new ScilabString(["csuper"]);
+ this.x.model.in = new ScilabDouble([1]);
+ this.x.model.out = new ScilabDouble([1]);
+ this.x.model.blocktype = new ScilabString(["h"]);
+ this.x.model.dep_ut = new ScilabBoolean([false, false]);
+ this.x.model.rpar = genSwitchInnerDiagram(this.stateOpen);
+ this.x.model.opar = list(new ScilabBoolean([this.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;SELF_SWITCH_OFF"]);
+ return new BasicBlock(this.x);
+ }
+
+ SELF_SWITCH.prototype.details = function SELF_SWITCH() {
+ return this.x;
+ }
+}
+function SHIFT() {
+
+ SHIFT.prototype.define = function SHIFT() {
+ this.sgn = [[0],[0]];
+ this.OPER = 0;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["shift_32_LA"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([-1]);
+ model.out = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.out2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([3]);
+ model.outtyp = new ScilabDouble([3]);
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble(...this.sgn);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([sci2exp(3)], [sci2exp(0)], [sci2exp(0)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SHIFT\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ SHIFT.prototype.details = function SHIFT() {
+ return this.x;
+ }
+}
+function Sigbuilder() {
+
+ Sigbuilder.prototype.define = function Sigbuilder() {
+ var scs_m_1 = scicos_diagram({
+ version: new ScilabString(["scicos4.2"]),
+ props: scicos_params({
+ wpar: new ScilabDouble([600, 450, 0, 0, 450, 600]),
+ Title: new ScilabString(["Sigbuilder"]),
+ tol: new ScilabDouble([0.0001], [0.000001], [Math.pow(10, -10)], [100001], [0], [0], [0]),
+ tf: new ScilabDouble([100]),
+ context: new ScilabString([" "]),
+ void1: new ScilabDouble(),
+ options: tlist(["scsopt", "3D", "Background", "Link", "ID", "Cmap"], new ScilabString(["scsopt", "3D", "Background", "Link", "ID", "Cmap"]), list(new ScilabBoolean([true]), new ScilabDouble([33])), new ScilabDouble([8, 1]), new ScilabDouble([1, 5]), list(new ScilabDouble([5, 1]), new ScilabDouble([4, 1])), new ScilabDouble([0.8, 0.8, 0.8])),
+ void2: new ScilabDouble(),
+ void3: new ScilabDouble(),
+ doc: list()
+ })
+ });
+ scs_m_1.objs.push(scicos_block({
+ gui: new ScilabString(["CURVE_c"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([329.63473, 606.18517]),
+ sz: new ScilabDouble([40, 40]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["3"], ["[0,1,2]"], ["[10,20,-30]"], ["y"], ["n"]),
+ pin: new ScilabDouble(),
+ pout: new ScilabDouble([6]),
+ pein: new ScilabDouble([4]),
+ peout: new ScilabDouble([2]),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CURVE_c&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabDouble(),
+ out_implicit: new ScilabString(["E"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_label: new ScilabString([""]),
+ style: new ScilabString(["CURVE_c"])
+ }),
+ model: scicos_model({
+ sim: list(new ScilabString(["curve_c"]), new ScilabDouble([4])),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble(),
+ out: new ScilabDouble([1]),
+ out2: new ScilabDouble([1]),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble([1]),
+ evtout: new ScilabDouble([1]),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble([0], [1], [2], [10], [20], [-30]),
+ ipar: new ScilabDouble([3], [3], [1]),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble([0]),
+ dep_ut: new ScilabBoolean([false, true]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m_1.objs.push(scicos_block({
+ gui: new ScilabString(["CLKSPLIT_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([349.49528, 565.10704]),
+ sz: new ScilabDouble([0.3333333, 0.3333333]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabDouble(),
+ pin: new ScilabDouble(),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble([2]),
+ peout: new ScilabDouble([8], [4]),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CLKSPLIT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabDouble(),
+ out_implicit: new ScilabDouble(),
+ style: new ScilabString(["CLKSPLIT_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["split"]),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble(),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble(),
+ evtin: new ScilabDouble([1]),
+ evtout: new ScilabDouble([1], [1]),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["d"]),
+ firing: new ScilabBoolean([-1], [-1]),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m_1.objs.push(scicos_block({
+ gui: new ScilabString(["OUT_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([398.20616, 616.18517]),
+ sz: new ScilabDouble([20, 20]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["1"]),
+ pin: new ScilabDouble([6]),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;OUT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabDouble(),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ style: new ScilabString(["OUT_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["output"]),
+ in: new ScilabDouble([-1]),
+ in2: new ScilabDouble([-2]),
+ intyp: new ScilabDouble([-1]),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble(),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([1]),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m_1.objs.push(scicos_block({
+ gui: new ScilabString(["CLKOUTV_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([339.49528, 505.10704]),
+ sz: new ScilabDouble([20, 30]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["1"]),
+ pin: new ScilabDouble(),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble([8]),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;CLKOUTV_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabDouble(),
+ out_implicit: new ScilabDouble(),
+ style: new ScilabString(["CLKOUTV_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["output"]),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble(),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble(),
+ evtin: new ScilabDouble([1]),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([1]),
+ opar: list(),
+ blocktype: new ScilabString(["d"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m_1.objs.push(scicos_link({
+ xx: new ScilabDouble([349.63473], [349.49528]),
+ yy: new ScilabDouble([600.47089], [565.10704]),
+ id: new ScilabString(["drawlink"]),
+ 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_link({
+ xx: new ScilabDouble([349.49528], [266.69602], [266.69602], [270.35525], [342.80795], [342.80795], [349.63473]),
+ yy: new ScilabDouble([565.10704], [565.10704], [680.99483], [680.99483], [680.99483], [651.89946], [651.89946]),
+ id: new ScilabString(["drawlink"]),
+ 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_link({
+ xx: new ScilabDouble([378.20616], [398.20616]),
+ yy: new ScilabDouble([626.18517], [626.18517]),
+ id: new ScilabString(["drawlink"]),
+ 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_link({
+ xx: new ScilabDouble([349.49528], [349.49528]),
+ yy: new ScilabDouble([565.10704], [535.10704]),
+ id: new ScilabString(["drawlink"]),
+ 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: new ScilabString(["csuper"]),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble(),
+ out: new ScilabDouble([-1]),
+ out2: new ScilabDouble([1]),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble([1]),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: scs_m_1,
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["h"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list()
+ });
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Sigbuilder\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, new ScilabDouble(), gr_i);
+ return new BasicBlock(this.x);
+ }
+ Sigbuilder.prototype.details = function Sigbuilder() {
+ return this.x;
+ }
+}
+function SIGNUM() {
+
+ SIGNUM.prototype.define = function SIGNUM() {
+ this.nu = -1;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["signum"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([this.nu]);
+ model.out = new ScilabDouble([this.nu]);
+ model.nzcross = new ScilabDouble([this.nu]);
+ model.nmode = new ScilabDouble([this.nu]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([1]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SIGNUM\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ SIGNUM.prototype.details = function SIGNUM() {
+ return this.x;
+ }
+}
+
+function SINBLK_f() {
+
+ SINBLK_f.prototype.define = function SINBLK_f() {
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["sinblk"]);
+ model.in = new ScilabDouble([-1]);
+ model.out = new ScilabDouble([-1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([" "]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SINBLK_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ SINBLK_f.prototype.details = function SINBLK_f() {
+ return this.x;
+ }
+}
+
+function SineVoltage() {
+
+ SineVoltage.prototype.define = function SineVoltage() {
+ var model = scicos_model();
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+
+ this.V = 1;
+ this.ph = 0;
+ this.frq = 1;
+ this.offset = 0;
+ this.start = 0;
+
+ model.rpar = new ScilabDouble([this.V], [this.ph], [this.frq], [this.offset], [this.start]);
+ model.sim = new ScilabString(["SineVoltage"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ 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(new ScilabDouble([this.V]), new ScilabDouble([this.ph]), new ScilabDouble([this.frq]), new ScilabDouble([this.offset]), new ScilabDouble([this.start])));
+ model.equations = mo;
+
+ var exprs = new ScilabString([this.V], [this.ph], [this.frq], [this.offset], [this.start]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SineVoltage\",sz(1),sz(2));"]);
+ 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);
+ }
+
+ SineVoltage.prototype.details = function SineVoltage() {
+ return this.x;
+ }
+}
+function SOM_f() {
+
+ SOM_f.prototype.define = function SOM_f() {
+ this.sgn = [[1], [1], [1]];
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["sum"]), new ScilabDouble([2]));
+ model.in = new ScilabDouble([-1], [-1], [-1]);
+ model.out = new ScilabDouble([-1]);
+ model.rpar = new ScilabDouble(...this.sgn);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([sci2exp(1)], [sci2exp(this.sgn)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SOM_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2,2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ SINBLK_f.prototype.details = function SINBLK_f() {
+ return this.x;
+ }
+}
+function SourceP() {
+
+ SourceP.prototype.define = function SourceP() {
+ var model = scicos_model();
+
+ this.P0 = 300000;
+ this.T0 = 290;
+ this.H0 = 100000;
+ this.option_temperature = 1;
+
+ model.rpar = new ScilabDouble([this.P0], [this.T0], [this.H0], [this.option_temperature]);
+ model.sim = new ScilabString(["Source"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ mo.model = new ScilabString(["Source"]);
+ mo.inputs = new ScilabDouble();
+ mo.outputs = new ScilabString(["C"]);
+ mo.parameters = list(new ScilabString(["P0"], ["T0"], ["H0"], ["option_temperature"]), new ScilabDouble([this.P0], [this.T0], [this.H0], [this.option_temperature]));
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
+ model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
+
+ var exprs = new ScilabString([this.P0], [this.T0], [this.H0], [this.option_temperature]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SourceP\",sz(1),sz(2));"]);
+ this.x = new standard_define([2.5, 2], model, exprs, list(gr_i, new ScilabDouble([0])));
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x);
+ }
+
+ SourceP.prototype.details = function SourceP() {
+ return this.x;
+ }
+}
+function SQRT() {
+
+ SQRT.prototype.define = function SQRT() {
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["mat_sqrt"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = new ScilabString([sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SQRT\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ SQRT.prototype.details = function SQRT() {
+ return this.x;
+ }
+}
+function SRFLIPFLOP() {
+
+ SRFLIPFLOP.prototype.define = function SRFLIPFLOP() {
+ var scs_m = scicos_diagram({
+ version: new ScilabString(["scicos4.2"]),
+ props: scicos_params({
+ wpar: new ScilabDouble([600, 450, 0, 0, 450, 600]),
+ Title: new ScilabString(["SRFLIPFLOP"]),
+ tol: new ScilabDouble([0.0001], [0.000001], [Math.pow(10, -10)], [100001], [0], [0], [0]),
+ tf: new ScilabDouble([100000]),
+ context: new ScilabString([" "]),
+ void1: new ScilabDouble(),
+ options: tlist(["scsopt", "3D", "Background", "Link", "ID", "Cmap"], new ScilabString(["scsopt", "3D", "Background", "Link", "ID", "Cmap"]), list(new ScilabBoolean([true]), new ScilabDouble([33])), new ScilabDouble([8, 1]), new ScilabDouble([1, 5]), list(new ScilabDouble([5, 1]), new ScilabDouble([4, 1])), new ScilabDouble([0.8, 0.8, 0.8])),
+ void2: new ScilabDouble(),
+ void3: new ScilabDouble(),
+ doc: list()
+ })
+ });
+ scs_m.objs.push(scicos_block({
+ gui: new ScilabString(["LOGIC"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([298.504, 201.45067]),
+ sz: new ScilabDouble([40, 40]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["[0 1;1 0;1 0;1 0;0 1;0 1;0 0;0 0]"], ["1"]),
+ pin: new ScilabDouble([4], [10], [12]),
+ pout: new ScilabDouble([3], [8]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;LOGIC&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"], ["E"], ["E"]),
+ out_implicit: new ScilabString(["E"], ["E"]),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""], [""], [""]),
+ out_label: new ScilabString([""], [""]),
+ style: new ScilabString(["LOGIC"])
+ }),
+ model: scicos_model({
+ sim: list(new ScilabString(["logic"]), new ScilabDouble([4])),
+ in: new ScilabDouble([1], [1], [1]),
+ in2: new ScilabDouble([1], [1], [1]),
+ intyp: new ScilabDouble([5], [5], [5]),
+ out: new ScilabDouble([1], [1]),
+ out2: new ScilabDouble([1], [1]),
+ outtyp: new ScilabDouble([5], [5]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(int8([0, 1], [1, 0], [1, 0], [1, 0], [0, 1], [0, 1], [0, 0], [0, 0])),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabBoolean([false]),
+ dep_ut: new ScilabBoolean([true, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_block({
+ gui: new ScilabString(["DOLLAR_m"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([299.23733, 254.25067]),
+ sz: new ScilabDouble([40, 40]),
+ flip: new ScilabBoolean([false]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["int8(0)"], ["1"]),
+ pin: new ScilabDouble([6]),
+ pout: new ScilabDouble([4]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;DOLLAR_m&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabString(["E"]),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ out_label: new ScilabString([""]),
+ style: new ScilabString(["DOLLAR_m"])
+ }),
+ model: scicos_model({
+ sim: list(new ScilabString(["dollar4_m"]), new ScilabDouble([4])),
+ in: new ScilabDouble([1]),
+ in2: new ScilabDouble([1]),
+ intyp: new ScilabDouble([5]),
+ out: new ScilabDouble([1]),
+ out2: new ScilabDouble([1]),
+ outtyp: new ScilabDouble([5]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(int8([0])),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["d"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_block({
+ gui: new ScilabString(["SPLIT_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([363.03733, 248.584]),
+ sz: new ScilabDouble([0.3333333, 0.3333333]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabDouble(),
+ pin: new ScilabDouble([3]),
+ pout: new ScilabDouble([10], [14], [0]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;SPLIT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabString(["E"], ["E"], ["E"]),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"], ["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ out_label: new ScilabString([""], [""], [""]),
+ style: new ScilabString(["SPLIT_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["lsplit"]),
+ in: new ScilabDouble([-1]),
+ in2: new ScilabDouble([1]),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble([-1], [-1], [-1]),
+ out2: new ScilabDouble([1], [1], [1]),
+ outtyp: new ScilabDouble([1], [1], [1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([true, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_block({
+ gui: new ScilabString(["OUT_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([367.07543, 204.784]),
+ sz: new ScilabDouble([20, 20]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["2"]),
+ pin: new ScilabDouble([8]),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;OUT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabDouble(),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ style: new ScilabString(["OUT_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["output"]),
+ in: new ScilabDouble([-1]),
+ in2: new ScilabDouble([1]),
+ intyp: new ScilabDouble([-1]),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble(),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([2]),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_block({
+ gui: new ScilabString(["IN_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([249.93257, 211.45067]),
+ sz: new ScilabDouble([20, 20]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["1"]),
+ pin: new ScilabDouble(),
+ pout: new ScilabDouble([10]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;IN_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabDouble(),
+ out_implicit: new ScilabString(["E"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_label: new ScilabString([""]),
+ style: new ScilabString(["IN_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["input"]),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble(),
+ out: new ScilabDouble([-1]),
+ out2: new ScilabDouble([1]),
+ outtyp: new ScilabDouble([-1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([1]),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_block({
+ gui: new ScilabString(["IN_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([249.93257, 201.45067]),
+ sz: new ScilabDouble([20, 20]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["2"]),
+ pin: new ScilabDouble(),
+ pout: new ScilabDouble([12]),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;IN_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabDouble(),
+ out_implicit: new ScilabString(["E"]),
+ out_style: new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ out_label: new ScilabString([""]),
+ style: new ScilabString(["IN_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["input"]),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble(),
+ out: new ScilabDouble([-1]),
+ out2: new ScilabDouble([1]),
+ outtyp: new ScilabDouble([-1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([2]),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m.objs.push(scicos_block({
+ gui: new ScilabString(["OUT_f"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([383.03733, 238.584]),
+ sz: new ScilabDouble([20, 20]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["1"]),
+ pin: new ScilabDouble([14]),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble(),
+ peout: new ScilabDouble(),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),&quot;OUT_f&quot;,sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabString(["E"]),
+ out_implicit: new ScilabDouble(),
+ in_style: new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]),
+ in_label: new ScilabString([""]),
+ style: new ScilabString(["OUT_f"])
+ }),
+ model: scicos_model({
+ sim: new ScilabString(["output"]),
+ in: new ScilabDouble([-1]),
+ in2: new ScilabDouble([1]),
+ intyp: new ScilabDouble([-1]),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble(),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble([1]),
+ opar: list(),
+ blocktype: new ScilabString(["c"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+
+ scs_m.objs.push(scicos_link({
+ xx: new ScilabDouble([347.07543], [363.03733], [363.03733]),
+ yy: new ScilabDouble([228.11733], [228.11733], [248.584]),
+ id: new ScilabString(['drawlink']),
+ 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], [272.104], [272.104], [289.93257]),
+ yy: new ScilabDouble([274.25067], [274.25067], [231.45067], [231.45067]),
+ id: new ScilabString(['drawlink']),
+ 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_link({
+ xx: new ScilabDouble([363.03733], [363.03733], [344.95162]),
+ yy: new ScilabDouble([248.584], [274.25067], [274.25067]),
+ id: new ScilabString(['drawlink']),
+ 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_link({
+ xx: new ScilabDouble([347.07543], [367.07543]),
+ yy: new ScilabDouble([214.784], [214.784]),
+ id: new ScilabString(['drawlink']),
+ 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_link({
+ xx: new ScilabDouble([269.93257], [289.93257]),
+ yy: new ScilabDouble([221.45067], [221.45067]),
+ id: new ScilabString(['drawlink']),
+ 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_link({
+ xx: new ScilabDouble([269.93257], [289.93257]),
+ yy: new ScilabDouble([211.45067], [221.45067]),
+ id: new ScilabString(['drawlink']),
+ 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_link({
+ xx: new ScilabDouble([363.03733], [383.03733]),
+ yy: new ScilabDouble([248.584], [248.584]),
+ id: new ScilabString(['drawlink']),
+ thick: new ScilabDouble([0, 0]),
+ ct: new ScilabDouble([1, 1]),
+ from: new ScilabDouble([5, 2, 0]),
+ to: new ScilabDouble([13, 1, 1])
+ }));
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["csuper"]);
+ model.in = new ScilabDouble([1], [1]);
+ model.in2 = new ScilabDouble([1], [1]);
+ model.out = new ScilabDouble([1], [1]);
+ model.out2 = new ScilabDouble([1], [1]);
+ model.intyp = new ScilabDouble([5, 5]);
+ model.outtyp = new ScilabDouble([5, 5]);
+ model.blocktype = new ScilabString(["h"]);
+ model.firing = new ScilabBoolean([false]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+ model.rpar = scs_m;
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SRFLIPFLOP\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 3]), model, new ScilabDouble(), gr_i);
+ return new BasicBlock(this.x);
+ }
+ SRFLIPFLOP.prototype.details = function SRFLIPFLOP() {
+ return this.x;
+ }
+}
+function STEP_FUNCTION() {
+
+ STEP_FUNCTION.prototype.define = function STEP_FUNCTION() {
+ var scs_m_1 = scicos_diagram();
+ scs_m_1.objs.push(new STEP().internal());
+ scs_m_1.objs.push(new OUT_f().internal());
+ scs_m_1.objs.push(scicos_link({}));
+ scs_m_1.objs.push(scicos_link({}));
+
+ var blk = scs_m_1.objs[0];
+ var graphics = blk.graphics;
+
+ var model = blk.model;
+ graphics.orig = new ScilabDouble([0, 0]);
+ graphics.sz = new ScilabDouble([40, 40]);
+ graphics.flip = new ScilabBoolean([true]);
+ graphics.pein = new ScilabDouble([4]);
+ graphics.peout = new ScilabDouble([4]);
+ graphics.pout = new ScilabDouble([3]);
+ graphics.out_implicit = new ScilabString(["E"]);
+ graphics.in_style = new ScilabDouble();
+ graphics.out_style = new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]);
+ graphics.in_label = new ScilabDouble();
+ graphics.out_label = new ScilabString([""]);
+ model.evtin = new ScilabDouble([-1]);
+ model.evtout = new ScilabDouble([-1]);
+ model.uid = new ScilabString([count]);
+ blk.graphics = graphics;
+ blk.model = model;
+ blk.doc = list(new ScilabString([count++]));
+ scs_m_1.objs[0] = blk;
+
+ blk = scs_m_1.objs[1];
+ graphics = blk.graphics;
+ model = blk.model;
+ graphics.orig = new ScilabDouble([80, 10]);
+ graphics.sz = new ScilabDouble([20, 20]);
+ graphics.flip = new ScilabBoolean([true]);
+ graphics.exprs = new ScilabString(["1"]);
+ model.ipar = new ScilabDouble([1]);
+ graphics.pin = new ScilabDouble([3]);
+ model.outtyp = new ScilabDouble();
+ model.uid = new ScilabString([count]);
+ blk.doc = list(new ScilabString([count++]));
+ blk.graphics = graphics;
+ blk.model = model;
+ scs_m_1.objs[1] = blk;
+
+ var lnk = scs_m_1.objs[2];
+ lnk.xx = new ScilabDouble([104], [136]);
+ lnk.yy = new ScilabDouble([-40], [-60]);
+ lnk.from = new ScilabDouble([1, 1, 0]);
+ lnk.to = new ScilabDouble([2, 1, 1]);
+ scs_m_1.objs[2] = lnk;
+
+ lnk = scs_m_1.objs[3];
+ 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[3] = 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 = new ScilabString(["xstringb(orig(1),orig(2),\"STEP_FUNCTION\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, new ScilabString(), gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ STEP_FUNCTION.prototype.details = function STEP_FUNCTION() {
+ return this.x;
+ }
+}
+function SUBMAT() {
+
+ SUBMAT.prototype.define = function SUBMAT() {
+ var model = scicos_model();
+
+ this.function_name = new ScilabString(["submat"]);
+
+ this.funtyp = new ScilabDouble([4]);
+ model.sim = list(this.function_name, this.funtyp);
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.outtyp = new ScilabDouble([1]);
+ model.evtin = new ScilabDouble();
+ model.evtout = new ScilabDouble();
+ model.state = new ScilabDouble();
+ model.dstate = new ScilabDouble();
+ model.rpar = new ScilabDouble();
+ model.ipar = new ScilabDouble([1], [1], [1], [1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ this.label = new ScilabString([sci2exp(1)], [sci2exp(1)], [sci2exp(1)], [sci2exp(1)], [sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SUBMAT\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2.5, 2]), model, this.label, gr_i);
+
+ return new BasicBlock(this.x);
+
+ }
+ SUBMAT.prototype.details = function SUBMAT() {
+ return this.x;
+
+ }
+}
+function SUMMATION() {
+ SUMMATION.prototype.define = function SUMMATION() {
+ this.sgn = [[1],[-1]];
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["summation"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([-1], [-1]);
+ model.out = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2], [-2]);
+ model.out2 = new ScilabDouble([-2]);
+ model.ipar = new ScilabDouble(...this.sgn);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([sci2exp(this.sgn)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SUMMATION\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 3]), model, exprs, gr_i);
+ return new Summation(this.x);
+ }
+
+ SUMMATION.prototype.details = function SUMMATION() {
+ return this.x;
+ }
+}
+function SUM_f() {
+
+ SUM_f.prototype.define = function SUM_f() {
+ var model = scicos_model();
+
+ model.sim = list(new ScilabString(["plusblk"]), new ScilabDouble([2]));
+ model.in = new ScilabDouble([-1], [-1], [-1]);
+ model.out = new ScilabDouble([-1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SUM_f\",sz(1),sz(2));"]);
+ var exprs = new ScilabString();
+
+ this.x = new standard_define(new ScilabDouble([1, 1]), model, exprs, gr_i);
+
+ return new RoundBlock(this.x);
+
+ }
+
+ SUM_f.prototype.details = function SUM_f() {
+ return this.x;
+
+ }
+}
+function SUPER_f() {
+
+ SUPER_f.prototype.define = function SUPER_f() {
+ var scs = scicos_diagram();
+ scs.props.title = new ScilabString(["Super_Block"]);
+
+ var in1 = new IN_f().internal();
+ in1.graphics.orig = new ScilabDouble([40, 40]);
+ in1.graphics.sz = new ScilabDouble([20, 20]);
+ in1.graphics.flip = new ScilabBoolean([true]);
+ in1.graphics.pout = new ScilabDouble([0]);
+ in1.model.uid = new ScilabString([count]);
+ in1.doc = list(new ScilabString([count++]));
+
+ var out = new OUT_f().internal();
+ out.graphics.orig = new ScilabDouble([240, 40]);
+ out.graphics.sz = new ScilabDouble([20, 20]);
+ out.graphics.flip = new ScilabBoolean([true]);
+ out.graphics.pin = new ScilabDouble([0]);
+ out.model.outtyp = new ScilabDouble();
+ out.model.uid = new ScilabString([count]);
+ out.doc = list(new ScilabString([count++]));
+ scs.objs.push(in1);
+ scs.objs.push(out);
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["super"]);
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar = scs;
+ model.blocktype = new ScilabString(["h"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var gr_i = ["xstringb(orig(1),orig(2),\"SUPER_f\",sz(1),sz(2));"];
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, new ScilabDouble(), gr_i);
+ return new SuperBlock(this.x);
+ }
+
+ SUPER_f.prototype.details = function SUPER_f() {
+ return this.x;
+ }
+}
+function Switch() {
+
+ Switch.prototype.define = function Switch() {
+ var model = scicos_model();
+
+ this.Ron = 0.01;
+ this.Roff = 1e5;
+ this.S = [["Ron"], ["Roff"]];
+
+ var scope = {
+ Ron: 0.01,
+ Roff: 1e5
+ }
+ this.Z = math.eval('[ Ron ; Roff ]', scope)._data;
+
+ model.sim = new ScilabString(["Switch"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ mo.model = model.sim;
+ mo.inputs = new ScilabString(["p"], ["inp"]);
+ mo.outputs = new ScilabString(["n"]);
+ mo.parameters = list(new ScilabString(...this.S), new ScilabDouble(...this.Z));
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
+ model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
+ model.rpar = new ScilabDouble(...this.Z);
+
+ var exprs = new ScilabString(...this.Z);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Switch\",sz(1),sz(2));"]);
+ this.x = standard_define(new ScilabDouble([2, 2]), model, exprs, list(gr_i, new ScilabDouble(0)));
+ this.x.graphics.in_implicit = new ScilabString([["I"], ["E"]]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x);
+ }
+
+ Switch.prototype.details = function Switch() {
+ this.x;
+ }
+}
+function SWITCH2_m() {
+
+ SWITCH2_m.prototype.define = function SWITCH2_m() {
+ this.ipar = [0];
+ this.nzz = 1;
+ this.rpar = 0;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["switch2_m"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([-1], [1], [-1]);
+ model.in2 = new ScilabDouble([-2], [1], [-2]);
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.outtyp = new ScilabDouble([1]);
+ model.ipar = new ScilabDouble(this.ipar);
+ model.rpar = new ScilabDouble([this.rpar]);
+ model.nzcross = new ScilabDouble([this.nzz]);
+ model.nmode = new ScilabDouble([1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([1], this.ipar, [this.rpar], [this.nzz]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SWITCH2_m\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ SWITCH2_m.prototype.details = function SWITCH2_m() {
+ return this.x;
+ }
+}
+function SWITCH_f() {
+
+ SWITCH_f.prototype.define = function SWITCH_f() {
+ this.i0 = 0;
+ this.in1 = [[-1], [-1]];
+ this.nin = 2;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["switchn"]), new ScilabDouble([2]));
+ model.in = new ScilabDouble(...this.in1);
+ model.out = new ScilabDouble([-1]);
+ model.ipar = new ScilabDouble([this.i0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, true]);
+
+ var exprs = new ScilabString([this.nin], [this.i0 + 1]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SWITCH_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ SWITCH_f.prototype.internal = function SWITCH_f() {
+ this.i0 = 0;
+ this.in1 = [[-1],[-1]];
+ this.nin = 2;
+
+ var model = scicos_model();
+ model.sim=list(new ScilabString(["switchn"]),new ScilabDouble([2]));
+ model.in=new ScilabDouble(...this.in1);
+ model.out = new ScilabDouble([-1]);
+ model.ipar=new ScilabDouble([this.i0]);
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true,true]);
+
+ var exprs = new ScilabString([this.nin],[this.i0+1]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SWITCH_f\",sz(1),sz(2));"]);
+ var block=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i);
+ return block;
+ }
+
+ SWITCH_f.prototype.details = function SWITCH_f() {
+ return this.x;
+ }
+}
+function TANBLK_f() {
+
+ TANBLK_f.prototype.define = function TANBLK_f() {
+ this.in1 = -1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["tanblk"]);
+ model.in = new ScilabDouble([this.in1]);
+ model.out = new ScilabDouble([this.in1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([sci2exp(in1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"TANBLK_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ TANBLK_f.prototype.details = function TANBLK_f() {
+ return this.x;
+ }
+}
+function TCLSS() {
+
+ TCLSS.prototype.define = function TCLSS() {
+ this.x0 = 0;
+ this.A = 0;
+ this.B = 1;
+ this.C = 1;
+ this.D = 0;
+ this.in1 = 1;
+ this.nx = size(this.x0, "*");
+ this.out = 1;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["tcslti4"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([this.in1], [this.nx]);
+ model.out = new ScilabDouble([this.out]);
+ model.evtin = new ScilabDouble([1]);
+ model.state = new ScilabDouble([this.x0]);
+ model.rpar = new ScilabDouble([this.A], [this.B], [this.C], [this.D]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+
+ var exprs = new ScilabString([sci2exp(this.A)], [sci2exp(this.B)], [sci2exp(this.C)], [sci2exp(this.D)], [sci2exp(this.x0)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"TCLSS\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+
+ TCLSS.prototype.details = function TCLSS() {
+ return this.x;
+ }
+}
+function TEXT_f() {
+
+ TEXT_f.prototype.define = function TEXT_f() {
+ this.font = 2;
+ this.siz = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["text"]);
+ model.rpar = new ScilabString(["Text"]);
+ model.ipar = new ScilabDouble([this.font], [this.siz]);
+
+ var exprs = ["Text", this.font, this.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(["Text", "graphics", "model", "void", "gui"], new ScilabString(["Text", "graphics", "model", "void", "gui"]), graphics, model, new ScilabString([" "]), new ScilabString(["TEXT_f"]));
+ return new TextBlock(this.x);
+ }
+
+ TEXT_f.prototype.details = function TEXT_f() {
+ return this.x;
+ }
+}
+function TIME_DELAY() {
+
+ TIME_DELAY.prototype.define = function TIME_DELAY() {
+ this.nin = 1;
+ this.T = 1;
+ this.init = 0;
+ this.N = 1024;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["time_delay"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([this.nin]);
+ model.out = new ScilabDouble([this.nin]);
+ model.rpar = new ScilabDouble([this.T, this.init]);
+ model.ipar = new ScilabDouble([this.N]);
+ model.blocktype = new ScilabString(["x"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+
+ var exprs = new ScilabString([this.T], [this.init], [this.N]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"TIME_DELAY\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3.5, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ TIME_DELAY.prototype.details = function TIME_DELAY() {
+ return this.x;
+ }
+}
+function TIME_f() {
+
+ TIME_f.prototype.define = 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 = new ScilabString(["xstringb(orig(1),orig(2),\"TIME_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, new ScilabDouble(), gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ TIME_f.prototype.details = function TIME_f() {
+ return this.x;
+ }
+}
+function TKSCALE() {
+
+ TKSCALE.prototype.define = function TKSCALE() {
+ this.a = -10;
+ this.b = 10;
+ this.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([this.a], [this.b], [this.f]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([sci2exp(this.a)], [sci2exp(this.b)], [sci2exp(this.f)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"TKSCALE\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ TKSCALE.prototype.details = function TKSCALE() {
+ return this.x;
+ }
+}
+function TOWS_c() {
+
+ TOWS_c.prototype.define = function TOWS_c() {
+ this.nu = -1;
+ this.nz = 128;
+ this.varnam = "A";
+ this.herit = 0;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["tows_c"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([this.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([this.nz], [this.varnam.length], ascii(this.varnam));
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"TOWS_c\",sz(1),sz(2));"]);;
+
+ var exprs = new ScilabString([this.nz], [this.varnam], [this.herit]);
+ this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ TOWS_c.prototype.details = function TOWS_c() {
+ return this.x;
+ }
+}
+function TRASH_f() {
+
+ TRASH_f.prototype.define = function TRASH_f() {
+ this.in1 = -1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["trash"]);
+ model.in = new ScilabDouble([this.in1]);
+ model.evtin = new ScilabDouble([1]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([" "]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"TRASH_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ TRASH_f.prototype.details = function TRASH_f() {
+ return this.x;
+ }
+}
+function TrigFun() {
+
+ TrigFun.prototype.define = function TrigFun() {
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["sin_blk"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([-1]);
+ model.out = new ScilabDouble([-1]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString(["sin"]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"TrigFun\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ TrigFun.prototype.details = function TrigFun() {
+ return this.x;
+ }
+}
+function VanneReglante() {
+
+ VanneReglante.prototype.define = function VanneReglante() {
+ var model = scicos_model();
+ model.in = new ScilabDouble([1], [1]);
+ model.out = new ScilabDouble([1]);
+
+ this.Cvmax = 8005.42;
+ this.p_rho = 0;
+
+ model.rpar = new ScilabDouble([this.Cvmax], [this.p_rho]);
+ model.sim = new ScilabString(["VanneReglante"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ mo.model = new ScilabString(["VanneReglante"]);
+ mo.inputs = new ScilabString(["C1", "Ouv"]);
+ mo.outputs = new ScilabString(["C2"]);
+ mo.parameters = list(new ScilabString(["Cvmax"], ["p_rho"]), new ScilabDouble([this.Cvmax], [this.p_rho]));
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
+ model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
+
+ var exprs = new ScilabString([this.Cvmax], [this.p_rho]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"VanneReglante\",sz(1),sz(2));"]);
+ this.x = standard_define([2, 2], model, exprs, list(gr_i, new ScilabDouble([0])));
+ this.x.graphics.in_implicit = new ScilabString(["I"], ["E"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x);
+ }
+
+ VanneReglante.prototype.details = function VanneReglante() {
+ return this.x;
+ }
+}
+function VariableResistor() {
+
+ VariableResistor.prototype.define = 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 = new modelica_function();
+ mo.model = new ScilabString(["VariableResistor"]);
+ mo.inputs = new ScilabString(["p", "R"]);
+ mo.outputs = new ScilabString(["n"]);
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
+ model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
+
+ var exprs = new ScilabDouble();
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"VariableResistor\",sz(1),sz(2));"]);;
+ 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);
+ }
+
+ VariableResistor.prototype.details = function VariableResistor() {
+ return this.x;
+ }
+}
+function VARIABLE_DELAY() {
+
+ VARIABLE_DELAY.prototype.define = function VARIABLE_DELAY() {
+ this.nin = 1;
+ this.T = 1;
+ this.init = 0;
+ this.N = 1024;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["variable_delay"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([this.nin], [1]);
+ model.out = new ScilabDouble([this.nin]);
+ model.rpar = new ScilabDouble([this.T, this.init]);
+ model.ipar = new ScilabDouble([this.N]);
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([this.T], [this.init], [this.N]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"VARIABLE_DELAY\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ VARIABLE_DELAY.prototype.details = function VARIABLE_DELAY() {
+ return this.x;
+ }
+}
+function VirtualCLK0() {
+
+ VirtualCLK0.prototype.define = 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 = new ScilabDouble();
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, new ScilabString([" "]));
+ return new BasicBlock(this.x);
+ }
+
+ VirtualCLK0.prototype.details = function VirtualCLK0() {
+ return this.x;
+ }
+
+}
+function VoltageSensor() {
+
+ VoltageSensor.prototype.define = function VoltageSensor() {
+ var model = scicos_model();
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1], [, 1]);
+ model.sim = new ScilabString(["VoltageSensor"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ mo.model = new ScilabString(["VoltageSensor"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["n"], ["v"]);
+ model.equations = mo;
+
+ var exprs = new ScilabDouble();
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"VoltageSensor\",sz(1),sz(2));"]);;
+ this.x = standard_define([2, 2], model, exprs, list(gr_i, new ScilabDouble([0])));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"], ["E"]);
+ return new VoltageSensorBlock(this.x);
+ }
+
+ VoltageSensor.prototype.details = function VoltageSensor() {
+ return this.x;
+ }
+}
+function VsourceAC() {
+
+ VsourceAC.prototype.define = function VsourceAC() {
+ var model = scicos_model();
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+
+ this.VA = 220;
+
+ this.FR = 50;
+ model.rpar = new ScilabDouble([this.VA], [this.FR]);
+ model.sim = new ScilabString(["VsourceAC"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = modelica_function();
+ mo.model = new ScilabString(["VsourceAC"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["n"]);
+ mo.parameters = list(new ScilabString(["VA"], ["f"]), list(new ScilabDouble([this.VA]), new ScilabDouble([this.FR])));
+ model.equations = mo;
+
+ var exprs = new ScilabString([this.VA], [this.FR]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"VsourceAC\",sz(1),sz(2));"]);
+
+ 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);
+ }
+
+ VsourceAC.prototype.details = function VsourceAC() {
+ return this.x;
+ }
+}
+function VVsourceAC() {
+
+ VVsourceAC.prototype.define = function VVsourceAC() {
+ var model = scicos_model();
+
+ model.in = new ScilabDouble([1], [1]);
+ model.out = new ScilabDouble([1]);
+
+ this.VA = 220;
+ this.FR = 50;
+
+ model.rpar = new ScilabDouble([this.FR]);
+ model.sim = new ScilabString(["VVsourceAC"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = modelica_function();
+ mo.model = new ScilabString(["VVsourceAC"]);
+ mo.inputs = new ScilabString(["p", "VA"]);
+ mo.outputs = new ScilabString(["n"]);
+ mo.parameters = list(new ScilabString(["f"]), list(new ScilabDouble([this.FR])));
+ model.equations = mo;
+
+ var exprs = new ScilabString([this.FR]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"VVsourceAC\",sz(1),sz(2));"]);
+
+
+ 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);
+ }
+
+ VVsourceAC.prototype.details = function VVsourceAC() {
+ return this.x;
+ }
+}
+function WRITEAU_f() {
+
+ WRITEAU_f.prototype.define = function WRITEAU_f() {
+ this.in1 = 1;
+ this.nin = math.sum(this.in1);
+ this.frmt = "uc ";
+ this.fname = "/dev/audio";
+ this.swap = 0;
+ this.lunit = 0;
+ this.N = 2;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["writeau"]), new ScilabDouble([2]));
+ model.in = new ScilabDouble([this.in1]);
+ model.evtin = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble([-1], [this.lunit], ...zeros((this.nin + 1) * this.N, 1));
+ model.ipar = new ScilabDouble([this.fname.length], ..._str2code(this.frmt), [this.N], [this.swap], ..._str2code(this.fname));
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([this.N], [this.swap]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"WRITEAU_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ WRITEAU_f.prototype.details = function WRITEAU_f() {
+ return this.x;
+ }
+}
+function WRITEC_f() {
+
+ WRITEC_f.prototype.define = function WRITEC_f() {
+ this.in = 1;
+ this.nin = math.sum(this.in);
+ this.frmt = "c ";
+ this.fname = "foo";
+ this.swap = 0;
+ this.lunit = 0;
+ this.N = 2;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["writec"]), new ScilabDouble([2]));
+ model.in = new ScilabDouble([this.in]);
+ model.evtin = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble([-1], [this.lunit], ...zeros((this.nin + 1) * this.N, 1));
+ model.ipar = new ScilabDouble([this.fname.length], ..._str2code(this.frmt), [this.N], [this.swap], ..._str2code(this.fname));
+ model.blocktype = new ScilabString(["d"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([sci2exp(this.in)], [this.fname], [this.frmt], [this.N], [this.swap]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"WRITEC_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ WRITEC_f.prototype.details = function WRITEC_f() {
+ return this.x;
+ }
+}
+function ZCROSS_f() {
+
+ ZCROSS_f.prototype.define = function ZCROSS_f() {
+ this.rpar = [[-1], [-1], [0], [0]];
+
+ this.in = 1;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["zcross"]), new ScilabDouble([1]));
+ model.in = new ScilabDouble([this.in]);
+ model.nzcross = new ScilabDouble([this.in]);
+ model.evtout = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([-1], [-1], [0], [0]);
+ model.blocktype = new ScilabString(["z"]);
+ model.firing = new ScilabDouble([-1]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([sci2exp(this.in)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"ZCROSS_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+
+ return new BasicBlock(this.x);
+ }
+
+ ZCROSS_f.prototype.details = function ZCROSS_f() {
+ return this.x;
+ }
+}
diff --git a/composer.json b/src/main/webapp/composer.json
index 0967ef4..0967ef4 100644
--- a/composer.json
+++ b/src/main/webapp/composer.json
diff --git a/config/keyhandler-commons.xml b/src/main/webapp/config/keyhandler-commons.xml
index 9d21f45..9d21f45 100644
--- a/config/keyhandler-commons.xml
+++ b/src/main/webapp/config/keyhandler-commons.xml
diff --git a/css/common.css b/src/main/webapp/css/common.css
index 82f5e94..82f5e94 100644
--- a/css/common.css
+++ b/src/main/webapp/css/common.css
diff --git a/css/explorer.css b/src/main/webapp/css/explorer.css
index dfbbd21..dfbbd21 100644
--- a/css/explorer.css
+++ b/src/main/webapp/css/explorer.css
diff --git a/data_structures_correct/ABS_VALUE.js b/src/main/webapp/data_structures_correct/ABS_VALUE.js
index bf0b6fb..bf0b6fb 100644
--- a/data_structures_correct/ABS_VALUE.js
+++ b/src/main/webapp/data_structures_correct/ABS_VALUE.js
diff --git a/data_structures_correct/AFFICH_m.js b/src/main/webapp/data_structures_correct/AFFICH_m.js
index fe63c41..fe63c41 100644
--- a/data_structures_correct/AFFICH_m.js
+++ b/src/main/webapp/data_structures_correct/AFFICH_m.js
diff --git a/data_structures_correct/ANDBLK.js b/src/main/webapp/data_structures_correct/ANDBLK.js
index 11ea9a0..11ea9a0 100644
--- a/data_structures_correct/ANDBLK.js
+++ b/src/main/webapp/data_structures_correct/ANDBLK.js
diff --git a/data_structures_correct/ANDLOG_f.js b/src/main/webapp/data_structures_correct/ANDLOG_f.js
index a1b0c67..a1b0c67 100644
--- a/data_structures_correct/ANDLOG_f.js
+++ b/src/main/webapp/data_structures_correct/ANDLOG_f.js
diff --git a/data_structures_correct/AUTOMAT.js b/src/main/webapp/data_structures_correct/AUTOMAT.js
index cab6287..cab6287 100644
--- a/data_structures_correct/AUTOMAT.js
+++ b/src/main/webapp/data_structures_correct/AUTOMAT.js
diff --git a/data_structures_correct/BACKLASH.js b/src/main/webapp/data_structures_correct/BACKLASH.js
index 6ea6f08..6ea6f08 100644
--- a/data_structures_correct/BACKLASH.js
+++ b/src/main/webapp/data_structures_correct/BACKLASH.js
diff --git a/data_structures_correct/BARXY.js b/src/main/webapp/data_structures_correct/BARXY.js
index a7ca0f1..a7ca0f1 100644
--- a/data_structures_correct/BARXY.js
+++ b/src/main/webapp/data_structures_correct/BARXY.js
diff --git a/data_structures_correct/BIGSOM_f.js b/src/main/webapp/data_structures_correct/BIGSOM_f.js
index 1b896a1..1b896a1 100644
--- a/data_structures_correct/BIGSOM_f.js
+++ b/src/main/webapp/data_structures_correct/BIGSOM_f.js
diff --git a/data_structures_correct/BITCLEAR.js b/src/main/webapp/data_structures_correct/BITCLEAR.js
index 692ade4..46ec643 100644
--- a/data_structures_correct/BITCLEAR.js
+++ b/src/main/webapp/data_structures_correct/BITCLEAR.js
@@ -1,23 +1,23 @@
-function BITCLEAR() {
- BITCLEAR.prototype.define = function BITCLEAR() {
- var model = scicos_model();
- model.sim = list(new ScilabString(["bit_clear_32"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([1]);
- model.in2 = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.out2 = new ScilabDouble([1]);
- model.intyp = new ScilabDouble([3]);
- model.outtyp = new ScilabDouble([3]);
- model.opar = list(int32([0]));
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([sci2exp(3)], [sci2exp(0)]);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"BITCLEAR\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- BITCLEAR.prototype.details = function BITCLEAR() {
- return this.x;
- }
-}
+function BITCLEAR() {
+ BITCLEAR.prototype.define = function BITCLEAR() {
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["bit_clear_32"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([1]);
+ model.in2 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([3]);
+ model.outtyp = new ScilabDouble([3]);
+ model.opar = list(int32([0]));
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([sci2exp(3)], [sci2exp(0)]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"BITCLEAR\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ BITCLEAR.prototype.details = function BITCLEAR() {
+ return this.x;
+ }
+}
diff --git a/data_structures_correct/BITSET.js b/src/main/webapp/data_structures_correct/BITSET.js
index 2fff6e8..bec08ff 100644
--- a/data_structures_correct/BITSET.js
+++ b/src/main/webapp/data_structures_correct/BITSET.js
@@ -1,24 +1,24 @@
-function BITSET() {
-
- BITSET.prototype.define = function BITSET() {
- var model = scicos_model();
- model.sim = list(new ScilabString(["bit_set_32"]), new ScilabDouble([4]));
- model.in = new ScilabDouble([1]);
- model.in2 = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.out2 = new ScilabDouble([1]);
- model.intyp = new ScilabDouble([3]);
- model.outtyp = new ScilabDouble([3]);
- model.opar = list(uint32([0]));
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var exprs = new ScilabString([sci2exp(3)], [sci2exp(0)]);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"BITSET\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
- return new BasicBlock(this.x);
- }
- BITSET.prototype.details = function BITSET() {
- return this.x;
- }
-}
+function BITSET() {
+
+ BITSET.prototype.define = function BITSET() {
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["bit_set_32"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([1]);
+ model.in2 = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([3]);
+ model.outtyp = new ScilabDouble([3]);
+ model.opar = list(uint32([0]));
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([sci2exp(3)], [sci2exp(0)]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"BITSET\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([4, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+ BITSET.prototype.details = function BITSET() {
+ return this.x;
+ }
+}
diff --git a/data_structures_correct/BOUNCE.js b/src/main/webapp/data_structures_correct/BOUNCE.js
index e63b241..e63b241 100644
--- a/data_structures_correct/BOUNCE.js
+++ b/src/main/webapp/data_structures_correct/BOUNCE.js
diff --git a/data_structures_correct/BOUNCEXY.js b/src/main/webapp/data_structures_correct/BOUNCEXY.js
index 1fa2ff2..1fa2ff2 100644
--- a/data_structures_correct/BOUNCEXY.js
+++ b/src/main/webapp/data_structures_correct/BOUNCEXY.js
diff --git a/data_structures_correct/BPLATFORM.js b/src/main/webapp/data_structures_correct/BPLATFORM.js
index 2470bc1..2470bc1 100644
--- a/data_structures_correct/BPLATFORM.js
+++ b/src/main/webapp/data_structures_correct/BPLATFORM.js
diff --git a/data_structures_correct/Bache.js b/src/main/webapp/data_structures_correct/Bache.js
index c85c3d5..a4ecf43 100644
--- a/data_structures_correct/Bache.js
+++ b/src/main/webapp/data_structures_correct/Bache.js
@@ -1,46 +1,46 @@
-function Bache() {
-
- Bache.prototype.define = function Bache() {
- this.in1 = 2;
- this.out = 3;
-
- var model = scicos_model();
- model.in = new ScilabDouble(math.transpose(math.range(-1, -this.in1, -1, true)));
- model.out = new ScilabDouble(math.transpose(math.range(-1, -this.out, -1, true)));
-
- this.Patm = 1.013E5;
- this.A = 1;
- this.ze1 = 40;
- this.ze2 = 0;
- this.zs1 = 40;
- this.zs2 = 0;
- this.z0 = 30;
- this.T0 = 290;
- this.p_rho = 0;
-
- model.rpar = new ScilabDouble([this.Patm], [this.A], [this.ze1], [this.ze2], [this.zs1], [this.zs2], [this.z0], [this.T0], [this.p_rho]);
- model.sim = new ScilabString(["Bache"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- 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"]), new ScilabDouble([this.Patm], [this.A], [this.ze1], [this.ze2], [this.zs1], [this.zs2], [this.z0], [this.T0], [this.p_rho]));
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(getData(mo.inputs), '*'), 1));
- model.out = new ScilabDouble(...ones(size(getData(mo.outputs), '*'), 1));
-
- var exprs = new ScilabString([this.Patm.toString()], [this.A.toString()], [this.ze1.toString()], [this.ze2.toString()], [this.zs1.toString()], [this.zs2.toString()], [this.z0.toString()], [this.T0.toString()], [this.p_rho.toString()]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Bache\",sz(1),sz(2));"]);
- this.x = new 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);
- }
- Bache.prototype.details = function Bache() {
- return this.x;
- }
-}
+function Bache() {
+
+ Bache.prototype.define = function Bache() {
+ this.in1 = 2;
+ this.out = 3;
+
+ var model = scicos_model();
+ model.in = new ScilabDouble(math.transpose(math.range(-1, -this.in1, -1, true)));
+ model.out = new ScilabDouble(math.transpose(math.range(-1, -this.out, -1, true)));
+
+ this.Patm = 1.013E5;
+ this.A = 1;
+ this.ze1 = 40;
+ this.ze2 = 0;
+ this.zs1 = 40;
+ this.zs2 = 0;
+ this.z0 = 30;
+ this.T0 = 290;
+ this.p_rho = 0;
+
+ model.rpar = new ScilabDouble([this.Patm], [this.A], [this.ze1], [this.ze2], [this.zs1], [this.zs2], [this.z0], [this.T0], [this.p_rho]);
+ model.sim = new ScilabString(["Bache"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ 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"]), new ScilabDouble([this.Patm], [this.A], [this.ze1], [this.ze2], [this.zs1], [this.zs2], [this.z0], [this.T0], [this.p_rho]));
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(getData(mo.inputs), '*'), 1));
+ model.out = new ScilabDouble(...ones(size(getData(mo.outputs), '*'), 1));
+
+ var exprs = new ScilabString([this.Patm.toString()], [this.A.toString()], [this.ze1.toString()], [this.ze2.toString()], [this.zs1.toString()], [this.zs2.toString()], [this.z0.toString()], [this.T0.toString()], [this.p_rho.toString()]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Bache\",sz(1),sz(2));"]);
+ this.x = new 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);
+ }
+ Bache.prototype.details = function Bache() {
+ return this.x;
+ }
+}
diff --git a/data_structures_correct/CANIMXY.js b/src/main/webapp/data_structures_correct/CANIMXY.js
index bdb38f3..bdb38f3 100644
--- a/data_structures_correct/CANIMXY.js
+++ b/src/main/webapp/data_structures_correct/CANIMXY.js
diff --git a/data_structures_correct/CANIMXY3D.js b/src/main/webapp/data_structures_correct/CANIMXY3D.js
index 0a319e6..0a319e6 100644
--- a/data_structures_correct/CANIMXY3D.js
+++ b/src/main/webapp/data_structures_correct/CANIMXY3D.js
diff --git a/data_structures_correct/CBLOCK.js b/src/main/webapp/data_structures_correct/CBLOCK.js
index 5acb078..5acb078 100644
--- a/data_structures_correct/CBLOCK.js
+++ b/src/main/webapp/data_structures_correct/CBLOCK.js
diff --git a/data_structures_correct/CBLOCK4.js b/src/main/webapp/data_structures_correct/CBLOCK4.js
index 74688d4..74688d4 100644
--- a/data_structures_correct/CBLOCK4.js
+++ b/src/main/webapp/data_structures_correct/CBLOCK4.js
diff --git a/data_structures_correct/CCS.js b/src/main/webapp/data_structures_correct/CCS.js
index d1ca10c..d1ca10c 100644
--- a/data_structures_correct/CCS.js
+++ b/src/main/webapp/data_structures_correct/CCS.js
diff --git a/data_structures_correct/CEVENTSCOPE.js b/src/main/webapp/data_structures_correct/CEVENTSCOPE.js
index 390430b..390430b 100644
--- a/data_structures_correct/CEVENTSCOPE.js
+++ b/src/main/webapp/data_structures_correct/CEVENTSCOPE.js
diff --git a/data_structures_correct/CFSCOPE.js b/src/main/webapp/data_structures_correct/CFSCOPE.js
index 7be1e41..7be1e41 100644
--- a/data_structures_correct/CFSCOPE.js
+++ b/src/main/webapp/data_structures_correct/CFSCOPE.js
diff --git a/data_structures_correct/CLINDUMMY_f.js b/src/main/webapp/data_structures_correct/CLINDUMMY_f.js
index 7167f84..7167f84 100644
--- a/data_structures_correct/CLINDUMMY_f.js
+++ b/src/main/webapp/data_structures_correct/CLINDUMMY_f.js
diff --git a/data_structures_correct/CLKFROM.js b/src/main/webapp/data_structures_correct/CLKFROM.js
index eeb78b0..eeb78b0 100644
--- a/data_structures_correct/CLKFROM.js
+++ b/src/main/webapp/data_structures_correct/CLKFROM.js
diff --git a/data_structures_correct/CLKGOTO.js b/src/main/webapp/data_structures_correct/CLKGOTO.js
index a91514f..a91514f 100644
--- a/data_structures_correct/CLKGOTO.js
+++ b/src/main/webapp/data_structures_correct/CLKGOTO.js
diff --git a/data_structures_correct/CLKGotoTagVisibility.js b/src/main/webapp/data_structures_correct/CLKGotoTagVisibility.js
index d1b5553..d1b5553 100644
--- a/data_structures_correct/CLKGotoTagVisibility.js
+++ b/src/main/webapp/data_structures_correct/CLKGotoTagVisibility.js
diff --git a/data_structures_correct/CLKINV_f.js b/src/main/webapp/data_structures_correct/CLKINV_f.js
index 70c142f..70c142f 100644
--- a/data_structures_correct/CLKINV_f.js
+++ b/src/main/webapp/data_structures_correct/CLKINV_f.js
diff --git a/data_structures_correct/CLKOUTV_f.js b/src/main/webapp/data_structures_correct/CLKOUTV_f.js
index 5ea67f1..5ea67f1 100644
--- a/data_structures_correct/CLKOUTV_f.js
+++ b/src/main/webapp/data_structures_correct/CLKOUTV_f.js
diff --git a/data_structures_correct/CLKSOMV_f.js b/src/main/webapp/data_structures_correct/CLKSOMV_f.js
index 6729647..6729647 100644
--- a/data_structures_correct/CLKSOMV_f.js
+++ b/src/main/webapp/data_structures_correct/CLKSOMV_f.js
diff --git a/data_structures_correct/CLKSOM_f.js b/src/main/webapp/data_structures_correct/CLKSOM_f.js
index f67b2a4..f67b2a4 100644
--- a/data_structures_correct/CLKSOM_f.js
+++ b/src/main/webapp/data_structures_correct/CLKSOM_f.js
diff --git a/data_structures_correct/CLOCK_c.js b/src/main/webapp/data_structures_correct/CLOCK_c.js
index b6910b2..b6910b2 100644
--- a/data_structures_correct/CLOCK_c.js
+++ b/src/main/webapp/data_structures_correct/CLOCK_c.js
diff --git a/data_structures_correct/CLR.js b/src/main/webapp/data_structures_correct/CLR.js
index 24d4380..24d4380 100644
--- a/data_structures_correct/CLR.js
+++ b/src/main/webapp/data_structures_correct/CLR.js
diff --git a/data_structures_correct/CLSS.js b/src/main/webapp/data_structures_correct/CLSS.js
index db5bd1b..db5bd1b 100644
--- a/data_structures_correct/CLSS.js
+++ b/src/main/webapp/data_structures_correct/CLSS.js
diff --git a/data_structures_correct/CMSCOPE.js b/src/main/webapp/data_structures_correct/CMSCOPE.js
index 701771a..701771a 100644
--- a/data_structures_correct/CMSCOPE.js
+++ b/src/main/webapp/data_structures_correct/CMSCOPE.js
diff --git a/data_structures_correct/CONST.js b/src/main/webapp/data_structures_correct/CONST.js
index 4efcdc8..4efcdc8 100644
--- a/data_structures_correct/CONST.js
+++ b/src/main/webapp/data_structures_correct/CONST.js
diff --git a/data_structures_correct/CONSTRAINT2_c.js b/src/main/webapp/data_structures_correct/CONSTRAINT2_c.js
index c853059..c853059 100644
--- a/data_structures_correct/CONSTRAINT2_c.js
+++ b/src/main/webapp/data_structures_correct/CONSTRAINT2_c.js
diff --git a/data_structures_correct/CONSTRAINT_c.js b/src/main/webapp/data_structures_correct/CONSTRAINT_c.js
index 88b734b..88b734b 100644
--- a/data_structures_correct/CONSTRAINT_c.js
+++ b/src/main/webapp/data_structures_correct/CONSTRAINT_c.js
diff --git a/data_structures_correct/CONST_f.js b/src/main/webapp/data_structures_correct/CONST_f.js
index 8890f0d..8890f0d 100644
--- a/data_structures_correct/CONST_f.js
+++ b/src/main/webapp/data_structures_correct/CONST_f.js
diff --git a/data_structures_correct/CONST_m.js b/src/main/webapp/data_structures_correct/CONST_m.js
index 0d6a567..0d6a567 100644
--- a/data_structures_correct/CONST_m.js
+++ b/src/main/webapp/data_structures_correct/CONST_m.js
diff --git a/data_structures_correct/CONVERT.js b/src/main/webapp/data_structures_correct/CONVERT.js
index ab56435..ab56435 100644
--- a/data_structures_correct/CONVERT.js
+++ b/src/main/webapp/data_structures_correct/CONVERT.js
diff --git a/data_structures_correct/COSBLK_f.js b/src/main/webapp/data_structures_correct/COSBLK_f.js
index 4e05648..4e05648 100644
--- a/data_structures_correct/COSBLK_f.js
+++ b/src/main/webapp/data_structures_correct/COSBLK_f.js
diff --git a/data_structures_correct/CSCOPE.js b/src/main/webapp/data_structures_correct/CSCOPE.js
index 87571d4..87571d4 100644
--- a/data_structures_correct/CSCOPE.js
+++ b/src/main/webapp/data_structures_correct/CSCOPE.js
diff --git a/data_structures_correct/CSCOPXY.js b/src/main/webapp/data_structures_correct/CSCOPXY.js
index d142617..d142617 100644
--- a/data_structures_correct/CSCOPXY.js
+++ b/src/main/webapp/data_structures_correct/CSCOPXY.js
diff --git a/data_structures_correct/CSCOPXY3D.js b/src/main/webapp/data_structures_correct/CSCOPXY3D.js
index 5f389a5..5f389a5 100644
--- a/data_structures_correct/CSCOPXY3D.js
+++ b/src/main/webapp/data_structures_correct/CSCOPXY3D.js
diff --git a/data_structures_correct/CUMSUM.js b/src/main/webapp/data_structures_correct/CUMSUM.js
index 8e6a1ae..8e6a1ae 100644
--- a/data_structures_correct/CUMSUM.js
+++ b/src/main/webapp/data_structures_correct/CUMSUM.js
diff --git a/data_structures_correct/CURV_f.js b/src/main/webapp/data_structures_correct/CURV_f.js
index 598f49e..598f49e 100644
--- a/data_structures_correct/CURV_f.js
+++ b/src/main/webapp/data_structures_correct/CURV_f.js
diff --git a/data_structures_correct/CVS.js b/src/main/webapp/data_structures_correct/CVS.js
index 8643d0e..e671137 100644
--- a/data_structures_correct/CVS.js
+++ b/src/main/webapp/data_structures_correct/CVS.js
@@ -1,58 +1,58 @@
-function CVS() {
-
- CVS.prototype.define = function CVS() {
- this.ModelName = "CVS";
- this.PrametersValue = new ScilabDouble();
- this.ParametersName = new ScilabDouble();
- var model = scicos_model();
- this.Typein = [];
- this.Typeout = [];
- this.MI = [];
- this.MO = [];
- this.P = [[2,50,1,0],[70,98,2,0],[70,2,-2,0]];
- this.PortName = [["vin"],["p"],["n"]];
-
- for (var i = 0; i < size(this.P, "r"); i++) {
- if (this.P[i][2] == 1) {
- this.Typein.push(["E"]);
- this.MI.push(this.PortName[i]);
- }
-
- if (this.P[i][2] == 2) {
- this.Typein.push(["I"]);
- this.MI.push(this.PortName[i]);
- }
- if (this.P[i][2] == -1) {
- this.Typeout.push(["E"]);
- this.MO.push(this.PortName[i]);
- }
- if (this.P[i][2] == -2) {
- this.Typeout.push(["I"]);
- this.MO.push(this.PortName[i]);
- }
- }
-
- var mo = new modelica_function();
- model.sim = new ScilabString([this.ModelName]);
- mo.inputs = new ScilabString(...this.MI);
- mo.outputs = new ScilabString(...this.MO);
- model.rpar = this.PrametersValue;
- mo.parameters = list(this.ParametersName, this.PrametersValue, new ScilabDouble(...zeros(getData(this.ParametersName))));
- var exprs = new ScilabDouble();
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CVS\",sz(1),sz(2));"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
- mo.model = new ScilabString([this.ModelName]);
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
- model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
- this.x = new standard_define(new ScilabDouble([2.1, 3]), model, exprs, list(new ScilabString([gr_i]), new ScilabDouble([0])));
- this.x.graphics.in_implicit = new ScilabDouble(this.Typein);
- this.x.graphics.out_implicit = new ScilabDouble(this.Typeout);
- return new BasicBlock(this.x);
- }
-
- CVS.prototype.details = function CVS() {
- return this.x;
- }
-}
+function CVS() {
+
+ CVS.prototype.define = function CVS() {
+ this.ModelName = "CVS";
+ this.PrametersValue = new ScilabDouble();
+ this.ParametersName = new ScilabDouble();
+ var model = scicos_model();
+ this.Typein = [];
+ this.Typeout = [];
+ this.MI = [];
+ this.MO = [];
+ this.P = [[2,50,1,0],[70,98,2,0],[70,2,-2,0]];
+ this.PortName = [["vin"],["p"],["n"]];
+
+ for (var i = 0; i < size(this.P, "r"); i++) {
+ if (this.P[i][2] == 1) {
+ this.Typein.push(["E"]);
+ this.MI.push(this.PortName[i]);
+ }
+
+ if (this.P[i][2] == 2) {
+ this.Typein.push(["I"]);
+ this.MI.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -1) {
+ this.Typeout.push(["E"]);
+ this.MO.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -2) {
+ this.Typeout.push(["I"]);
+ this.MO.push(this.PortName[i]);
+ }
+ }
+
+ var mo = new modelica_function();
+ model.sim = new ScilabString([this.ModelName]);
+ mo.inputs = new ScilabString(...this.MI);
+ mo.outputs = new ScilabString(...this.MO);
+ model.rpar = this.PrametersValue;
+ mo.parameters = list(this.ParametersName, this.PrametersValue, new ScilabDouble(...zeros(getData(this.ParametersName))));
+ var exprs = new ScilabDouble();
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CVS\",sz(1),sz(2));"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+ mo.model = new ScilabString([this.ModelName]);
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
+ model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
+ this.x = new standard_define(new ScilabDouble([2.1, 3]), model, exprs, list(new ScilabString([gr_i]), new ScilabDouble([0])));
+ this.x.graphics.in_implicit = new ScilabDouble(this.Typein);
+ this.x.graphics.out_implicit = new ScilabDouble(this.Typeout);
+ return new BasicBlock(this.x);
+ }
+
+ CVS.prototype.details = function CVS() {
+ return this.x;
+ }
+}
diff --git a/data_structures_correct/Capacitor.js b/src/main/webapp/data_structures_correct/Capacitor.js
index 60e0c1e..5efd0d7 100644
--- a/data_structures_correct/Capacitor.js
+++ b/src/main/webapp/data_structures_correct/Capacitor.js
@@ -1,31 +1,31 @@
-function Capacitor() {
-
- Capacitor.prototype.define = 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 = new modelica_function();
- mo.model = new ScilabString(["Capacitor"]);
- mo.inputs = new ScilabString(["p"]);
- mo.outputs = new ScilabString(["n"]);
- mo.parameters = list(new ScilabString(["C", "v"]), list(new ScilabDouble([C]), new ScilabDouble([v])), new ScilabDouble([0, 1]));
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
- model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
-
- var exprs = new ScilabString([C], [v]);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Capacitor\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2, 1.1]), model, exprs, list(gr_i, new ScilabDouble([0])));
- this.x.graphics.in_implicit = new ScilabString(["I"]);
- this.x.graphics.out_implicit = new ScilabString(["I"]);
- return new BasicBlock(this.x);
- }
- Capacitor.prototype.details = function Capacitor() {
- return this.x;
- }
-}
+function Capacitor() {
+
+ Capacitor.prototype.define = 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 = new modelica_function();
+ mo.model = new ScilabString(["Capacitor"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["n"]);
+ mo.parameters = list(new ScilabString(["C", "v"]), list(new ScilabDouble([C]), new ScilabDouble([v])), new ScilabDouble([0, 1]));
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
+ model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
+
+ var exprs = new ScilabString([C], [v]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Capacitor\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 1.1]), model, exprs, list(gr_i, new ScilabDouble([0])));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x);
+ }
+ Capacitor.prototype.details = function Capacitor() {
+ return this.x;
+ }
+}
diff --git a/data_structures_correct/ConstantVoltage.js b/src/main/webapp/data_structures_correct/ConstantVoltage.js
index cb57690..a79318a 100644
--- a/data_structures_correct/ConstantVoltage.js
+++ b/src/main/webapp/data_structures_correct/ConstantVoltage.js
@@ -1,32 +1,32 @@
-function ConstantVoltage() {
-
- ConstantVoltage.prototype.define = function ConstantVoltage() {
- this.V = 0.01;
-
- var model = scicos_model();
- model.rpar = new ScilabDouble([this.V]);
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.sim = new ScilabString(["ConstantVoltage"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var mo = new modelica_function();
- mo.model = new ScilabString(["ConstantVoltage"]);
- mo.inputs = new ScilabString(["p"]);
- mo.outputs = new ScilabString(["n"]);
- mo.parameters = list(new ScilabString(["V"]), list(new ScilabDouble([this.V])));
- model.equations = mo;
-
- var exprs = new ScilabString([this.V]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"ConstantVoltage\",sz(1),sz(2));"]);
- this.x = standard_define([1.5, 1.1], model, exprs, list(gr_i, new ScilabDouble([0])));
- this.x.graphics.in_implicit = new ScilabString(["I"]);
- this.x.graphics.out_implicit = new ScilabString(["I"]);
- return new BasicBlock(this.x);
- }
- ConstantVoltage.prototype.details = function ConstantVoltage() {
- return this.x;
- }
-}
+function ConstantVoltage() {
+
+ ConstantVoltage.prototype.define = function ConstantVoltage() {
+ this.V = 0.01;
+
+ var model = scicos_model();
+ model.rpar = new ScilabDouble([this.V]);
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.sim = new ScilabString(["ConstantVoltage"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var mo = new modelica_function();
+ mo.model = new ScilabString(["ConstantVoltage"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["n"]);
+ mo.parameters = list(new ScilabString(["V"]), list(new ScilabDouble([this.V])));
+ model.equations = mo;
+
+ var exprs = new ScilabString([this.V]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"ConstantVoltage\",sz(1),sz(2));"]);
+ this.x = standard_define([1.5, 1.1], model, exprs, list(gr_i, new ScilabDouble([0])));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x);
+ }
+ ConstantVoltage.prototype.details = function ConstantVoltage() {
+ return this.x;
+ }
+}
diff --git a/data_structures_correct/Counter.js b/src/main/webapp/data_structures_correct/Counter.js
index c884e95..c884e95 100644
--- a/data_structures_correct/Counter.js
+++ b/src/main/webapp/data_structures_correct/Counter.js
diff --git a/data_structures_correct/CurrentSensor.js b/src/main/webapp/data_structures_correct/CurrentSensor.js
index a94201c..4559446 100644
--- a/data_structures_correct/CurrentSensor.js
+++ b/src/main/webapp/data_structures_correct/CurrentSensor.js
@@ -1,29 +1,29 @@
-function CurrentSensor() {
-
- CurrentSensor.prototype.define = function CurrentSensor() {
- var model = scicos_model();
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1], [1]);
- model.sim = new ScilabString(["CurrentSensor"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- mo.model = new ScilabString(["CurrentSensor"]);
- mo.inputs = new ScilabString(["p"]);
- mo.outputs = new ScilabString(["n"], ["i"]);
- model.equations = mo;
-
- var exprs = new ScilabDouble();
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CurrentSensor\",sz(1),sz(2));"]);
- this.x = standard_define(new ScilabDouble([2, 2]), model, exprs, list(gr_i, new ScilabDouble([0])));
- this.x.graphics.in_implicit = new ScilabString(["I"]);
- this.x.graphics.out_implicit = new ScilabString(["I"], ["E"]);
- return new BasicBlock(this.x);
- }
-
- CurrentSensor.prototype.details = function CurrentSensor() {
- return this.x;
- }
-}
+function CurrentSensor() {
+
+ CurrentSensor.prototype.define = function CurrentSensor() {
+ var model = scicos_model();
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1], [1]);
+ model.sim = new ScilabString(["CurrentSensor"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ mo.model = new ScilabString(["CurrentSensor"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["n"], ["i"]);
+ model.equations = mo;
+
+ var exprs = new ScilabDouble();
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CurrentSensor\",sz(1),sz(2));"]);
+ this.x = standard_define(new ScilabDouble([2, 2]), model, exprs, list(gr_i, new ScilabDouble([0])));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"], ["E"]);
+ return new BasicBlock(this.x);
+ }
+
+ CurrentSensor.prototype.details = function CurrentSensor() {
+ return this.x;
+ }
+}
diff --git a/data_structures_correct/DEADBAND.js b/src/main/webapp/data_structures_correct/DEADBAND.js
index 91303b3..91303b3 100644
--- a/data_structures_correct/DEADBAND.js
+++ b/src/main/webapp/data_structures_correct/DEADBAND.js
diff --git a/data_structures_correct/DEBUG.js b/src/main/webapp/data_structures_correct/DEBUG.js
index 886305e..886305e 100644
--- a/data_structures_correct/DEBUG.js
+++ b/src/main/webapp/data_structures_correct/DEBUG.js
diff --git a/data_structures_correct/DELAYV_f.js b/src/main/webapp/data_structures_correct/DELAYV_f.js
index 3cdfe28..3cdfe28 100644
--- a/data_structures_correct/DELAYV_f.js
+++ b/src/main/webapp/data_structures_correct/DELAYV_f.js
diff --git a/data_structures_correct/DELAY_f.js b/src/main/webapp/data_structures_correct/DELAY_f.js
index 650ac12..650ac12 100644
--- a/data_structures_correct/DELAY_f.js
+++ b/src/main/webapp/data_structures_correct/DELAY_f.js
diff --git a/data_structures_correct/DEMUX.js b/src/main/webapp/data_structures_correct/DEMUX.js
index 4975c52..4975c52 100644
--- a/data_structures_correct/DEMUX.js
+++ b/src/main/webapp/data_structures_correct/DEMUX.js
diff --git a/data_structures_correct/DEMUX_f.js b/src/main/webapp/data_structures_correct/DEMUX_f.js
index ed0f26c..ed0f26c 100644
--- a/data_structures_correct/DEMUX_f.js
+++ b/src/main/webapp/data_structures_correct/DEMUX_f.js
diff --git a/data_structures_correct/DERIV.js b/src/main/webapp/data_structures_correct/DERIV.js
index 6fc1796..6fc1796 100644
--- a/data_structures_correct/DERIV.js
+++ b/src/main/webapp/data_structures_correct/DERIV.js
diff --git a/data_structures_correct/DFLIPFLOP.js b/src/main/webapp/data_structures_correct/DFLIPFLOP.js
index d99813e..d99813e 100644
--- a/data_structures_correct/DFLIPFLOP.js
+++ b/src/main/webapp/data_structures_correct/DFLIPFLOP.js
diff --git a/data_structures_correct/DIFF_f.js b/src/main/webapp/data_structures_correct/DIFF_f.js
index d4da04b..d4da04b 100644
--- a/data_structures_correct/DIFF_f.js
+++ b/src/main/webapp/data_structures_correct/DIFF_f.js
diff --git a/data_structures_correct/DLR.js b/src/main/webapp/data_structures_correct/DLR.js
index 5a3f557..5a3f557 100644
--- a/data_structures_correct/DLR.js
+++ b/src/main/webapp/data_structures_correct/DLR.js
diff --git a/data_structures_correct/DLRADAPT_f.js b/src/main/webapp/data_structures_correct/DLRADAPT_f.js
index 8b68940..8b68940 100644
--- a/data_structures_correct/DLRADAPT_f.js
+++ b/src/main/webapp/data_structures_correct/DLRADAPT_f.js
diff --git a/data_structures_correct/DLSS.js b/src/main/webapp/data_structures_correct/DLSS.js
index 39a6aaf..39a6aaf 100644
--- a/data_structures_correct/DLSS.js
+++ b/src/main/webapp/data_structures_correct/DLSS.js
diff --git a/data_structures_correct/DOLLAR.js b/src/main/webapp/data_structures_correct/DOLLAR.js
index 5e6dffb..5e6dffb 100644
--- a/data_structures_correct/DOLLAR.js
+++ b/src/main/webapp/data_structures_correct/DOLLAR.js
diff --git a/data_structures_correct/DOLLAR_f.js b/src/main/webapp/data_structures_correct/DOLLAR_f.js
index d4625b7..d4625b7 100644
--- a/data_structures_correct/DOLLAR_f.js
+++ b/src/main/webapp/data_structures_correct/DOLLAR_f.js
diff --git a/data_structures_correct/DOLLAR_m.js b/src/main/webapp/data_structures_correct/DOLLAR_m.js
index d39a88f..d39a88f 100644
--- a/data_structures_correct/DOLLAR_m.js
+++ b/src/main/webapp/data_structures_correct/DOLLAR_m.js
diff --git a/data_structures_correct/Diode.js b/src/main/webapp/data_structures_correct/Diode.js
index 90177bf..8245635 100644
--- a/data_structures_correct/Diode.js
+++ b/src/main/webapp/data_structures_correct/Diode.js
@@ -1,36 +1,36 @@
-function Diode() {
-
- Diode.prototype.define = function Diode() {
-
- this.Ids = 1.e-6;
- this.Vt = 0.04;
- this.Maxexp = 15;
- this.R = 1.e8;
-
- var model = scicos_model();
- model.rpar = new ScilabDouble([this.Ids], [this.Vt], [this.Maxexp], [this.R]);
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.sim = new ScilabString(["Diode"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- mo.model = new ScilabString(["Diode"]);
- mo.inputs = new ScilabString(["p"]);
- mo.outputs = new ScilabString(["n"]);
- mo.parameters = list(new ScilabString(["Ids", "Vt", "Maxexp", "R"]), list(new ScilabDouble([this.Ids]), new ScilabDouble([this.Vt]), new ScilabDouble([this.Maxexp]), new ScilabDouble([this.R])));
- model.equations = mo;
-
- var exprs = new ScilabString([this.Ids], [this.Vt], [this.Maxexp], [this.R]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Diode\",sz(1),sz(2));"]);
- this.x = standard_define(new ScilabDouble([2, 1]), model, exprs, list(gr_i, 0));
- this.x.graphics.in_implicit = new ScilabString(["I"]);
- this.x.graphics.out_implicit = new ScilabString(["I"]);
- return new BasicBlock(this.x);
- }
- Diode.prototype.details = function Diode() {
- return this.x;
- }
-}
+function Diode() {
+
+ Diode.prototype.define = function Diode() {
+
+ this.Ids = 1.e-6;
+ this.Vt = 0.04;
+ this.Maxexp = 15;
+ this.R = 1.e8;
+
+ var model = scicos_model();
+ model.rpar = new ScilabDouble([this.Ids], [this.Vt], [this.Maxexp], [this.R]);
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.sim = new ScilabString(["Diode"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ mo.model = new ScilabString(["Diode"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["n"]);
+ mo.parameters = list(new ScilabString(["Ids", "Vt", "Maxexp", "R"]), list(new ScilabDouble([this.Ids]), new ScilabDouble([this.Vt]), new ScilabDouble([this.Maxexp]), new ScilabDouble([this.R])));
+ model.equations = mo;
+
+ var exprs = new ScilabString([this.Ids], [this.Vt], [this.Maxexp], [this.R]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Diode\",sz(1),sz(2));"]);
+ this.x = standard_define(new ScilabDouble([2, 1]), model, exprs, list(gr_i, 0));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x);
+ }
+ Diode.prototype.details = function Diode() {
+ return this.x;
+ }
+}
diff --git a/data_structures_correct/EDGETRIGGER.js b/src/main/webapp/data_structures_correct/EDGETRIGGER.js
index 5245267..5245267 100644
--- a/data_structures_correct/EDGETRIGGER.js
+++ b/src/main/webapp/data_structures_correct/EDGETRIGGER.js
diff --git a/data_structures_correct/EDGE_TRIGGER.js b/src/main/webapp/data_structures_correct/EDGE_TRIGGER.js
index 20aa23a..20aa23a 100644
--- a/data_structures_correct/EDGE_TRIGGER.js
+++ b/src/main/webapp/data_structures_correct/EDGE_TRIGGER.js
diff --git a/data_structures_correct/ENDBLK.js b/src/main/webapp/data_structures_correct/ENDBLK.js
index e3ca767..e3ca767 100644
--- a/data_structures_correct/ENDBLK.js
+++ b/src/main/webapp/data_structures_correct/ENDBLK.js
diff --git a/data_structures_correct/END_c.js b/src/main/webapp/data_structures_correct/END_c.js
index 37c6f21..37c6f21 100644
--- a/data_structures_correct/END_c.js
+++ b/src/main/webapp/data_structures_correct/END_c.js
diff --git a/data_structures_correct/ESELECT_f.js b/src/main/webapp/data_structures_correct/ESELECT_f.js
index dc0ab87..dc0ab87 100644
--- a/data_structures_correct/ESELECT_f.js
+++ b/src/main/webapp/data_structures_correct/ESELECT_f.js
diff --git a/data_structures_correct/EVTDLY_c.js b/src/main/webapp/data_structures_correct/EVTDLY_c.js
index 46b336c..46b336c 100644
--- a/data_structures_correct/EVTDLY_c.js
+++ b/src/main/webapp/data_structures_correct/EVTDLY_c.js
diff --git a/data_structures_correct/EVTDLY_f.js b/src/main/webapp/data_structures_correct/EVTDLY_f.js
index 1bb4e29..1bb4e29 100644
--- a/data_structures_correct/EVTDLY_f.js
+++ b/src/main/webapp/data_structures_correct/EVTDLY_f.js
diff --git a/data_structures_correct/EVTGEN_f.js b/src/main/webapp/data_structures_correct/EVTGEN_f.js
index ba7197f..ba7197f 100644
--- a/data_structures_correct/EVTGEN_f.js
+++ b/src/main/webapp/data_structures_correct/EVTGEN_f.js
diff --git a/data_structures_correct/EVTVARDLY.js b/src/main/webapp/data_structures_correct/EVTVARDLY.js
index 816c0a5..816c0a5 100644
--- a/data_structures_correct/EVTVARDLY.js
+++ b/src/main/webapp/data_structures_correct/EVTVARDLY.js
diff --git a/data_structures_correct/EXPBLK_m.js b/src/main/webapp/data_structures_correct/EXPBLK_m.js
index b5cf28b..b5cf28b 100644
--- a/data_structures_correct/EXPBLK_m.js
+++ b/src/main/webapp/data_structures_correct/EXPBLK_m.js
diff --git a/data_structures_correct/EXTRACT.js b/src/main/webapp/data_structures_correct/EXTRACT.js
index 387f465..387f465 100644
--- a/data_structures_correct/EXTRACT.js
+++ b/src/main/webapp/data_structures_correct/EXTRACT.js
diff --git a/data_structures_correct/EXTRACTBITS.js b/src/main/webapp/data_structures_correct/EXTRACTBITS.js
index 4f16f21..4f16f21 100644
--- a/data_structures_correct/EXTRACTBITS.js
+++ b/src/main/webapp/data_structures_correct/EXTRACTBITS.js
diff --git a/data_structures_correct/EXTRACTOR.js b/src/main/webapp/data_structures_correct/EXTRACTOR.js
index c8d7a1b..c8d7a1b 100644
--- a/data_structures_correct/EXTRACTOR.js
+++ b/src/main/webapp/data_structures_correct/EXTRACTOR.js
diff --git a/data_structures_correct/EXTTRI.js b/src/main/webapp/data_structures_correct/EXTTRI.js
index 96fdb39..96fdb39 100644
--- a/data_structures_correct/EXTTRI.js
+++ b/src/main/webapp/data_structures_correct/EXTTRI.js
diff --git a/data_structures_correct/Extract_Activation.js b/src/main/webapp/data_structures_correct/Extract_Activation.js
index a13fc27..a13fc27 100644
--- a/data_structures_correct/Extract_Activation.js
+++ b/src/main/webapp/data_structures_correct/Extract_Activation.js
diff --git a/data_structures_correct/FROM.js b/src/main/webapp/data_structures_correct/FROM.js
index f6002b2..f6002b2 100644
--- a/data_structures_correct/FROM.js
+++ b/src/main/webapp/data_structures_correct/FROM.js
diff --git a/data_structures_correct/FROMMO.js b/src/main/webapp/data_structures_correct/FROMMO.js
index a59a1ae..03a6255 100644
--- a/data_structures_correct/FROMMO.js
+++ b/src/main/webapp/data_structures_correct/FROMMO.js
@@ -1,33 +1,33 @@
-function FROMMO() {
-
- FROMMO.prototype.define = function FROMMO() {
-
- var model = scicos_model();
- model.sim = new ScilabString(["frommo"]);
- model.in = new ScilabDouble();
- model.in2 = new ScilabDouble();
- model.intyp = new ScilabDouble([1]);
- model.out = new ScilabDouble([-1]);
- model.out2 = new ScilabDouble([-2]);
- model.outtyp = new ScilabDouble([-1]);
- model.ipar = new ScilabDouble();
- model.opar = list(new ScilabString(["A"]));
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var mo = new modelica_function();
- mo.model = new ScilabString(["frommo"]);
- mo.outputs = new ScilabString(["n"]);
-
- var exprs = new ScilabString(["A"]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"FROMMO\",sz(1),sz(2));"]);
- 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);
- }
- FROMMO.prototype.details = function FROMMO() {
- return this.x;
- }
-}
-
+function FROMMO() {
+
+ FROMMO.prototype.define = function FROMMO() {
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["frommo"]);
+ model.in = new ScilabDouble();
+ model.in2 = new ScilabDouble();
+ model.intyp = new ScilabDouble([1]);
+ model.out = new ScilabDouble([-1]);
+ model.out2 = new ScilabDouble([-2]);
+ model.outtyp = new ScilabDouble([-1]);
+ model.ipar = new ScilabDouble();
+ model.opar = list(new ScilabString(["A"]));
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var mo = new modelica_function();
+ mo.model = new ScilabString(["frommo"]);
+ mo.outputs = new ScilabString(["n"]);
+
+ var exprs = new ScilabString(["A"]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"FROMMO\",sz(1),sz(2));"]);
+ 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);
+ }
+ FROMMO.prototype.details = function FROMMO() {
+ return this.x;
+ }
+}
+
diff --git a/data_structures_correct/FROMWSB.js b/src/main/webapp/data_structures_correct/FROMWSB.js
index 8ccfebf..8ccfebf 100644
--- a/data_structures_correct/FROMWSB.js
+++ b/src/main/webapp/data_structures_correct/FROMWSB.js
diff --git a/data_structures_correct/Flowmeter.js b/src/main/webapp/data_structures_correct/Flowmeter.js
index a10f96b..cf27815 100644
--- a/data_structures_correct/Flowmeter.js
+++ b/src/main/webapp/data_structures_correct/Flowmeter.js
@@ -1,61 +1,61 @@
-function Flowmeter() {
-
- Flowmeter.prototype.define = function Flowmeter() {
- this.ModelName = "Flowmeter";
- this.PrametersValue = 1;
- this.ParametersName = "Qini";
-
- var model = scicos_model();
-
- this.Typein = [];
- this.Typeout = [];
-
- this.MI = [];
- this.MO = [];
- this.P = [[50,105,-1,90],[0,10,2,0],[101,10,-2,0]];
- this.PortName = [["Mesure"],["C1"],["C2"]];
-
- for (var i = 0; i < size(this.P, "r"); i++) {
- if (this.P[i][2] == 1) {
- this.Typein.push(["E"]);
- this.MI.push(this.PortName[i]);
- }
-
- if (this.P[i][2] == 2) {
- this.Typein.push(["I"]);
- this.MI.push(this.PortName[i]);
- }
- if (this.P[i][2] == -1) {
- this.Typeout.push(["E"]);
- this.MO.push(this.PortName[i]);
- }
- if (this.P[i][2] == -2) {
- this.Typeout.push(["I"]);
- this.MO.push(this.PortName[i]);
- }
- }
-
- var mo = new modelica_function();
- model.sim = new ScilabString([this.ModelName]);
- mo.inputs = new ScilabString(...this.MI);
- mo.outputs = new ScilabString(...this.MO);
- model.rpar = new ScilabDouble([this.PrametersValue]);
- mo.parameters = list(new ScilabString([this.ParametersName]), new ScilabDouble([this.PrametersValue]), new ScilabDouble(zeros([this.ParametersName])));
- var exprs = new ScilabString(["1"]);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Flowmeter\",sz(1),sz(2));"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
- mo.model = new ScilabString([this.ModelName]);
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
- model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, list(new ScilabString([gr_i]), new ScilabDouble([0])));
- this.x.graphics.in_implicit = new ScilabDouble(this.Typein);
- this.x.graphics.out_implicit = new ScilabDouble(this.Typeout);
- return new BasicBlock(this.x);
- }
-
- Flowmeter.prototype.details = function Flowmeter() {
- return this.x;
- }
-}
+function Flowmeter() {
+
+ Flowmeter.prototype.define = function Flowmeter() {
+ this.ModelName = "Flowmeter";
+ this.PrametersValue = 1;
+ this.ParametersName = "Qini";
+
+ var model = scicos_model();
+
+ this.Typein = [];
+ this.Typeout = [];
+
+ this.MI = [];
+ this.MO = [];
+ this.P = [[50,105,-1,90],[0,10,2,0],[101,10,-2,0]];
+ this.PortName = [["Mesure"],["C1"],["C2"]];
+
+ for (var i = 0; i < size(this.P, "r"); i++) {
+ if (this.P[i][2] == 1) {
+ this.Typein.push(["E"]);
+ this.MI.push(this.PortName[i]);
+ }
+
+ if (this.P[i][2] == 2) {
+ this.Typein.push(["I"]);
+ this.MI.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -1) {
+ this.Typeout.push(["E"]);
+ this.MO.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -2) {
+ this.Typeout.push(["I"]);
+ this.MO.push(this.PortName[i]);
+ }
+ }
+
+ var mo = new modelica_function();
+ model.sim = new ScilabString([this.ModelName]);
+ mo.inputs = new ScilabString(...this.MI);
+ mo.outputs = new ScilabString(...this.MO);
+ model.rpar = new ScilabDouble([this.PrametersValue]);
+ mo.parameters = list(new ScilabString([this.ParametersName]), new ScilabDouble([this.PrametersValue]), new ScilabDouble(zeros([this.ParametersName])));
+ var exprs = new ScilabString(["1"]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Flowmeter\",sz(1),sz(2));"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+ mo.model = new ScilabString([this.ModelName]);
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
+ model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, list(new ScilabString([gr_i]), new ScilabDouble([0])));
+ this.x.graphics.in_implicit = new ScilabDouble(this.Typein);
+ this.x.graphics.out_implicit = new ScilabDouble(this.Typeout);
+ return new BasicBlock(this.x);
+ }
+
+ Flowmeter.prototype.details = function Flowmeter() {
+ return this.x;
+ }
+}
diff --git a/data_structures_correct/GAINBLK.js b/src/main/webapp/data_structures_correct/GAINBLK.js
index f4d758e..f4d758e 100644
--- a/data_structures_correct/GAINBLK.js
+++ b/src/main/webapp/data_structures_correct/GAINBLK.js
diff --git a/data_structures_correct/GAINBLK_f.js b/src/main/webapp/data_structures_correct/GAINBLK_f.js
index 1e0ae00..1e0ae00 100644
--- a/data_structures_correct/GAINBLK_f.js
+++ b/src/main/webapp/data_structures_correct/GAINBLK_f.js
diff --git a/data_structures_correct/GAIN_f.js b/src/main/webapp/data_structures_correct/GAIN_f.js
index b102bab..b102bab 100644
--- a/data_structures_correct/GAIN_f.js
+++ b/src/main/webapp/data_structures_correct/GAIN_f.js
diff --git a/data_structures_correct/GENERAL_f.js b/src/main/webapp/data_structures_correct/GENERAL_f.js
index 10081f9..10081f9 100644
--- a/data_structures_correct/GENERAL_f.js
+++ b/src/main/webapp/data_structures_correct/GENERAL_f.js
diff --git a/data_structures_correct/GENSIN_f.js b/src/main/webapp/data_structures_correct/GENSIN_f.js
index 66542ea..66542ea 100644
--- a/data_structures_correct/GENSIN_f.js
+++ b/src/main/webapp/data_structures_correct/GENSIN_f.js
diff --git a/data_structures_correct/GENSQR_f.js b/src/main/webapp/data_structures_correct/GENSQR_f.js
index 4a48f00..4a48f00 100644
--- a/data_structures_correct/GENSQR_f.js
+++ b/src/main/webapp/data_structures_correct/GENSQR_f.js
diff --git a/data_structures_correct/GOTO.js b/src/main/webapp/data_structures_correct/GOTO.js
index 7f0a421..7f0a421 100644
--- a/data_structures_correct/GOTO.js
+++ b/src/main/webapp/data_structures_correct/GOTO.js
diff --git a/data_structures_correct/GOTOMO.js b/src/main/webapp/data_structures_correct/GOTOMO.js
index 6da9404..244930d 100644
--- a/data_structures_correct/GOTOMO.js
+++ b/src/main/webapp/data_structures_correct/GOTOMO.js
@@ -1,33 +1,33 @@
-function GOTOMO() {
-
- GOTOMO.prototype.define = function GOTOMO() {
-
- var model = scicos_model();
- model.sim = new ScilabString(["gotomo"]);
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([-2]);
- model.intyp = new ScilabDouble();
- model.out = new ScilabDouble();
- model.out2 = new ScilabDouble();
- model.outtyp = new ScilabDouble([1]);
- model.ipar = new ScilabDouble([1]);
- model.opar = list(new ScilabString(["A"]));
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var mo = new modelica_function();
- mo.model = new ScilabString(["gotomo"]);
- mo.inputs = new ScilabString(["p"]);
-
- var exprs = new ScilabString(["A"], [sci2exp(1)]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GOTOMO\",sz(1),sz(2));"]);
- 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);
- }
- GOTOMO.prototype.details = function GOTOMO() {
- return this.x;
- }
-}
-
+function GOTOMO() {
+
+ GOTOMO.prototype.define = function GOTOMO() {
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["gotomo"]);
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([-2]);
+ model.intyp = new ScilabDouble();
+ model.out = new ScilabDouble();
+ model.out2 = new ScilabDouble();
+ model.outtyp = new ScilabDouble([1]);
+ model.ipar = new ScilabDouble([1]);
+ model.opar = list(new ScilabString(["A"]));
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var mo = new modelica_function();
+ mo.model = new ScilabString(["gotomo"]);
+ mo.inputs = new ScilabString(["p"]);
+
+ var exprs = new ScilabString(["A"], [sci2exp(1)]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GOTOMO\",sz(1),sz(2));"]);
+ 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);
+ }
+ GOTOMO.prototype.details = function GOTOMO() {
+ return this.x;
+ }
+}
+
diff --git a/data_structures_correct/GotoTagVisibility.js b/src/main/webapp/data_structures_correct/GotoTagVisibility.js
index 61eb71c..61eb71c 100644
--- a/data_structures_correct/GotoTagVisibility.js
+++ b/src/main/webapp/data_structures_correct/GotoTagVisibility.js
diff --git a/data_structures_correct/GotoTagVisibilityMO.js b/src/main/webapp/data_structures_correct/GotoTagVisibilityMO.js
index 06a4356..06a4356 100644
--- a/data_structures_correct/GotoTagVisibilityMO.js
+++ b/src/main/webapp/data_structures_correct/GotoTagVisibilityMO.js
diff --git a/data_structures_correct/Ground.js b/src/main/webapp/data_structures_correct/Ground.js
index ba365af..a725eeb 100644
--- a/data_structures_correct/Ground.js
+++ b/src/main/webapp/data_structures_correct/Ground.js
@@ -1,30 +1,30 @@
-function Ground() {
-
- Ground.prototype.define = function Ground() {
-
- var model = scicos_model();
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble();
- model.sim = new ScilabString(["Ground"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- mo.model = new ScilabString(["Ground"]);
- mo.inputs = new ScilabString(["p"]);
- mo.outputs = new ScilabDouble();
- model.equations = mo;
-
- var exprs = new ScilabString([""]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Ground\",sz(1),sz(2));"]);
- this.x = standard_define(new ScilabDouble([1, 1]), model, exprs, list(gr_i, new ScilabDouble([0])));
- this.x.graphics.in_implicit = new ScilabString(["I"]);
- this.x.graphics.out_implicit = new ScilabString(["I"]);
- return new GroundBlock(this.x);
- }
-
- Ground.prototype.details = function Ground() {
- return this.x;
- }
-}
+function Ground() {
+
+ Ground.prototype.define = function Ground() {
+
+ var model = scicos_model();
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble();
+ model.sim = new ScilabString(["Ground"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ mo.model = new ScilabString(["Ground"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabDouble();
+ model.equations = mo;
+
+ var exprs = new ScilabString([""]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Ground\",sz(1),sz(2));"]);
+ this.x = standard_define(new ScilabDouble([1, 1]), model, exprs, list(gr_i, new ScilabDouble([0])));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new GroundBlock(this.x);
+ }
+
+ Ground.prototype.details = function Ground() {
+ return this.x;
+ }
+}
diff --git a/data_structures_correct/Gyrator.js b/src/main/webapp/data_structures_correct/Gyrator.js
index 569d29f..bafd0d4 100644
--- a/data_structures_correct/Gyrator.js
+++ b/src/main/webapp/data_structures_correct/Gyrator.js
@@ -1,57 +1,57 @@
-function Gyrator() {
-
- Gyrator.prototype.define = function Gyrator() {
- this.ModelName = "Gyrator";
- this.PrametersValue = [[1],[1]];
- this.ParametersName = [["G1"],["G2"]];
- this.model = scicos_model();
- this.Typein = [];
- this.Typeout = [];
- this.MI = [];
- this.MO = [];
- this.P = [[2.5, 90, 2, 0],[2.5, 10, 2, 0],[97.5, 90, -2, 0],[97.5, 10, -2, 0]];
- this.PortName = [["p1"],["n1"],["p2"],["n2"]];
-
- for (var i = 0; i < size(this.P, "r"); i++) {
- if (this.P[i][2] == 1) {
- this.Typein.push(["E"]);
- this.MI.push(this.PortName[i]);
- }
- if (this.P[i][2] == 2) {
- this.Typein.push(["I"]);
- this.MI.push(this.PortName[i]);
- }
- if (this.P[i][2] == -1) {
- this.Typeout.push(["E"]);
- this.MO.push(this.PortName[i]);
- }
- if (this.P[i][2] == -2) {
- this.Typeout.push(["I"]);
- this.MO.push(this.PortName[i]);
- }
- }
- var model = scicos_model();
- var mo = new modelica_function();
- model.sim = new ScilabString([this.ModelName]);
- mo.inputs = new ScilabString(...this.MI);
- mo.outputs = new ScilabString(...this.MO);
- console.log(this.MI);
- model.rpar = new ScilabDouble(...this.PrametersValue);
- mo.parameters = list(new ScilabString(...this.ParametersName), new ScilabDouble(...this.PrametersValue), new ScilabDouble(...zeros(this.ParametersName)));
- var exprs = new ScilabString(["1"], ["1"]);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;Gyrator&quot;,sz(1),sz(2));"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
- mo.model = new ScilabString([this.ModelName]);
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
- model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
- this.x = standard_define([2, 2], model, exprs, list(gr_i, new ScilabDouble([0])));
- this.x.graphics.in_implicit = new ScilabString(...this.Typein);
- this.x.graphics.out_implicit = new ScilabString(...this.Typeout);
- return new BasicBlock(this.x);
- }
- Gyrator.prototype.details = function Gyrator() {
- return this.x;
- }
-}
+function Gyrator() {
+
+ Gyrator.prototype.define = function Gyrator() {
+ this.ModelName = "Gyrator";
+ this.PrametersValue = [[1],[1]];
+ this.ParametersName = [["G1"],["G2"]];
+ this.model = scicos_model();
+ this.Typein = [];
+ this.Typeout = [];
+ this.MI = [];
+ this.MO = [];
+ this.P = [[2.5, 90, 2, 0],[2.5, 10, 2, 0],[97.5, 90, -2, 0],[97.5, 10, -2, 0]];
+ this.PortName = [["p1"],["n1"],["p2"],["n2"]];
+
+ for (var i = 0; i < size(this.P, "r"); i++) {
+ if (this.P[i][2] == 1) {
+ this.Typein.push(["E"]);
+ this.MI.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == 2) {
+ this.Typein.push(["I"]);
+ this.MI.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -1) {
+ this.Typeout.push(["E"]);
+ this.MO.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -2) {
+ this.Typeout.push(["I"]);
+ this.MO.push(this.PortName[i]);
+ }
+ }
+ var model = scicos_model();
+ var mo = new modelica_function();
+ model.sim = new ScilabString([this.ModelName]);
+ mo.inputs = new ScilabString(...this.MI);
+ mo.outputs = new ScilabString(...this.MO);
+ console.log(this.MI);
+ model.rpar = new ScilabDouble(...this.PrametersValue);
+ mo.parameters = list(new ScilabString(...this.ParametersName), new ScilabDouble(...this.PrametersValue), new ScilabDouble(...zeros(this.ParametersName)));
+ var exprs = new ScilabString(["1"], ["1"]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;Gyrator&quot;,sz(1),sz(2));"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+ mo.model = new ScilabString([this.ModelName]);
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
+ model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
+ this.x = standard_define([2, 2], model, exprs, list(gr_i, new ScilabDouble([0])));
+ this.x.graphics.in_implicit = new ScilabString(...this.Typein);
+ this.x.graphics.out_implicit = new ScilabString(...this.Typeout);
+ return new BasicBlock(this.x);
+ }
+ Gyrator.prototype.details = function Gyrator() {
+ return this.x;
+ }
+}
diff --git a/data_structures_correct/HALT_f.js b/src/main/webapp/data_structures_correct/HALT_f.js
index 1d51549..1d51549 100644
--- a/data_structures_correct/HALT_f.js
+++ b/src/main/webapp/data_structures_correct/HALT_f.js
diff --git a/data_structures_correct/HYSTHERESIS.js b/src/main/webapp/data_structures_correct/HYSTHERESIS.js
index cea39de..cea39de 100644
--- a/data_structures_correct/HYSTHERESIS.js
+++ b/src/main/webapp/data_structures_correct/HYSTHERESIS.js
diff --git a/data_structures_correct/IFTHEL_f.js b/src/main/webapp/data_structures_correct/IFTHEL_f.js
index 95971dc..95971dc 100644
--- a/data_structures_correct/IFTHEL_f.js
+++ b/src/main/webapp/data_structures_correct/IFTHEL_f.js
diff --git a/data_structures_correct/INIMPL_f.js b/src/main/webapp/data_structures_correct/INIMPL_f.js
index 81d2374..85bc0f2 100644
--- a/data_structures_correct/INIMPL_f.js
+++ b/src/main/webapp/data_structures_correct/INIMPL_f.js
@@ -1,31 +1,31 @@
-function INIMPL_f() {
-
- INIMPL_f.prototype.define = 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 = new modelica_function();
- mo.model = new ScilabString(["PORT"]);
- mo.outputs = new ScilabString(["n"]);
- mo.inputs = new ScilabDouble();
- model.equations = mo;
-
- var exprs = new ScilabString(["1"]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;INIMPL_f&quot;,sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([1, 1]), model, exprs, gr_i);
- this.x.graphics.out_implicit = new ScilabString(["I"]);
-
- this.implicitInBlock = new ImplicitInBlock(this.x);
- this.displayParameter = [this.implicitInBlock.ordering];
- return this.implicitInBlock;
- }
- INIMPL_f.prototype.details = function INIMPL_f() {
- return this.x;
- }
-}
+function INIMPL_f() {
+
+ INIMPL_f.prototype.define = 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 = new modelica_function();
+ mo.model = new ScilabString(["PORT"]);
+ mo.outputs = new ScilabString(["n"]);
+ mo.inputs = new ScilabDouble();
+ model.equations = mo;
+
+ var exprs = new ScilabString(["1"]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;INIMPL_f&quot;,sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([1, 1]), model, exprs, gr_i);
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+
+ this.implicitInBlock = new ImplicitInBlock(this.x);
+ this.displayParameter = [this.implicitInBlock.ordering];
+ return this.implicitInBlock;
+ }
+ INIMPL_f.prototype.details = function INIMPL_f() {
+ return this.x;
+ }
+}
diff --git a/data_structures_correct/INTEGRAL_f.js b/src/main/webapp/data_structures_correct/INTEGRAL_f.js
index 2bd0b45..2bd0b45 100644
--- a/data_structures_correct/INTEGRAL_f.js
+++ b/src/main/webapp/data_structures_correct/INTEGRAL_f.js
diff --git a/data_structures_correct/INTEGRAL_m.js b/src/main/webapp/data_structures_correct/INTEGRAL_m.js
index 042d5ff..042d5ff 100644
--- a/data_structures_correct/INTEGRAL_m.js
+++ b/src/main/webapp/data_structures_correct/INTEGRAL_m.js
diff --git a/data_structures_correct/INTMUL.js b/src/main/webapp/data_structures_correct/INTMUL.js
index e24c496..e24c496 100644
--- a/data_structures_correct/INTMUL.js
+++ b/src/main/webapp/data_structures_correct/INTMUL.js
diff --git a/data_structures_correct/INTRP2BLK_f.js b/src/main/webapp/data_structures_correct/INTRP2BLK_f.js
index 6d002ab..6d002ab 100644
--- a/data_structures_correct/INTRP2BLK_f.js
+++ b/src/main/webapp/data_structures_correct/INTRP2BLK_f.js
diff --git a/data_structures_correct/INTRPLBLK_f.js b/src/main/webapp/data_structures_correct/INTRPLBLK_f.js
index 2b073e0..2b073e0 100644
--- a/data_structures_correct/INTRPLBLK_f.js
+++ b/src/main/webapp/data_structures_correct/INTRPLBLK_f.js
diff --git a/data_structures_correct/INVBLK.js b/src/main/webapp/data_structures_correct/INVBLK.js
index 34da523..34da523 100644
--- a/data_structures_correct/INVBLK.js
+++ b/src/main/webapp/data_structures_correct/INVBLK.js
diff --git a/data_structures_correct/IN_f.js b/src/main/webapp/data_structures_correct/IN_f.js
index c269a7a..c269a7a 100644
--- a/data_structures_correct/IN_f.js
+++ b/src/main/webapp/data_structures_correct/IN_f.js
diff --git a/data_structures_correct/ISELECT_m.js b/src/main/webapp/data_structures_correct/ISELECT_m.js
index e2f2c10..e2f2c10 100644
--- a/data_structures_correct/ISELECT_m.js
+++ b/src/main/webapp/data_structures_correct/ISELECT_m.js
diff --git a/data_structures_correct/IdealTransformer.js b/src/main/webapp/data_structures_correct/IdealTransformer.js
index d2a9fa5..b6be14d 100644
--- a/data_structures_correct/IdealTransformer.js
+++ b/src/main/webapp/data_structures_correct/IdealTransformer.js
@@ -1,60 +1,60 @@
-function IdealTransformer() {
-
- IdealTransformer.prototype.define = function IdealTransformer() {
- this.ModelName = "IdealTransformer";
- this.PrametersValue = [1];
- this.ParametersName = ["N"];
-
- var model = scicos_model();
-
- this.Typein = [];
- this.Typeout = [];
- this.MI = [];
- this.MO = [];
- this.P = [[2.5,90,2,0],[2.5,10,2,0],[97.5,90,-2,0],[97.5,10,-2,0]];
- this.PortName = [["p1"],["n1"],["p2"],["n2"]];
-
- for (var i = 0; i < size(this.P, "r"); i++) {
- if (this.P[i][2] == 1) {
- this.Typein.push(["E"]);
- this.MI.push(this.PortName[i]);
- }
-
- if (this.P[i][2] == 2) {
- this.Typein.push(["I"]);
- this.MI.push(this.PortName[i]);
- }
- if (this.P[i][2] == -1) {
- this.Typeout.push(["E"]);
- this.MO.push(this.PortName[i]);
- }
- if (this.P[i][2] == -2) {
- this.Typeout.push(["I"]);
- this.MO.push(this.PortName[i]);
- }
- }
- var mo = new modelica_function();
- model.sim = new ScilabString([this.ModelName]);
- mo.inputs = new ScilabString(...this.MI);
- mo.outputs = new ScilabString(...this.MO);
- model.rpar = new ScilabDouble(this.PrametersValue);
- mo.parameters = list(new ScilabString(this.ParametersName), new ScilabDouble(this.PrametersValue), new ScilabDouble(zeros(getData(this.ParametersName))));
- var exprs = new ScilabString(["1"]);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"IdealTransformer\",sz(1),sz(2));"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
- mo.model = new ScilabString([this.ModelName]);
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
- model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
- this.x = new standard_define(new ScilabDouble([2,2]), model, exprs, list(gr_i), new ScilabDouble([0]));
- this.x.graphics.in_implicit = new ScilabDouble(this.Typein);
- this.x.graphics.out_implicit = new ScilabDouble(this.Typeout);
- return new BasicBlock(this.x);
- }
-
- IdealTransformer.prototype.details = function IdealTransformer() {
- return this.x;
- }
-
-}
+function IdealTransformer() {
+
+ IdealTransformer.prototype.define = function IdealTransformer() {
+ this.ModelName = "IdealTransformer";
+ this.PrametersValue = [1];
+ this.ParametersName = ["N"];
+
+ var model = scicos_model();
+
+ this.Typein = [];
+ this.Typeout = [];
+ this.MI = [];
+ this.MO = [];
+ this.P = [[2.5,90,2,0],[2.5,10,2,0],[97.5,90,-2,0],[97.5,10,-2,0]];
+ this.PortName = [["p1"],["n1"],["p2"],["n2"]];
+
+ for (var i = 0; i < size(this.P, "r"); i++) {
+ if (this.P[i][2] == 1) {
+ this.Typein.push(["E"]);
+ this.MI.push(this.PortName[i]);
+ }
+
+ if (this.P[i][2] == 2) {
+ this.Typein.push(["I"]);
+ this.MI.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -1) {
+ this.Typeout.push(["E"]);
+ this.MO.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -2) {
+ this.Typeout.push(["I"]);
+ this.MO.push(this.PortName[i]);
+ }
+ }
+ var mo = new modelica_function();
+ model.sim = new ScilabString([this.ModelName]);
+ mo.inputs = new ScilabString(...this.MI);
+ mo.outputs = new ScilabString(...this.MO);
+ model.rpar = new ScilabDouble(this.PrametersValue);
+ mo.parameters = list(new ScilabString(this.ParametersName), new ScilabDouble(this.PrametersValue), new ScilabDouble(zeros(getData(this.ParametersName))));
+ var exprs = new ScilabString(["1"]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"IdealTransformer\",sz(1),sz(2));"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+ mo.model = new ScilabString([this.ModelName]);
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
+ model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
+ this.x = new standard_define(new ScilabDouble([2,2]), model, exprs, list(gr_i), new ScilabDouble([0]));
+ this.x.graphics.in_implicit = new ScilabDouble(this.Typein);
+ this.x.graphics.out_implicit = new ScilabDouble(this.Typeout);
+ return new BasicBlock(this.x);
+ }
+
+ IdealTransformer.prototype.details = function IdealTransformer() {
+ return this.x;
+ }
+
+}
diff --git a/data_structures_correct/Inductor.js b/src/main/webapp/data_structures_correct/Inductor.js
index b64efe4..ed0406f 100644
--- a/data_structures_correct/Inductor.js
+++ b/src/main/webapp/data_structures_correct/Inductor.js
@@ -1,34 +1,34 @@
-function Inductor() {
-
- Inductor.prototype.define = function Inductor() {
- this.L = 1.0E-5;
-
- var model = scicos_model();
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.rpar = new ScilabDouble([this.L.toExponential(1)]);
- model.sim = new ScilabString(["Inductor"]);
-
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- mo.model = new ScilabString(["Inductor"]);
- mo.inputs = new ScilabString(["p"]);
- mo.outputs = new ScilabString(["n"]);
- mo.parameters = list(new ScilabString(["L"]), list(new ScilabDouble([this.L.toExponential(1)])));
- model.equations = mo;
-
- var exprs = new ScilabString([this.L]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Inductor\",sz(1),sz(2));"]);
- 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);
- }
- Inductor.prototype.details = function Inductor() {
- return this.x;
- }
-}
-
+function Inductor() {
+
+ Inductor.prototype.define = function Inductor() {
+ this.L = 1.0E-5;
+
+ var model = scicos_model();
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([this.L.toExponential(1)]);
+ model.sim = new ScilabString(["Inductor"]);
+
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ mo.model = new ScilabString(["Inductor"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["n"]);
+ mo.parameters = list(new ScilabString(["L"]), list(new ScilabDouble([this.L.toExponential(1)])));
+ model.equations = mo;
+
+ var exprs = new ScilabString([this.L]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Inductor\",sz(1),sz(2));"]);
+ 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);
+ }
+ Inductor.prototype.details = function Inductor() {
+ return this.x;
+ }
+}
+
diff --git a/data_structures_correct/LOGBLK_f.js b/src/main/webapp/data_structures_correct/LOGBLK_f.js
index 07f70f9..07f70f9 100644
--- a/data_structures_correct/LOGBLK_f.js
+++ b/src/main/webapp/data_structures_correct/LOGBLK_f.js
diff --git a/data_structures_correct/LOGIC.js b/src/main/webapp/data_structures_correct/LOGIC.js
index 0c1db7e..0c1db7e 100644
--- a/data_structures_correct/LOGIC.js
+++ b/src/main/webapp/data_structures_correct/LOGIC.js
diff --git a/data_structures_correct/LOGICAL_OP.js b/src/main/webapp/data_structures_correct/LOGICAL_OP.js
index c7ccea1..c7ccea1 100644
--- a/data_structures_correct/LOGICAL_OP.js
+++ b/src/main/webapp/data_structures_correct/LOGICAL_OP.js
diff --git a/data_structures_correct/LOOKUP_f.js b/src/main/webapp/data_structures_correct/LOOKUP_f.js
index bce7f4c..bce7f4c 100644
--- a/data_structures_correct/LOOKUP_f.js
+++ b/src/main/webapp/data_structures_correct/LOOKUP_f.js
diff --git a/data_structures_correct/MATBKSL.js b/src/main/webapp/data_structures_correct/MATBKSL.js
index 22a873c..22a873c 100644
--- a/data_structures_correct/MATBKSL.js
+++ b/src/main/webapp/data_structures_correct/MATBKSL.js
diff --git a/data_structures_correct/MATCATH.js b/src/main/webapp/data_structures_correct/MATCATH.js
index b1dc096..b1dc096 100644
--- a/data_structures_correct/MATCATH.js
+++ b/src/main/webapp/data_structures_correct/MATCATH.js
diff --git a/data_structures_correct/MATCATV.js b/src/main/webapp/data_structures_correct/MATCATV.js
index 317309b..317309b 100644
--- a/data_structures_correct/MATCATV.js
+++ b/src/main/webapp/data_structures_correct/MATCATV.js
diff --git a/data_structures_correct/MATDET.js b/src/main/webapp/data_structures_correct/MATDET.js
index 7005d7c..7005d7c 100644
--- a/data_structures_correct/MATDET.js
+++ b/src/main/webapp/data_structures_correct/MATDET.js
diff --git a/data_structures_correct/MATDIAG.js b/src/main/webapp/data_structures_correct/MATDIAG.js
index c622a95..c622a95 100644
--- a/data_structures_correct/MATDIAG.js
+++ b/src/main/webapp/data_structures_correct/MATDIAG.js
diff --git a/data_structures_correct/MATDIV.js b/src/main/webapp/data_structures_correct/MATDIV.js
index 6715345..6715345 100644
--- a/data_structures_correct/MATDIV.js
+++ b/src/main/webapp/data_structures_correct/MATDIV.js
diff --git a/data_structures_correct/MATEIG.js b/src/main/webapp/data_structures_correct/MATEIG.js
index aefc690..aefc690 100644
--- a/data_structures_correct/MATEIG.js
+++ b/src/main/webapp/data_structures_correct/MATEIG.js
diff --git a/data_structures_correct/MATEXPM.js b/src/main/webapp/data_structures_correct/MATEXPM.js
index 6e58a87..6e58a87 100644
--- a/data_structures_correct/MATEXPM.js
+++ b/src/main/webapp/data_structures_correct/MATEXPM.js
diff --git a/data_structures_correct/MATINV.js b/src/main/webapp/data_structures_correct/MATINV.js
index e118137..e118137 100644
--- a/data_structures_correct/MATINV.js
+++ b/src/main/webapp/data_structures_correct/MATINV.js
diff --git a/data_structures_correct/MATLU.js b/src/main/webapp/data_structures_correct/MATLU.js
index 126d164..126d164 100644
--- a/data_structures_correct/MATLU.js
+++ b/src/main/webapp/data_structures_correct/MATLU.js
diff --git a/data_structures_correct/MATMAGPHI.js b/src/main/webapp/data_structures_correct/MATMAGPHI.js
index 0748d27..0748d27 100644
--- a/data_structures_correct/MATMAGPHI.js
+++ b/src/main/webapp/data_structures_correct/MATMAGPHI.js
diff --git a/data_structures_correct/MATMUL.js b/src/main/webapp/data_structures_correct/MATMUL.js
index 88f425b..88f425b 100644
--- a/data_structures_correct/MATMUL.js
+++ b/src/main/webapp/data_structures_correct/MATMUL.js
diff --git a/data_structures_correct/MATPINV.js b/src/main/webapp/data_structures_correct/MATPINV.js
index 855d8a3..855d8a3 100644
--- a/data_structures_correct/MATPINV.js
+++ b/src/main/webapp/data_structures_correct/MATPINV.js
diff --git a/data_structures_correct/MATRESH.js b/src/main/webapp/data_structures_correct/MATRESH.js
index 1db99fa..1db99fa 100644
--- a/data_structures_correct/MATRESH.js
+++ b/src/main/webapp/data_structures_correct/MATRESH.js
diff --git a/data_structures_correct/MATSING.js b/src/main/webapp/data_structures_correct/MATSING.js
index d99399e..d99399e 100644
--- a/data_structures_correct/MATSING.js
+++ b/src/main/webapp/data_structures_correct/MATSING.js
diff --git a/data_structures_correct/MATSUM.js b/src/main/webapp/data_structures_correct/MATSUM.js
index 5af9624..5af9624 100644
--- a/data_structures_correct/MATSUM.js
+++ b/src/main/webapp/data_structures_correct/MATSUM.js
diff --git a/data_structures_correct/MATTRAN.js b/src/main/webapp/data_structures_correct/MATTRAN.js
index 2ab793a..2ab793a 100644
--- a/data_structures_correct/MATTRAN.js
+++ b/src/main/webapp/data_structures_correct/MATTRAN.js
diff --git a/data_structures_correct/MATZCONJ.js b/src/main/webapp/data_structures_correct/MATZCONJ.js
index 7ef31bf..7ef31bf 100644
--- a/data_structures_correct/MATZCONJ.js
+++ b/src/main/webapp/data_structures_correct/MATZCONJ.js
diff --git a/data_structures_correct/MATZREIM.js b/src/main/webapp/data_structures_correct/MATZREIM.js
index 0d7c68c..0d7c68c 100644
--- a/data_structures_correct/MATZREIM.js
+++ b/src/main/webapp/data_structures_correct/MATZREIM.js
diff --git a/data_structures_correct/MAXMIN.js b/src/main/webapp/data_structures_correct/MAXMIN.js
index c9d7ce6..c9d7ce6 100644
--- a/data_structures_correct/MAXMIN.js
+++ b/src/main/webapp/data_structures_correct/MAXMIN.js
diff --git a/data_structures_correct/MAX_f.js b/src/main/webapp/data_structures_correct/MAX_f.js
index a55e66b..a55e66b 100644
--- a/data_structures_correct/MAX_f.js
+++ b/src/main/webapp/data_structures_correct/MAX_f.js
diff --git a/data_structures_correct/MBLOCK.js b/src/main/webapp/data_structures_correct/MBLOCK.js
index 59f8f59..c916ccd 100644
--- a/data_structures_correct/MBLOCK.js
+++ b/src/main/webapp/data_structures_correct/MBLOCK.js
@@ -1,45 +1,45 @@
-function MBLOCK() {
-
- MBLOCK.prototype.define = function MBLOCK() {
- this.in1 = ["u1"];
- this.intype = ["I"];
- this.out = [["y1"],["y2"]];
- this.outtype = [["I"],["E"]];
- this.param = [["R"],["L"]];
- this.paramv = list(new ScilabDouble([0.1]), new ScilabDouble([0.0001]));
- this.pprop = [[0],[0]];
- this.nameF = "generic";
-
- var exprs = tlist(["MBLOCK", "in", "intype", "out", "outtype", "param", "paramv", "pprop", "nameF", "funtxt"], new ScilabString(["MBLOCK", "in", "intype", "out", "outtype", "param", "paramv", "pprop", "nameF", "funtxt"]), new ScilabString([sci2exp(this.in1)]), new ScilabString([sci2exp(this.intype)]), new ScilabString([sci2exp(this.out)]), new ScilabString([sci2exp(this.outtype)]), new ScilabString([sci2exp(this.param)]), list(new ScilabString([0.1]), new ScilabString([0.0001])), new ScilabString([sci2exp(this.pprop)]), new ScilabString([this.nameF]), new ScilabDouble());
-
- var model = scicos_model();
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
- model.rpar = [];
-
- for (var i = 0; i < this.paramv.length; i++) {
- model.rpar.push(getData(this.paramv[i]));
- }
-
- model.rpar = new ScilabDouble(...model.rpar);
- var mo = new modelica_function();
- mo.model = new ScilabString([this.nameF]);
- mo.parameters = list(new ScilabString(...this.param), this.paramv);
- model.sim = list(mo.model, new ScilabDouble([30004]));
- mo.inputs = new ScilabString(this.in1);
- mo.outputs = new ScilabString(...this.out);
- model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "r"), 1));
- model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "r"), 1));
- model.equations = mo;
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MBLOCK\",sz(1),sz(2));"]);
-
- this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
- this.x.graphics.in_implicit = new ScilabString(this.intype);
- this.x.graphics.out_implicit = new ScilabString(...this.outtype);
- return new BasicBlock(this.x);
- }
-
- MBLOCK.prototype.details = function MBLOCK() {
- return this.x;
- }
-}
+function MBLOCK() {
+
+ MBLOCK.prototype.define = function MBLOCK() {
+ this.in1 = ["u1"];
+ this.intype = ["I"];
+ this.out = [["y1"],["y2"]];
+ this.outtype = [["I"],["E"]];
+ this.param = [["R"],["L"]];
+ this.paramv = list(new ScilabDouble([0.1]), new ScilabDouble([0.0001]));
+ this.pprop = [[0],[0]];
+ this.nameF = "generic";
+
+ var exprs = tlist(["MBLOCK", "in", "intype", "out", "outtype", "param", "paramv", "pprop", "nameF", "funtxt"], new ScilabString(["MBLOCK", "in", "intype", "out", "outtype", "param", "paramv", "pprop", "nameF", "funtxt"]), new ScilabString([sci2exp(this.in1)]), new ScilabString([sci2exp(this.intype)]), new ScilabString([sci2exp(this.out)]), new ScilabString([sci2exp(this.outtype)]), new ScilabString([sci2exp(this.param)]), list(new ScilabString([0.1]), new ScilabString([0.0001])), new ScilabString([sci2exp(this.pprop)]), new ScilabString([this.nameF]), new ScilabDouble());
+
+ var model = scicos_model();
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+ model.rpar = [];
+
+ for (var i = 0; i < this.paramv.length; i++) {
+ model.rpar.push(getData(this.paramv[i]));
+ }
+
+ model.rpar = new ScilabDouble(...model.rpar);
+ var mo = new modelica_function();
+ mo.model = new ScilabString([this.nameF]);
+ mo.parameters = list(new ScilabString(...this.param), this.paramv);
+ model.sim = list(mo.model, new ScilabDouble([30004]));
+ mo.inputs = new ScilabString(this.in1);
+ mo.outputs = new ScilabString(...this.out);
+ model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "r"), 1));
+ model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "r"), 1));
+ model.equations = mo;
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MBLOCK\",sz(1),sz(2));"]);
+
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ this.x.graphics.in_implicit = new ScilabString(this.intype);
+ this.x.graphics.out_implicit = new ScilabString(...this.outtype);
+ return new BasicBlock(this.x);
+ }
+
+ MBLOCK.prototype.details = function MBLOCK() {
+ return this.x;
+ }
+}
diff --git a/data_structures_correct/MCLOCK_f.js b/src/main/webapp/data_structures_correct/MCLOCK_f.js
index b6e1b67..b6e1b67 100644
--- a/data_structures_correct/MCLOCK_f.js
+++ b/src/main/webapp/data_structures_correct/MCLOCK_f.js
diff --git a/data_structures_correct/MFCLCK_f.js b/src/main/webapp/data_structures_correct/MFCLCK_f.js
index 6e0a6aa..6e0a6aa 100644
--- a/data_structures_correct/MFCLCK_f.js
+++ b/src/main/webapp/data_structures_correct/MFCLCK_f.js
diff --git a/data_structures_correct/MIN_f.js b/src/main/webapp/data_structures_correct/MIN_f.js
index e64f3af..e64f3af 100644
--- a/data_structures_correct/MIN_f.js
+++ b/src/main/webapp/data_structures_correct/MIN_f.js
diff --git a/data_structures_correct/MUX.js b/src/main/webapp/data_structures_correct/MUX.js
index f968deb..f968deb 100644
--- a/data_structures_correct/MUX.js
+++ b/src/main/webapp/data_structures_correct/MUX.js
diff --git a/data_structures_correct/MUX_f.js b/src/main/webapp/data_structures_correct/MUX_f.js
index fa55526..fa55526 100644
--- a/data_structures_correct/MUX_f.js
+++ b/src/main/webapp/data_structures_correct/MUX_f.js
diff --git a/data_structures_correct/M_SWITCH.js b/src/main/webapp/data_structures_correct/M_SWITCH.js
index ec04419..ec04419 100644
--- a/data_structures_correct/M_SWITCH.js
+++ b/src/main/webapp/data_structures_correct/M_SWITCH.js
diff --git a/data_structures_correct/M_freq.js b/src/main/webapp/data_structures_correct/M_freq.js
index e335809..e335809 100644
--- a/data_structures_correct/M_freq.js
+++ b/src/main/webapp/data_structures_correct/M_freq.js
diff --git a/data_structures_correct/Modulo_Count.js b/src/main/webapp/data_structures_correct/Modulo_Count.js
index dfff095..dfff095 100644
--- a/data_structures_correct/Modulo_Count.js
+++ b/src/main/webapp/data_structures_correct/Modulo_Count.js
diff --git a/data_structures_correct/NEGTOPOS_f.js b/src/main/webapp/data_structures_correct/NEGTOPOS_f.js
index f28db43..f28db43 100644
--- a/data_structures_correct/NEGTOPOS_f.js
+++ b/src/main/webapp/data_structures_correct/NEGTOPOS_f.js
diff --git a/data_structures_correct/NMOS.js b/src/main/webapp/data_structures_correct/NMOS.js
index a03a9f1..f18e7f1 100644
--- a/data_structures_correct/NMOS.js
+++ b/src/main/webapp/data_structures_correct/NMOS.js
@@ -1,40 +1,40 @@
-function NMOS() {
-
- NMOS.prototype.define = function NMOS() {
- this.W = 20.e-6;
- this.L = 6.e-6;
- this.Beta = 0.041e-3;
- this.Vt = 0.8;
- this.K2 = 1.144;
- this.K5 = 0.7311;
- this.dW = -2.5e-6;
- this.dL = -1.5e-6;
- this.RDS = 1.e+7;
-
- var model = scicos_model();
- model.sim = new ScilabString(["NMOS"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- 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"]), new ScilabDouble([this.W], [this.L], [this.Beta], [this.Vt], [this.K2], [this.K5], [this.dW], [this.dL], [this.RDS]));
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
- model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
-
- var exprs = new ScilabString([this.W], [this.L], [this.Beta], [this.Vt], [this.K2], [this.K5], [this.dW], [this.dL], [this.RDS]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"NMOS\",sz(1),sz(2));"]);
- 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);
- }
- NMOS.prototype.details = function NMOS() {
- return this.x;
- }
-}
-
+function NMOS() {
+
+ NMOS.prototype.define = function NMOS() {
+ this.W = 20.e-6;
+ this.L = 6.e-6;
+ this.Beta = 0.041e-3;
+ this.Vt = 0.8;
+ this.K2 = 1.144;
+ this.K5 = 0.7311;
+ this.dW = -2.5e-6;
+ this.dL = -1.5e-6;
+ this.RDS = 1.e+7;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["NMOS"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ 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"]), new ScilabDouble([this.W], [this.L], [this.Beta], [this.Vt], [this.K2], [this.K5], [this.dW], [this.dL], [this.RDS]));
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
+ model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
+
+ var exprs = new ScilabString([this.W], [this.L], [this.Beta], [this.Vt], [this.K2], [this.K5], [this.dW], [this.dL], [this.RDS]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"NMOS\",sz(1),sz(2));"]);
+ 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);
+ }
+ NMOS.prototype.details = function NMOS() {
+ return this.x;
+ }
+}
+
diff --git a/data_structures_correct/NPN.js b/src/main/webapp/data_structures_correct/NPN.js
index f88489e..3a78293 100644
--- a/data_structures_correct/NPN.js
+++ b/src/main/webapp/data_structures_correct/NPN.js
@@ -1,56 +1,56 @@
-function NPN() {
-
- NPN.prototype.define = function NPN() {
- this.ModelName = "NPN";
- this.PrametersValue = [[50], [0.1], [0], [0.02], [1.200e-10], [5.000e-09], [1.000e-12], [4.000e-13], [5.000e-13], [0.8], [0.4], [0.8], [0.333], [1.000e-15], [1.000e-15], [0.02585], [40]];
- this.ParametersName = [["Bf"], ["Br"], ["Is"], ["Vak"], ["Tauf"], ["Taur"], ["Ccs"], ["Cje"], ["Cjc"], ["Phie"], ["Me"], ["Phic"], ["Mc"], ["Gbc"], ["Gbe"], ["Vt"], ["EMinMax"]];
- this.model = scicos_model();
- this.Typein = [];
- this.Typeout = [];
- this.MI = [];
- this.MO = [];
- this.P = [[100, 90, -2, 0], [0, 50, 2, 0], [100, 10, -2, 0]];
- this.PortName = [["C"], ["B"], ["E"]];
-
- for (var i = 0; i < size(this.P, "r"); i++) {
- if (this.P[i][2] == 1) {
- this.Typein.push(["E"]);
- this.MI.push(this.PortName[i]);
- }
- if (this.P[i][2] == 2) {
- this.Typein.push(["I"]);
- this.MI.push(this.PortName[i]);
- }
- if (this.P[i][2] == -1) {
- this.Typeout.push(["E"]);
- this.MO.push(this.PortName[i]);
- }
- if (this.P[i][2] == -2) {
- this.Typeout.push(["I"]);
- this.MO.push(this.PortName[i]);
- }
- }
- var model = scicos_model();
- var mo = new modelica_function();
- model.sim = new ScilabString([this.ModelName]);
- mo.inputs = new ScilabString(...this.MI);
- mo.outputs = new ScilabString(...this.MO);
- model.rpar = new ScilabDouble(...this.PrametersValue);
- mo.parameters = list(new ScilabString(...this.ParametersName), new ScilabDouble(...this.PrametersValue), new ScilabDouble(...zeros(this.ParametersName)));
- var exprs = new ScilabString(["50"], ["0.1"], ["1.e-16"], ["0.02"], ["0.12e-9"], ["5e-9"], ["1e-12"], ["0.4e-12"], ["0.5e-12"], ["0.8"], ["0.4"], ["0.8"], ["0.333"], ["1e-15"], ["1e-15"], ["0.02585"], ["40"]);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;NPN&quot;,sz(1),sz(2));"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
- mo.model = new ScilabString([this.ModelName]);
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
- model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
- this.x = standard_define([2, 2], model, exprs, list(gr_i, new ScilabDouble([0])));
- this.x.graphics.in_implicit = new ScilabString(...this.Typein);
- this.x.graphics.out_implicit = new ScilabString(...this.Typeout);
- return new BasicBlock(this.x);
- }
- NPN.prototype.details = function NPN() {
- return this.x;
- }
-}
+function NPN() {
+
+ NPN.prototype.define = function NPN() {
+ this.ModelName = "NPN";
+ this.PrametersValue = [[50], [0.1], [0], [0.02], [1.200e-10], [5.000e-09], [1.000e-12], [4.000e-13], [5.000e-13], [0.8], [0.4], [0.8], [0.333], [1.000e-15], [1.000e-15], [0.02585], [40]];
+ this.ParametersName = [["Bf"], ["Br"], ["Is"], ["Vak"], ["Tauf"], ["Taur"], ["Ccs"], ["Cje"], ["Cjc"], ["Phie"], ["Me"], ["Phic"], ["Mc"], ["Gbc"], ["Gbe"], ["Vt"], ["EMinMax"]];
+ this.model = scicos_model();
+ this.Typein = [];
+ this.Typeout = [];
+ this.MI = [];
+ this.MO = [];
+ this.P = [[100, 90, -2, 0], [0, 50, 2, 0], [100, 10, -2, 0]];
+ this.PortName = [["C"], ["B"], ["E"]];
+
+ for (var i = 0; i < size(this.P, "r"); i++) {
+ if (this.P[i][2] == 1) {
+ this.Typein.push(["E"]);
+ this.MI.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == 2) {
+ this.Typein.push(["I"]);
+ this.MI.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -1) {
+ this.Typeout.push(["E"]);
+ this.MO.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -2) {
+ this.Typeout.push(["I"]);
+ this.MO.push(this.PortName[i]);
+ }
+ }
+ var model = scicos_model();
+ var mo = new modelica_function();
+ model.sim = new ScilabString([this.ModelName]);
+ mo.inputs = new ScilabString(...this.MI);
+ mo.outputs = new ScilabString(...this.MO);
+ model.rpar = new ScilabDouble(...this.PrametersValue);
+ mo.parameters = list(new ScilabString(...this.ParametersName), new ScilabDouble(...this.PrametersValue), new ScilabDouble(...zeros(this.ParametersName)));
+ var exprs = new ScilabString(["50"], ["0.1"], ["1.e-16"], ["0.02"], ["0.12e-9"], ["5e-9"], ["1e-12"], ["0.4e-12"], ["0.5e-12"], ["0.8"], ["0.4"], ["0.8"], ["0.333"], ["1e-15"], ["1e-15"], ["0.02585"], ["40"]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;NPN&quot;,sz(1),sz(2));"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+ mo.model = new ScilabString([this.ModelName]);
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
+ model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
+ this.x = standard_define([2, 2], model, exprs, list(gr_i, new ScilabDouble([0])));
+ this.x.graphics.in_implicit = new ScilabString(...this.Typein);
+ this.x.graphics.out_implicit = new ScilabString(...this.Typeout);
+ return new BasicBlock(this.x);
+ }
+ NPN.prototype.details = function NPN() {
+ return this.x;
+ }
+}
diff --git a/data_structures_correct/NRMSOM_f.js b/src/main/webapp/data_structures_correct/NRMSOM_f.js
index f80bb88..f80bb88 100644
--- a/data_structures_correct/NRMSOM_f.js
+++ b/src/main/webapp/data_structures_correct/NRMSOM_f.js
diff --git a/data_structures_correct/OUTIMPL_f.js b/src/main/webapp/data_structures_correct/OUTIMPL_f.js
index 82cd6c2..3b5337c 100644
--- a/data_structures_correct/OUTIMPL_f.js
+++ b/src/main/webapp/data_structures_correct/OUTIMPL_f.js
@@ -1,33 +1,33 @@
-function OUTIMPL_f() {
-
- OUTIMPL_f.prototype.define = function OUTIMPL_f() {
- var model = scicos_model();
- model.in = new ScilabDouble([-1]);
- model.in2 = new ScilabDouble([1]);
-
- this.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 = new modelica_function();
- mo.model = new ScilabString(["PORT"]);
- mo.inputs = new ScilabString(["n"]);
- mo.outputs = new ScilabDouble();
- model.equations = mo;
-
- var exprs = new ScilabString(["1"]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;OUTIMPL_f&quot;,sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([1, 1]), model, exprs, gr_i);
- this.x.graphics.in_implicit = new ScilabString(["I"]);
-
- this.implicitOutBlock = new ImplicitOutBlock(this.x);
- this.displayParameter = [this.implicitOutBlock.ordering];
- return this.implicitOutBlock;
- }
- OUTIMPL_f.prototype.details = function OUTIMPL_f() {
- return this.x;
- }
-}
+function OUTIMPL_f() {
+
+ OUTIMPL_f.prototype.define = function OUTIMPL_f() {
+ var model = scicos_model();
+ model.in = new ScilabDouble([-1]);
+ model.in2 = new ScilabDouble([1]);
+
+ this.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 = new modelica_function();
+ mo.model = new ScilabString(["PORT"]);
+ mo.inputs = new ScilabString(["n"]);
+ mo.outputs = new ScilabDouble();
+ model.equations = mo;
+
+ var exprs = new ScilabString(["1"]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;OUTIMPL_f&quot;,sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([1, 1]), model, exprs, gr_i);
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+
+ this.implicitOutBlock = new ImplicitOutBlock(this.x);
+ this.displayParameter = [this.implicitOutBlock.ordering];
+ return this.implicitOutBlock;
+ }
+ OUTIMPL_f.prototype.details = function OUTIMPL_f() {
+ return this.x;
+ }
+}
diff --git a/data_structures_correct/OUT_f.js b/src/main/webapp/data_structures_correct/OUT_f.js
index e480a65..e480a65 100644
--- a/data_structures_correct/OUT_f.js
+++ b/src/main/webapp/data_structures_correct/OUT_f.js
diff --git a/data_structures_correct/OpAmp.js b/src/main/webapp/data_structures_correct/OpAmp.js
index f347cfb..c55b893 100644
--- a/data_structures_correct/OpAmp.js
+++ b/src/main/webapp/data_structures_correct/OpAmp.js
@@ -1,34 +1,34 @@
-function OpAmp() {
-
- OpAmp.prototype.define = function OpAmp() {
- this.S = [];
- this.Z = [];
-
- var model = scicos_model();
- model.sim = new ScilabString(["OpAmp"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- mo.model = model.sim;
- mo.inputs = new ScilabString(["in_p"], ["in_n"]);
- mo.outputs = new ScilabString(["out"]);
- mo.parameters = list(new ScilabDouble(), new ScilabDouble());
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
- model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
- model.rpar = new ScilabDouble();
-
- var exprs = new ScilabString();
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"OpAmp\",sz(1),sz(2));"]);
- 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);
- }
- OpAmp.prototype.details = function OpAmp() {
- return this.x;
- }
-}
-
+function OpAmp() {
+
+ OpAmp.prototype.define = function OpAmp() {
+ this.S = [];
+ this.Z = [];
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["OpAmp"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ mo.model = model.sim;
+ mo.inputs = new ScilabString(["in_p"], ["in_n"]);
+ mo.outputs = new ScilabString(["out"]);
+ mo.parameters = list(new ScilabDouble(), new ScilabDouble());
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
+ model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
+ model.rpar = new ScilabDouble();
+
+ var exprs = new ScilabString();
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"OpAmp\",sz(1),sz(2));"]);
+ 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);
+ }
+ OpAmp.prototype.details = function OpAmp() {
+ return this.x;
+ }
+}
+
diff --git a/data_structures_correct/PDE.js b/src/main/webapp/data_structures_correct/PDE.js
index 2aa3a6d..2aa3a6d 100644
--- a/data_structures_correct/PDE.js
+++ b/src/main/webapp/data_structures_correct/PDE.js
diff --git a/data_structures_correct/PID.js b/src/main/webapp/data_structures_correct/PID.js
index 894446b..894446b 100644
--- a/data_structures_correct/PID.js
+++ b/src/main/webapp/data_structures_correct/PID.js
diff --git a/data_structures_correct/PNP.js b/src/main/webapp/data_structures_correct/PNP.js
index 1c16f94..0665ae0 100644
--- a/data_structures_correct/PNP.js
+++ b/src/main/webapp/data_structures_correct/PNP.js
@@ -1,63 +1,63 @@
-function PNP() {
-
- PNP.prototype.define = function PNP() {
- this.ModelName = "PNP";
- this.PrametersValue = [[50],[0.1],[0],[0.02],[1.200e-10],[5.000e-09],[1.000e-12],[4.000e-13],[5.000e-13],[0.8],[0.4],[0.8],[0.333],[1.000e-15],[1.000e-15],[0.02585],[40]];
- this.ParametersName = [["Bf"],["Br"],["Is"],["Vak"],["Tauf"],["Taur"],["Ccs"],["Cje"],["Cjc"],["Phie"],["Me"],["Phic"],["Mc"],["Gbc"],["Gbe"],["Vt"],["EMinMax"]];
-
- var model = scicos_model();
- this.Typein = [];
- this.Typeout = [];
- this.MI = [];
- this.MO = [];
- this.P = [[100, 90, -2, 0], [0, 50, 2, 0], [100, 10, -2, 0]];
- this.PortName = [["C"], ["B"], ["E"]];
-
- for (var i = 0; i < size(this.P, "r"); i++) {
- if (this.P[i][2] == 1) {
- this.Typein.push(["E"]);
- this.MI.push(this.PortName[i]);
- }
-
- if (this.P[i][2] == 2) {
- this.Typein.push(["I"]);
- this.MI.push(this.PortName[i]);
- }
- if (this.P[i][2] == -1) {
- this.Typeout.push(["E"]);
- this.MO.push(this.PortName[i]);
- }
- if (this.P[i][2] == -2) {
- this.Typeout.push(["I"]);
- this.MO.push(this.PortName[i]);
- }
- }
-
- var mo = new modelica_function();
- model.sim = new ScilabString([this.ModelName]);
- mo.inputs = new ScilabString(...this.MI);
- mo.outputs = new ScilabString(...this.MO);
- model.rpar = new ScilabDouble(...this.PrametersValue);
-
- var arr = [];
- arr.push(zeros(getData(this.ParametersName)));
- mo.parameters = list(new ScilabString(...this.ParametersName), new ScilabDouble(...this.PrametersValue), new ScilabDouble(...math.transpose(arr)));
- var exprs = new ScilabString(["50"], ["0.1"], ["1.e-16"], ["0.02"], ["0.12e-9"], ["5e-9"], ["1e-12"], ["0.4e-12"], ["0.5e-12"], ["0.8"], ["0.4"], ["0.8"], ["0.333"], ["1e-15"], ["1e-15"], ["0.02585"], ["40"]);
- var gr_i = "xstringb(orig(1),orig(2),\"PNP\",sz(1),sz(2));"
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([false, true]);
- mo.model = new ScilabString([this.ModelName]);
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
- model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
- this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, list(new ScilabString([gr_i]), new ScilabDouble([0])));
- this.x.graphics.in_implicit = new ScilabDouble(...this.Typein);
- this.x.graphics.out_implicit = new ScilabDouble(...this.Typeout);
-
- return new BasicBlock(this.x);
- }
-
- PNP.prototype.details = function PNP() {
- return this.x;
- }
-}
+function PNP() {
+
+ PNP.prototype.define = function PNP() {
+ this.ModelName = "PNP";
+ this.PrametersValue = [[50],[0.1],[0],[0.02],[1.200e-10],[5.000e-09],[1.000e-12],[4.000e-13],[5.000e-13],[0.8],[0.4],[0.8],[0.333],[1.000e-15],[1.000e-15],[0.02585],[40]];
+ this.ParametersName = [["Bf"],["Br"],["Is"],["Vak"],["Tauf"],["Taur"],["Ccs"],["Cje"],["Cjc"],["Phie"],["Me"],["Phic"],["Mc"],["Gbc"],["Gbe"],["Vt"],["EMinMax"]];
+
+ var model = scicos_model();
+ this.Typein = [];
+ this.Typeout = [];
+ this.MI = [];
+ this.MO = [];
+ this.P = [[100, 90, -2, 0], [0, 50, 2, 0], [100, 10, -2, 0]];
+ this.PortName = [["C"], ["B"], ["E"]];
+
+ for (var i = 0; i < size(this.P, "r"); i++) {
+ if (this.P[i][2] == 1) {
+ this.Typein.push(["E"]);
+ this.MI.push(this.PortName[i]);
+ }
+
+ if (this.P[i][2] == 2) {
+ this.Typein.push(["I"]);
+ this.MI.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -1) {
+ this.Typeout.push(["E"]);
+ this.MO.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -2) {
+ this.Typeout.push(["I"]);
+ this.MO.push(this.PortName[i]);
+ }
+ }
+
+ var mo = new modelica_function();
+ model.sim = new ScilabString([this.ModelName]);
+ mo.inputs = new ScilabString(...this.MI);
+ mo.outputs = new ScilabString(...this.MO);
+ model.rpar = new ScilabDouble(...this.PrametersValue);
+
+ var arr = [];
+ arr.push(zeros(getData(this.ParametersName)));
+ mo.parameters = list(new ScilabString(...this.ParametersName), new ScilabDouble(...this.PrametersValue), new ScilabDouble(...math.transpose(arr)));
+ var exprs = new ScilabString(["50"], ["0.1"], ["1.e-16"], ["0.02"], ["0.12e-9"], ["5e-9"], ["1e-12"], ["0.4e-12"], ["0.5e-12"], ["0.8"], ["0.4"], ["0.8"], ["0.333"], ["1e-15"], ["1e-15"], ["0.02585"], ["40"]);
+ var gr_i = "xstringb(orig(1),orig(2),\"PNP\",sz(1),sz(2));"
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+ mo.model = new ScilabString([this.ModelName]);
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
+ model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, list(new ScilabString([gr_i]), new ScilabDouble([0])));
+ this.x.graphics.in_implicit = new ScilabDouble(...this.Typein);
+ this.x.graphics.out_implicit = new ScilabDouble(...this.Typeout);
+
+ return new BasicBlock(this.x);
+ }
+
+ PNP.prototype.details = function PNP() {
+ return this.x;
+ }
+}
diff --git a/data_structures_correct/POSTONEG_f.js b/src/main/webapp/data_structures_correct/POSTONEG_f.js
index 97d9aa6..97d9aa6 100644
--- a/data_structures_correct/POSTONEG_f.js
+++ b/src/main/webapp/data_structures_correct/POSTONEG_f.js
diff --git a/data_structures_correct/POWBLK_f.js b/src/main/webapp/data_structures_correct/POWBLK_f.js
index 0e19fc1..0e19fc1 100644
--- a/data_structures_correct/POWBLK_f.js
+++ b/src/main/webapp/data_structures_correct/POWBLK_f.js
diff --git a/data_structures_correct/PRODUCT.js b/src/main/webapp/data_structures_correct/PRODUCT.js
index 0e9e6c8..0e9e6c8 100644
--- a/data_structures_correct/PRODUCT.js
+++ b/src/main/webapp/data_structures_correct/PRODUCT.js
diff --git a/data_structures_correct/PROD_f.js b/src/main/webapp/data_structures_correct/PROD_f.js
index d46b7d9..d46b7d9 100644
--- a/data_structures_correct/PROD_f.js
+++ b/src/main/webapp/data_structures_correct/PROD_f.js
diff --git a/data_structures_correct/PerteDP.js b/src/main/webapp/data_structures_correct/PerteDP.js
index 667c206..139898f 100644
--- a/data_structures_correct/PerteDP.js
+++ b/src/main/webapp/data_structures_correct/PerteDP.js
@@ -1,41 +1,41 @@
-function PerteDP() {
-
- PerteDP.prototype.define = function PerteDP() {
- this.L = 10;
- this.D = 0.2;
- this.lambda = 0.03;
- this.z1 = 0;
- this.z2 = 0;
- this.p_rho = 0;
-
- var model = scicos_model();
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.rpar = new ScilabDouble([this.L], [this.D], [this.lambda], [this.z1], [this.z2], [this.p_rho]);
- model.sim = new ScilabString(["PerteDP"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- 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"]), new ScilabDouble([this.L], [this.D], [this.lambda], [this.z1], [this.z2], [this.p_rho]));
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
- model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
-
- var exprs = new ScilabString([this.L], [this.D], [this.lambda], [this.z1], [this.z2], [this.p_rho]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"PerteDP\",sz(1),sz(2));"]);
- 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);
- }
- PerteDP.prototype.details = function PerteDP() {
- return this.x;
- }
-
-}
-
+function PerteDP() {
+
+ PerteDP.prototype.define = function PerteDP() {
+ this.L = 10;
+ this.D = 0.2;
+ this.lambda = 0.03;
+ this.z1 = 0;
+ this.z2 = 0;
+ this.p_rho = 0;
+
+ var model = scicos_model();
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([this.L], [this.D], [this.lambda], [this.z1], [this.z2], [this.p_rho]);
+ model.sim = new ScilabString(["PerteDP"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ 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"]), new ScilabDouble([this.L], [this.D], [this.lambda], [this.z1], [this.z2], [this.p_rho]));
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
+ model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
+
+ var exprs = new ScilabString([this.L], [this.D], [this.lambda], [this.z1], [this.z2], [this.p_rho]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"PerteDP\",sz(1),sz(2));"]);
+ 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);
+ }
+ PerteDP.prototype.details = function PerteDP() {
+ return this.x;
+ }
+
+}
+
diff --git a/data_structures_correct/PotentialSensor.js b/src/main/webapp/data_structures_correct/PotentialSensor.js
index c7114d5..5195935 100644
--- a/data_structures_correct/PotentialSensor.js
+++ b/src/main/webapp/data_structures_correct/PotentialSensor.js
@@ -1,31 +1,31 @@
-function PotentialSensor() {
-
- PotentialSensor.prototype.define = function PotentialSensor() {
-
- var model = scicos_model();
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
- model.rpar = new ScilabDouble();
- model.sim = new ScilabString(["PotentialSensor"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- mo.model = new ScilabString(["PotentialSensor"]);
- mo.inputs = new ScilabString(["p"]);
- mo.outputs = new ScilabString(["v"]);
- model.equations = mo;
-
- var exprs = new ScilabString([""]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"PotentialSensor\",sz(1),sz(2));"]);
- 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(["E"]);
- return new BasicBlock(this.x);
- }
- PotentialSensor.prototype.details = function PotentialSensor() {
- return this.x;
- }
-}
-
+function PotentialSensor() {
+
+ PotentialSensor.prototype.define = function PotentialSensor() {
+
+ var model = scicos_model();
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble();
+ model.sim = new ScilabString(["PotentialSensor"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ mo.model = new ScilabString(["PotentialSensor"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["v"]);
+ model.equations = mo;
+
+ var exprs = new ScilabString([""]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"PotentialSensor\",sz(1),sz(2));"]);
+ 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(["E"]);
+ return new BasicBlock(this.x);
+ }
+ PotentialSensor.prototype.details = function PotentialSensor() {
+ return this.x;
+ }
+}
+
diff --git a/data_structures_correct/PuitsP.js b/src/main/webapp/data_structures_correct/PuitsP.js
index 6c5ff3e..ad6e1f1 100644
--- a/data_structures_correct/PuitsP.js
+++ b/src/main/webapp/data_structures_correct/PuitsP.js
@@ -1,34 +1,34 @@
-function PuitsP() {
-
- PuitsP.prototype.define = function PuitsP() {
- this.P0 = 100000;
- this.T0 = 290;
- this.H0 = 100000;
- this.option_temperature = 1;
-
- var model = scicos_model();
- model.rpar = new ScilabDouble([this.P0], [this.T0], [this.H0], [this.option_temperature]);
- model.sim = new ScilabString(["Puits"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- mo.model = new ScilabString(["Puits"]);
- mo.inputs = new ScilabString(["C"]);
- mo.outputs = new ScilabDouble();
- mo.parameters = list(new ScilabString(["P0"], ["T0"], ["H0"], ["option_temperature"]), new ScilabDouble([this.P0], [this.T0], [this.H0], [this.option_temperature]));
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
-
- var exprs = new ScilabString([this.P0], [this.T0], [this.H0], [this.option_temperature]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"PuitsP\",sz(1),sz(2));"]);
- this.x = standard_define([2.5, 2], model, exprs, list(gr_i, new ScilabDouble(0)));
- this.x.graphics.in_implicit = new ScilabString(["I"]);
- return new BasicBlock(this.x);
- }
- PuitsP.prototype.details = function PuitsP() {
- return this.x;
- }
-}
-
+function PuitsP() {
+
+ PuitsP.prototype.define = function PuitsP() {
+ this.P0 = 100000;
+ this.T0 = 290;
+ this.H0 = 100000;
+ this.option_temperature = 1;
+
+ var model = scicos_model();
+ model.rpar = new ScilabDouble([this.P0], [this.T0], [this.H0], [this.option_temperature]);
+ model.sim = new ScilabString(["Puits"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ mo.model = new ScilabString(["Puits"]);
+ mo.inputs = new ScilabString(["C"]);
+ mo.outputs = new ScilabDouble();
+ mo.parameters = list(new ScilabString(["P0"], ["T0"], ["H0"], ["option_temperature"]), new ScilabDouble([this.P0], [this.T0], [this.H0], [this.option_temperature]));
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
+
+ var exprs = new ScilabString([this.P0], [this.T0], [this.H0], [this.option_temperature]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"PuitsP\",sz(1),sz(2));"]);
+ this.x = standard_define([2.5, 2], model, exprs, list(gr_i, new ScilabDouble(0)));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x);
+ }
+ PuitsP.prototype.details = function PuitsP() {
+ return this.x;
+ }
+}
+
diff --git a/data_structures_correct/QUANT_f.js b/src/main/webapp/data_structures_correct/QUANT_f.js
index 1934882..1934882 100644
--- a/data_structures_correct/QUANT_f.js
+++ b/src/main/webapp/data_structures_correct/QUANT_f.js
diff --git a/data_structures_correct/RAMP.js b/src/main/webapp/data_structures_correct/RAMP.js
index 947aa27..947aa27 100644
--- a/data_structures_correct/RAMP.js
+++ b/src/main/webapp/data_structures_correct/RAMP.js
diff --git a/data_structures_correct/RAND_m.js b/src/main/webapp/data_structures_correct/RAND_m.js
index e5eff23..e5eff23 100644
--- a/data_structures_correct/RAND_m.js
+++ b/src/main/webapp/data_structures_correct/RAND_m.js
diff --git a/data_structures_correct/RATELIMITER.js b/src/main/webapp/data_structures_correct/RATELIMITER.js
index 881b020..881b020 100644
--- a/data_structures_correct/RATELIMITER.js
+++ b/src/main/webapp/data_structures_correct/RATELIMITER.js
diff --git a/data_structures_correct/READAU_f.js b/src/main/webapp/data_structures_correct/READAU_f.js
index 38f3d96..38f3d96 100644
--- a/data_structures_correct/READAU_f.js
+++ b/src/main/webapp/data_structures_correct/READAU_f.js
diff --git a/data_structures_correct/READC_f.js b/src/main/webapp/data_structures_correct/READC_f.js
index a851fbb..a851fbb 100644
--- a/data_structures_correct/READC_f.js
+++ b/src/main/webapp/data_structures_correct/READC_f.js
diff --git a/data_structures_correct/REGISTER.js b/src/main/webapp/data_structures_correct/REGISTER.js
index 7704450..7704450 100644
--- a/data_structures_correct/REGISTER.js
+++ b/src/main/webapp/data_structures_correct/REGISTER.js
diff --git a/data_structures_correct/REGISTER_f.js b/src/main/webapp/data_structures_correct/REGISTER_f.js
index bf4c28e..bf4c28e 100644
--- a/data_structures_correct/REGISTER_f.js
+++ b/src/main/webapp/data_structures_correct/REGISTER_f.js
diff --git a/data_structures_correct/RELATIONALOP.js b/src/main/webapp/data_structures_correct/RELATIONALOP.js
index 100570e..100570e 100644
--- a/data_structures_correct/RELATIONALOP.js
+++ b/src/main/webapp/data_structures_correct/RELATIONALOP.js
diff --git a/data_structures_correct/RELAY_f.js b/src/main/webapp/data_structures_correct/RELAY_f.js
index 5b323d5..5b323d5 100644
--- a/data_structures_correct/RELAY_f.js
+++ b/src/main/webapp/data_structures_correct/RELAY_f.js
diff --git a/data_structures_correct/RFILE_f.js b/src/main/webapp/data_structures_correct/RFILE_f.js
index f0d79e7..f0d79e7 100644
--- a/data_structures_correct/RFILE_f.js
+++ b/src/main/webapp/data_structures_correct/RFILE_f.js
diff --git a/data_structures_correct/RICC.js b/src/main/webapp/data_structures_correct/RICC.js
index 5664207..5664207 100644
--- a/data_structures_correct/RICC.js
+++ b/src/main/webapp/data_structures_correct/RICC.js
diff --git a/data_structures_correct/ROOTCOEF.js b/src/main/webapp/data_structures_correct/ROOTCOEF.js
index 96e72c6..96e72c6 100644
--- a/data_structures_correct/ROOTCOEF.js
+++ b/src/main/webapp/data_structures_correct/ROOTCOEF.js
diff --git a/data_structures_correct/Resistor.js b/src/main/webapp/data_structures_correct/Resistor.js
index 1ef43d6..ff52450 100644
--- a/data_structures_correct/Resistor.js
+++ b/src/main/webapp/data_structures_correct/Resistor.js
@@ -1,33 +1,33 @@
-function Resistor() {
-
- Resistor.prototype.define = function Resistor() {
- this.R = 0.01;
-
- var model = scicos_model();
- model.rpar = new ScilabDouble([this.R]);
- model.sim = new ScilabString(["resistor"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- mo.model = new ScilabString(["Resistor"]);
- mo.inputs = new ScilabString(["p"]);
- mo.outputs = new ScilabString(["n"]);
- mo.parameters = list(new ScilabString(["R"]), list(new ScilabDouble([this.R])));
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
- model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
-
- var exprs = new ScilabString([this.R]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Resistor\",sz(1),sz(2));"]);
- 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);
- }
- Resistor.prototype.details = function Resistor() {
- return this.x;
- }
-}
-
+function Resistor() {
+
+ Resistor.prototype.define = function Resistor() {
+ this.R = 0.01;
+
+ var model = scicos_model();
+ model.rpar = new ScilabDouble([this.R]);
+ model.sim = new ScilabString(["resistor"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ mo.model = new ScilabString(["Resistor"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["n"]);
+ mo.parameters = list(new ScilabString(["R"]), list(new ScilabDouble([this.R])));
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
+ model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
+
+ var exprs = new ScilabString([this.R]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Resistor\",sz(1),sz(2));"]);
+ 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);
+ }
+ Resistor.prototype.details = function Resistor() {
+ return this.x;
+ }
+}
+
diff --git a/data_structures_correct/SAMPHOLD_m.js b/src/main/webapp/data_structures_correct/SAMPHOLD_m.js
index 7c42b73..7c42b73 100644
--- a/data_structures_correct/SAMPHOLD_m.js
+++ b/src/main/webapp/data_structures_correct/SAMPHOLD_m.js
diff --git a/data_structures_correct/SATURATION.js b/src/main/webapp/data_structures_correct/SATURATION.js
index 99bd3fa..99bd3fa 100644
--- a/data_structures_correct/SATURATION.js
+++ b/src/main/webapp/data_structures_correct/SATURATION.js
diff --git a/data_structures_correct/SAWTOOTH_f.js b/src/main/webapp/data_structures_correct/SAWTOOTH_f.js
index 75a8fec..75a8fec 100644
--- a/data_structures_correct/SAWTOOTH_f.js
+++ b/src/main/webapp/data_structures_correct/SAWTOOTH_f.js
diff --git a/data_structures_correct/SCALAR2VECTOR.js b/src/main/webapp/data_structures_correct/SCALAR2VECTOR.js
index f701a95..f701a95 100644
--- a/data_structures_correct/SCALAR2VECTOR.js
+++ b/src/main/webapp/data_structures_correct/SCALAR2VECTOR.js
diff --git a/data_structures_correct/SELECT_m.js b/src/main/webapp/data_structures_correct/SELECT_m.js
index 95583a6..95583a6 100644
--- a/data_structures_correct/SELECT_m.js
+++ b/src/main/webapp/data_structures_correct/SELECT_m.js
diff --git a/data_structures_correct/SELF_SWITCH.js b/src/main/webapp/data_structures_correct/SELF_SWITCH.js
index 286d822..286d822 100644
--- a/data_structures_correct/SELF_SWITCH.js
+++ b/src/main/webapp/data_structures_correct/SELF_SWITCH.js
diff --git a/data_structures_correct/SHIFT.js b/src/main/webapp/data_structures_correct/SHIFT.js
index a0e9283..a0e9283 100644
--- a/data_structures_correct/SHIFT.js
+++ b/src/main/webapp/data_structures_correct/SHIFT.js
diff --git a/data_structures_correct/SIGNUM.js b/src/main/webapp/data_structures_correct/SIGNUM.js
index 1cbac1e..1cbac1e 100644
--- a/data_structures_correct/SIGNUM.js
+++ b/src/main/webapp/data_structures_correct/SIGNUM.js
diff --git a/data_structures_correct/SINBLK_f.js b/src/main/webapp/data_structures_correct/SINBLK_f.js
index 170f5d5..170f5d5 100644
--- a/data_structures_correct/SINBLK_f.js
+++ b/src/main/webapp/data_structures_correct/SINBLK_f.js
diff --git a/data_structures_correct/SOM_f.js b/src/main/webapp/data_structures_correct/SOM_f.js
index 2d49214..2d49214 100644
--- a/data_structures_correct/SOM_f.js
+++ b/src/main/webapp/data_structures_correct/SOM_f.js
diff --git a/data_structures_correct/SQRT.js b/src/main/webapp/data_structures_correct/SQRT.js
index f9ddb24..f9ddb24 100644
--- a/data_structures_correct/SQRT.js
+++ b/src/main/webapp/data_structures_correct/SQRT.js
diff --git a/data_structures_correct/SRFLIPFLOP.js b/src/main/webapp/data_structures_correct/SRFLIPFLOP.js
index 439fc4a..439fc4a 100644
--- a/data_structures_correct/SRFLIPFLOP.js
+++ b/src/main/webapp/data_structures_correct/SRFLIPFLOP.js
diff --git a/data_structures_correct/STEP_FUNCTION.js b/src/main/webapp/data_structures_correct/STEP_FUNCTION.js
index 0c379ab..0c379ab 100644
--- a/data_structures_correct/STEP_FUNCTION.js
+++ b/src/main/webapp/data_structures_correct/STEP_FUNCTION.js
diff --git a/data_structures_correct/SUBMAT.js b/src/main/webapp/data_structures_correct/SUBMAT.js
index ece918b..ece918b 100644
--- a/data_structures_correct/SUBMAT.js
+++ b/src/main/webapp/data_structures_correct/SUBMAT.js
diff --git a/data_structures_correct/SUMMATION.js b/src/main/webapp/data_structures_correct/SUMMATION.js
index 867c9fd..867c9fd 100644
--- a/data_structures_correct/SUMMATION.js
+++ b/src/main/webapp/data_structures_correct/SUMMATION.js
diff --git a/data_structures_correct/SUM_f.js b/src/main/webapp/data_structures_correct/SUM_f.js
index 6677eac..6677eac 100644
--- a/data_structures_correct/SUM_f.js
+++ b/src/main/webapp/data_structures_correct/SUM_f.js
diff --git a/data_structures_correct/SUPER_f.js b/src/main/webapp/data_structures_correct/SUPER_f.js
index fb95e3a..fb95e3a 100644
--- a/data_structures_correct/SUPER_f.js
+++ b/src/main/webapp/data_structures_correct/SUPER_f.js
diff --git a/data_structures_correct/SWITCH2_m.js b/src/main/webapp/data_structures_correct/SWITCH2_m.js
index 405c5ce..405c5ce 100644
--- a/data_structures_correct/SWITCH2_m.js
+++ b/src/main/webapp/data_structures_correct/SWITCH2_m.js
diff --git a/data_structures_correct/SWITCH_f.js b/src/main/webapp/data_structures_correct/SWITCH_f.js
index c9cefb1..c9cefb1 100644
--- a/data_structures_correct/SWITCH_f.js
+++ b/src/main/webapp/data_structures_correct/SWITCH_f.js
diff --git a/data_structures_correct/SampleCLK.js b/src/main/webapp/data_structures_correct/SampleCLK.js
index 5568e10..5568e10 100644
--- a/data_structures_correct/SampleCLK.js
+++ b/src/main/webapp/data_structures_correct/SampleCLK.js
diff --git a/data_structures_correct/Sigbuilder.js b/src/main/webapp/data_structures_correct/Sigbuilder.js
index 15b6da0..15b6da0 100644
--- a/data_structures_correct/Sigbuilder.js
+++ b/src/main/webapp/data_structures_correct/Sigbuilder.js
diff --git a/data_structures_correct/SineVoltage.js b/src/main/webapp/data_structures_correct/SineVoltage.js
index f6c580d..9cc43f3 100644
--- a/data_structures_correct/SineVoltage.js
+++ b/src/main/webapp/data_structures_correct/SineVoltage.js
@@ -1,38 +1,38 @@
-function SineVoltage() {
-
- SineVoltage.prototype.define = function SineVoltage() {
- var model = scicos_model();
- model.in = new ScilabDouble([1]);
- model.out = new ScilabDouble([1]);
-
- this.V = 1;
- this.ph = 0;
- this.frq = 1;
- this.offset = 0;
- this.start = 0;
-
- model.rpar = new ScilabDouble([this.V], [this.ph], [this.frq], [this.offset], [this.start]);
- model.sim = new ScilabString(["SineVoltage"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- 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(new ScilabDouble([this.V]), new ScilabDouble([this.ph]), new ScilabDouble([this.frq]), new ScilabDouble([this.offset]), new ScilabDouble([this.start])));
- model.equations = mo;
-
- var exprs = new ScilabString([this.V], [this.ph], [this.frq], [this.offset], [this.start]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SineVoltage\",sz(1),sz(2));"]);
- 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);
- }
-
- SineVoltage.prototype.details = function SineVoltage() {
- return this.x;
- }
-}
+function SineVoltage() {
+
+ SineVoltage.prototype.define = function SineVoltage() {
+ var model = scicos_model();
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+
+ this.V = 1;
+ this.ph = 0;
+ this.frq = 1;
+ this.offset = 0;
+ this.start = 0;
+
+ model.rpar = new ScilabDouble([this.V], [this.ph], [this.frq], [this.offset], [this.start]);
+ model.sim = new ScilabString(["SineVoltage"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ 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(new ScilabDouble([this.V]), new ScilabDouble([this.ph]), new ScilabDouble([this.frq]), new ScilabDouble([this.offset]), new ScilabDouble([this.start])));
+ model.equations = mo;
+
+ var exprs = new ScilabString([this.V], [this.ph], [this.frq], [this.offset], [this.start]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SineVoltage\",sz(1),sz(2));"]);
+ 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);
+ }
+
+ SineVoltage.prototype.details = function SineVoltage() {
+ return this.x;
+ }
+}
diff --git a/data_structures_correct/SourceP.js b/src/main/webapp/data_structures_correct/SourceP.js
index 08212bc..73deebf 100644
--- a/data_structures_correct/SourceP.js
+++ b/src/main/webapp/data_structures_correct/SourceP.js
@@ -1,36 +1,36 @@
-function SourceP() {
-
- SourceP.prototype.define = function SourceP() {
- var model = scicos_model();
-
- this.P0 = 300000;
- this.T0 = 290;
- this.H0 = 100000;
- this.option_temperature = 1;
-
- model.rpar = new ScilabDouble([this.P0], [this.T0], [this.H0], [this.option_temperature]);
- model.sim = new ScilabString(["Source"]);
- model.blocktype = new ScilabString(["c"]);
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var mo = new modelica_function();
- mo.model = new ScilabString(["Source"]);
- mo.inputs = new ScilabDouble();
- mo.outputs = new ScilabString(["C"]);
- mo.parameters = list(new ScilabString(["P0"], ["T0"], ["H0"], ["option_temperature"]), new ScilabDouble([this.P0], [this.T0], [this.H0], [this.option_temperature]));
- model.equations = mo;
- model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
- model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
-
- var exprs = new ScilabString([this.P0], [this.T0], [this.H0], [this.option_temperature]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SourceP\",sz(1),sz(2));"]);
- this.x = new standard_define([2.5, 2], model, exprs, list(gr_i, new ScilabDouble([0])));
- this.x.graphics.out_implicit = new ScilabString(["I"]);
- return new BasicBlock(this.x);
- }
-
- SourceP.prototype.details = function SourceP() {
- return this.x;
- }
-}
+function SourceP() {
+
+ SourceP.prototype.define = function SourceP() {
+ var model = scicos_model();
+
+ this.P0 = 300000;
+ this.T0 = 290;
+ this.H0 = 100000;
+ this.option_temperature = 1;
+
+ model.rpar = new ScilabDouble([this.P0], [this.T0], [this.H0], [this.option_temperature]);
+ model.sim = new ScilabString(["Source"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = new modelica_function();
+ mo.model = new ScilabString(["Source"]);
+ mo.inputs = new ScilabDouble();
+ mo.outputs = new ScilabString(["C"]);
+ mo.parameters = list(new ScilabString(["P0"], ["T0"], ["H0"], ["option_temperature"]), new ScilabDouble([this.P0], [this.T0], [this.H0], [this.option_temperature]));
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(getData(mo.inputs), "*"), 1));
+ model.out = new ScilabDouble(...ones(size(getData(mo.outputs), "*"), 1));
+
+ var exprs = new ScilabString([this.P0], [this.T0], [this.H0], [this.option_temperature]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SourceP\",sz(1),sz(2));"]);
+ this.x = new standard_define([2.5, 2], model, exprs, list(gr_i, new ScilabDouble([0])));
+ this.x.graphics.out_implicit = new ScilabString(["I"]);
+ return new BasicBlock(this.x);
+ }
+
+ SourceP.prototype.details = function SourceP() {
+ return this.x;
+ }
+}
diff --git a/data_structures_correct/Switch.js b/src/main/webapp/data_structures_correct/Switch.js
index 79c5736..79c5736 100644
--- a/data_structures_correct/Switch.js
+++ b/src/main/webapp/data_structures_correct/Switch.js
diff --git a/data_structures_correct/TANBLK_f.js b/src/main/webapp/data_structures_correct/TANBLK_f.js
index d468e84..d468e84 100644
--- a/data_structures_correct/TANBLK_f.js
+++ b/src/main/webapp/data_structures_correct/TANBLK_f.js
diff --git a/data_structures_correct/TCLSS.js b/src/main/webapp/data_structures_correct/TCLSS.js
index e102d93..e102d93 100644
--- a/data_structures_correct/TCLSS.js
+++ b/src/main/webapp/data_structures_correct/TCLSS.js
diff --git a/data_structures_correct/TEXT_f.js b/src/main/webapp/data_structures_correct/TEXT_f.js
index cb5a481..cb5a481 100644
--- a/data_structures_correct/TEXT_f.js
+++ b/src/main/webapp/data_structures_correct/TEXT_f.js
diff --git a/data_structures_correct/TIME_DELAY.js b/src/main/webapp/data_structures_correct/TIME_DELAY.js
index 8438941..8438941 100644
--- a/data_structures_correct/TIME_DELAY.js
+++ b/src/main/webapp/data_structures_correct/TIME_DELAY.js
diff --git a/data_structures_correct/TIME_f.js b/src/main/webapp/data_structures_correct/TIME_f.js
index a9c233c..a9c233c 100644
--- a/data_structures_correct/TIME_f.js
+++ b/src/main/webapp/data_structures_correct/TIME_f.js
diff --git a/data_structures_correct/TKSCALE.js b/src/main/webapp/data_structures_correct/TKSCALE.js
index 532a923..532a923 100644
--- a/data_structures_correct/TKSCALE.js
+++ b/src/main/webapp/data_structures_correct/TKSCALE.js
diff --git a/data_structures_correct/TOWS_c.js b/src/main/webapp/data_structures_correct/TOWS_c.js
index e4ea771..e4ea771 100644
--- a/data_structures_correct/TOWS_c.js
+++ b/src/main/webapp/data_structures_correct/TOWS_c.js
diff --git a/data_structures_correct/TRASH_f.js b/src/main/webapp/data_structures_correct/TRASH_f.js
index 27da7c0..27da7c0 100644
--- a/data_structures_correct/TRASH_f.js
+++ b/src/main/webapp/data_structures_correct/TRASH_f.js
diff --git a/data_structures_correct/TrigFun.js b/src/main/webapp/data_structures_correct/TrigFun.js
index e23141c..e23141c 100644
--- a/data_structures_correct/TrigFun.js
+++ b/src/main/webapp/data_structures_correct/TrigFun.js
diff --git a/data_structures_correct/VARIABLE_DELAY.js b/src/main/webapp/data_structures_correct/VARIABLE_DELAY.js
index 11f8d4b..11f8d4b 100644
--- a/data_structures_correct/VARIABLE_DELAY.js
+++ b/src/main/webapp/data_structures_correct/VARIABLE_DELAY.js
diff --git a/data_structures_correct/VVsourceAC.js b/src/main/webapp/data_structures_correct/VVsourceAC.js
index 120b3bb..120b3bb 100644
--- a/data_structures_correct/VVsourceAC.js
+++ b/src/main/webapp/data_structures_correct/VVsourceAC.js
diff --git a/data_structures_correct/VanneReglante.js b/src/main/webapp/data_structures_correct/VanneReglante.js
index a501c2f..a501c2f 100644
--- a/data_structures_correct/VanneReglante.js
+++ b/src/main/webapp/data_structures_correct/VanneReglante.js
diff --git a/data_structures_correct/VariableResistor.js b/src/main/webapp/data_structures_correct/VariableResistor.js
index 4e5a5e1..4e5a5e1 100644
--- a/data_structures_correct/VariableResistor.js
+++ b/src/main/webapp/data_structures_correct/VariableResistor.js
diff --git a/data_structures_correct/VirtualCLK0.js b/src/main/webapp/data_structures_correct/VirtualCLK0.js
index 79f8e6e..79f8e6e 100644
--- a/data_structures_correct/VirtualCLK0.js
+++ b/src/main/webapp/data_structures_correct/VirtualCLK0.js
diff --git a/data_structures_correct/VoltageSensor.js b/src/main/webapp/data_structures_correct/VoltageSensor.js
index 0d00317..0d00317 100644
--- a/data_structures_correct/VoltageSensor.js
+++ b/src/main/webapp/data_structures_correct/VoltageSensor.js
diff --git a/data_structures_correct/VsourceAC.js b/src/main/webapp/data_structures_correct/VsourceAC.js
index 59cc3b4..59cc3b4 100644
--- a/data_structures_correct/VsourceAC.js
+++ b/src/main/webapp/data_structures_correct/VsourceAC.js
diff --git a/data_structures_correct/WRITEAU_f.js b/src/main/webapp/data_structures_correct/WRITEAU_f.js
index 8bc9657..8bc9657 100644
--- a/data_structures_correct/WRITEAU_f.js
+++ b/src/main/webapp/data_structures_correct/WRITEAU_f.js
diff --git a/data_structures_correct/WRITEC_f.js b/src/main/webapp/data_structures_correct/WRITEC_f.js
index 0e6fefa..0e6fefa 100644
--- a/data_structures_correct/WRITEC_f.js
+++ b/src/main/webapp/data_structures_correct/WRITEC_f.js
diff --git a/data_structures_correct/ZCROSS_f.js b/src/main/webapp/data_structures_correct/ZCROSS_f.js
index 8d2e66a..8d2e66a 100644
--- a/data_structures_correct/ZCROSS_f.js
+++ b/src/main/webapp/data_structures_correct/ZCROSS_f.js
diff --git a/data_structures_correct/c_block.js b/src/main/webapp/data_structures_correct/c_block.js
index 1cb86e7..7481ea7 100644
--- a/data_structures_correct/c_block.js
+++ b/src/main/webapp/data_structures_correct/c_block.js
@@ -1,33 +1,33 @@
-function c_block() {
-
- c_block.prototype.define = function c_block() {
-
- this.in1 = 1;
- this.out = 1;
- this.rpar = [];
- this.typ = "c";
- this.funam = "toto";
-
- var model = scicos_model();
- model.sim = list(new ScilabString([" "]), new ScilabDouble([2001]));
- model.in = new ScilabDouble([this.in1]);
- model.out = new ScilabDouble([this.out]);
- 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([this.typ]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([true, false]);
-
- var label = list(new ScilabString([sci2exp(this.in1)], [sci2exp(this.out)], [sci2exp(this.rpar)], [this.funam]), list(new ScilabDouble()));
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"c_block\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3, 2]), model, label, gr_i);
- return new BasicBlock(this.x);
- }
- c_block.prototype.details = function c_block() {
- return this.x;
- }
-}
+function c_block() {
+
+ c_block.prototype.define = function c_block() {
+
+ this.in1 = 1;
+ this.out = 1;
+ this.rpar = [];
+ this.typ = "c";
+ this.funam = "toto";
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString([" "]), new ScilabDouble([2001]));
+ model.in = new ScilabDouble([this.in1]);
+ model.out = new ScilabDouble([this.out]);
+ 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([this.typ]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var label = list(new ScilabString([sci2exp(this.in1)], [sci2exp(this.out)], [sci2exp(this.rpar)], [this.funam]), list(new ScilabDouble()));
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"c_block\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, label, gr_i);
+ return new BasicBlock(this.x);
+ }
+ c_block.prototype.details = function c_block() {
+ return this.x;
+ }
+}
diff --git a/data_structures_correct/combine_script.bat b/src/main/webapp/data_structures_correct/combine_script.bat
index 54d2926..54d2926 100644
--- a/data_structures_correct/combine_script.bat
+++ b/src/main/webapp/data_structures_correct/combine_script.bat
diff --git a/data_structures_correct/fortran_block.js b/src/main/webapp/data_structures_correct/fortran_block.js
index adfa5ef..adfa5ef 100644
--- a/data_structures_correct/fortran_block.js
+++ b/src/main/webapp/data_structures_correct/fortran_block.js
diff --git a/data_structures_correct/freq_div.js b/src/main/webapp/data_structures_correct/freq_div.js
index c8cb1cc..c8cb1cc 100644
--- a/data_structures_correct/freq_div.js
+++ b/src/main/webapp/data_structures_correct/freq_div.js
diff --git a/data_structures_correct/generic_block3.js b/src/main/webapp/data_structures_correct/generic_block3.js
index 6679727..6679727 100644
--- a/data_structures_correct/generic_block3.js
+++ b/src/main/webapp/data_structures_correct/generic_block3.js
diff --git a/data_structures_correct/scifunc_block_m.js b/src/main/webapp/data_structures_correct/scifunc_block_m.js
index a15ee4a..a15ee4a 100644
--- a/data_structures_correct/scifunc_block_m.js
+++ b/src/main/webapp/data_structures_correct/scifunc_block_m.js
diff --git a/dependencies.js b/src/main/webapp/dependencies.js
index 36106e8..36106e8 100644
--- a/dependencies.js
+++ b/src/main/webapp/dependencies.js
diff --git a/details.js b/src/main/webapp/details.js
index fa4211e..fa4211e 100644
--- a/details.js
+++ b/src/main/webapp/details.js
diff --git a/documentation/servlet.md b/src/main/webapp/documentation/servlet.md
index 86cff6b..86cff6b 100644
--- a/documentation/servlet.md
+++ b/src/main/webapp/documentation/servlet.md
diff --git a/documentation/wires.md b/src/main/webapp/documentation/wires.md
index 988e448..988e448 100644
--- a/documentation/wires.md
+++ b/src/main/webapp/documentation/wires.md
diff --git a/filenames.php b/src/main/webapp/filenames.php
index 81ca89f..81ca89f 100644
--- a/filenames.php
+++ b/src/main/webapp/filenames.php
diff --git a/finalmodsheet.xsl b/src/main/webapp/finalmodsheet.xsl
index c5919f9..c5919f9 100644
--- a/finalmodsheet.xsl
+++ b/src/main/webapp/finalmodsheet.xsl
diff --git a/history/blocks_xcos/ABS_VALUE.xcos b/src/main/webapp/history/blocks_xcos/ABS_VALUE.xcos
index fe5db1d..fe5db1d 100644
--- a/history/blocks_xcos/ABS_VALUE.xcos
+++ b/src/main/webapp/history/blocks_xcos/ABS_VALUE.xcos
diff --git a/history/blocks_xcos/AFFICH_m.xcos b/src/main/webapp/history/blocks_xcos/AFFICH_m.xcos
index f74c3ce..f74c3ce 100644
--- a/history/blocks_xcos/AFFICH_m.xcos
+++ b/src/main/webapp/history/blocks_xcos/AFFICH_m.xcos
diff --git a/history/blocks_xcos/ANDBLK.xcos b/src/main/webapp/history/blocks_xcos/ANDBLK.xcos
index 9afb4ec..9afb4ec 100644
--- a/history/blocks_xcos/ANDBLK.xcos
+++ b/src/main/webapp/history/blocks_xcos/ANDBLK.xcos
diff --git a/history/blocks_xcos/ANDLOG_f.xcos b/src/main/webapp/history/blocks_xcos/ANDLOG_f.xcos
index 5d1829a..5d1829a 100644
--- a/history/blocks_xcos/ANDLOG_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/ANDLOG_f.xcos
diff --git a/history/blocks_xcos/AUTOMAT.xcos b/src/main/webapp/history/blocks_xcos/AUTOMAT.xcos
index 1f9b45c..1f9b45c 100644
--- a/history/blocks_xcos/AUTOMAT.xcos
+++ b/src/main/webapp/history/blocks_xcos/AUTOMAT.xcos
diff --git a/history/blocks_xcos/BACKLASH.xcos b/src/main/webapp/history/blocks_xcos/BACKLASH.xcos
index 9ae1e74..9ae1e74 100644
--- a/history/blocks_xcos/BACKLASH.xcos
+++ b/src/main/webapp/history/blocks_xcos/BACKLASH.xcos
diff --git a/history/blocks_xcos/BARXY.xcos b/src/main/webapp/history/blocks_xcos/BARXY.xcos
index 8c6812f..8c6812f 100644
--- a/history/blocks_xcos/BARXY.xcos
+++ b/src/main/webapp/history/blocks_xcos/BARXY.xcos
diff --git a/history/blocks_xcos/BIGSOM_f.xcos b/src/main/webapp/history/blocks_xcos/BIGSOM_f.xcos
index 714a7c2..714a7c2 100644
--- a/history/blocks_xcos/BIGSOM_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/BIGSOM_f.xcos
diff --git a/history/blocks_xcos/BITCLEAR.xcos b/src/main/webapp/history/blocks_xcos/BITCLEAR.xcos
index fec7a41..fec7a41 100644
--- a/history/blocks_xcos/BITCLEAR.xcos
+++ b/src/main/webapp/history/blocks_xcos/BITCLEAR.xcos
diff --git a/history/blocks_xcos/BITSET.xcos b/src/main/webapp/history/blocks_xcos/BITSET.xcos
index 77867f1..77867f1 100644
--- a/history/blocks_xcos/BITSET.xcos
+++ b/src/main/webapp/history/blocks_xcos/BITSET.xcos
diff --git a/history/blocks_xcos/BOUNCE.xcos b/src/main/webapp/history/blocks_xcos/BOUNCE.xcos
index 714ed25..714ed25 100644
--- a/history/blocks_xcos/BOUNCE.xcos
+++ b/src/main/webapp/history/blocks_xcos/BOUNCE.xcos
diff --git a/history/blocks_xcos/BOUNCEXY.xcos b/src/main/webapp/history/blocks_xcos/BOUNCEXY.xcos
index 15ee007..15ee007 100644
--- a/history/blocks_xcos/BOUNCEXY.xcos
+++ b/src/main/webapp/history/blocks_xcos/BOUNCEXY.xcos
diff --git a/history/blocks_xcos/BPLATFORM.xcos b/src/main/webapp/history/blocks_xcos/BPLATFORM.xcos
index b690031..b690031 100644
--- a/history/blocks_xcos/BPLATFORM.xcos
+++ b/src/main/webapp/history/blocks_xcos/BPLATFORM.xcos
diff --git a/history/blocks_xcos/Bache.xcos b/src/main/webapp/history/blocks_xcos/Bache.xcos
index ccfc2ac..ccfc2ac 100644
--- a/history/blocks_xcos/Bache.xcos
+++ b/src/main/webapp/history/blocks_xcos/Bache.xcos
diff --git a/history/blocks_xcos/CANIMXY.xcos b/src/main/webapp/history/blocks_xcos/CANIMXY.xcos
index d182992..d182992 100644
--- a/history/blocks_xcos/CANIMXY.xcos
+++ b/src/main/webapp/history/blocks_xcos/CANIMXY.xcos
diff --git a/history/blocks_xcos/CANIMXY3D.xcos b/src/main/webapp/history/blocks_xcos/CANIMXY3D.xcos
index 7acd1bb..7acd1bb 100644
--- a/history/blocks_xcos/CANIMXY3D.xcos
+++ b/src/main/webapp/history/blocks_xcos/CANIMXY3D.xcos
diff --git a/history/blocks_xcos/CBLOCK.xcos b/src/main/webapp/history/blocks_xcos/CBLOCK.xcos
index bb2f3d1..bb2f3d1 100644
--- a/history/blocks_xcos/CBLOCK.xcos
+++ b/src/main/webapp/history/blocks_xcos/CBLOCK.xcos
diff --git a/history/blocks_xcos/CBLOCK4.xcos b/src/main/webapp/history/blocks_xcos/CBLOCK4.xcos
index c6a6805..c6a6805 100644
--- a/history/blocks_xcos/CBLOCK4.xcos
+++ b/src/main/webapp/history/blocks_xcos/CBLOCK4.xcos
diff --git a/history/blocks_xcos/CCS.xcos b/src/main/webapp/history/blocks_xcos/CCS.xcos
index 756db4e..756db4e 100644
--- a/history/blocks_xcos/CCS.xcos
+++ b/src/main/webapp/history/blocks_xcos/CCS.xcos
diff --git a/history/blocks_xcos/CEVENTSCOPE.xcos b/src/main/webapp/history/blocks_xcos/CEVENTSCOPE.xcos
index 00a65b7..00a65b7 100644
--- a/history/blocks_xcos/CEVENTSCOPE.xcos
+++ b/src/main/webapp/history/blocks_xcos/CEVENTSCOPE.xcos
diff --git a/history/blocks_xcos/CFSCOPE.xcos b/src/main/webapp/history/blocks_xcos/CFSCOPE.xcos
index 48aebe4..48aebe4 100644
--- a/history/blocks_xcos/CFSCOPE.xcos
+++ b/src/main/webapp/history/blocks_xcos/CFSCOPE.xcos
diff --git a/history/blocks_xcos/CLINDUMMY_f.xcos b/src/main/webapp/history/blocks_xcos/CLINDUMMY_f.xcos
index 276e9d6..276e9d6 100644
--- a/history/blocks_xcos/CLINDUMMY_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/CLINDUMMY_f.xcos
diff --git a/history/blocks_xcos/CLKFROM.xcos b/src/main/webapp/history/blocks_xcos/CLKFROM.xcos
index 191d104..191d104 100644
--- a/history/blocks_xcos/CLKFROM.xcos
+++ b/src/main/webapp/history/blocks_xcos/CLKFROM.xcos
diff --git a/history/blocks_xcos/CLKGOTO.xcos b/src/main/webapp/history/blocks_xcos/CLKGOTO.xcos
index 2e9b622..2e9b622 100644
--- a/history/blocks_xcos/CLKGOTO.xcos
+++ b/src/main/webapp/history/blocks_xcos/CLKGOTO.xcos
diff --git a/history/blocks_xcos/CLKGotoTagVisibility.xcos b/src/main/webapp/history/blocks_xcos/CLKGotoTagVisibility.xcos
index be251d1..be251d1 100644
--- a/history/blocks_xcos/CLKGotoTagVisibility.xcos
+++ b/src/main/webapp/history/blocks_xcos/CLKGotoTagVisibility.xcos
diff --git a/history/blocks_xcos/CLKINV_f.xcos b/src/main/webapp/history/blocks_xcos/CLKINV_f.xcos
index 27db6b6..27db6b6 100644
--- a/history/blocks_xcos/CLKINV_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/CLKINV_f.xcos
diff --git a/history/blocks_xcos/CLKOUTV_f.xcos b/src/main/webapp/history/blocks_xcos/CLKOUTV_f.xcos
index 0d1666c..0d1666c 100644
--- a/history/blocks_xcos/CLKOUTV_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/CLKOUTV_f.xcos
diff --git a/history/blocks_xcos/CLKSOMV_f.xcos b/src/main/webapp/history/blocks_xcos/CLKSOMV_f.xcos
index 4bdffa8..4bdffa8 100644
--- a/history/blocks_xcos/CLKSOMV_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/CLKSOMV_f.xcos
diff --git a/history/blocks_xcos/CLOCK_c.xcos b/src/main/webapp/history/blocks_xcos/CLOCK_c.xcos
index aebd6c6..aebd6c6 100644
--- a/history/blocks_xcos/CLOCK_c.xcos
+++ b/src/main/webapp/history/blocks_xcos/CLOCK_c.xcos
diff --git a/history/blocks_xcos/CLR.xcos b/src/main/webapp/history/blocks_xcos/CLR.xcos
index b28e0a5..b28e0a5 100644
--- a/history/blocks_xcos/CLR.xcos
+++ b/src/main/webapp/history/blocks_xcos/CLR.xcos
diff --git a/history/blocks_xcos/CLSS.xcos b/src/main/webapp/history/blocks_xcos/CLSS.xcos
index b606d08..b606d08 100644
--- a/history/blocks_xcos/CLSS.xcos
+++ b/src/main/webapp/history/blocks_xcos/CLSS.xcos
diff --git a/history/blocks_xcos/CMAT3D.xcos b/src/main/webapp/history/blocks_xcos/CMAT3D.xcos
index 15fb657..15fb657 100644
--- a/history/blocks_xcos/CMAT3D.xcos
+++ b/src/main/webapp/history/blocks_xcos/CMAT3D.xcos
diff --git a/history/blocks_xcos/CMATVIEW.xcos b/src/main/webapp/history/blocks_xcos/CMATVIEW.xcos
index 5fbf0f1..5fbf0f1 100644
--- a/history/blocks_xcos/CMATVIEW.xcos
+++ b/src/main/webapp/history/blocks_xcos/CMATVIEW.xcos
diff --git a/history/blocks_xcos/CMSCOPE.xcos b/src/main/webapp/history/blocks_xcos/CMSCOPE.xcos
index f9d6eba..f9d6eba 100644
--- a/history/blocks_xcos/CMSCOPE.xcos
+++ b/src/main/webapp/history/blocks_xcos/CMSCOPE.xcos
diff --git a/history/blocks_xcos/CONST.xcos b/src/main/webapp/history/blocks_xcos/CONST.xcos
index c014c23..c014c23 100644
--- a/history/blocks_xcos/CONST.xcos
+++ b/src/main/webapp/history/blocks_xcos/CONST.xcos
diff --git a/history/blocks_xcos/CONSTRAINT2_c.xcos b/src/main/webapp/history/blocks_xcos/CONSTRAINT2_c.xcos
index 9714445..9714445 100644
--- a/history/blocks_xcos/CONSTRAINT2_c.xcos
+++ b/src/main/webapp/history/blocks_xcos/CONSTRAINT2_c.xcos
diff --git a/history/blocks_xcos/CONSTRAINT_c.xcos b/src/main/webapp/history/blocks_xcos/CONSTRAINT_c.xcos
index 20e4158..20e4158 100644
--- a/history/blocks_xcos/CONSTRAINT_c.xcos
+++ b/src/main/webapp/history/blocks_xcos/CONSTRAINT_c.xcos
diff --git a/history/blocks_xcos/CONST_f.xcos b/src/main/webapp/history/blocks_xcos/CONST_f.xcos
index 1d98597..1d98597 100644
--- a/history/blocks_xcos/CONST_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/CONST_f.xcos
diff --git a/history/blocks_xcos/CONST_m.xcos b/src/main/webapp/history/blocks_xcos/CONST_m.xcos
index 5218346..5218346 100644
--- a/history/blocks_xcos/CONST_m.xcos
+++ b/src/main/webapp/history/blocks_xcos/CONST_m.xcos
diff --git a/history/blocks_xcos/CONVERT.xcos b/src/main/webapp/history/blocks_xcos/CONVERT.xcos
index 1700ce5..1700ce5 100644
--- a/history/blocks_xcos/CONVERT.xcos
+++ b/src/main/webapp/history/blocks_xcos/CONVERT.xcos
diff --git a/history/blocks_xcos/COSBLK_f.xcos b/src/main/webapp/history/blocks_xcos/COSBLK_f.xcos
index 89a5b00..89a5b00 100644
--- a/history/blocks_xcos/COSBLK_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/COSBLK_f.xcos
diff --git a/history/blocks_xcos/CSCOPE.xcos b/src/main/webapp/history/blocks_xcos/CSCOPE.xcos
index 92ef748..92ef748 100644
--- a/history/blocks_xcos/CSCOPE.xcos
+++ b/src/main/webapp/history/blocks_xcos/CSCOPE.xcos
diff --git a/history/blocks_xcos/CSCOPXY.xcos b/src/main/webapp/history/blocks_xcos/CSCOPXY.xcos
index faf9c2c..faf9c2c 100644
--- a/history/blocks_xcos/CSCOPXY.xcos
+++ b/src/main/webapp/history/blocks_xcos/CSCOPXY.xcos
diff --git a/history/blocks_xcos/CSCOPXY3D.xcos b/src/main/webapp/history/blocks_xcos/CSCOPXY3D.xcos
index d01bc08..d01bc08 100644
--- a/history/blocks_xcos/CSCOPXY3D.xcos
+++ b/src/main/webapp/history/blocks_xcos/CSCOPXY3D.xcos
diff --git a/history/blocks_xcos/CUMSUM.xcos b/src/main/webapp/history/blocks_xcos/CUMSUM.xcos
index 8bbada9..8bbada9 100644
--- a/history/blocks_xcos/CUMSUM.xcos
+++ b/src/main/webapp/history/blocks_xcos/CUMSUM.xcos
diff --git a/history/blocks_xcos/CURV_f.xcos b/src/main/webapp/history/blocks_xcos/CURV_f.xcos
index ecd0e3c..ecd0e3c 100644
--- a/history/blocks_xcos/CURV_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/CURV_f.xcos
diff --git a/history/blocks_xcos/CVS.xcos b/src/main/webapp/history/blocks_xcos/CVS.xcos
index 3a5275d..3a5275d 100644
--- a/history/blocks_xcos/CVS.xcos
+++ b/src/main/webapp/history/blocks_xcos/CVS.xcos
diff --git a/history/blocks_xcos/Capacitor.xcos b/src/main/webapp/history/blocks_xcos/Capacitor.xcos
index c9d5d23..c9d5d23 100644
--- a/history/blocks_xcos/Capacitor.xcos
+++ b/src/main/webapp/history/blocks_xcos/Capacitor.xcos
diff --git a/history/blocks_xcos/ConstantVoltage.xcos b/src/main/webapp/history/blocks_xcos/ConstantVoltage.xcos
index 0538708..0538708 100644
--- a/history/blocks_xcos/ConstantVoltage.xcos
+++ b/src/main/webapp/history/blocks_xcos/ConstantVoltage.xcos
diff --git a/history/blocks_xcos/Counter.xcos b/src/main/webapp/history/blocks_xcos/Counter.xcos
index 020a6d9..020a6d9 100644
--- a/history/blocks_xcos/Counter.xcos
+++ b/src/main/webapp/history/blocks_xcos/Counter.xcos
diff --git a/history/blocks_xcos/CurrentSensor.xcos b/src/main/webapp/history/blocks_xcos/CurrentSensor.xcos
index 990209b..990209b 100644
--- a/history/blocks_xcos/CurrentSensor.xcos
+++ b/src/main/webapp/history/blocks_xcos/CurrentSensor.xcos
diff --git a/history/blocks_xcos/DEADBAND.xcos b/src/main/webapp/history/blocks_xcos/DEADBAND.xcos
index c5ece68..c5ece68 100644
--- a/history/blocks_xcos/DEADBAND.xcos
+++ b/src/main/webapp/history/blocks_xcos/DEADBAND.xcos
diff --git a/history/blocks_xcos/DEBUG.xcos b/src/main/webapp/history/blocks_xcos/DEBUG.xcos
index 980eb09..980eb09 100644
--- a/history/blocks_xcos/DEBUG.xcos
+++ b/src/main/webapp/history/blocks_xcos/DEBUG.xcos
diff --git a/history/blocks_xcos/DELAYV_f.xcos b/src/main/webapp/history/blocks_xcos/DELAYV_f.xcos
index 33a51bf..33a51bf 100644
--- a/history/blocks_xcos/DELAYV_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/DELAYV_f.xcos
diff --git a/history/blocks_xcos/DELAY_f.xcos b/src/main/webapp/history/blocks_xcos/DELAY_f.xcos
index dd2a33f..dd2a33f 100644
--- a/history/blocks_xcos/DELAY_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/DELAY_f.xcos
diff --git a/history/blocks_xcos/DEMUX.xcos b/src/main/webapp/history/blocks_xcos/DEMUX.xcos
index 5afccae..5afccae 100644
--- a/history/blocks_xcos/DEMUX.xcos
+++ b/src/main/webapp/history/blocks_xcos/DEMUX.xcos
diff --git a/history/blocks_xcos/DEMUX_f.xcos b/src/main/webapp/history/blocks_xcos/DEMUX_f.xcos
index 002f17f..002f17f 100644
--- a/history/blocks_xcos/DEMUX_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/DEMUX_f.xcos
diff --git a/history/blocks_xcos/DERIV.xcos b/src/main/webapp/history/blocks_xcos/DERIV.xcos
index b00b937..b00b937 100644
--- a/history/blocks_xcos/DERIV.xcos
+++ b/src/main/webapp/history/blocks_xcos/DERIV.xcos
diff --git a/history/blocks_xcos/DFLIPFLOP.xcos b/src/main/webapp/history/blocks_xcos/DFLIPFLOP.xcos
index 9bdd370..9bdd370 100644
--- a/history/blocks_xcos/DFLIPFLOP.xcos
+++ b/src/main/webapp/history/blocks_xcos/DFLIPFLOP.xcos
diff --git a/history/blocks_xcos/DIFF_f.xcos b/src/main/webapp/history/blocks_xcos/DIFF_f.xcos
index c8c6665..c8c6665 100644
--- a/history/blocks_xcos/DIFF_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/DIFF_f.xcos
diff --git a/history/blocks_xcos/DLATCH.xcos b/src/main/webapp/history/blocks_xcos/DLATCH.xcos
index 3bf0ae0..3bf0ae0 100644
--- a/history/blocks_xcos/DLATCH.xcos
+++ b/src/main/webapp/history/blocks_xcos/DLATCH.xcos
diff --git a/history/blocks_xcos/DLR.xcos b/src/main/webapp/history/blocks_xcos/DLR.xcos
index fff2daf..fff2daf 100644
--- a/history/blocks_xcos/DLR.xcos
+++ b/src/main/webapp/history/blocks_xcos/DLR.xcos
diff --git a/history/blocks_xcos/DLRADAPT_f.xcos b/src/main/webapp/history/blocks_xcos/DLRADAPT_f.xcos
index e0f9379..e0f9379 100644
--- a/history/blocks_xcos/DLRADAPT_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/DLRADAPT_f.xcos
diff --git a/history/blocks_xcos/DLSS.xcos b/src/main/webapp/history/blocks_xcos/DLSS.xcos
index 125fd5c..125fd5c 100644
--- a/history/blocks_xcos/DLSS.xcos
+++ b/src/main/webapp/history/blocks_xcos/DLSS.xcos
diff --git a/history/blocks_xcos/DOLLAR.xcos b/src/main/webapp/history/blocks_xcos/DOLLAR.xcos
index 0b73e0b..0b73e0b 100644
--- a/history/blocks_xcos/DOLLAR.xcos
+++ b/src/main/webapp/history/blocks_xcos/DOLLAR.xcos
diff --git a/history/blocks_xcos/DOLLAR_f.xcos b/src/main/webapp/history/blocks_xcos/DOLLAR_f.xcos
index eb62713..eb62713 100644
--- a/history/blocks_xcos/DOLLAR_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/DOLLAR_f.xcos
diff --git a/history/blocks_xcos/DOLLAR_m.xcos b/src/main/webapp/history/blocks_xcos/DOLLAR_m.xcos
index caaea09..caaea09 100644
--- a/history/blocks_xcos/DOLLAR_m.xcos
+++ b/src/main/webapp/history/blocks_xcos/DOLLAR_m.xcos
diff --git a/history/blocks_xcos/Diode.xcos b/src/main/webapp/history/blocks_xcos/Diode.xcos
index aebd811..aebd811 100644
--- a/history/blocks_xcos/Diode.xcos
+++ b/src/main/webapp/history/blocks_xcos/Diode.xcos
diff --git a/history/blocks_xcos/EDGE_TRIGGER.xcos b/src/main/webapp/history/blocks_xcos/EDGE_TRIGGER.xcos
index d62b775..d62b775 100644
--- a/history/blocks_xcos/EDGE_TRIGGER.xcos
+++ b/src/main/webapp/history/blocks_xcos/EDGE_TRIGGER.xcos
diff --git a/history/blocks_xcos/ENDBLK.xcos b/src/main/webapp/history/blocks_xcos/ENDBLK.xcos
index 4f2afa8..4f2afa8 100644
--- a/history/blocks_xcos/ENDBLK.xcos
+++ b/src/main/webapp/history/blocks_xcos/ENDBLK.xcos
diff --git a/history/blocks_xcos/END_c.xcos b/src/main/webapp/history/blocks_xcos/END_c.xcos
index b190241..b190241 100644
--- a/history/blocks_xcos/END_c.xcos
+++ b/src/main/webapp/history/blocks_xcos/END_c.xcos
diff --git a/history/blocks_xcos/ESELECT_f.xcos b/src/main/webapp/history/blocks_xcos/ESELECT_f.xcos
index 87a6b14..87a6b14 100644
--- a/history/blocks_xcos/ESELECT_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/ESELECT_f.xcos
diff --git a/history/blocks_xcos/EVTDLY_c.xcos b/src/main/webapp/history/blocks_xcos/EVTDLY_c.xcos
index 5e1ce59..5e1ce59 100644
--- a/history/blocks_xcos/EVTDLY_c.xcos
+++ b/src/main/webapp/history/blocks_xcos/EVTDLY_c.xcos
diff --git a/history/blocks_xcos/EVTGEN_f.xcos b/src/main/webapp/history/blocks_xcos/EVTGEN_f.xcos
index 8392d4c..8392d4c 100644
--- a/history/blocks_xcos/EVTGEN_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/EVTGEN_f.xcos
diff --git a/history/blocks_xcos/EVTVARDLY.xcos b/src/main/webapp/history/blocks_xcos/EVTVARDLY.xcos
index 63f09fe..63f09fe 100644
--- a/history/blocks_xcos/EVTVARDLY.xcos
+++ b/src/main/webapp/history/blocks_xcos/EVTVARDLY.xcos
diff --git a/history/blocks_xcos/EXPBLK_m.xcos b/src/main/webapp/history/blocks_xcos/EXPBLK_m.xcos
index 134ea3d..134ea3d 100644
--- a/history/blocks_xcos/EXPBLK_m.xcos
+++ b/src/main/webapp/history/blocks_xcos/EXPBLK_m.xcos
diff --git a/history/blocks_xcos/EXPRESSION.xcos b/src/main/webapp/history/blocks_xcos/EXPRESSION.xcos
index cee3743..cee3743 100644
--- a/history/blocks_xcos/EXPRESSION.xcos
+++ b/src/main/webapp/history/blocks_xcos/EXPRESSION.xcos
diff --git a/history/blocks_xcos/EXTRACT.xcos b/src/main/webapp/history/blocks_xcos/EXTRACT.xcos
index 2527ce7..2527ce7 100644
--- a/history/blocks_xcos/EXTRACT.xcos
+++ b/src/main/webapp/history/blocks_xcos/EXTRACT.xcos
diff --git a/history/blocks_xcos/EXTRACTBITS.xcos b/src/main/webapp/history/blocks_xcos/EXTRACTBITS.xcos
index c8fdf4f..c8fdf4f 100644
--- a/history/blocks_xcos/EXTRACTBITS.xcos
+++ b/src/main/webapp/history/blocks_xcos/EXTRACTBITS.xcos
diff --git a/history/blocks_xcos/EXTRACTOR.xcos b/src/main/webapp/history/blocks_xcos/EXTRACTOR.xcos
index e150a93..e150a93 100644
--- a/history/blocks_xcos/EXTRACTOR.xcos
+++ b/src/main/webapp/history/blocks_xcos/EXTRACTOR.xcos
diff --git a/history/blocks_xcos/EXTTRI.xcos b/src/main/webapp/history/blocks_xcos/EXTTRI.xcos
index 70653ae..70653ae 100644
--- a/history/blocks_xcos/EXTTRI.xcos
+++ b/src/main/webapp/history/blocks_xcos/EXTTRI.xcos
diff --git a/history/blocks_xcos/Extract_Activation.xcos b/src/main/webapp/history/blocks_xcos/Extract_Activation.xcos
index 0923ef1..0923ef1 100644
--- a/history/blocks_xcos/Extract_Activation.xcos
+++ b/src/main/webapp/history/blocks_xcos/Extract_Activation.xcos
diff --git a/history/blocks_xcos/FROM.xcos b/src/main/webapp/history/blocks_xcos/FROM.xcos
index daff6fe..daff6fe 100644
--- a/history/blocks_xcos/FROM.xcos
+++ b/src/main/webapp/history/blocks_xcos/FROM.xcos
diff --git a/history/blocks_xcos/FROMMO.xcos b/src/main/webapp/history/blocks_xcos/FROMMO.xcos
index 848d843..848d843 100644
--- a/history/blocks_xcos/FROMMO.xcos
+++ b/src/main/webapp/history/blocks_xcos/FROMMO.xcos
diff --git a/history/blocks_xcos/FROMWSB.xcos b/src/main/webapp/history/blocks_xcos/FROMWSB.xcos
index f391969..f391969 100644
--- a/history/blocks_xcos/FROMWSB.xcos
+++ b/src/main/webapp/history/blocks_xcos/FROMWSB.xcos
diff --git a/history/blocks_xcos/Flowmeter.xcos b/src/main/webapp/history/blocks_xcos/Flowmeter.xcos
index a9973ff..a9973ff 100644
--- a/history/blocks_xcos/Flowmeter.xcos
+++ b/src/main/webapp/history/blocks_xcos/Flowmeter.xcos
diff --git a/history/blocks_xcos/GAINBLK.xcos b/src/main/webapp/history/blocks_xcos/GAINBLK.xcos
index 43f921b..43f921b 100644
--- a/history/blocks_xcos/GAINBLK.xcos
+++ b/src/main/webapp/history/blocks_xcos/GAINBLK.xcos
diff --git a/history/blocks_xcos/GAINBLK_f.xcos b/src/main/webapp/history/blocks_xcos/GAINBLK_f.xcos
index c2817f8..c2817f8 100644
--- a/history/blocks_xcos/GAINBLK_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/GAINBLK_f.xcos
diff --git a/history/blocks_xcos/GAIN_f.xcos b/src/main/webapp/history/blocks_xcos/GAIN_f.xcos
index 046ee69..046ee69 100644
--- a/history/blocks_xcos/GAIN_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/GAIN_f.xcos
diff --git a/history/blocks_xcos/GENERAL_f.xcos b/src/main/webapp/history/blocks_xcos/GENERAL_f.xcos
index 0221f32..0221f32 100644
--- a/history/blocks_xcos/GENERAL_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/GENERAL_f.xcos
diff --git a/history/blocks_xcos/GENSIN_f.xcos b/src/main/webapp/history/blocks_xcos/GENSIN_f.xcos
index b4ee5cb..b4ee5cb 100644
--- a/history/blocks_xcos/GENSIN_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/GENSIN_f.xcos
diff --git a/history/blocks_xcos/GENSQR_f.xcos b/src/main/webapp/history/blocks_xcos/GENSQR_f.xcos
index 69ea76e..69ea76e 100644
--- a/history/blocks_xcos/GENSQR_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/GENSQR_f.xcos
diff --git a/history/blocks_xcos/GOTO.xcos b/src/main/webapp/history/blocks_xcos/GOTO.xcos
index a8f787c..a8f787c 100644
--- a/history/blocks_xcos/GOTO.xcos
+++ b/src/main/webapp/history/blocks_xcos/GOTO.xcos
diff --git a/history/blocks_xcos/GOTOMO.xcos b/src/main/webapp/history/blocks_xcos/GOTOMO.xcos
index c90c5f9..c90c5f9 100644
--- a/history/blocks_xcos/GOTOMO.xcos
+++ b/src/main/webapp/history/blocks_xcos/GOTOMO.xcos
diff --git a/history/blocks_xcos/GotoTagVisibility.xcos b/src/main/webapp/history/blocks_xcos/GotoTagVisibility.xcos
index d75ad16..d75ad16 100644
--- a/history/blocks_xcos/GotoTagVisibility.xcos
+++ b/src/main/webapp/history/blocks_xcos/GotoTagVisibility.xcos
diff --git a/history/blocks_xcos/GotoTagVisibilityMO.xcos b/src/main/webapp/history/blocks_xcos/GotoTagVisibilityMO.xcos
index 6898ed6..6898ed6 100644
--- a/history/blocks_xcos/GotoTagVisibilityMO.xcos
+++ b/src/main/webapp/history/blocks_xcos/GotoTagVisibilityMO.xcos
diff --git a/history/blocks_xcos/Ground.xcos b/src/main/webapp/history/blocks_xcos/Ground.xcos
index 1bc7586..1bc7586 100644
--- a/history/blocks_xcos/Ground.xcos
+++ b/src/main/webapp/history/blocks_xcos/Ground.xcos
diff --git a/history/blocks_xcos/Gyrator.xcos b/src/main/webapp/history/blocks_xcos/Gyrator.xcos
index 774909d..774909d 100644
--- a/history/blocks_xcos/Gyrator.xcos
+++ b/src/main/webapp/history/blocks_xcos/Gyrator.xcos
diff --git a/history/blocks_xcos/HALT_f.xcos b/src/main/webapp/history/blocks_xcos/HALT_f.xcos
index 1452cff..1452cff 100644
--- a/history/blocks_xcos/HALT_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/HALT_f.xcos
diff --git a/history/blocks_xcos/HYSTHERESIS.xcos b/src/main/webapp/history/blocks_xcos/HYSTHERESIS.xcos
index 8d30a89..8d30a89 100644
--- a/history/blocks_xcos/HYSTHERESIS.xcos
+++ b/src/main/webapp/history/blocks_xcos/HYSTHERESIS.xcos
diff --git a/history/blocks_xcos/IFTHEL_f.xcos b/src/main/webapp/history/blocks_xcos/IFTHEL_f.xcos
index 894d211..894d211 100644
--- a/history/blocks_xcos/IFTHEL_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/IFTHEL_f.xcos
diff --git a/history/blocks_xcos/INIMPL_f.xcos b/src/main/webapp/history/blocks_xcos/INIMPL_f.xcos
index 9e560c1..9e560c1 100644
--- a/history/blocks_xcos/INIMPL_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/INIMPL_f.xcos
diff --git a/history/blocks_xcos/INTEGRAL_f.xcos b/src/main/webapp/history/blocks_xcos/INTEGRAL_f.xcos
index 30bc24e..30bc24e 100644
--- a/history/blocks_xcos/INTEGRAL_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/INTEGRAL_f.xcos
diff --git a/history/blocks_xcos/INTEGRAL_m.xcos b/src/main/webapp/history/blocks_xcos/INTEGRAL_m.xcos
index 7facf10..7facf10 100644
--- a/history/blocks_xcos/INTEGRAL_m.xcos
+++ b/src/main/webapp/history/blocks_xcos/INTEGRAL_m.xcos
diff --git a/history/blocks_xcos/INTMUL.xcos b/src/main/webapp/history/blocks_xcos/INTMUL.xcos
index 0bff20e..0bff20e 100644
--- a/history/blocks_xcos/INTMUL.xcos
+++ b/src/main/webapp/history/blocks_xcos/INTMUL.xcos
diff --git a/history/blocks_xcos/INTRP2BLK_f.xcos b/src/main/webapp/history/blocks_xcos/INTRP2BLK_f.xcos
index f9242c2..f9242c2 100644
--- a/history/blocks_xcos/INTRP2BLK_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/INTRP2BLK_f.xcos
diff --git a/history/blocks_xcos/INTRPLBLK_f.xcos b/src/main/webapp/history/blocks_xcos/INTRPLBLK_f.xcos
index e7b1f49..e7b1f49 100644
--- a/history/blocks_xcos/INTRPLBLK_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/INTRPLBLK_f.xcos
diff --git a/history/blocks_xcos/INVBLK.xcos b/src/main/webapp/history/blocks_xcos/INVBLK.xcos
index fc95e77..fc95e77 100644
--- a/history/blocks_xcos/INVBLK.xcos
+++ b/src/main/webapp/history/blocks_xcos/INVBLK.xcos
diff --git a/history/blocks_xcos/IN_f.xcos b/src/main/webapp/history/blocks_xcos/IN_f.xcos
index 8373d82..8373d82 100644
--- a/history/blocks_xcos/IN_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/IN_f.xcos
diff --git a/history/blocks_xcos/ISELECT_m.xcos b/src/main/webapp/history/blocks_xcos/ISELECT_m.xcos
index 51aa0c8..51aa0c8 100644
--- a/history/blocks_xcos/ISELECT_m.xcos
+++ b/src/main/webapp/history/blocks_xcos/ISELECT_m.xcos
diff --git a/history/blocks_xcos/IdealTransformer.xcos b/src/main/webapp/history/blocks_xcos/IdealTransformer.xcos
index 01e17f1..01e17f1 100644
--- a/history/blocks_xcos/IdealTransformer.xcos
+++ b/src/main/webapp/history/blocks_xcos/IdealTransformer.xcos
diff --git a/history/blocks_xcos/Inductor.xcos b/src/main/webapp/history/blocks_xcos/Inductor.xcos
index 96a9d52..96a9d52 100644
--- a/history/blocks_xcos/Inductor.xcos
+++ b/src/main/webapp/history/blocks_xcos/Inductor.xcos
diff --git a/history/blocks_xcos/JKFLIPFLOP.xcos b/src/main/webapp/history/blocks_xcos/JKFLIPFLOP.xcos
index 54245ca..54245ca 100644
--- a/history/blocks_xcos/JKFLIPFLOP.xcos
+++ b/src/main/webapp/history/blocks_xcos/JKFLIPFLOP.xcos
diff --git a/history/blocks_xcos/LOGBLK_f.xcos b/src/main/webapp/history/blocks_xcos/LOGBLK_f.xcos
index ef2c3d2..ef2c3d2 100644
--- a/history/blocks_xcos/LOGBLK_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/LOGBLK_f.xcos
diff --git a/history/blocks_xcos/LOGIC.xcos b/src/main/webapp/history/blocks_xcos/LOGIC.xcos
index bc40ec5..bc40ec5 100644
--- a/history/blocks_xcos/LOGIC.xcos
+++ b/src/main/webapp/history/blocks_xcos/LOGIC.xcos
diff --git a/history/blocks_xcos/LOGICAL_OP.xcos b/src/main/webapp/history/blocks_xcos/LOGICAL_OP.xcos
index 76d9f8c..76d9f8c 100644
--- a/history/blocks_xcos/LOGICAL_OP.xcos
+++ b/src/main/webapp/history/blocks_xcos/LOGICAL_OP.xcos
diff --git a/history/blocks_xcos/LOOKUP_f.xcos b/src/main/webapp/history/blocks_xcos/LOOKUP_f.xcos
index 57aa5ad..57aa5ad 100644
--- a/history/blocks_xcos/LOOKUP_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/LOOKUP_f.xcos
diff --git a/history/blocks_xcos/MATBKSL.xcos b/src/main/webapp/history/blocks_xcos/MATBKSL.xcos
index b081c81..b081c81 100644
--- a/history/blocks_xcos/MATBKSL.xcos
+++ b/src/main/webapp/history/blocks_xcos/MATBKSL.xcos
diff --git a/history/blocks_xcos/MATCATH.xcos b/src/main/webapp/history/blocks_xcos/MATCATH.xcos
index 0cf49ef..0cf49ef 100644
--- a/history/blocks_xcos/MATCATH.xcos
+++ b/src/main/webapp/history/blocks_xcos/MATCATH.xcos
diff --git a/history/blocks_xcos/MATCATV.xcos b/src/main/webapp/history/blocks_xcos/MATCATV.xcos
index 8e0a2ee..8e0a2ee 100644
--- a/history/blocks_xcos/MATCATV.xcos
+++ b/src/main/webapp/history/blocks_xcos/MATCATV.xcos
diff --git a/history/blocks_xcos/MATDET.xcos b/src/main/webapp/history/blocks_xcos/MATDET.xcos
index 447c8b6..447c8b6 100644
--- a/history/blocks_xcos/MATDET.xcos
+++ b/src/main/webapp/history/blocks_xcos/MATDET.xcos
diff --git a/history/blocks_xcos/MATDIAG.xcos b/src/main/webapp/history/blocks_xcos/MATDIAG.xcos
index ce702af..ce702af 100644
--- a/history/blocks_xcos/MATDIAG.xcos
+++ b/src/main/webapp/history/blocks_xcos/MATDIAG.xcos
diff --git a/history/blocks_xcos/MATDIV.xcos b/src/main/webapp/history/blocks_xcos/MATDIV.xcos
index f5f0186..f5f0186 100644
--- a/history/blocks_xcos/MATDIV.xcos
+++ b/src/main/webapp/history/blocks_xcos/MATDIV.xcos
diff --git a/history/blocks_xcos/MATEIG.xcos b/src/main/webapp/history/blocks_xcos/MATEIG.xcos
index 21ab40d..21ab40d 100644
--- a/history/blocks_xcos/MATEIG.xcos
+++ b/src/main/webapp/history/blocks_xcos/MATEIG.xcos
diff --git a/history/blocks_xcos/MATEXPM.xcos b/src/main/webapp/history/blocks_xcos/MATEXPM.xcos
index f03c205..f03c205 100644
--- a/history/blocks_xcos/MATEXPM.xcos
+++ b/src/main/webapp/history/blocks_xcos/MATEXPM.xcos
diff --git a/history/blocks_xcos/MATINV.xcos b/src/main/webapp/history/blocks_xcos/MATINV.xcos
index f6c6fa5..f6c6fa5 100644
--- a/history/blocks_xcos/MATINV.xcos
+++ b/src/main/webapp/history/blocks_xcos/MATINV.xcos
diff --git a/history/blocks_xcos/MATLU.xcos b/src/main/webapp/history/blocks_xcos/MATLU.xcos
index 5f1dc60..5f1dc60 100644
--- a/history/blocks_xcos/MATLU.xcos
+++ b/src/main/webapp/history/blocks_xcos/MATLU.xcos
diff --git a/history/blocks_xcos/MATMAGPHI.xcos b/src/main/webapp/history/blocks_xcos/MATMAGPHI.xcos
index 62af843..62af843 100644
--- a/history/blocks_xcos/MATMAGPHI.xcos
+++ b/src/main/webapp/history/blocks_xcos/MATMAGPHI.xcos
diff --git a/history/blocks_xcos/MATMUL.xcos b/src/main/webapp/history/blocks_xcos/MATMUL.xcos
index 5f0b2eb..5f0b2eb 100644
--- a/history/blocks_xcos/MATMUL.xcos
+++ b/src/main/webapp/history/blocks_xcos/MATMUL.xcos
diff --git a/history/blocks_xcos/MATPINV.xcos b/src/main/webapp/history/blocks_xcos/MATPINV.xcos
index c175efe..c175efe 100644
--- a/history/blocks_xcos/MATPINV.xcos
+++ b/src/main/webapp/history/blocks_xcos/MATPINV.xcos
diff --git a/history/blocks_xcos/MATRESH.xcos b/src/main/webapp/history/blocks_xcos/MATRESH.xcos
index 0b51257..0b51257 100644
--- a/history/blocks_xcos/MATRESH.xcos
+++ b/src/main/webapp/history/blocks_xcos/MATRESH.xcos
diff --git a/history/blocks_xcos/MATSING.xcos b/src/main/webapp/history/blocks_xcos/MATSING.xcos
index 7dd786d..7dd786d 100644
--- a/history/blocks_xcos/MATSING.xcos
+++ b/src/main/webapp/history/blocks_xcos/MATSING.xcos
diff --git a/history/blocks_xcos/MATSUM.xcos b/src/main/webapp/history/blocks_xcos/MATSUM.xcos
index 8d15b9c..8d15b9c 100644
--- a/history/blocks_xcos/MATSUM.xcos
+++ b/src/main/webapp/history/blocks_xcos/MATSUM.xcos
diff --git a/history/blocks_xcos/MATTRAN.xcos b/src/main/webapp/history/blocks_xcos/MATTRAN.xcos
index 64e5df3..64e5df3 100644
--- a/history/blocks_xcos/MATTRAN.xcos
+++ b/src/main/webapp/history/blocks_xcos/MATTRAN.xcos
diff --git a/history/blocks_xcos/MATZCONJ.xcos b/src/main/webapp/history/blocks_xcos/MATZCONJ.xcos
index b31006f..b31006f 100644
--- a/history/blocks_xcos/MATZCONJ.xcos
+++ b/src/main/webapp/history/blocks_xcos/MATZCONJ.xcos
diff --git a/history/blocks_xcos/MATZREIM.xcos b/src/main/webapp/history/blocks_xcos/MATZREIM.xcos
index e984d49..e984d49 100644
--- a/history/blocks_xcos/MATZREIM.xcos
+++ b/src/main/webapp/history/blocks_xcos/MATZREIM.xcos
diff --git a/history/blocks_xcos/MAXMIN.xcos b/src/main/webapp/history/blocks_xcos/MAXMIN.xcos
index 3652677..3652677 100644
--- a/history/blocks_xcos/MAXMIN.xcos
+++ b/src/main/webapp/history/blocks_xcos/MAXMIN.xcos
diff --git a/history/blocks_xcos/MAX_f.xcos b/src/main/webapp/history/blocks_xcos/MAX_f.xcos
index d89b665..d89b665 100644
--- a/history/blocks_xcos/MAX_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/MAX_f.xcos
diff --git a/history/blocks_xcos/MBLOCK.xcos b/src/main/webapp/history/blocks_xcos/MBLOCK.xcos
index 651e9c7..651e9c7 100644
--- a/history/blocks_xcos/MBLOCK.xcos
+++ b/src/main/webapp/history/blocks_xcos/MBLOCK.xcos
diff --git a/history/blocks_xcos/MCLOCK_f.xcos b/src/main/webapp/history/blocks_xcos/MCLOCK_f.xcos
index 9bc2366..9bc2366 100644
--- a/history/blocks_xcos/MCLOCK_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/MCLOCK_f.xcos
diff --git a/history/blocks_xcos/MFCLCK_f.xcos b/src/main/webapp/history/blocks_xcos/MFCLCK_f.xcos
index fb43aa1..fb43aa1 100644
--- a/history/blocks_xcos/MFCLCK_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/MFCLCK_f.xcos
diff --git a/history/blocks_xcos/MIN_f.xcos b/src/main/webapp/history/blocks_xcos/MIN_f.xcos
index 5846c1e..5846c1e 100644
--- a/history/blocks_xcos/MIN_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/MIN_f.xcos
diff --git a/history/blocks_xcos/MUX.xcos b/src/main/webapp/history/blocks_xcos/MUX.xcos
index 396cf23..396cf23 100644
--- a/history/blocks_xcos/MUX.xcos
+++ b/src/main/webapp/history/blocks_xcos/MUX.xcos
diff --git a/history/blocks_xcos/MUX_f.xcos b/src/main/webapp/history/blocks_xcos/MUX_f.xcos
index 2bc295f..2bc295f 100644
--- a/history/blocks_xcos/MUX_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/MUX_f.xcos
diff --git a/history/blocks_xcos/M_SWITCH.xcos b/src/main/webapp/history/blocks_xcos/M_SWITCH.xcos
index c22349d..c22349d 100644
--- a/history/blocks_xcos/M_SWITCH.xcos
+++ b/src/main/webapp/history/blocks_xcos/M_SWITCH.xcos
diff --git a/history/blocks_xcos/M_freq.xcos b/src/main/webapp/history/blocks_xcos/M_freq.xcos
index f2d8368..f2d8368 100644
--- a/history/blocks_xcos/M_freq.xcos
+++ b/src/main/webapp/history/blocks_xcos/M_freq.xcos
diff --git a/history/blocks_xcos/Modulo_Count.xcos b/src/main/webapp/history/blocks_xcos/Modulo_Count.xcos
index 5c99ee3..5c99ee3 100644
--- a/history/blocks_xcos/Modulo_Count.xcos
+++ b/src/main/webapp/history/blocks_xcos/Modulo_Count.xcos
diff --git a/history/blocks_xcos/NEGTOPOS_f.xcos b/src/main/webapp/history/blocks_xcos/NEGTOPOS_f.xcos
index f8c5072..f8c5072 100644
--- a/history/blocks_xcos/NEGTOPOS_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/NEGTOPOS_f.xcos
diff --git a/history/blocks_xcos/NMOS.xcos b/src/main/webapp/history/blocks_xcos/NMOS.xcos
index 0016973..0016973 100644
--- a/history/blocks_xcos/NMOS.xcos
+++ b/src/main/webapp/history/blocks_xcos/NMOS.xcos
diff --git a/history/blocks_xcos/NPN.xcos b/src/main/webapp/history/blocks_xcos/NPN.xcos
index 8b1b964..8b1b964 100644
--- a/history/blocks_xcos/NPN.xcos
+++ b/src/main/webapp/history/blocks_xcos/NPN.xcos
diff --git a/history/blocks_xcos/NRMSOM_f.xcos b/src/main/webapp/history/blocks_xcos/NRMSOM_f.xcos
index 9ecaea3..9ecaea3 100644
--- a/history/blocks_xcos/NRMSOM_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/NRMSOM_f.xcos
diff --git a/history/blocks_xcos/OUTIMPL_f.xcos b/src/main/webapp/history/blocks_xcos/OUTIMPL_f.xcos
index 0a221a4..0a221a4 100644
--- a/history/blocks_xcos/OUTIMPL_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/OUTIMPL_f.xcos
diff --git a/history/blocks_xcos/OUT_f.xcos b/src/main/webapp/history/blocks_xcos/OUT_f.xcos
index 5190490..5190490 100644
--- a/history/blocks_xcos/OUT_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/OUT_f.xcos
diff --git a/history/blocks_xcos/OpAmp.xcos b/src/main/webapp/history/blocks_xcos/OpAmp.xcos
index 31de573..31de573 100644
--- a/history/blocks_xcos/OpAmp.xcos
+++ b/src/main/webapp/history/blocks_xcos/OpAmp.xcos
diff --git a/history/blocks_xcos/PDE.xcos b/src/main/webapp/history/blocks_xcos/PDE.xcos
index 897a6ce..897a6ce 100644
--- a/history/blocks_xcos/PDE.xcos
+++ b/src/main/webapp/history/blocks_xcos/PDE.xcos
diff --git a/history/blocks_xcos/PID.xcos b/src/main/webapp/history/blocks_xcos/PID.xcos
index c7cfc69..c7cfc69 100644
--- a/history/blocks_xcos/PID.xcos
+++ b/src/main/webapp/history/blocks_xcos/PID.xcos
diff --git a/history/blocks_xcos/PMOS.xcos b/src/main/webapp/history/blocks_xcos/PMOS.xcos
index c7ba939..c7ba939 100644
--- a/history/blocks_xcos/PMOS.xcos
+++ b/src/main/webapp/history/blocks_xcos/PMOS.xcos
diff --git a/history/blocks_xcos/PNP.xcos b/src/main/webapp/history/blocks_xcos/PNP.xcos
index 4722414..4722414 100644
--- a/history/blocks_xcos/PNP.xcos
+++ b/src/main/webapp/history/blocks_xcos/PNP.xcos
diff --git a/history/blocks_xcos/POSTONEG_f.xcos b/src/main/webapp/history/blocks_xcos/POSTONEG_f.xcos
index 415d258..415d258 100644
--- a/history/blocks_xcos/POSTONEG_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/POSTONEG_f.xcos
diff --git a/history/blocks_xcos/POWBLK_f.xcos b/src/main/webapp/history/blocks_xcos/POWBLK_f.xcos
index 6d01b91..6d01b91 100644
--- a/history/blocks_xcos/POWBLK_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/POWBLK_f.xcos
diff --git a/history/blocks_xcos/PRODUCT.xcos b/src/main/webapp/history/blocks_xcos/PRODUCT.xcos
index 8bf5d1a..8bf5d1a 100644
--- a/history/blocks_xcos/PRODUCT.xcos
+++ b/src/main/webapp/history/blocks_xcos/PRODUCT.xcos
diff --git a/history/blocks_xcos/PROD_f.xcos b/src/main/webapp/history/blocks_xcos/PROD_f.xcos
index 1d1c91e..1d1c91e 100644
--- a/history/blocks_xcos/PROD_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/PROD_f.xcos
diff --git a/history/blocks_xcos/PULSE_SC.xcos b/src/main/webapp/history/blocks_xcos/PULSE_SC.xcos
index c3bf9ef..c3bf9ef 100644
--- a/history/blocks_xcos/PULSE_SC.xcos
+++ b/src/main/webapp/history/blocks_xcos/PULSE_SC.xcos
diff --git a/history/blocks_xcos/PerteDP.xcos b/src/main/webapp/history/blocks_xcos/PerteDP.xcos
index 9ad675d..9ad675d 100644
--- a/history/blocks_xcos/PerteDP.xcos
+++ b/src/main/webapp/history/blocks_xcos/PerteDP.xcos
diff --git a/history/blocks_xcos/PotentialSensor.xcos b/src/main/webapp/history/blocks_xcos/PotentialSensor.xcos
index 1b07ac3..1b07ac3 100644
--- a/history/blocks_xcos/PotentialSensor.xcos
+++ b/src/main/webapp/history/blocks_xcos/PotentialSensor.xcos
diff --git a/history/blocks_xcos/PuitsP.xcos b/src/main/webapp/history/blocks_xcos/PuitsP.xcos
index 89d2b51..89d2b51 100644
--- a/history/blocks_xcos/PuitsP.xcos
+++ b/src/main/webapp/history/blocks_xcos/PuitsP.xcos
diff --git a/history/blocks_xcos/QUANT_f.xcos b/src/main/webapp/history/blocks_xcos/QUANT_f.xcos
index 590cf48..590cf48 100644
--- a/history/blocks_xcos/QUANT_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/QUANT_f.xcos
diff --git a/history/blocks_xcos/RAMP.xcos b/src/main/webapp/history/blocks_xcos/RAMP.xcos
index c79760c..c79760c 100644
--- a/history/blocks_xcos/RAMP.xcos
+++ b/src/main/webapp/history/blocks_xcos/RAMP.xcos
diff --git a/history/blocks_xcos/RAND_m.xcos b/src/main/webapp/history/blocks_xcos/RAND_m.xcos
index 85aee60..85aee60 100644
--- a/history/blocks_xcos/RAND_m.xcos
+++ b/src/main/webapp/history/blocks_xcos/RAND_m.xcos
diff --git a/history/blocks_xcos/RATELIMITER.xcos b/src/main/webapp/history/blocks_xcos/RATELIMITER.xcos
index 3246f1c..3246f1c 100644
--- a/history/blocks_xcos/RATELIMITER.xcos
+++ b/src/main/webapp/history/blocks_xcos/RATELIMITER.xcos
diff --git a/history/blocks_xcos/READAU_f.xcos b/src/main/webapp/history/blocks_xcos/READAU_f.xcos
index 187c3ac..187c3ac 100644
--- a/history/blocks_xcos/READAU_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/READAU_f.xcos
diff --git a/history/blocks_xcos/READC_f.xcos b/src/main/webapp/history/blocks_xcos/READC_f.xcos
index efc1ec7..efc1ec7 100644
--- a/history/blocks_xcos/READC_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/READC_f.xcos
diff --git a/history/blocks_xcos/REGISTER.xcos b/src/main/webapp/history/blocks_xcos/REGISTER.xcos
index 9fe8ec4..9fe8ec4 100644
--- a/history/blocks_xcos/REGISTER.xcos
+++ b/src/main/webapp/history/blocks_xcos/REGISTER.xcos
diff --git a/history/blocks_xcos/RELATIONALOP.xcos b/src/main/webapp/history/blocks_xcos/RELATIONALOP.xcos
index 5b6e98c..5b6e98c 100644
--- a/history/blocks_xcos/RELATIONALOP.xcos
+++ b/src/main/webapp/history/blocks_xcos/RELATIONALOP.xcos
diff --git a/history/blocks_xcos/RELAY_f.xcos b/src/main/webapp/history/blocks_xcos/RELAY_f.xcos
index d47fc92..d47fc92 100644
--- a/history/blocks_xcos/RELAY_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/RELAY_f.xcos
diff --git a/history/blocks_xcos/RFILE_f.xcos b/src/main/webapp/history/blocks_xcos/RFILE_f.xcos
index dd332c8..dd332c8 100644
--- a/history/blocks_xcos/RFILE_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/RFILE_f.xcos
diff --git a/history/blocks_xcos/RICC.xcos b/src/main/webapp/history/blocks_xcos/RICC.xcos
index 96f099a..96f099a 100644
--- a/history/blocks_xcos/RICC.xcos
+++ b/src/main/webapp/history/blocks_xcos/RICC.xcos
diff --git a/history/blocks_xcos/ROOTCOEF.xcos b/src/main/webapp/history/blocks_xcos/ROOTCOEF.xcos
index 2b758f1..2b758f1 100644
--- a/history/blocks_xcos/ROOTCOEF.xcos
+++ b/src/main/webapp/history/blocks_xcos/ROOTCOEF.xcos
diff --git a/history/blocks_xcos/Resistor.xcos b/src/main/webapp/history/blocks_xcos/Resistor.xcos
index 7a6316d..7a6316d 100644
--- a/history/blocks_xcos/Resistor.xcos
+++ b/src/main/webapp/history/blocks_xcos/Resistor.xcos
diff --git a/history/blocks_xcos/SAMPHOLD_m.xcos b/src/main/webapp/history/blocks_xcos/SAMPHOLD_m.xcos
index 2ade678..2ade678 100644
--- a/history/blocks_xcos/SAMPHOLD_m.xcos
+++ b/src/main/webapp/history/blocks_xcos/SAMPHOLD_m.xcos
diff --git a/history/blocks_xcos/SATURATION.xcos b/src/main/webapp/history/blocks_xcos/SATURATION.xcos
index 8875612..8875612 100644
--- a/history/blocks_xcos/SATURATION.xcos
+++ b/src/main/webapp/history/blocks_xcos/SATURATION.xcos
diff --git a/history/blocks_xcos/SAWTOOTH_f.xcos b/src/main/webapp/history/blocks_xcos/SAWTOOTH_f.xcos
index f896b58..f896b58 100644
--- a/history/blocks_xcos/SAWTOOTH_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/SAWTOOTH_f.xcos
diff --git a/history/blocks_xcos/SCALAR2VECTOR.xcos b/src/main/webapp/history/blocks_xcos/SCALAR2VECTOR.xcos
index fa04f71..fa04f71 100644
--- a/history/blocks_xcos/SCALAR2VECTOR.xcos
+++ b/src/main/webapp/history/blocks_xcos/SCALAR2VECTOR.xcos
diff --git a/history/blocks_xcos/SELECT_m.xcos b/src/main/webapp/history/blocks_xcos/SELECT_m.xcos
index 900a228..900a228 100644
--- a/history/blocks_xcos/SELECT_m.xcos
+++ b/src/main/webapp/history/blocks_xcos/SELECT_m.xcos
diff --git a/history/blocks_xcos/SELF_SWITCH.xcos b/src/main/webapp/history/blocks_xcos/SELF_SWITCH.xcos
index b169105..b169105 100644
--- a/history/blocks_xcos/SELF_SWITCH.xcos
+++ b/src/main/webapp/history/blocks_xcos/SELF_SWITCH.xcos
diff --git a/history/blocks_xcos/SHIFT.xcos b/src/main/webapp/history/blocks_xcos/SHIFT.xcos
index a3db871..a3db871 100644
--- a/history/blocks_xcos/SHIFT.xcos
+++ b/src/main/webapp/history/blocks_xcos/SHIFT.xcos
diff --git a/history/blocks_xcos/SIGNUM.xcos b/src/main/webapp/history/blocks_xcos/SIGNUM.xcos
index 05fe019..05fe019 100644
--- a/history/blocks_xcos/SIGNUM.xcos
+++ b/src/main/webapp/history/blocks_xcos/SIGNUM.xcos
diff --git a/history/blocks_xcos/SINBLK_f.xcos b/src/main/webapp/history/blocks_xcos/SINBLK_f.xcos
index fafb5ae..fafb5ae 100644
--- a/history/blocks_xcos/SINBLK_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/SINBLK_f.xcos
diff --git a/history/blocks_xcos/SOM_f.xcos b/src/main/webapp/history/blocks_xcos/SOM_f.xcos
index 06852e8..06852e8 100644
--- a/history/blocks_xcos/SOM_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/SOM_f.xcos
diff --git a/history/blocks_xcos/SQRT.xcos b/src/main/webapp/history/blocks_xcos/SQRT.xcos
index 05a31c2..05a31c2 100644
--- a/history/blocks_xcos/SQRT.xcos
+++ b/src/main/webapp/history/blocks_xcos/SQRT.xcos
diff --git a/history/blocks_xcos/SRFLIPFLOP.xcos b/src/main/webapp/history/blocks_xcos/SRFLIPFLOP.xcos
index 099bc34..099bc34 100644
--- a/history/blocks_xcos/SRFLIPFLOP.xcos
+++ b/src/main/webapp/history/blocks_xcos/SRFLIPFLOP.xcos
diff --git a/history/blocks_xcos/STEP_FUNCTION.xcos b/src/main/webapp/history/blocks_xcos/STEP_FUNCTION.xcos
index 049a3c9..049a3c9 100644
--- a/history/blocks_xcos/STEP_FUNCTION.xcos
+++ b/src/main/webapp/history/blocks_xcos/STEP_FUNCTION.xcos
diff --git a/history/blocks_xcos/SUBMAT.xcos b/src/main/webapp/history/blocks_xcos/SUBMAT.xcos
index 67e00c5..67e00c5 100644
--- a/history/blocks_xcos/SUBMAT.xcos
+++ b/src/main/webapp/history/blocks_xcos/SUBMAT.xcos
diff --git a/history/blocks_xcos/SUMMATION.xcos b/src/main/webapp/history/blocks_xcos/SUMMATION.xcos
index 3d966eb..3d966eb 100644
--- a/history/blocks_xcos/SUMMATION.xcos
+++ b/src/main/webapp/history/blocks_xcos/SUMMATION.xcos
diff --git a/history/blocks_xcos/SUM_f.xcos b/src/main/webapp/history/blocks_xcos/SUM_f.xcos
index 3333c9d..3333c9d 100644
--- a/history/blocks_xcos/SUM_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/SUM_f.xcos
diff --git a/history/blocks_xcos/SUPER_f.xcos b/src/main/webapp/history/blocks_xcos/SUPER_f.xcos
index 9cc0734..9cc0734 100644
--- a/history/blocks_xcos/SUPER_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/SUPER_f.xcos
diff --git a/history/blocks_xcos/SWITCH2_m.xcos b/src/main/webapp/history/blocks_xcos/SWITCH2_m.xcos
index ad8c3ee..ad8c3ee 100644
--- a/history/blocks_xcos/SWITCH2_m.xcos
+++ b/src/main/webapp/history/blocks_xcos/SWITCH2_m.xcos
diff --git a/history/blocks_xcos/SWITCH_f.xcos b/src/main/webapp/history/blocks_xcos/SWITCH_f.xcos
index 28c2409..28c2409 100644
--- a/history/blocks_xcos/SWITCH_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/SWITCH_f.xcos
diff --git a/history/blocks_xcos/SampleCLK.xcos b/src/main/webapp/history/blocks_xcos/SampleCLK.xcos
index 3365aae..3365aae 100644
--- a/history/blocks_xcos/SampleCLK.xcos
+++ b/src/main/webapp/history/blocks_xcos/SampleCLK.xcos
diff --git a/history/blocks_xcos/Sigbuilder.xcos b/src/main/webapp/history/blocks_xcos/Sigbuilder.xcos
index b618450..b618450 100644
--- a/history/blocks_xcos/Sigbuilder.xcos
+++ b/src/main/webapp/history/blocks_xcos/Sigbuilder.xcos
diff --git a/history/blocks_xcos/SineVoltage.xcos b/src/main/webapp/history/blocks_xcos/SineVoltage.xcos
index 39edb97..39edb97 100644
--- a/history/blocks_xcos/SineVoltage.xcos
+++ b/src/main/webapp/history/blocks_xcos/SineVoltage.xcos
diff --git a/history/blocks_xcos/SourceP.xcos b/src/main/webapp/history/blocks_xcos/SourceP.xcos
index de0932e..de0932e 100644
--- a/history/blocks_xcos/SourceP.xcos
+++ b/src/main/webapp/history/blocks_xcos/SourceP.xcos
diff --git a/history/blocks_xcos/Switch.xcos b/src/main/webapp/history/blocks_xcos/Switch.xcos
index 8f1eebb..8f1eebb 100644
--- a/history/blocks_xcos/Switch.xcos
+++ b/src/main/webapp/history/blocks_xcos/Switch.xcos
diff --git a/history/blocks_xcos/TANBLK_f.xcos b/src/main/webapp/history/blocks_xcos/TANBLK_f.xcos
index 1d38569..1d38569 100644
--- a/history/blocks_xcos/TANBLK_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/TANBLK_f.xcos
diff --git a/history/blocks_xcos/TCLSS.xcos b/src/main/webapp/history/blocks_xcos/TCLSS.xcos
index 6112f7e..6112f7e 100644
--- a/history/blocks_xcos/TCLSS.xcos
+++ b/src/main/webapp/history/blocks_xcos/TCLSS.xcos
diff --git a/history/blocks_xcos/TEXT_f.xcos b/src/main/webapp/history/blocks_xcos/TEXT_f.xcos
index bda263d..bda263d 100644
--- a/history/blocks_xcos/TEXT_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/TEXT_f.xcos
diff --git a/history/blocks_xcos/TIME_DELAY.xcos b/src/main/webapp/history/blocks_xcos/TIME_DELAY.xcos
index f76c91a..f76c91a 100644
--- a/history/blocks_xcos/TIME_DELAY.xcos
+++ b/src/main/webapp/history/blocks_xcos/TIME_DELAY.xcos
diff --git a/history/blocks_xcos/TIME_f.xcos b/src/main/webapp/history/blocks_xcos/TIME_f.xcos
index 5ccba49..5ccba49 100644
--- a/history/blocks_xcos/TIME_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/TIME_f.xcos
diff --git a/history/blocks_xcos/TKSCALE.xcos b/src/main/webapp/history/blocks_xcos/TKSCALE.xcos
index e26401b..e26401b 100644
--- a/history/blocks_xcos/TKSCALE.xcos
+++ b/src/main/webapp/history/blocks_xcos/TKSCALE.xcos
diff --git a/history/blocks_xcos/TOWS_c.xcos b/src/main/webapp/history/blocks_xcos/TOWS_c.xcos
index 50e5a80..50e5a80 100644
--- a/history/blocks_xcos/TOWS_c.xcos
+++ b/src/main/webapp/history/blocks_xcos/TOWS_c.xcos
diff --git a/history/blocks_xcos/TRASH_f.xcos b/src/main/webapp/history/blocks_xcos/TRASH_f.xcos
index 9089c92..9089c92 100644
--- a/history/blocks_xcos/TRASH_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/TRASH_f.xcos
diff --git a/history/blocks_xcos/TrigFun.xcos b/src/main/webapp/history/blocks_xcos/TrigFun.xcos
index b07db1c..b07db1c 100644
--- a/history/blocks_xcos/TrigFun.xcos
+++ b/src/main/webapp/history/blocks_xcos/TrigFun.xcos
diff --git a/history/blocks_xcos/VARIABLE_DELAY.xcos b/src/main/webapp/history/blocks_xcos/VARIABLE_DELAY.xcos
index 1fc7a62..1fc7a62 100644
--- a/history/blocks_xcos/VARIABLE_DELAY.xcos
+++ b/src/main/webapp/history/blocks_xcos/VARIABLE_DELAY.xcos
diff --git a/history/blocks_xcos/VVsourceAC.xcos b/src/main/webapp/history/blocks_xcos/VVsourceAC.xcos
index ca01231..ca01231 100644
--- a/history/blocks_xcos/VVsourceAC.xcos
+++ b/src/main/webapp/history/blocks_xcos/VVsourceAC.xcos
diff --git a/history/blocks_xcos/VanneReglante.xcos b/src/main/webapp/history/blocks_xcos/VanneReglante.xcos
index 376e26b..376e26b 100644
--- a/history/blocks_xcos/VanneReglante.xcos
+++ b/src/main/webapp/history/blocks_xcos/VanneReglante.xcos
diff --git a/history/blocks_xcos/VariableResistor.xcos b/src/main/webapp/history/blocks_xcos/VariableResistor.xcos
index 0ab3590..0ab3590 100644
--- a/history/blocks_xcos/VariableResistor.xcos
+++ b/src/main/webapp/history/blocks_xcos/VariableResistor.xcos
diff --git a/history/blocks_xcos/VirtualCLK0.xcos b/src/main/webapp/history/blocks_xcos/VirtualCLK0.xcos
index 0109a7b..0109a7b 100644
--- a/history/blocks_xcos/VirtualCLK0.xcos
+++ b/src/main/webapp/history/blocks_xcos/VirtualCLK0.xcos
diff --git a/history/blocks_xcos/VoltageSensor.xcos b/src/main/webapp/history/blocks_xcos/VoltageSensor.xcos
index 589c64d..589c64d 100644
--- a/history/blocks_xcos/VoltageSensor.xcos
+++ b/src/main/webapp/history/blocks_xcos/VoltageSensor.xcos
diff --git a/history/blocks_xcos/VsourceAC.xcos b/src/main/webapp/history/blocks_xcos/VsourceAC.xcos
index aa80c9f..aa80c9f 100644
--- a/history/blocks_xcos/VsourceAC.xcos
+++ b/src/main/webapp/history/blocks_xcos/VsourceAC.xcos
diff --git a/history/blocks_xcos/WFILE_f.xcos b/src/main/webapp/history/blocks_xcos/WFILE_f.xcos
index 194b80e..194b80e 100644
--- a/history/blocks_xcos/WFILE_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/WFILE_f.xcos
diff --git a/history/blocks_xcos/WRITEAU_f.xcos b/src/main/webapp/history/blocks_xcos/WRITEAU_f.xcos
index 9cdac50..9cdac50 100644
--- a/history/blocks_xcos/WRITEAU_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/WRITEAU_f.xcos
diff --git a/history/blocks_xcos/WRITEC_f.xcos b/src/main/webapp/history/blocks_xcos/WRITEC_f.xcos
index 8c51f74..8c51f74 100644
--- a/history/blocks_xcos/WRITEC_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/WRITEC_f.xcos
diff --git a/history/blocks_xcos/ZCROSS_f.xcos b/src/main/webapp/history/blocks_xcos/ZCROSS_f.xcos
index 038ca84..038ca84 100644
--- a/history/blocks_xcos/ZCROSS_f.xcos
+++ b/src/main/webapp/history/blocks_xcos/ZCROSS_f.xcos
diff --git a/history/blocks_xcos/c_block.xcos b/src/main/webapp/history/blocks_xcos/c_block.xcos
index 4a4b5e0..4a4b5e0 100644
--- a/history/blocks_xcos/c_block.xcos
+++ b/src/main/webapp/history/blocks_xcos/c_block.xcos
diff --git a/history/blocks_xcos/fortran_block.xcos b/src/main/webapp/history/blocks_xcos/fortran_block.xcos
index 0bc4378..0bc4378 100644
--- a/history/blocks_xcos/fortran_block.xcos
+++ b/src/main/webapp/history/blocks_xcos/fortran_block.xcos
diff --git a/history/blocks_xcos/freq_div.xcos b/src/main/webapp/history/blocks_xcos/freq_div.xcos
index 0786de2..0786de2 100644
--- a/history/blocks_xcos/freq_div.xcos
+++ b/src/main/webapp/history/blocks_xcos/freq_div.xcos
diff --git a/history/blocks_xcos/generic_block3.xcos b/src/main/webapp/history/blocks_xcos/generic_block3.xcos
index 8261839..8261839 100644
--- a/history/blocks_xcos/generic_block3.xcos
+++ b/src/main/webapp/history/blocks_xcos/generic_block3.xcos
diff --git a/history/blocks_xcos/scifunc_block_m.xcos b/src/main/webapp/history/blocks_xcos/scifunc_block_m.xcos
index dad27ff..dad27ff 100644
--- a/history/blocks_xcos/scifunc_block_m.xcos
+++ b/src/main/webapp/history/blocks_xcos/scifunc_block_m.xcos
diff --git a/history/data_structures/ABS_VALUE.js b/src/main/webapp/history/data_structures/ABS_VALUE.js
index ef569e9..ef569e9 100644
--- a/history/data_structures/ABS_VALUE.js
+++ b/src/main/webapp/history/data_structures/ABS_VALUE.js
diff --git a/history/data_structures/AFFICH_m.js b/src/main/webapp/history/data_structures/AFFICH_m.js
index ff0b180..ff0b180 100644
--- a/history/data_structures/AFFICH_m.js
+++ b/src/main/webapp/history/data_structures/AFFICH_m.js
diff --git a/history/data_structures/ANDBLK.js b/src/main/webapp/history/data_structures/ANDBLK.js
index 6d88e54..6d88e54 100644
--- a/history/data_structures/ANDBLK.js
+++ b/src/main/webapp/history/data_structures/ANDBLK.js
diff --git a/history/data_structures/ANDLOG_f.js b/src/main/webapp/history/data_structures/ANDLOG_f.js
index b94c240..b94c240 100644
--- a/history/data_structures/ANDLOG_f.js
+++ b/src/main/webapp/history/data_structures/ANDLOG_f.js
diff --git a/history/data_structures/AUTOMAT.js b/src/main/webapp/history/data_structures/AUTOMAT.js
index 3ceda51..3ceda51 100644
--- a/history/data_structures/AUTOMAT.js
+++ b/src/main/webapp/history/data_structures/AUTOMAT.js
diff --git a/history/data_structures/BACKLASH.js b/src/main/webapp/history/data_structures/BACKLASH.js
index d407fd7..d407fd7 100644
--- a/history/data_structures/BACKLASH.js
+++ b/src/main/webapp/history/data_structures/BACKLASH.js
diff --git a/history/data_structures/BARXY.js b/src/main/webapp/history/data_structures/BARXY.js
index 5c3cb6a..5c3cb6a 100644
--- a/history/data_structures/BARXY.js
+++ b/src/main/webapp/history/data_structures/BARXY.js
diff --git a/history/data_structures/BIGSOM_f.js b/src/main/webapp/history/data_structures/BIGSOM_f.js
index 69ce1d5..69ce1d5 100644
--- a/history/data_structures/BIGSOM_f.js
+++ b/src/main/webapp/history/data_structures/BIGSOM_f.js
diff --git a/history/data_structures/BITCLEAR.js b/src/main/webapp/history/data_structures/BITCLEAR.js
index 3e7aa24..3e7aa24 100644
--- a/history/data_structures/BITCLEAR.js
+++ b/src/main/webapp/history/data_structures/BITCLEAR.js
diff --git a/history/data_structures/BITSET.js b/src/main/webapp/history/data_structures/BITSET.js
index ed7bccf..ed7bccf 100644
--- a/history/data_structures/BITSET.js
+++ b/src/main/webapp/history/data_structures/BITSET.js
diff --git a/history/data_structures/BOUNCE.js b/src/main/webapp/history/data_structures/BOUNCE.js
index b2b8ec9..b2b8ec9 100644
--- a/history/data_structures/BOUNCE.js
+++ b/src/main/webapp/history/data_structures/BOUNCE.js
diff --git a/history/data_structures/BOUNCEXY.js b/src/main/webapp/history/data_structures/BOUNCEXY.js
index a0b3134..a0b3134 100644
--- a/history/data_structures/BOUNCEXY.js
+++ b/src/main/webapp/history/data_structures/BOUNCEXY.js
diff --git a/history/data_structures/BPLATFORM.js b/src/main/webapp/history/data_structures/BPLATFORM.js
index a7e7da4..a7e7da4 100644
--- a/history/data_structures/BPLATFORM.js
+++ b/src/main/webapp/history/data_structures/BPLATFORM.js
diff --git a/history/data_structures/Bache.js b/src/main/webapp/history/data_structures/Bache.js
index d7d3c4c..d7d3c4c 100644
--- a/history/data_structures/Bache.js
+++ b/src/main/webapp/history/data_structures/Bache.js
diff --git a/history/data_structures/CANIMXY.js b/src/main/webapp/history/data_structures/CANIMXY.js
index 0d1c11c..0d1c11c 100644
--- a/history/data_structures/CANIMXY.js
+++ b/src/main/webapp/history/data_structures/CANIMXY.js
diff --git a/history/data_structures/CANIMXY3D.js b/src/main/webapp/history/data_structures/CANIMXY3D.js
index a1ec5f1..a1ec5f1 100644
--- a/history/data_structures/CANIMXY3D.js
+++ b/src/main/webapp/history/data_structures/CANIMXY3D.js
diff --git a/history/data_structures/CBLOCK.js b/src/main/webapp/history/data_structures/CBLOCK.js
index 77eb431..77eb431 100644
--- a/history/data_structures/CBLOCK.js
+++ b/src/main/webapp/history/data_structures/CBLOCK.js
diff --git a/history/data_structures/CBLOCK4.js b/src/main/webapp/history/data_structures/CBLOCK4.js
index c4cfa2c..c4cfa2c 100644
--- a/history/data_structures/CBLOCK4.js
+++ b/src/main/webapp/history/data_structures/CBLOCK4.js
diff --git a/history/data_structures/CCS.js b/src/main/webapp/history/data_structures/CCS.js
index e405427..e405427 100644
--- a/history/data_structures/CCS.js
+++ b/src/main/webapp/history/data_structures/CCS.js
diff --git a/history/data_structures/CEVENTSCOPE.js b/src/main/webapp/history/data_structures/CEVENTSCOPE.js
index 73a3b7e..73a3b7e 100644
--- a/history/data_structures/CEVENTSCOPE.js
+++ b/src/main/webapp/history/data_structures/CEVENTSCOPE.js
diff --git a/history/data_structures/CFSCOPE.js b/src/main/webapp/history/data_structures/CFSCOPE.js
index 4a0c786..4a0c786 100644
--- a/history/data_structures/CFSCOPE.js
+++ b/src/main/webapp/history/data_structures/CFSCOPE.js
diff --git a/history/data_structures/CLINDUMMY_f.js b/src/main/webapp/history/data_structures/CLINDUMMY_f.js
index 35ca987..35ca987 100644
--- a/history/data_structures/CLINDUMMY_f.js
+++ b/src/main/webapp/history/data_structures/CLINDUMMY_f.js
diff --git a/history/data_structures/CLKFROM.js b/src/main/webapp/history/data_structures/CLKFROM.js
index baa40ec..baa40ec 100644
--- a/history/data_structures/CLKFROM.js
+++ b/src/main/webapp/history/data_structures/CLKFROM.js
diff --git a/history/data_structures/CLKGOTO.js b/src/main/webapp/history/data_structures/CLKGOTO.js
index eede81b..eede81b 100644
--- a/history/data_structures/CLKGOTO.js
+++ b/src/main/webapp/history/data_structures/CLKGOTO.js
diff --git a/history/data_structures/CLKGotoTagVisibility.js b/src/main/webapp/history/data_structures/CLKGotoTagVisibility.js
index 5a164cf..5a164cf 100644
--- a/history/data_structures/CLKGotoTagVisibility.js
+++ b/src/main/webapp/history/data_structures/CLKGotoTagVisibility.js
diff --git a/history/data_structures/CLKINV_f.js b/src/main/webapp/history/data_structures/CLKINV_f.js
index aa2d8dc..aa2d8dc 100644
--- a/history/data_structures/CLKINV_f.js
+++ b/src/main/webapp/history/data_structures/CLKINV_f.js
diff --git a/history/data_structures/CLKOUTV_f.js b/src/main/webapp/history/data_structures/CLKOUTV_f.js
index 32f4ec9..32f4ec9 100644
--- a/history/data_structures/CLKOUTV_f.js
+++ b/src/main/webapp/history/data_structures/CLKOUTV_f.js
diff --git a/history/data_structures/CLKSOMV_f.js b/src/main/webapp/history/data_structures/CLKSOMV_f.js
index 273ebc8..273ebc8 100644
--- a/history/data_structures/CLKSOMV_f.js
+++ b/src/main/webapp/history/data_structures/CLKSOMV_f.js
diff --git a/history/data_structures/CLOCK_c.js b/src/main/webapp/history/data_structures/CLOCK_c.js
index 339191e..339191e 100644
--- a/history/data_structures/CLOCK_c.js
+++ b/src/main/webapp/history/data_structures/CLOCK_c.js
diff --git a/history/data_structures/CLR.js b/src/main/webapp/history/data_structures/CLR.js
index d374d40..d374d40 100644
--- a/history/data_structures/CLR.js
+++ b/src/main/webapp/history/data_structures/CLR.js
diff --git a/history/data_structures/CLSS.js b/src/main/webapp/history/data_structures/CLSS.js
index d97157a..d97157a 100644
--- a/history/data_structures/CLSS.js
+++ b/src/main/webapp/history/data_structures/CLSS.js
diff --git a/history/data_structures/CMAT3D.js b/src/main/webapp/history/data_structures/CMAT3D.js
index 0d2fd8d..0d2fd8d 100644
--- a/history/data_structures/CMAT3D.js
+++ b/src/main/webapp/history/data_structures/CMAT3D.js
diff --git a/history/data_structures/CMATVIEW.js b/src/main/webapp/history/data_structures/CMATVIEW.js
index 3a03930..3a03930 100644
--- a/history/data_structures/CMATVIEW.js
+++ b/src/main/webapp/history/data_structures/CMATVIEW.js
diff --git a/history/data_structures/CMSCOPE.js b/src/main/webapp/history/data_structures/CMSCOPE.js
index b4d2e3d..b4d2e3d 100644
--- a/history/data_structures/CMSCOPE.js
+++ b/src/main/webapp/history/data_structures/CMSCOPE.js
diff --git a/history/data_structures/CONST.js b/src/main/webapp/history/data_structures/CONST.js
index b34361e..b34361e 100644
--- a/history/data_structures/CONST.js
+++ b/src/main/webapp/history/data_structures/CONST.js
diff --git a/history/data_structures/CONSTRAINT2_c.js b/src/main/webapp/history/data_structures/CONSTRAINT2_c.js
index d24d40c..d24d40c 100644
--- a/history/data_structures/CONSTRAINT2_c.js
+++ b/src/main/webapp/history/data_structures/CONSTRAINT2_c.js
diff --git a/history/data_structures/CONSTRAINT_c.js b/src/main/webapp/history/data_structures/CONSTRAINT_c.js
index 567ec0f..567ec0f 100644
--- a/history/data_structures/CONSTRAINT_c.js
+++ b/src/main/webapp/history/data_structures/CONSTRAINT_c.js
diff --git a/history/data_structures/CONST_f.js b/src/main/webapp/history/data_structures/CONST_f.js
index 1983ae4..1983ae4 100644
--- a/history/data_structures/CONST_f.js
+++ b/src/main/webapp/history/data_structures/CONST_f.js
diff --git a/history/data_structures/CONST_m.js b/src/main/webapp/history/data_structures/CONST_m.js
index df53c9a..df53c9a 100644
--- a/history/data_structures/CONST_m.js
+++ b/src/main/webapp/history/data_structures/CONST_m.js
diff --git a/history/data_structures/CONVERT.js b/src/main/webapp/history/data_structures/CONVERT.js
index 2a467eb..2a467eb 100644
--- a/history/data_structures/CONVERT.js
+++ b/src/main/webapp/history/data_structures/CONVERT.js
diff --git a/history/data_structures/COSBLK_f.js b/src/main/webapp/history/data_structures/COSBLK_f.js
index bcd2120..bcd2120 100644
--- a/history/data_structures/COSBLK_f.js
+++ b/src/main/webapp/history/data_structures/COSBLK_f.js
diff --git a/history/data_structures/CSCOPE.js b/src/main/webapp/history/data_structures/CSCOPE.js
index f67fec9..f67fec9 100644
--- a/history/data_structures/CSCOPE.js
+++ b/src/main/webapp/history/data_structures/CSCOPE.js
diff --git a/history/data_structures/CSCOPXY.js b/src/main/webapp/history/data_structures/CSCOPXY.js
index 17808c5..17808c5 100644
--- a/history/data_structures/CSCOPXY.js
+++ b/src/main/webapp/history/data_structures/CSCOPXY.js
diff --git a/history/data_structures/CSCOPXY3D.js b/src/main/webapp/history/data_structures/CSCOPXY3D.js
index 7a91623..7a91623 100644
--- a/history/data_structures/CSCOPXY3D.js
+++ b/src/main/webapp/history/data_structures/CSCOPXY3D.js
diff --git a/history/data_structures/CUMSUM.js b/src/main/webapp/history/data_structures/CUMSUM.js
index 6c076cf..6c076cf 100644
--- a/history/data_structures/CUMSUM.js
+++ b/src/main/webapp/history/data_structures/CUMSUM.js
diff --git a/history/data_structures/CURV_f.js b/src/main/webapp/history/data_structures/CURV_f.js
index 49e00bf..49e00bf 100644
--- a/history/data_structures/CURV_f.js
+++ b/src/main/webapp/history/data_structures/CURV_f.js
diff --git a/history/data_structures/CVS.js b/src/main/webapp/history/data_structures/CVS.js
index 5bfb5f9..5bfb5f9 100644
--- a/history/data_structures/CVS.js
+++ b/src/main/webapp/history/data_structures/CVS.js
diff --git a/history/data_structures/Capacitor.js b/src/main/webapp/history/data_structures/Capacitor.js
index c83bb8e..c83bb8e 100644
--- a/history/data_structures/Capacitor.js
+++ b/src/main/webapp/history/data_structures/Capacitor.js
diff --git a/history/data_structures/ConstantVoltage.js b/src/main/webapp/history/data_structures/ConstantVoltage.js
index add8be1..add8be1 100644
--- a/history/data_structures/ConstantVoltage.js
+++ b/src/main/webapp/history/data_structures/ConstantVoltage.js
diff --git a/history/data_structures/Counter.js b/src/main/webapp/history/data_structures/Counter.js
index 9fcff45..9fcff45 100644
--- a/history/data_structures/Counter.js
+++ b/src/main/webapp/history/data_structures/Counter.js
diff --git a/history/data_structures/CurrentSensor.js b/src/main/webapp/history/data_structures/CurrentSensor.js
index 386fa14..386fa14 100644
--- a/history/data_structures/CurrentSensor.js
+++ b/src/main/webapp/history/data_structures/CurrentSensor.js
diff --git a/history/data_structures/DEADBAND.js b/src/main/webapp/history/data_structures/DEADBAND.js
index b5c34e3..b5c34e3 100644
--- a/history/data_structures/DEADBAND.js
+++ b/src/main/webapp/history/data_structures/DEADBAND.js
diff --git a/history/data_structures/DEBUG.js b/src/main/webapp/history/data_structures/DEBUG.js
index 6d610ad..6d610ad 100644
--- a/history/data_structures/DEBUG.js
+++ b/src/main/webapp/history/data_structures/DEBUG.js
diff --git a/history/data_structures/DELAYV_f.js b/src/main/webapp/history/data_structures/DELAYV_f.js
index f262231..f262231 100644
--- a/history/data_structures/DELAYV_f.js
+++ b/src/main/webapp/history/data_structures/DELAYV_f.js
diff --git a/history/data_structures/DELAY_f.js b/src/main/webapp/history/data_structures/DELAY_f.js
index 9f2ea31..9f2ea31 100644
--- a/history/data_structures/DELAY_f.js
+++ b/src/main/webapp/history/data_structures/DELAY_f.js
diff --git a/history/data_structures/DEMUX.js b/src/main/webapp/history/data_structures/DEMUX.js
index 083b3ec..083b3ec 100644
--- a/history/data_structures/DEMUX.js
+++ b/src/main/webapp/history/data_structures/DEMUX.js
diff --git a/history/data_structures/DEMUX_f.js b/src/main/webapp/history/data_structures/DEMUX_f.js
index 161b4a1..161b4a1 100644
--- a/history/data_structures/DEMUX_f.js
+++ b/src/main/webapp/history/data_structures/DEMUX_f.js
diff --git a/history/data_structures/DERIV.js b/src/main/webapp/history/data_structures/DERIV.js
index 12f3503..12f3503 100644
--- a/history/data_structures/DERIV.js
+++ b/src/main/webapp/history/data_structures/DERIV.js
diff --git a/history/data_structures/DFLIPFLOP.js b/src/main/webapp/history/data_structures/DFLIPFLOP.js
index ef30761..ef30761 100644
--- a/history/data_structures/DFLIPFLOP.js
+++ b/src/main/webapp/history/data_structures/DFLIPFLOP.js
diff --git a/history/data_structures/DIFF_f.js b/src/main/webapp/history/data_structures/DIFF_f.js
index 18b0711..18b0711 100644
--- a/history/data_structures/DIFF_f.js
+++ b/src/main/webapp/history/data_structures/DIFF_f.js
diff --git a/history/data_structures/DLATCH.js b/src/main/webapp/history/data_structures/DLATCH.js
index f2d9e89..f2d9e89 100644
--- a/history/data_structures/DLATCH.js
+++ b/src/main/webapp/history/data_structures/DLATCH.js
diff --git a/history/data_structures/DLR.js b/src/main/webapp/history/data_structures/DLR.js
index a42f9d9..a42f9d9 100644
--- a/history/data_structures/DLR.js
+++ b/src/main/webapp/history/data_structures/DLR.js
diff --git a/history/data_structures/DLRADAPT_f.js b/src/main/webapp/history/data_structures/DLRADAPT_f.js
index 08e7047..08e7047 100644
--- a/history/data_structures/DLRADAPT_f.js
+++ b/src/main/webapp/history/data_structures/DLRADAPT_f.js
diff --git a/history/data_structures/DLSS.js b/src/main/webapp/history/data_structures/DLSS.js
index e946ae2..e946ae2 100644
--- a/history/data_structures/DLSS.js
+++ b/src/main/webapp/history/data_structures/DLSS.js
diff --git a/history/data_structures/DOLLAR.js b/src/main/webapp/history/data_structures/DOLLAR.js
index b88da24..b88da24 100644
--- a/history/data_structures/DOLLAR.js
+++ b/src/main/webapp/history/data_structures/DOLLAR.js
diff --git a/history/data_structures/DOLLAR_f.js b/src/main/webapp/history/data_structures/DOLLAR_f.js
index 19d03d4..19d03d4 100644
--- a/history/data_structures/DOLLAR_f.js
+++ b/src/main/webapp/history/data_structures/DOLLAR_f.js
diff --git a/history/data_structures/DOLLAR_m.js b/src/main/webapp/history/data_structures/DOLLAR_m.js
index 155f35b..155f35b 100644
--- a/history/data_structures/DOLLAR_m.js
+++ b/src/main/webapp/history/data_structures/DOLLAR_m.js
diff --git a/history/data_structures/Diode.js b/src/main/webapp/history/data_structures/Diode.js
index 3c2d979..3c2d979 100644
--- a/history/data_structures/Diode.js
+++ b/src/main/webapp/history/data_structures/Diode.js
diff --git a/history/data_structures/EDGE_TRIGGER.js b/src/main/webapp/history/data_structures/EDGE_TRIGGER.js
index 0ca790b..0ca790b 100644
--- a/history/data_structures/EDGE_TRIGGER.js
+++ b/src/main/webapp/history/data_structures/EDGE_TRIGGER.js
diff --git a/history/data_structures/ENDBLK.js b/src/main/webapp/history/data_structures/ENDBLK.js
index cc253ef..cc253ef 100644
--- a/history/data_structures/ENDBLK.js
+++ b/src/main/webapp/history/data_structures/ENDBLK.js
diff --git a/history/data_structures/END_c.js b/src/main/webapp/history/data_structures/END_c.js
index 027d6ca..027d6ca 100644
--- a/history/data_structures/END_c.js
+++ b/src/main/webapp/history/data_structures/END_c.js
diff --git a/history/data_structures/ESELECT_f.js b/src/main/webapp/history/data_structures/ESELECT_f.js
index 7831538..7831538 100644
--- a/history/data_structures/ESELECT_f.js
+++ b/src/main/webapp/history/data_structures/ESELECT_f.js
diff --git a/history/data_structures/EVTDLY_c.js b/src/main/webapp/history/data_structures/EVTDLY_c.js
index 7ada20f..7ada20f 100644
--- a/history/data_structures/EVTDLY_c.js
+++ b/src/main/webapp/history/data_structures/EVTDLY_c.js
diff --git a/history/data_structures/EVTGEN_f.js b/src/main/webapp/history/data_structures/EVTGEN_f.js
index dc7754e..dc7754e 100644
--- a/history/data_structures/EVTGEN_f.js
+++ b/src/main/webapp/history/data_structures/EVTGEN_f.js
diff --git a/history/data_structures/EVTVARDLY.js b/src/main/webapp/history/data_structures/EVTVARDLY.js
index 075c318..075c318 100644
--- a/history/data_structures/EVTVARDLY.js
+++ b/src/main/webapp/history/data_structures/EVTVARDLY.js
diff --git a/history/data_structures/EXPBLK_m.js b/src/main/webapp/history/data_structures/EXPBLK_m.js
index 7cfd9af..7cfd9af 100644
--- a/history/data_structures/EXPBLK_m.js
+++ b/src/main/webapp/history/data_structures/EXPBLK_m.js
diff --git a/history/data_structures/EXPRESSION.js b/src/main/webapp/history/data_structures/EXPRESSION.js
index aad864c..aad864c 100644
--- a/history/data_structures/EXPRESSION.js
+++ b/src/main/webapp/history/data_structures/EXPRESSION.js
diff --git a/history/data_structures/EXTRACT.js b/src/main/webapp/history/data_structures/EXTRACT.js
index 71f82b7..71f82b7 100644
--- a/history/data_structures/EXTRACT.js
+++ b/src/main/webapp/history/data_structures/EXTRACT.js
diff --git a/history/data_structures/EXTRACTBITS.js b/src/main/webapp/history/data_structures/EXTRACTBITS.js
index a7e621b..a7e621b 100644
--- a/history/data_structures/EXTRACTBITS.js
+++ b/src/main/webapp/history/data_structures/EXTRACTBITS.js
diff --git a/history/data_structures/EXTRACTOR.js b/src/main/webapp/history/data_structures/EXTRACTOR.js
index fe8472d..fe8472d 100644
--- a/history/data_structures/EXTRACTOR.js
+++ b/src/main/webapp/history/data_structures/EXTRACTOR.js
diff --git a/history/data_structures/EXTTRI.js b/src/main/webapp/history/data_structures/EXTTRI.js
index 5702134..5702134 100644
--- a/history/data_structures/EXTTRI.js
+++ b/src/main/webapp/history/data_structures/EXTTRI.js
diff --git a/history/data_structures/Extract_Activation.js b/src/main/webapp/history/data_structures/Extract_Activation.js
index ed98bf4..ed98bf4 100644
--- a/history/data_structures/Extract_Activation.js
+++ b/src/main/webapp/history/data_structures/Extract_Activation.js
diff --git a/history/data_structures/FROM.js b/src/main/webapp/history/data_structures/FROM.js
index 5a5a591..5a5a591 100644
--- a/history/data_structures/FROM.js
+++ b/src/main/webapp/history/data_structures/FROM.js
diff --git a/history/data_structures/FROMMO.js b/src/main/webapp/history/data_structures/FROMMO.js
index e8573de..e8573de 100644
--- a/history/data_structures/FROMMO.js
+++ b/src/main/webapp/history/data_structures/FROMMO.js
diff --git a/history/data_structures/FROMWSB.js b/src/main/webapp/history/data_structures/FROMWSB.js
index a610e91..a610e91 100644
--- a/history/data_structures/FROMWSB.js
+++ b/src/main/webapp/history/data_structures/FROMWSB.js
diff --git a/history/data_structures/Flowmeter.js b/src/main/webapp/history/data_structures/Flowmeter.js
index b17778b..b17778b 100644
--- a/history/data_structures/Flowmeter.js
+++ b/src/main/webapp/history/data_structures/Flowmeter.js
diff --git a/history/data_structures/GAINBLK.js b/src/main/webapp/history/data_structures/GAINBLK.js
index c16da52..c16da52 100644
--- a/history/data_structures/GAINBLK.js
+++ b/src/main/webapp/history/data_structures/GAINBLK.js
diff --git a/history/data_structures/GAINBLK_f.js b/src/main/webapp/history/data_structures/GAINBLK_f.js
index bb31112..bb31112 100644
--- a/history/data_structures/GAINBLK_f.js
+++ b/src/main/webapp/history/data_structures/GAINBLK_f.js
diff --git a/history/data_structures/GAIN_f.js b/src/main/webapp/history/data_structures/GAIN_f.js
index 0b78d54..0b78d54 100644
--- a/history/data_structures/GAIN_f.js
+++ b/src/main/webapp/history/data_structures/GAIN_f.js
diff --git a/history/data_structures/GENERAL_f.js b/src/main/webapp/history/data_structures/GENERAL_f.js
index 1db91b0..1db91b0 100644
--- a/history/data_structures/GENERAL_f.js
+++ b/src/main/webapp/history/data_structures/GENERAL_f.js
diff --git a/history/data_structures/GENSIN_f.js b/src/main/webapp/history/data_structures/GENSIN_f.js
index 13638df..13638df 100644
--- a/history/data_structures/GENSIN_f.js
+++ b/src/main/webapp/history/data_structures/GENSIN_f.js
diff --git a/history/data_structures/GENSQR_f.js b/src/main/webapp/history/data_structures/GENSQR_f.js
index e4d52e1..e4d52e1 100644
--- a/history/data_structures/GENSQR_f.js
+++ b/src/main/webapp/history/data_structures/GENSQR_f.js
diff --git a/history/data_structures/GOTO.js b/src/main/webapp/history/data_structures/GOTO.js
index 9c0c19b..9c0c19b 100644
--- a/history/data_structures/GOTO.js
+++ b/src/main/webapp/history/data_structures/GOTO.js
diff --git a/history/data_structures/GOTOMO.js b/src/main/webapp/history/data_structures/GOTOMO.js
index 70a1907..70a1907 100644
--- a/history/data_structures/GOTOMO.js
+++ b/src/main/webapp/history/data_structures/GOTOMO.js
diff --git a/history/data_structures/GotoTagVisibility.js b/src/main/webapp/history/data_structures/GotoTagVisibility.js
index 27c4d72..27c4d72 100644
--- a/history/data_structures/GotoTagVisibility.js
+++ b/src/main/webapp/history/data_structures/GotoTagVisibility.js
diff --git a/history/data_structures/GotoTagVisibilityMO.js b/src/main/webapp/history/data_structures/GotoTagVisibilityMO.js
index 8ede428..8ede428 100644
--- a/history/data_structures/GotoTagVisibilityMO.js
+++ b/src/main/webapp/history/data_structures/GotoTagVisibilityMO.js
diff --git a/history/data_structures/Ground.js b/src/main/webapp/history/data_structures/Ground.js
index 53c0d1a..53c0d1a 100644
--- a/history/data_structures/Ground.js
+++ b/src/main/webapp/history/data_structures/Ground.js
diff --git a/history/data_structures/Gyrator.js b/src/main/webapp/history/data_structures/Gyrator.js
index 6e9b7a9..6e9b7a9 100644
--- a/history/data_structures/Gyrator.js
+++ b/src/main/webapp/history/data_structures/Gyrator.js
diff --git a/history/data_structures/HALT_f.js b/src/main/webapp/history/data_structures/HALT_f.js
index 7199f8c..7199f8c 100644
--- a/history/data_structures/HALT_f.js
+++ b/src/main/webapp/history/data_structures/HALT_f.js
diff --git a/history/data_structures/HYSTHERESIS.js b/src/main/webapp/history/data_structures/HYSTHERESIS.js
index 22f72d0..22f72d0 100644
--- a/history/data_structures/HYSTHERESIS.js
+++ b/src/main/webapp/history/data_structures/HYSTHERESIS.js
diff --git a/history/data_structures/IFTHEL_f.js b/src/main/webapp/history/data_structures/IFTHEL_f.js
index 5830a9d..5830a9d 100644
--- a/history/data_structures/IFTHEL_f.js
+++ b/src/main/webapp/history/data_structures/IFTHEL_f.js
diff --git a/history/data_structures/INIMPL_f.js b/src/main/webapp/history/data_structures/INIMPL_f.js
index 968ebb3..968ebb3 100644
--- a/history/data_structures/INIMPL_f.js
+++ b/src/main/webapp/history/data_structures/INIMPL_f.js
diff --git a/history/data_structures/INTEGRAL_f.js b/src/main/webapp/history/data_structures/INTEGRAL_f.js
index 70589f4..70589f4 100644
--- a/history/data_structures/INTEGRAL_f.js
+++ b/src/main/webapp/history/data_structures/INTEGRAL_f.js
diff --git a/history/data_structures/INTEGRAL_m.js b/src/main/webapp/history/data_structures/INTEGRAL_m.js
index 1606b27..1606b27 100644
--- a/history/data_structures/INTEGRAL_m.js
+++ b/src/main/webapp/history/data_structures/INTEGRAL_m.js
diff --git a/history/data_structures/INTMUL.js b/src/main/webapp/history/data_structures/INTMUL.js
index b741d3e..b741d3e 100644
--- a/history/data_structures/INTMUL.js
+++ b/src/main/webapp/history/data_structures/INTMUL.js
diff --git a/history/data_structures/INTRP2BLK_f.js b/src/main/webapp/history/data_structures/INTRP2BLK_f.js
index a70bdec..a70bdec 100644
--- a/history/data_structures/INTRP2BLK_f.js
+++ b/src/main/webapp/history/data_structures/INTRP2BLK_f.js
diff --git a/history/data_structures/INTRPLBLK_f.js b/src/main/webapp/history/data_structures/INTRPLBLK_f.js
index 4cfc3f4..4cfc3f4 100644
--- a/history/data_structures/INTRPLBLK_f.js
+++ b/src/main/webapp/history/data_structures/INTRPLBLK_f.js
diff --git a/history/data_structures/INVBLK.js b/src/main/webapp/history/data_structures/INVBLK.js
index f99b5c7..f99b5c7 100644
--- a/history/data_structures/INVBLK.js
+++ b/src/main/webapp/history/data_structures/INVBLK.js
diff --git a/history/data_structures/IN_f.js b/src/main/webapp/history/data_structures/IN_f.js
index 8b39f0b..8b39f0b 100644
--- a/history/data_structures/IN_f.js
+++ b/src/main/webapp/history/data_structures/IN_f.js
diff --git a/history/data_structures/ISELECT_m.js b/src/main/webapp/history/data_structures/ISELECT_m.js
index 63322de..63322de 100644
--- a/history/data_structures/ISELECT_m.js
+++ b/src/main/webapp/history/data_structures/ISELECT_m.js
diff --git a/history/data_structures/IdealTransformer.js b/src/main/webapp/history/data_structures/IdealTransformer.js
index 54d38f7..54d38f7 100644
--- a/history/data_structures/IdealTransformer.js
+++ b/src/main/webapp/history/data_structures/IdealTransformer.js
diff --git a/history/data_structures/Inductor.js b/src/main/webapp/history/data_structures/Inductor.js
index 470b8db..470b8db 100644
--- a/history/data_structures/Inductor.js
+++ b/src/main/webapp/history/data_structures/Inductor.js
diff --git a/history/data_structures/JKFLIPFLOP.js b/src/main/webapp/history/data_structures/JKFLIPFLOP.js
index 7de61c4..7de61c4 100644
--- a/history/data_structures/JKFLIPFLOP.js
+++ b/src/main/webapp/history/data_structures/JKFLIPFLOP.js
diff --git a/history/data_structures/LOGBLK_f.js b/src/main/webapp/history/data_structures/LOGBLK_f.js
index 728dc8a..728dc8a 100644
--- a/history/data_structures/LOGBLK_f.js
+++ b/src/main/webapp/history/data_structures/LOGBLK_f.js
diff --git a/history/data_structures/LOGIC.js b/src/main/webapp/history/data_structures/LOGIC.js
index 453ecae..453ecae 100644
--- a/history/data_structures/LOGIC.js
+++ b/src/main/webapp/history/data_structures/LOGIC.js
diff --git a/history/data_structures/LOGICAL_OP.js b/src/main/webapp/history/data_structures/LOGICAL_OP.js
index 5c50e07..5c50e07 100644
--- a/history/data_structures/LOGICAL_OP.js
+++ b/src/main/webapp/history/data_structures/LOGICAL_OP.js
diff --git a/history/data_structures/LOOKUP_f.js b/src/main/webapp/history/data_structures/LOOKUP_f.js
index b31e361..b31e361 100644
--- a/history/data_structures/LOOKUP_f.js
+++ b/src/main/webapp/history/data_structures/LOOKUP_f.js
diff --git a/history/data_structures/MATBKSL.js b/src/main/webapp/history/data_structures/MATBKSL.js
index 94b0ede..94b0ede 100644
--- a/history/data_structures/MATBKSL.js
+++ b/src/main/webapp/history/data_structures/MATBKSL.js
diff --git a/history/data_structures/MATCATH.js b/src/main/webapp/history/data_structures/MATCATH.js
index 07beb4e..07beb4e 100644
--- a/history/data_structures/MATCATH.js
+++ b/src/main/webapp/history/data_structures/MATCATH.js
diff --git a/history/data_structures/MATCATV.js b/src/main/webapp/history/data_structures/MATCATV.js
index 4fd6959..4fd6959 100644
--- a/history/data_structures/MATCATV.js
+++ b/src/main/webapp/history/data_structures/MATCATV.js
diff --git a/history/data_structures/MATDET.js b/src/main/webapp/history/data_structures/MATDET.js
index 8912194..8912194 100644
--- a/history/data_structures/MATDET.js
+++ b/src/main/webapp/history/data_structures/MATDET.js
diff --git a/history/data_structures/MATDIAG.js b/src/main/webapp/history/data_structures/MATDIAG.js
index 0bdf382..0bdf382 100644
--- a/history/data_structures/MATDIAG.js
+++ b/src/main/webapp/history/data_structures/MATDIAG.js
diff --git a/history/data_structures/MATDIV.js b/src/main/webapp/history/data_structures/MATDIV.js
index 73f1f36..73f1f36 100644
--- a/history/data_structures/MATDIV.js
+++ b/src/main/webapp/history/data_structures/MATDIV.js
diff --git a/history/data_structures/MATEIG.js b/src/main/webapp/history/data_structures/MATEIG.js
index c23df30..c23df30 100644
--- a/history/data_structures/MATEIG.js
+++ b/src/main/webapp/history/data_structures/MATEIG.js
diff --git a/history/data_structures/MATEXPM.js b/src/main/webapp/history/data_structures/MATEXPM.js
index 70734bd..70734bd 100644
--- a/history/data_structures/MATEXPM.js
+++ b/src/main/webapp/history/data_structures/MATEXPM.js
diff --git a/history/data_structures/MATINV.js b/src/main/webapp/history/data_structures/MATINV.js
index 8b45697..8b45697 100644
--- a/history/data_structures/MATINV.js
+++ b/src/main/webapp/history/data_structures/MATINV.js
diff --git a/history/data_structures/MATLU.js b/src/main/webapp/history/data_structures/MATLU.js
index 6cc94e6..6cc94e6 100644
--- a/history/data_structures/MATLU.js
+++ b/src/main/webapp/history/data_structures/MATLU.js
diff --git a/history/data_structures/MATMAGPHI.js b/src/main/webapp/history/data_structures/MATMAGPHI.js
index c13d1dc..c13d1dc 100644
--- a/history/data_structures/MATMAGPHI.js
+++ b/src/main/webapp/history/data_structures/MATMAGPHI.js
diff --git a/history/data_structures/MATMUL.js b/src/main/webapp/history/data_structures/MATMUL.js
index 42af695..42af695 100644
--- a/history/data_structures/MATMUL.js
+++ b/src/main/webapp/history/data_structures/MATMUL.js
diff --git a/history/data_structures/MATPINV.js b/src/main/webapp/history/data_structures/MATPINV.js
index 27baace..27baace 100644
--- a/history/data_structures/MATPINV.js
+++ b/src/main/webapp/history/data_structures/MATPINV.js
diff --git a/history/data_structures/MATRESH.js b/src/main/webapp/history/data_structures/MATRESH.js
index 53b1871..53b1871 100644
--- a/history/data_structures/MATRESH.js
+++ b/src/main/webapp/history/data_structures/MATRESH.js
diff --git a/history/data_structures/MATSING.js b/src/main/webapp/history/data_structures/MATSING.js
index 7b1f072..7b1f072 100644
--- a/history/data_structures/MATSING.js
+++ b/src/main/webapp/history/data_structures/MATSING.js
diff --git a/history/data_structures/MATSUM.js b/src/main/webapp/history/data_structures/MATSUM.js
index 43f7b3b..43f7b3b 100644
--- a/history/data_structures/MATSUM.js
+++ b/src/main/webapp/history/data_structures/MATSUM.js
diff --git a/history/data_structures/MATTRAN.js b/src/main/webapp/history/data_structures/MATTRAN.js
index a3a0493..a3a0493 100644
--- a/history/data_structures/MATTRAN.js
+++ b/src/main/webapp/history/data_structures/MATTRAN.js
diff --git a/history/data_structures/MATZCONJ.js b/src/main/webapp/history/data_structures/MATZCONJ.js
index efb04cb..efb04cb 100644
--- a/history/data_structures/MATZCONJ.js
+++ b/src/main/webapp/history/data_structures/MATZCONJ.js
diff --git a/history/data_structures/MATZREIM.js b/src/main/webapp/history/data_structures/MATZREIM.js
index 327d303..327d303 100644
--- a/history/data_structures/MATZREIM.js
+++ b/src/main/webapp/history/data_structures/MATZREIM.js
diff --git a/history/data_structures/MAXMIN.js b/src/main/webapp/history/data_structures/MAXMIN.js
index 903a053..903a053 100644
--- a/history/data_structures/MAXMIN.js
+++ b/src/main/webapp/history/data_structures/MAXMIN.js
diff --git a/history/data_structures/MAX_f.js b/src/main/webapp/history/data_structures/MAX_f.js
index 3623dc1..3623dc1 100644
--- a/history/data_structures/MAX_f.js
+++ b/src/main/webapp/history/data_structures/MAX_f.js
diff --git a/history/data_structures/MBLOCK.js b/src/main/webapp/history/data_structures/MBLOCK.js
index ce63569..ce63569 100644
--- a/history/data_structures/MBLOCK.js
+++ b/src/main/webapp/history/data_structures/MBLOCK.js
diff --git a/history/data_structures/MCLOCK_f.js b/src/main/webapp/history/data_structures/MCLOCK_f.js
index 0a94924..0a94924 100644
--- a/history/data_structures/MCLOCK_f.js
+++ b/src/main/webapp/history/data_structures/MCLOCK_f.js
diff --git a/history/data_structures/MFCLCK_f.js b/src/main/webapp/history/data_structures/MFCLCK_f.js
index e7124f9..e7124f9 100644
--- a/history/data_structures/MFCLCK_f.js
+++ b/src/main/webapp/history/data_structures/MFCLCK_f.js
diff --git a/history/data_structures/MIN_f.js b/src/main/webapp/history/data_structures/MIN_f.js
index c71bfb9..c71bfb9 100644
--- a/history/data_structures/MIN_f.js
+++ b/src/main/webapp/history/data_structures/MIN_f.js
diff --git a/history/data_structures/MUX.js b/src/main/webapp/history/data_structures/MUX.js
index 5481f69..5481f69 100644
--- a/history/data_structures/MUX.js
+++ b/src/main/webapp/history/data_structures/MUX.js
diff --git a/history/data_structures/MUX_f.js b/src/main/webapp/history/data_structures/MUX_f.js
index 05e2343..05e2343 100644
--- a/history/data_structures/MUX_f.js
+++ b/src/main/webapp/history/data_structures/MUX_f.js
diff --git a/history/data_structures/M_SWITCH.js b/src/main/webapp/history/data_structures/M_SWITCH.js
index e53c664..e53c664 100644
--- a/history/data_structures/M_SWITCH.js
+++ b/src/main/webapp/history/data_structures/M_SWITCH.js
diff --git a/history/data_structures/M_freq.js b/src/main/webapp/history/data_structures/M_freq.js
index 0ab9467..0ab9467 100644
--- a/history/data_structures/M_freq.js
+++ b/src/main/webapp/history/data_structures/M_freq.js
diff --git a/history/data_structures/Modulo_Count.js b/src/main/webapp/history/data_structures/Modulo_Count.js
index 62db6ad..62db6ad 100644
--- a/history/data_structures/Modulo_Count.js
+++ b/src/main/webapp/history/data_structures/Modulo_Count.js
diff --git a/history/data_structures/NEGTOPOS_f.js b/src/main/webapp/history/data_structures/NEGTOPOS_f.js
index e0e40d4..e0e40d4 100644
--- a/history/data_structures/NEGTOPOS_f.js
+++ b/src/main/webapp/history/data_structures/NEGTOPOS_f.js
diff --git a/history/data_structures/NMOS.js b/src/main/webapp/history/data_structures/NMOS.js
index 350c46c..350c46c 100644
--- a/history/data_structures/NMOS.js
+++ b/src/main/webapp/history/data_structures/NMOS.js
diff --git a/history/data_structures/NPN.js b/src/main/webapp/history/data_structures/NPN.js
index 843e410..843e410 100644
--- a/history/data_structures/NPN.js
+++ b/src/main/webapp/history/data_structures/NPN.js
diff --git a/history/data_structures/NRMSOM_f.js b/src/main/webapp/history/data_structures/NRMSOM_f.js
index f13e210..f13e210 100644
--- a/history/data_structures/NRMSOM_f.js
+++ b/src/main/webapp/history/data_structures/NRMSOM_f.js
diff --git a/history/data_structures/OUTIMPL_f.js b/src/main/webapp/history/data_structures/OUTIMPL_f.js
index 5d4ce64..5d4ce64 100644
--- a/history/data_structures/OUTIMPL_f.js
+++ b/src/main/webapp/history/data_structures/OUTIMPL_f.js
diff --git a/history/data_structures/OUT_f.js b/src/main/webapp/history/data_structures/OUT_f.js
index 56eaea2..56eaea2 100644
--- a/history/data_structures/OUT_f.js
+++ b/src/main/webapp/history/data_structures/OUT_f.js
diff --git a/history/data_structures/OpAmp.js b/src/main/webapp/history/data_structures/OpAmp.js
index 120a0f6..120a0f6 100644
--- a/history/data_structures/OpAmp.js
+++ b/src/main/webapp/history/data_structures/OpAmp.js
diff --git a/history/data_structures/PDE.js b/src/main/webapp/history/data_structures/PDE.js
index 263c715..263c715 100644
--- a/history/data_structures/PDE.js
+++ b/src/main/webapp/history/data_structures/PDE.js
diff --git a/history/data_structures/PID.js b/src/main/webapp/history/data_structures/PID.js
index e3dd59e..e3dd59e 100644
--- a/history/data_structures/PID.js
+++ b/src/main/webapp/history/data_structures/PID.js
diff --git a/history/data_structures/PMOS.js b/src/main/webapp/history/data_structures/PMOS.js
index 5a9ff67..5a9ff67 100644
--- a/history/data_structures/PMOS.js
+++ b/src/main/webapp/history/data_structures/PMOS.js
diff --git a/history/data_structures/PNP.js b/src/main/webapp/history/data_structures/PNP.js
index b9108e6..b9108e6 100644
--- a/history/data_structures/PNP.js
+++ b/src/main/webapp/history/data_structures/PNP.js
diff --git a/history/data_structures/POSTONEG_f.js b/src/main/webapp/history/data_structures/POSTONEG_f.js
index 53c941b..53c941b 100644
--- a/history/data_structures/POSTONEG_f.js
+++ b/src/main/webapp/history/data_structures/POSTONEG_f.js
diff --git a/history/data_structures/POWBLK_f.js b/src/main/webapp/history/data_structures/POWBLK_f.js
index fe907b7..fe907b7 100644
--- a/history/data_structures/POWBLK_f.js
+++ b/src/main/webapp/history/data_structures/POWBLK_f.js
diff --git a/history/data_structures/PRODUCT.js b/src/main/webapp/history/data_structures/PRODUCT.js
index 3fc6a08..3fc6a08 100644
--- a/history/data_structures/PRODUCT.js
+++ b/src/main/webapp/history/data_structures/PRODUCT.js
diff --git a/history/data_structures/PROD_f.js b/src/main/webapp/history/data_structures/PROD_f.js
index 5e1f69b..5e1f69b 100644
--- a/history/data_structures/PROD_f.js
+++ b/src/main/webapp/history/data_structures/PROD_f.js
diff --git a/history/data_structures/PULSE_SC.js b/src/main/webapp/history/data_structures/PULSE_SC.js
index ba73528..ba73528 100644
--- a/history/data_structures/PULSE_SC.js
+++ b/src/main/webapp/history/data_structures/PULSE_SC.js
diff --git a/history/data_structures/PerteDP.js b/src/main/webapp/history/data_structures/PerteDP.js
index b1b5616..b1b5616 100644
--- a/history/data_structures/PerteDP.js
+++ b/src/main/webapp/history/data_structures/PerteDP.js
diff --git a/history/data_structures/PotentialSensor.js b/src/main/webapp/history/data_structures/PotentialSensor.js
index 1edfa55..1edfa55 100644
--- a/history/data_structures/PotentialSensor.js
+++ b/src/main/webapp/history/data_structures/PotentialSensor.js
diff --git a/history/data_structures/PuitsP.js b/src/main/webapp/history/data_structures/PuitsP.js
index 550acd9..550acd9 100644
--- a/history/data_structures/PuitsP.js
+++ b/src/main/webapp/history/data_structures/PuitsP.js
diff --git a/history/data_structures/QUANT_f.js b/src/main/webapp/history/data_structures/QUANT_f.js
index 02d0830..02d0830 100644
--- a/history/data_structures/QUANT_f.js
+++ b/src/main/webapp/history/data_structures/QUANT_f.js
diff --git a/history/data_structures/RAMP.js b/src/main/webapp/history/data_structures/RAMP.js
index 3ff9355..3ff9355 100644
--- a/history/data_structures/RAMP.js
+++ b/src/main/webapp/history/data_structures/RAMP.js
diff --git a/history/data_structures/RAND_m.js b/src/main/webapp/history/data_structures/RAND_m.js
index f017471..f017471 100644
--- a/history/data_structures/RAND_m.js
+++ b/src/main/webapp/history/data_structures/RAND_m.js
diff --git a/history/data_structures/RATELIMITER.js b/src/main/webapp/history/data_structures/RATELIMITER.js
index 3c859f8..3c859f8 100644
--- a/history/data_structures/RATELIMITER.js
+++ b/src/main/webapp/history/data_structures/RATELIMITER.js
diff --git a/history/data_structures/READAU_f.js b/src/main/webapp/history/data_structures/READAU_f.js
index a7ef985..a7ef985 100644
--- a/history/data_structures/READAU_f.js
+++ b/src/main/webapp/history/data_structures/READAU_f.js
diff --git a/history/data_structures/READC_f.js b/src/main/webapp/history/data_structures/READC_f.js
index cc406db..cc406db 100644
--- a/history/data_structures/READC_f.js
+++ b/src/main/webapp/history/data_structures/READC_f.js
diff --git a/history/data_structures/REGISTER.js b/src/main/webapp/history/data_structures/REGISTER.js
index 6b9b247..6b9b247 100644
--- a/history/data_structures/REGISTER.js
+++ b/src/main/webapp/history/data_structures/REGISTER.js
diff --git a/history/data_structures/RELATIONALOP.js b/src/main/webapp/history/data_structures/RELATIONALOP.js
index 72fd81c..72fd81c 100644
--- a/history/data_structures/RELATIONALOP.js
+++ b/src/main/webapp/history/data_structures/RELATIONALOP.js
diff --git a/history/data_structures/RELAY_f.js b/src/main/webapp/history/data_structures/RELAY_f.js
index 56000db..56000db 100644
--- a/history/data_structures/RELAY_f.js
+++ b/src/main/webapp/history/data_structures/RELAY_f.js
diff --git a/history/data_structures/RFILE_f.js b/src/main/webapp/history/data_structures/RFILE_f.js
index 10fbc93..10fbc93 100644
--- a/history/data_structures/RFILE_f.js
+++ b/src/main/webapp/history/data_structures/RFILE_f.js
diff --git a/history/data_structures/RICC.js b/src/main/webapp/history/data_structures/RICC.js
index 1eaf89b..1eaf89b 100644
--- a/history/data_structures/RICC.js
+++ b/src/main/webapp/history/data_structures/RICC.js
diff --git a/history/data_structures/ROOTCOEF.js b/src/main/webapp/history/data_structures/ROOTCOEF.js
index df1eaad..df1eaad 100644
--- a/history/data_structures/ROOTCOEF.js
+++ b/src/main/webapp/history/data_structures/ROOTCOEF.js
diff --git a/history/data_structures/Resistor.js b/src/main/webapp/history/data_structures/Resistor.js
index 10b72c3..10b72c3 100644
--- a/history/data_structures/Resistor.js
+++ b/src/main/webapp/history/data_structures/Resistor.js
diff --git a/history/data_structures/SAMPHOLD_m.js b/src/main/webapp/history/data_structures/SAMPHOLD_m.js
index 0a52809..0a52809 100644
--- a/history/data_structures/SAMPHOLD_m.js
+++ b/src/main/webapp/history/data_structures/SAMPHOLD_m.js
diff --git a/history/data_structures/SATURATION.js b/src/main/webapp/history/data_structures/SATURATION.js
index 37a218a..37a218a 100644
--- a/history/data_structures/SATURATION.js
+++ b/src/main/webapp/history/data_structures/SATURATION.js
diff --git a/history/data_structures/SAWTOOTH_f.js b/src/main/webapp/history/data_structures/SAWTOOTH_f.js
index fcbe8e6..fcbe8e6 100644
--- a/history/data_structures/SAWTOOTH_f.js
+++ b/src/main/webapp/history/data_structures/SAWTOOTH_f.js
diff --git a/history/data_structures/SCALAR2VECTOR.js b/src/main/webapp/history/data_structures/SCALAR2VECTOR.js
index 67c696c..67c696c 100644
--- a/history/data_structures/SCALAR2VECTOR.js
+++ b/src/main/webapp/history/data_structures/SCALAR2VECTOR.js
diff --git a/history/data_structures/SELECT_m.js b/src/main/webapp/history/data_structures/SELECT_m.js
index e4970c8..e4970c8 100644
--- a/history/data_structures/SELECT_m.js
+++ b/src/main/webapp/history/data_structures/SELECT_m.js
diff --git a/history/data_structures/SELF_SWITCH.js b/src/main/webapp/history/data_structures/SELF_SWITCH.js
index 0966f74..0966f74 100644
--- a/history/data_structures/SELF_SWITCH.js
+++ b/src/main/webapp/history/data_structures/SELF_SWITCH.js
diff --git a/history/data_structures/SHIFT.js b/src/main/webapp/history/data_structures/SHIFT.js
index 9d94041..9d94041 100644
--- a/history/data_structures/SHIFT.js
+++ b/src/main/webapp/history/data_structures/SHIFT.js
diff --git a/history/data_structures/SIGNUM.js b/src/main/webapp/history/data_structures/SIGNUM.js
index 39133f5..39133f5 100644
--- a/history/data_structures/SIGNUM.js
+++ b/src/main/webapp/history/data_structures/SIGNUM.js
diff --git a/history/data_structures/SINBLK_f.js b/src/main/webapp/history/data_structures/SINBLK_f.js
index eda3ed0..eda3ed0 100644
--- a/history/data_structures/SINBLK_f.js
+++ b/src/main/webapp/history/data_structures/SINBLK_f.js
diff --git a/history/data_structures/SOM_f.js b/src/main/webapp/history/data_structures/SOM_f.js
index d17adbe..d17adbe 100644
--- a/history/data_structures/SOM_f.js
+++ b/src/main/webapp/history/data_structures/SOM_f.js
diff --git a/history/data_structures/SQRT.js b/src/main/webapp/history/data_structures/SQRT.js
index 9988080..9988080 100644
--- a/history/data_structures/SQRT.js
+++ b/src/main/webapp/history/data_structures/SQRT.js
diff --git a/history/data_structures/SRFLIPFLOP.js b/src/main/webapp/history/data_structures/SRFLIPFLOP.js
index ae291fd..ae291fd 100644
--- a/history/data_structures/SRFLIPFLOP.js
+++ b/src/main/webapp/history/data_structures/SRFLIPFLOP.js
diff --git a/history/data_structures/STEP_FUNCTION.js b/src/main/webapp/history/data_structures/STEP_FUNCTION.js
index 483a4c2..483a4c2 100644
--- a/history/data_structures/STEP_FUNCTION.js
+++ b/src/main/webapp/history/data_structures/STEP_FUNCTION.js
diff --git a/history/data_structures/SUBMAT.js b/src/main/webapp/history/data_structures/SUBMAT.js
index b8cea53..b8cea53 100644
--- a/history/data_structures/SUBMAT.js
+++ b/src/main/webapp/history/data_structures/SUBMAT.js
diff --git a/history/data_structures/SUMMATION.js b/src/main/webapp/history/data_structures/SUMMATION.js
index 4c7fe1b..4c7fe1b 100644
--- a/history/data_structures/SUMMATION.js
+++ b/src/main/webapp/history/data_structures/SUMMATION.js
diff --git a/history/data_structures/SUM_f.js b/src/main/webapp/history/data_structures/SUM_f.js
index 2497a34..2497a34 100644
--- a/history/data_structures/SUM_f.js
+++ b/src/main/webapp/history/data_structures/SUM_f.js
diff --git a/history/data_structures/SUPER_f.js b/src/main/webapp/history/data_structures/SUPER_f.js
index 5ed120a..5ed120a 100644
--- a/history/data_structures/SUPER_f.js
+++ b/src/main/webapp/history/data_structures/SUPER_f.js
diff --git a/history/data_structures/SWITCH2_m.js b/src/main/webapp/history/data_structures/SWITCH2_m.js
index 4c1934a..4c1934a 100644
--- a/history/data_structures/SWITCH2_m.js
+++ b/src/main/webapp/history/data_structures/SWITCH2_m.js
diff --git a/history/data_structures/SWITCH_f.js b/src/main/webapp/history/data_structures/SWITCH_f.js
index f9a4f5e..f9a4f5e 100644
--- a/history/data_structures/SWITCH_f.js
+++ b/src/main/webapp/history/data_structures/SWITCH_f.js
diff --git a/history/data_structures/SampleCLK.js b/src/main/webapp/history/data_structures/SampleCLK.js
index 51bf28a..51bf28a 100644
--- a/history/data_structures/SampleCLK.js
+++ b/src/main/webapp/history/data_structures/SampleCLK.js
diff --git a/history/data_structures/Sigbuilder.js b/src/main/webapp/history/data_structures/Sigbuilder.js
index a4c176c..a4c176c 100644
--- a/history/data_structures/Sigbuilder.js
+++ b/src/main/webapp/history/data_structures/Sigbuilder.js
diff --git a/history/data_structures/SineVoltage.js b/src/main/webapp/history/data_structures/SineVoltage.js
index 99e8b10..99e8b10 100644
--- a/history/data_structures/SineVoltage.js
+++ b/src/main/webapp/history/data_structures/SineVoltage.js
diff --git a/history/data_structures/SourceP.js b/src/main/webapp/history/data_structures/SourceP.js
index fa2cd52..fa2cd52 100644
--- a/history/data_structures/SourceP.js
+++ b/src/main/webapp/history/data_structures/SourceP.js
diff --git a/history/data_structures/Switch.js b/src/main/webapp/history/data_structures/Switch.js
index 3b7d196..3b7d196 100644
--- a/history/data_structures/Switch.js
+++ b/src/main/webapp/history/data_structures/Switch.js
diff --git a/history/data_structures/TANBLK_f.js b/src/main/webapp/history/data_structures/TANBLK_f.js
index e20343a..e20343a 100644
--- a/history/data_structures/TANBLK_f.js
+++ b/src/main/webapp/history/data_structures/TANBLK_f.js
diff --git a/history/data_structures/TCLSS.js b/src/main/webapp/history/data_structures/TCLSS.js
index f472447..f472447 100644
--- a/history/data_structures/TCLSS.js
+++ b/src/main/webapp/history/data_structures/TCLSS.js
diff --git a/history/data_structures/TEXT_f.js b/src/main/webapp/history/data_structures/TEXT_f.js
index 4ca293e..4ca293e 100644
--- a/history/data_structures/TEXT_f.js
+++ b/src/main/webapp/history/data_structures/TEXT_f.js
diff --git a/history/data_structures/TIME_DELAY.js b/src/main/webapp/history/data_structures/TIME_DELAY.js
index 82a1e99..82a1e99 100644
--- a/history/data_structures/TIME_DELAY.js
+++ b/src/main/webapp/history/data_structures/TIME_DELAY.js
diff --git a/history/data_structures/TIME_f.js b/src/main/webapp/history/data_structures/TIME_f.js
index 69d4312..69d4312 100644
--- a/history/data_structures/TIME_f.js
+++ b/src/main/webapp/history/data_structures/TIME_f.js
diff --git a/history/data_structures/TKSCALE.js b/src/main/webapp/history/data_structures/TKSCALE.js
index 5c7bd8e..5c7bd8e 100644
--- a/history/data_structures/TKSCALE.js
+++ b/src/main/webapp/history/data_structures/TKSCALE.js
diff --git a/history/data_structures/TOWS_c.js b/src/main/webapp/history/data_structures/TOWS_c.js
index 6094f11..6094f11 100644
--- a/history/data_structures/TOWS_c.js
+++ b/src/main/webapp/history/data_structures/TOWS_c.js
diff --git a/history/data_structures/TRASH_f.js b/src/main/webapp/history/data_structures/TRASH_f.js
index c9e4ac4..c9e4ac4 100644
--- a/history/data_structures/TRASH_f.js
+++ b/src/main/webapp/history/data_structures/TRASH_f.js
diff --git a/history/data_structures/TrigFun.js b/src/main/webapp/history/data_structures/TrigFun.js
index 736a8c2..736a8c2 100644
--- a/history/data_structures/TrigFun.js
+++ b/src/main/webapp/history/data_structures/TrigFun.js
diff --git a/history/data_structures/VARIABLE_DELAY.js b/src/main/webapp/history/data_structures/VARIABLE_DELAY.js
index 81d29f1..81d29f1 100644
--- a/history/data_structures/VARIABLE_DELAY.js
+++ b/src/main/webapp/history/data_structures/VARIABLE_DELAY.js
diff --git a/history/data_structures/VVsourceAC.js b/src/main/webapp/history/data_structures/VVsourceAC.js
index 78dcc38..78dcc38 100644
--- a/history/data_structures/VVsourceAC.js
+++ b/src/main/webapp/history/data_structures/VVsourceAC.js
diff --git a/history/data_structures/VanneReglante.js b/src/main/webapp/history/data_structures/VanneReglante.js
index 8e3dc25..8e3dc25 100644
--- a/history/data_structures/VanneReglante.js
+++ b/src/main/webapp/history/data_structures/VanneReglante.js
diff --git a/history/data_structures/VariableResistor.js b/src/main/webapp/history/data_structures/VariableResistor.js
index bfb7914..bfb7914 100644
--- a/history/data_structures/VariableResistor.js
+++ b/src/main/webapp/history/data_structures/VariableResistor.js
diff --git a/history/data_structures/VirtualCLK0.js b/src/main/webapp/history/data_structures/VirtualCLK0.js
index 82fa621..82fa621 100644
--- a/history/data_structures/VirtualCLK0.js
+++ b/src/main/webapp/history/data_structures/VirtualCLK0.js
diff --git a/history/data_structures/VoltageSensor.js b/src/main/webapp/history/data_structures/VoltageSensor.js
index 3eab08a..3eab08a 100644
--- a/history/data_structures/VoltageSensor.js
+++ b/src/main/webapp/history/data_structures/VoltageSensor.js
diff --git a/history/data_structures/VsourceAC.js b/src/main/webapp/history/data_structures/VsourceAC.js
index fa02afd..fa02afd 100644
--- a/history/data_structures/VsourceAC.js
+++ b/src/main/webapp/history/data_structures/VsourceAC.js
diff --git a/history/data_structures/WFILE_f.js b/src/main/webapp/history/data_structures/WFILE_f.js
index 7e9a4ed..7e9a4ed 100644
--- a/history/data_structures/WFILE_f.js
+++ b/src/main/webapp/history/data_structures/WFILE_f.js
diff --git a/history/data_structures/WRITEAU_f.js b/src/main/webapp/history/data_structures/WRITEAU_f.js
index d831faf..d831faf 100644
--- a/history/data_structures/WRITEAU_f.js
+++ b/src/main/webapp/history/data_structures/WRITEAU_f.js
diff --git a/history/data_structures/WRITEC_f.js b/src/main/webapp/history/data_structures/WRITEC_f.js
index 3f8f785..3f8f785 100644
--- a/history/data_structures/WRITEC_f.js
+++ b/src/main/webapp/history/data_structures/WRITEC_f.js
diff --git a/history/data_structures/ZCROSS_f.js b/src/main/webapp/history/data_structures/ZCROSS_f.js
index de4b8d9..de4b8d9 100644
--- a/history/data_structures/ZCROSS_f.js
+++ b/src/main/webapp/history/data_structures/ZCROSS_f.js
diff --git a/history/data_structures/c_block.js b/src/main/webapp/history/data_structures/c_block.js
index 97c9cae..97c9cae 100644
--- a/history/data_structures/c_block.js
+++ b/src/main/webapp/history/data_structures/c_block.js
diff --git a/history/data_structures/fortran_block.js b/src/main/webapp/history/data_structures/fortran_block.js
index 5abf2b0..5abf2b0 100644
--- a/history/data_structures/fortran_block.js
+++ b/src/main/webapp/history/data_structures/fortran_block.js
diff --git a/history/data_structures/freq_div.js b/src/main/webapp/history/data_structures/freq_div.js
index 47bdf8a..47bdf8a 100644
--- a/history/data_structures/freq_div.js
+++ b/src/main/webapp/history/data_structures/freq_div.js
diff --git a/history/data_structures/generic_block3.js b/src/main/webapp/history/data_structures/generic_block3.js
index 82804f0..82804f0 100644
--- a/history/data_structures/generic_block3.js
+++ b/src/main/webapp/history/data_structures/generic_block3.js
diff --git a/history/data_structures/scifunc_block_m.js b/src/main/webapp/history/data_structures/scifunc_block_m.js
index 20d082c..20d082c 100644
--- a/history/data_structures/scifunc_block_m.js
+++ b/src/main/webapp/history/data_structures/scifunc_block_m.js
diff --git a/images/ScilabExecute.png b/src/main/webapp/images/ScilabExecute.png
index a7de0fe..a7de0fe 100644
--- a/images/ScilabExecute.png
+++ b/src/main/webapp/images/ScilabExecute.png
Binary files differ
diff --git a/images/add.png b/src/main/webapp/images/add.png
index bf5f8ed..bf5f8ed 100644
--- a/images/add.png
+++ b/src/main/webapp/images/add.png
Binary files differ
diff --git a/images/button.gif b/src/main/webapp/images/button.gif
index ad55cab..ad55cab 100644
--- a/images/button.gif
+++ b/src/main/webapp/images/button.gif
Binary files differ
diff --git a/images/camera.png b/src/main/webapp/images/camera.png
index aecc94d..aecc94d 100644
--- a/images/camera.png
+++ b/src/main/webapp/images/camera.png
Binary files differ
diff --git a/images/check.png b/src/main/webapp/images/check.png
index ce81bce..ce81bce 100644
--- a/images/check.png
+++ b/src/main/webapp/images/check.png
Binary files differ
diff --git a/images/close.gif b/src/main/webapp/images/close.gif
index 1069e94..1069e94 100644
--- a/images/close.gif
+++ b/src/main/webapp/images/close.gif
Binary files differ
diff --git a/images/close.png b/src/main/webapp/images/close.png
index 4de4396..4de4396 100644
--- a/images/close.png
+++ b/src/main/webapp/images/close.png
Binary files differ
diff --git a/images/collapsed.gif b/src/main/webapp/images/collapsed.gif
index 0276444..0276444 100644
--- a/images/collapsed.gif
+++ b/src/main/webapp/images/collapsed.gif
Binary files differ
diff --git a/images/connector.gif b/src/main/webapp/images/connector.gif
index 326e061..326e061 100644
--- a/images/connector.gif
+++ b/src/main/webapp/images/connector.gif
Binary files differ
diff --git a/images/copy.png b/src/main/webapp/images/copy.png
index a987d43..a987d43 100644
--- a/images/copy.png
+++ b/src/main/webapp/images/copy.png
Binary files differ
diff --git a/images/cut.png b/src/main/webapp/images/cut.png
index 52bf944..52bf944 100644
--- a/images/cut.png
+++ b/src/main/webapp/images/cut.png
Binary files differ
diff --git a/images/delete2.png b/src/main/webapp/images/delete2.png
index be78c61..be78c61 100644
--- a/images/delete2.png
+++ b/src/main/webapp/images/delete2.png
Binary files differ
diff --git a/images/dot.gif b/src/main/webapp/images/dot.gif
index 08b9947..08b9947 100644
--- a/images/dot.gif
+++ b/src/main/webapp/images/dot.gif
Binary files differ
diff --git a/images/draw-brush.png b/src/main/webapp/images/draw-brush.png
index 4bb955f..4bb955f 100644
--- a/images/draw-brush.png
+++ b/src/main/webapp/images/draw-brush.png
Binary files differ
diff --git a/images/edit.png b/src/main/webapp/images/edit.png
index 8c3ac14..8c3ac14 100644
--- a/images/edit.png
+++ b/src/main/webapp/images/edit.png
Binary files differ
diff --git a/images/error.gif b/src/main/webapp/images/error.gif
index 14e1aee..14e1aee 100644
--- a/images/error.gif
+++ b/src/main/webapp/images/error.gif
Binary files differ
diff --git a/images/expanded.gif b/src/main/webapp/images/expanded.gif
index 3767b0b..3767b0b 100644
--- a/images/expanded.gif
+++ b/src/main/webapp/images/expanded.gif
Binary files differ
diff --git a/images/export1.png b/src/main/webapp/images/export1.png
index b8a01b8..b8a01b8 100644
--- a/images/export1.png
+++ b/src/main/webapp/images/export1.png
Binary files differ
diff --git a/images/fit_to_size.png b/src/main/webapp/images/fit_to_size.png
index 4de46b0..4de46b0 100644
--- a/images/fit_to_size.png
+++ b/src/main/webapp/images/fit_to_size.png
Binary files differ
diff --git a/images/flip.png b/src/main/webapp/images/flip.png
index 6dbbb5e..6dbbb5e 100644
--- a/images/flip.png
+++ b/src/main/webapp/images/flip.png
Binary files differ
diff --git a/images/gear.gif b/src/main/webapp/images/gear.gif
index 30310d6..30310d6 100755..100644
--- a/images/gear.gif
+++ b/src/main/webapp/images/gear.gif
Binary files differ
diff --git a/images/gradient_background.jpg b/src/main/webapp/images/gradient_background.jpg
index 7dbf35b..7dbf35b 100644
--- a/images/gradient_background.jpg
+++ b/src/main/webapp/images/gradient_background.jpg
Binary files differ
diff --git a/images/green-dot.gif b/src/main/webapp/images/green-dot.gif
index acaf7b2..acaf7b2 100644
--- a/images/green-dot.gif
+++ b/src/main/webapp/images/green-dot.gif
Binary files differ
diff --git a/images/grid.gif b/src/main/webapp/images/grid.gif
index a82a20d..a82a20d 100644
--- a/images/grid.gif
+++ b/src/main/webapp/images/grid.gif
Binary files differ
diff --git a/images/group.png b/src/main/webapp/images/group.png
index 585ad79..585ad79 100644
--- a/images/group.png
+++ b/src/main/webapp/images/group.png
Binary files differ
diff --git a/images/key.png b/src/main/webapp/images/key.png
index e66758a..e66758a 100644
--- a/images/key.png
+++ b/src/main/webapp/images/key.png
Binary files differ
diff --git a/images/loading.gif b/src/main/webapp/images/loading.gif
index 7bb834d..7bb834d 100644
--- a/images/loading.gif
+++ b/src/main/webapp/images/loading.gif
Binary files differ
diff --git a/images/maximize.gif b/src/main/webapp/images/maximize.gif
index e27cf3e..e27cf3e 100644
--- a/images/maximize.gif
+++ b/src/main/webapp/images/maximize.gif
Binary files differ
diff --git a/images/minimize.gif b/src/main/webapp/images/minimize.gif
index 1e95e7c..1e95e7c 100644
--- a/images/minimize.gif
+++ b/src/main/webapp/images/minimize.gif
Binary files differ
diff --git a/images/mirror.png b/src/main/webapp/images/mirror.png
index 2676528..2676528 100644
--- a/images/mirror.png
+++ b/src/main/webapp/images/mirror.png
Binary files differ
diff --git a/images/navigate_minus.png b/src/main/webapp/images/navigate_minus.png
index 71edaf9..71edaf9 100644
--- a/images/navigate_minus.png
+++ b/src/main/webapp/images/navigate_minus.png
Binary files differ
diff --git a/images/navigate_plus.png b/src/main/webapp/images/navigate_plus.png
index b5b7e87..b5b7e87 100644
--- a/images/navigate_plus.png
+++ b/src/main/webapp/images/navigate_plus.png
Binary files differ
diff --git a/images/normalize.gif b/src/main/webapp/images/normalize.gif
index 34a8d30..34a8d30 100644
--- a/images/normalize.gif
+++ b/src/main/webapp/images/normalize.gif
Binary files differ
diff --git a/images/paste.png b/src/main/webapp/images/paste.png
index fd628d9..fd628d9 100644
--- a/images/paste.png
+++ b/src/main/webapp/images/paste.png
Binary files differ
diff --git a/images/plus.png b/src/main/webapp/images/plus.png
index 24a84bb..24a84bb 100644
--- a/images/plus.png
+++ b/src/main/webapp/images/plus.png
Binary files differ
diff --git a/images/point.gif b/src/main/webapp/images/point.gif
index 9074c39..9074c39 100644
--- a/images/point.gif
+++ b/src/main/webapp/images/point.gif
Binary files differ
diff --git a/images/press32.png b/src/main/webapp/images/press32.png
index f00e3f7..f00e3f7 100644
--- a/images/press32.png
+++ b/src/main/webapp/images/press32.png
Binary files differ
diff --git a/images/print32.png b/src/main/webapp/images/print32.png
index 0cca86c..0cca86c 100644
--- a/images/print32.png
+++ b/src/main/webapp/images/print32.png
Binary files differ
diff --git a/images/printer.png b/src/main/webapp/images/printer.png
index 6004816..6004816 100644
--- a/images/printer.png
+++ b/src/main/webapp/images/printer.png
Binary files differ
diff --git a/images/redo.png b/src/main/webapp/images/redo.png
index 3eae59c..3eae59c 100644
--- a/images/redo.png
+++ b/src/main/webapp/images/redo.png
Binary files differ
diff --git a/images/resize.gif b/src/main/webapp/images/resize.gif
index ff558db..ff558db 100644
--- a/images/resize.gif
+++ b/src/main/webapp/images/resize.gif
Binary files differ
diff --git a/images/rotate.png b/src/main/webapp/images/rotate.png
index 60ab412..60ab412 100644
--- a/images/rotate.png
+++ b/src/main/webapp/images/rotate.png
Binary files differ
diff --git a/images/selectall.png b/src/main/webapp/images/selectall.png
index f4b0b19..f4b0b19 100644
--- a/images/selectall.png
+++ b/src/main/webapp/images/selectall.png
Binary files differ
diff --git a/images/separator.gif b/src/main/webapp/images/separator.gif
index 5c1b895..5c1b895 100644
--- a/images/separator.gif
+++ b/src/main/webapp/images/separator.gif
Binary files differ
diff --git a/images/setup.png b/src/main/webapp/images/setup.png
index 68f916c..68f916c 100644
--- a/images/setup.png
+++ b/src/main/webapp/images/setup.png
Binary files differ
diff --git a/images/sidebar_bg.gif b/src/main/webapp/images/sidebar_bg.gif
index 67e8244..67e8244 100644
--- a/images/sidebar_bg.gif
+++ b/src/main/webapp/images/sidebar_bg.gif
Binary files differ
diff --git a/images/spacer.gif b/src/main/webapp/images/spacer.gif
index 35d42e8..35d42e8 100644
--- a/images/spacer.gif
+++ b/src/main/webapp/images/spacer.gif
Binary files differ
diff --git a/images/submenu.gif b/src/main/webapp/images/submenu.gif
index ffe7617..ffe7617 100644
--- a/images/submenu.gif
+++ b/src/main/webapp/images/submenu.gif
Binary files differ
diff --git a/images/superblock.png b/src/main/webapp/images/superblock.png
index 35c6be3..35c6be3 100644
--- a/images/superblock.png
+++ b/src/main/webapp/images/superblock.png
Binary files differ
diff --git a/images/toolbar_bg.gif b/src/main/webapp/images/toolbar_bg.gif
index 87b9374..87b9374 100644
--- a/images/toolbar_bg.gif
+++ b/src/main/webapp/images/toolbar_bg.gif
Binary files differ
diff --git a/images/transparent.gif b/src/main/webapp/images/transparent.gif
index 76040f2..76040f2 100644
--- a/images/transparent.gif
+++ b/src/main/webapp/images/transparent.gif
Binary files differ
diff --git a/images/undo.png b/src/main/webapp/images/undo.png
index 4ba0ffb..4ba0ffb 100644
--- a/images/undo.png
+++ b/src/main/webapp/images/undo.png
Binary files differ
diff --git a/images/view_1_1.png b/src/main/webapp/images/view_1_1.png
index 88657a1..88657a1 100644
--- a/images/view_1_1.png
+++ b/src/main/webapp/images/view_1_1.png
Binary files differ
diff --git a/images/view_1_132.png b/src/main/webapp/images/view_1_132.png
index e9a1b72..e9a1b72 100644
--- a/images/view_1_132.png
+++ b/src/main/webapp/images/view_1_132.png
Binary files differ
diff --git a/images/view_next.png b/src/main/webapp/images/view_next.png
index b4094f0..b4094f0 100644
--- a/images/view_next.png
+++ b/src/main/webapp/images/view_next.png
Binary files differ
diff --git a/images/view_previous.png b/src/main/webapp/images/view_previous.png
index b385b44..b385b44 100644
--- a/images/view_previous.png
+++ b/src/main/webapp/images/view_previous.png
Binary files differ
diff --git a/images/warning.gif b/src/main/webapp/images/warning.gif
index 705235f..705235f 100644
--- a/images/warning.gif
+++ b/src/main/webapp/images/warning.gif
Binary files differ
diff --git a/images/warning.png b/src/main/webapp/images/warning.png
index 2f78789..2f78789 100644
--- a/images/warning.png
+++ b/src/main/webapp/images/warning.png
Binary files differ
diff --git a/images/window-title.gif b/src/main/webapp/images/window-title.gif
index 231def8..231def8 100644
--- a/images/window-title.gif
+++ b/src/main/webapp/images/window-title.gif
Binary files differ
diff --git a/images/window.gif b/src/main/webapp/images/window.gif
index 6631c4f..6631c4f 100644
--- a/images/window.gif
+++ b/src/main/webapp/images/window.gif
Binary files differ
diff --git a/images/wires-grid.gif b/src/main/webapp/images/wires-grid.gif
index ad888a2..ad888a2 100644
--- a/images/wires-grid.gif
+++ b/src/main/webapp/images/wires-grid.gif
Binary files differ
diff --git a/images/zoom_in.png b/src/main/webapp/images/zoom_in.png
index ad6abb9..ad6abb9 100644
--- a/images/zoom_in.png
+++ b/src/main/webapp/images/zoom_in.png
Binary files differ
diff --git a/images/zoom_in32.png b/src/main/webapp/images/zoom_in32.png
index 438ff0f..438ff0f 100644
--- a/images/zoom_in32.png
+++ b/src/main/webapp/images/zoom_in32.png
Binary files differ
diff --git a/images/zoom_out.png b/src/main/webapp/images/zoom_out.png
index 0566f26..0566f26 100644
--- a/images/zoom_out.png
+++ b/src/main/webapp/images/zoom_out.png
Binary files differ
diff --git a/images/zoom_out32.png b/src/main/webapp/images/zoom_out32.png
index 8edb765..8edb765 100644
--- a/images/zoom_out32.png
+++ b/src/main/webapp/images/zoom_out32.png
Binary files differ
diff --git a/index.html b/src/main/webapp/index.html
index f941380..299a30c 100755..100644
--- a/index.html
+++ b/src/main/webapp/index.html
@@ -1555,7 +1555,7 @@
type: 'text/plain'
});
var xhr = new XMLHttpRequest();
- xhr.open('POST', 'servlet/SciExec', true);
+ xhr.open('POST', 'SciExec', true);
xhr.onload = function() {
// Create basic structure for the form
var content = document.createElement('div');
@@ -1571,11 +1571,6 @@
paragraph.innerHTML = xhr.responseText;
content.appendChild(paragraph);
-
- var img = document.createElement("img");
- img.src = xhr.responseText;
- content.appendChild(img);
-
var wind = showModalWindow(graph, 'Properties', content, 1000, 1000);
};
xhr.onreadystatechange = function() {
diff --git a/jquery/LICENSE.txt b/src/main/webapp/jquery/LICENSE.txt
index 5a3cc20..5a3cc20 100644
--- a/jquery/LICENSE.txt
+++ b/src/main/webapp/jquery/LICENSE.txt
diff --git a/jquery/README.html b/src/main/webapp/jquery/README.html
index e527472..e527472 100644
--- a/jquery/README.html
+++ b/src/main/webapp/jquery/README.html
diff --git a/jquery/farbtastic.css b/src/main/webapp/jquery/farbtastic.css
index 48161fb..48161fb 100644
--- a/jquery/farbtastic.css
+++ b/src/main/webapp/jquery/farbtastic.css
diff --git a/jquery/farbtastic.js b/src/main/webapp/jquery/farbtastic.js
index 8463cb7..8463cb7 100644
--- a/jquery/farbtastic.js
+++ b/src/main/webapp/jquery/farbtastic.js
diff --git a/jquery/images/ui-bg_flat_75_ffffff_40x100.png b/src/main/webapp/jquery/images/ui-bg_flat_75_ffffff_40x100.png
index ac8b229..ac8b229 100644
--- a/jquery/images/ui-bg_flat_75_ffffff_40x100.png
+++ b/src/main/webapp/jquery/images/ui-bg_flat_75_ffffff_40x100.png
Binary files differ
diff --git a/jquery/images/ui-bg_glass_75_e6e6e6_1x400.png b/src/main/webapp/jquery/images/ui-bg_glass_75_e6e6e6_1x400.png
index 86c2baa..86c2baa 100644
--- a/jquery/images/ui-bg_glass_75_e6e6e6_1x400.png
+++ b/src/main/webapp/jquery/images/ui-bg_glass_75_e6e6e6_1x400.png
Binary files differ
diff --git a/jquery/images/ui-icons_888888_256x240.png b/src/main/webapp/jquery/images/ui-icons_888888_256x240.png
index 5ba708c..5ba708c 100644
--- a/jquery/images/ui-icons_888888_256x240.png
+++ b/src/main/webapp/jquery/images/ui-icons_888888_256x240.png
Binary files differ
diff --git a/jquery/jquery-1.8.2.js b/src/main/webapp/jquery/jquery-1.8.2.js
index 12c7797..12c7797 100644
--- a/jquery/jquery-1.8.2.js
+++ b/src/main/webapp/jquery/jquery-1.8.2.js
diff --git a/jquery/jquery-ui.css b/src/main/webapp/jquery/jquery-ui.css
index a76b9ab..a76b9ab 100644
--- a/jquery/jquery-ui.css
+++ b/src/main/webapp/jquery/jquery-ui.css
diff --git a/jquery/marker.png b/src/main/webapp/jquery/marker.png
index 3929bbb..3929bbb 100755..100644
--- a/jquery/marker.png
+++ b/src/main/webapp/jquery/marker.png
Binary files differ
diff --git a/jquery/mask.png b/src/main/webapp/jquery/mask.png
index b0a4d40..b0a4d40 100644
--- a/jquery/mask.png
+++ b/src/main/webapp/jquery/mask.png
Binary files differ
diff --git a/jquery/wheel.png b/src/main/webapp/jquery/wheel.png
index 97b343d..97b343d 100644
--- a/jquery/wheel.png
+++ b/src/main/webapp/jquery/wheel.png
Binary files differ
diff --git a/math.js b/src/main/webapp/math.js
index 26bb8a3..26bb8a3 100644
--- a/math.js
+++ b/src/main/webapp/math.js
diff --git a/mxClient.min.js b/src/main/webapp/mxClient.min.js
index 80979cd..80979cd 100644
--- a/mxClient.min.js
+++ b/src/main/webapp/mxClient.min.js
diff --git a/orientation.js b/src/main/webapp/orientation.js
index 6071758..6071758 100644
--- a/orientation.js
+++ b/src/main/webapp/orientation.js
diff --git a/palettes/ABS_VALUE.png b/src/main/webapp/palettes/ABS_VALUE.png
index aa06345..aa06345 100644
--- a/palettes/ABS_VALUE.png
+++ b/src/main/webapp/palettes/ABS_VALUE.png
Binary files differ
diff --git a/palettes/AFFICH_m.png b/src/main/webapp/palettes/AFFICH_m.png
index 460fece..460fece 100644
--- a/palettes/AFFICH_m.png
+++ b/src/main/webapp/palettes/AFFICH_m.png
Binary files differ
diff --git a/palettes/ANDBLK.png b/src/main/webapp/palettes/ANDBLK.png
index 03bba59..03bba59 100644
--- a/palettes/ANDBLK.png
+++ b/src/main/webapp/palettes/ANDBLK.png
Binary files differ
diff --git a/palettes/ANDLOG_f.png b/src/main/webapp/palettes/ANDLOG_f.png
index ab41159..ab41159 100644
--- a/palettes/ANDLOG_f.png
+++ b/src/main/webapp/palettes/ANDLOG_f.png
Binary files differ
diff --git a/palettes/AUTOMAT.png b/src/main/webapp/palettes/AUTOMAT.png
index 334d497..334d497 100644
--- a/palettes/AUTOMAT.png
+++ b/src/main/webapp/palettes/AUTOMAT.png
Binary files differ
diff --git a/palettes/BACKLASH.png b/src/main/webapp/palettes/BACKLASH.png
index ce2938e..ce2938e 100644
--- a/palettes/BACKLASH.png
+++ b/src/main/webapp/palettes/BACKLASH.png
Binary files differ
diff --git a/palettes/BARXY.png b/src/main/webapp/palettes/BARXY.png
index 32368d9..32368d9 100644
--- a/palettes/BARXY.png
+++ b/src/main/webapp/palettes/BARXY.png
Binary files differ
diff --git a/palettes/BIGSOM_f.png b/src/main/webapp/palettes/BIGSOM_f.png
index 42deb67..42deb67 100644
--- a/palettes/BIGSOM_f.png
+++ b/src/main/webapp/palettes/BIGSOM_f.png
Binary files differ
diff --git a/palettes/BITCLEAR.png b/src/main/webapp/palettes/BITCLEAR.png
index c193233..c193233 100644
--- a/palettes/BITCLEAR.png
+++ b/src/main/webapp/palettes/BITCLEAR.png
Binary files differ
diff --git a/palettes/BITSET.png b/src/main/webapp/palettes/BITSET.png
index c9cde7d..c9cde7d 100644
--- a/palettes/BITSET.png
+++ b/src/main/webapp/palettes/BITSET.png
Binary files differ
diff --git a/palettes/BOUNCE.png b/src/main/webapp/palettes/BOUNCE.png
index 04b4684..04b4684 100644
--- a/palettes/BOUNCE.png
+++ b/src/main/webapp/palettes/BOUNCE.png
Binary files differ
diff --git a/palettes/BOUNCEXY.png b/src/main/webapp/palettes/BOUNCEXY.png
index 207e441..207e441 100644
--- a/palettes/BOUNCEXY.png
+++ b/src/main/webapp/palettes/BOUNCEXY.png
Binary files differ
diff --git a/palettes/BPLATFORM.png b/src/main/webapp/palettes/BPLATFORM.png
index 1145640..1145640 100644
--- a/palettes/BPLATFORM.png
+++ b/src/main/webapp/palettes/BPLATFORM.png
Binary files differ
diff --git a/palettes/Bache.png b/src/main/webapp/palettes/Bache.png
index b48a525..b48a525 100644
--- a/palettes/Bache.png
+++ b/src/main/webapp/palettes/Bache.png
Binary files differ
diff --git a/palettes/CANIMXY.png b/src/main/webapp/palettes/CANIMXY.png
index 207e441..207e441 100644
--- a/palettes/CANIMXY.png
+++ b/src/main/webapp/palettes/CANIMXY.png
Binary files differ
diff --git a/palettes/CANIMXY3D.png b/src/main/webapp/palettes/CANIMXY3D.png
index 3be2e3a..3be2e3a 100644
--- a/palettes/CANIMXY3D.png
+++ b/src/main/webapp/palettes/CANIMXY3D.png
Binary files differ
diff --git a/palettes/CBLOCK.png b/src/main/webapp/palettes/CBLOCK.png
index cf90bfa..cf90bfa 100644
--- a/palettes/CBLOCK.png
+++ b/src/main/webapp/palettes/CBLOCK.png
Binary files differ
diff --git a/palettes/CBLOCK4.png b/src/main/webapp/palettes/CBLOCK4.png
index 4b78464..4b78464 100644
--- a/palettes/CBLOCK4.png
+++ b/src/main/webapp/palettes/CBLOCK4.png
Binary files differ
diff --git a/palettes/CCS.png b/src/main/webapp/palettes/CCS.png
index 91a53e9..91a53e9 100644
--- a/palettes/CCS.png
+++ b/src/main/webapp/palettes/CCS.png
Binary files differ
diff --git a/palettes/CEVENTSCOPE.png b/src/main/webapp/palettes/CEVENTSCOPE.png
index 77341d7..77341d7 100644
--- a/palettes/CEVENTSCOPE.png
+++ b/src/main/webapp/palettes/CEVENTSCOPE.png
Binary files differ
diff --git a/palettes/CFSCOPE.png b/src/main/webapp/palettes/CFSCOPE.png
index 71a5866..71a5866 100644
--- a/palettes/CFSCOPE.png
+++ b/src/main/webapp/palettes/CFSCOPE.png
Binary files differ
diff --git a/palettes/CLINDUMMY_f.png b/src/main/webapp/palettes/CLINDUMMY_f.png
index 9b4e88e..9b4e88e 100644
--- a/palettes/CLINDUMMY_f.png
+++ b/src/main/webapp/palettes/CLINDUMMY_f.png
Binary files differ
diff --git a/palettes/CLKFROM.png b/src/main/webapp/palettes/CLKFROM.png
index 6513ead..6513ead 100644
--- a/palettes/CLKFROM.png
+++ b/src/main/webapp/palettes/CLKFROM.png
Binary files differ
diff --git a/palettes/CLKGOTO.png b/src/main/webapp/palettes/CLKGOTO.png
index a291b02..a291b02 100644
--- a/palettes/CLKGOTO.png
+++ b/src/main/webapp/palettes/CLKGOTO.png
Binary files differ
diff --git a/palettes/CLKGotoTagVisibility.png b/src/main/webapp/palettes/CLKGotoTagVisibility.png
index 57e435e..57e435e 100644
--- a/palettes/CLKGotoTagVisibility.png
+++ b/src/main/webapp/palettes/CLKGotoTagVisibility.png
Binary files differ
diff --git a/palettes/CLKINV_f.png b/src/main/webapp/palettes/CLKINV_f.png
index edc922f..edc922f 100644
--- a/palettes/CLKINV_f.png
+++ b/src/main/webapp/palettes/CLKINV_f.png
Binary files differ
diff --git a/palettes/CLKOUTV_f.png b/src/main/webapp/palettes/CLKOUTV_f.png
index 6cf24e3..6cf24e3 100644
--- a/palettes/CLKOUTV_f.png
+++ b/src/main/webapp/palettes/CLKOUTV_f.png
Binary files differ
diff --git a/palettes/CLKSOMV_f.png b/src/main/webapp/palettes/CLKSOMV_f.png
index c4e7047..c4e7047 100644
--- a/palettes/CLKSOMV_f.png
+++ b/src/main/webapp/palettes/CLKSOMV_f.png
Binary files differ
diff --git a/palettes/CLOCK_c.png b/src/main/webapp/palettes/CLOCK_c.png
index 45df9d1..45df9d1 100644
--- a/palettes/CLOCK_c.png
+++ b/src/main/webapp/palettes/CLOCK_c.png
Binary files differ
diff --git a/palettes/CLR.png b/src/main/webapp/palettes/CLR.png
index 207f962..207f962 100644
--- a/palettes/CLR.png
+++ b/src/main/webapp/palettes/CLR.png
Binary files differ
diff --git a/palettes/CLSS.png b/src/main/webapp/palettes/CLSS.png
index e8cfa36..e8cfa36 100644
--- a/palettes/CLSS.png
+++ b/src/main/webapp/palettes/CLSS.png
Binary files differ
diff --git a/palettes/CMAT3D.png b/src/main/webapp/palettes/CMAT3D.png
index 3f4d85a..3f4d85a 100644
--- a/palettes/CMAT3D.png
+++ b/src/main/webapp/palettes/CMAT3D.png
Binary files differ
diff --git a/palettes/CMATVIEW.png b/src/main/webapp/palettes/CMATVIEW.png
index c4fd3c7..c4fd3c7 100644
--- a/palettes/CMATVIEW.png
+++ b/src/main/webapp/palettes/CMATVIEW.png
Binary files differ
diff --git a/palettes/CMSCOPE.png b/src/main/webapp/palettes/CMSCOPE.png
index 8f2dd2b..8f2dd2b 100644
--- a/palettes/CMSCOPE.png
+++ b/src/main/webapp/palettes/CMSCOPE.png
Binary files differ
diff --git a/palettes/CONST.png b/src/main/webapp/palettes/CONST.png
index 8d4198d..8d4198d 100644
--- a/palettes/CONST.png
+++ b/src/main/webapp/palettes/CONST.png
Binary files differ
diff --git a/palettes/CONSTRAINT2_c.png b/src/main/webapp/palettes/CONSTRAINT2_c.png
index 6d5141b..6d5141b 100644
--- a/palettes/CONSTRAINT2_c.png
+++ b/src/main/webapp/palettes/CONSTRAINT2_c.png
Binary files differ
diff --git a/palettes/CONSTRAINT_c.png b/src/main/webapp/palettes/CONSTRAINT_c.png
index fe00d60..fe00d60 100644
--- a/palettes/CONSTRAINT_c.png
+++ b/src/main/webapp/palettes/CONSTRAINT_c.png
Binary files differ
diff --git a/palettes/CONST_f.png b/src/main/webapp/palettes/CONST_f.png
index 8d4198d..8d4198d 100644
--- a/palettes/CONST_f.png
+++ b/src/main/webapp/palettes/CONST_f.png
Binary files differ
diff --git a/palettes/CONST_m.png b/src/main/webapp/palettes/CONST_m.png
index 8d4198d..8d4198d 100644
--- a/palettes/CONST_m.png
+++ b/src/main/webapp/palettes/CONST_m.png
Binary files differ
diff --git a/palettes/CONVERT.png b/src/main/webapp/palettes/CONVERT.png
index 22208cf..22208cf 100644
--- a/palettes/CONVERT.png
+++ b/src/main/webapp/palettes/CONVERT.png
Binary files differ
diff --git a/palettes/COSBLK_f.png b/src/main/webapp/palettes/COSBLK_f.png
index d396ed9..d396ed9 100644
--- a/palettes/COSBLK_f.png
+++ b/src/main/webapp/palettes/COSBLK_f.png
Binary files differ
diff --git a/palettes/CSCOPE.png b/src/main/webapp/palettes/CSCOPE.png
index 30db1c5..30db1c5 100644
--- a/palettes/CSCOPE.png
+++ b/src/main/webapp/palettes/CSCOPE.png
Binary files differ
diff --git a/palettes/CSCOPXY.png b/src/main/webapp/palettes/CSCOPXY.png
index 8e18cef..8e18cef 100644
--- a/palettes/CSCOPXY.png
+++ b/src/main/webapp/palettes/CSCOPXY.png
Binary files differ
diff --git a/palettes/CSCOPXY3D.png b/src/main/webapp/palettes/CSCOPXY3D.png
index ac16990..ac16990 100644
--- a/palettes/CSCOPXY3D.png
+++ b/src/main/webapp/palettes/CSCOPXY3D.png
Binary files differ
diff --git a/palettes/CUMSUM.png b/src/main/webapp/palettes/CUMSUM.png
index 5dcf063..5dcf063 100644
--- a/palettes/CUMSUM.png
+++ b/src/main/webapp/palettes/CUMSUM.png
Binary files differ
diff --git a/palettes/CURV_f.png b/src/main/webapp/palettes/CURV_f.png
index 057b81f..057b81f 100644
--- a/palettes/CURV_f.png
+++ b/src/main/webapp/palettes/CURV_f.png
Binary files differ
diff --git a/palettes/CVS.png b/src/main/webapp/palettes/CVS.png
index 1b41af9..1b41af9 100644
--- a/palettes/CVS.png
+++ b/src/main/webapp/palettes/CVS.png
Binary files differ
diff --git a/palettes/Capacitor.png b/src/main/webapp/palettes/Capacitor.png
index 3d46380..3d46380 100644
--- a/palettes/Capacitor.png
+++ b/src/main/webapp/palettes/Capacitor.png
Binary files differ
diff --git a/palettes/ConstantVoltage.png b/src/main/webapp/palettes/ConstantVoltage.png
index 7431b2c..7431b2c 100644
--- a/palettes/ConstantVoltage.png
+++ b/src/main/webapp/palettes/ConstantVoltage.png
Binary files differ
diff --git a/palettes/Counter.png b/src/main/webapp/palettes/Counter.png
index 4f6ab1d..4f6ab1d 100644
--- a/palettes/Counter.png
+++ b/src/main/webapp/palettes/Counter.png
Binary files differ
diff --git a/palettes/CurrentSensor.png b/src/main/webapp/palettes/CurrentSensor.png
index b97f507..b97f507 100644
--- a/palettes/CurrentSensor.png
+++ b/src/main/webapp/palettes/CurrentSensor.png
Binary files differ
diff --git a/palettes/DEADBAND.png b/src/main/webapp/palettes/DEADBAND.png
index e5799c3..e5799c3 100644
--- a/palettes/DEADBAND.png
+++ b/src/main/webapp/palettes/DEADBAND.png
Binary files differ
diff --git a/palettes/DEBUG.png b/src/main/webapp/palettes/DEBUG.png
index fac6444..fac6444 100644
--- a/palettes/DEBUG.png
+++ b/src/main/webapp/palettes/DEBUG.png
Binary files differ
diff --git a/palettes/DELAYV_f.png b/src/main/webapp/palettes/DELAYV_f.png
index cd8c8e2..cd8c8e2 100644
--- a/palettes/DELAYV_f.png
+++ b/src/main/webapp/palettes/DELAYV_f.png
Binary files differ
diff --git a/palettes/DELAY_f.png b/src/main/webapp/palettes/DELAY_f.png
index 7e36f43..7e36f43 100644
--- a/palettes/DELAY_f.png
+++ b/src/main/webapp/palettes/DELAY_f.png
Binary files differ
diff --git a/palettes/DEMUX.png b/src/main/webapp/palettes/DEMUX.png
index 8f69ccd..8f69ccd 100644
--- a/palettes/DEMUX.png
+++ b/src/main/webapp/palettes/DEMUX.png
Binary files differ
diff --git a/palettes/DEMUX_f.png b/src/main/webapp/palettes/DEMUX_f.png
index 8f69ccd..8f69ccd 100644
--- a/palettes/DEMUX_f.png
+++ b/src/main/webapp/palettes/DEMUX_f.png
Binary files differ
diff --git a/palettes/DERIV.png b/src/main/webapp/palettes/DERIV.png
index 1f53768..1f53768 100644
--- a/palettes/DERIV.png
+++ b/src/main/webapp/palettes/DERIV.png
Binary files differ
diff --git a/palettes/DFLIPFLOP.png b/src/main/webapp/palettes/DFLIPFLOP.png
index 5922bc2..5922bc2 100644
--- a/palettes/DFLIPFLOP.png
+++ b/src/main/webapp/palettes/DFLIPFLOP.png
Binary files differ
diff --git a/palettes/DIFF_f.png b/src/main/webapp/palettes/DIFF_f.png
index 396bf12..396bf12 100644
--- a/palettes/DIFF_f.png
+++ b/src/main/webapp/palettes/DIFF_f.png
Binary files differ
diff --git a/palettes/DLATCH.png b/src/main/webapp/palettes/DLATCH.png
index 5b580f1..5b580f1 100644
--- a/palettes/DLATCH.png
+++ b/src/main/webapp/palettes/DLATCH.png
Binary files differ
diff --git a/palettes/DLR.png b/src/main/webapp/palettes/DLR.png
index 6d591b5..6d591b5 100644
--- a/palettes/DLR.png
+++ b/src/main/webapp/palettes/DLR.png
Binary files differ
diff --git a/palettes/DLRADAPT_f.png b/src/main/webapp/palettes/DLRADAPT_f.png
index 557431d..557431d 100644
--- a/palettes/DLRADAPT_f.png
+++ b/src/main/webapp/palettes/DLRADAPT_f.png
Binary files differ
diff --git a/palettes/DLSS.png b/src/main/webapp/palettes/DLSS.png
index 8d18fda..8d18fda 100644
--- a/palettes/DLSS.png
+++ b/src/main/webapp/palettes/DLSS.png
Binary files differ
diff --git a/palettes/DOLLAR.png b/src/main/webapp/palettes/DOLLAR.png
index 84bf03e..84bf03e 100644
--- a/palettes/DOLLAR.png
+++ b/src/main/webapp/palettes/DOLLAR.png
Binary files differ
diff --git a/palettes/DOLLAR_f.png b/src/main/webapp/palettes/DOLLAR_f.png
index 84bf03e..84bf03e 100644
--- a/palettes/DOLLAR_f.png
+++ b/src/main/webapp/palettes/DOLLAR_f.png
Binary files differ
diff --git a/palettes/DOLLAR_m.png b/src/main/webapp/palettes/DOLLAR_m.png
index 84bf03e..84bf03e 100644
--- a/palettes/DOLLAR_m.png
+++ b/src/main/webapp/palettes/DOLLAR_m.png
Binary files differ
diff --git a/palettes/Diode.png b/src/main/webapp/palettes/Diode.png
index c97db57..c97db57 100644
--- a/palettes/Diode.png
+++ b/src/main/webapp/palettes/Diode.png
Binary files differ
diff --git a/palettes/EDGE_TRIGGER.png b/src/main/webapp/palettes/EDGE_TRIGGER.png
index 81f34cf..81f34cf 100644
--- a/palettes/EDGE_TRIGGER.png
+++ b/src/main/webapp/palettes/EDGE_TRIGGER.png
Binary files differ
diff --git a/palettes/ENDBLK.png b/src/main/webapp/palettes/ENDBLK.png
index 54a5be4..54a5be4 100644
--- a/palettes/ENDBLK.png
+++ b/src/main/webapp/palettes/ENDBLK.png
Binary files differ
diff --git a/palettes/END_c.png b/src/main/webapp/palettes/END_c.png
index 98c1a4c..98c1a4c 100644
--- a/palettes/END_c.png
+++ b/src/main/webapp/palettes/END_c.png
Binary files differ
diff --git a/palettes/ESELECT_f.png b/src/main/webapp/palettes/ESELECT_f.png
index d421399..d421399 100644
--- a/palettes/ESELECT_f.png
+++ b/src/main/webapp/palettes/ESELECT_f.png
Binary files differ
diff --git a/palettes/EVTDLY_c.png b/src/main/webapp/palettes/EVTDLY_c.png
index 577808c..577808c 100644
--- a/palettes/EVTDLY_c.png
+++ b/src/main/webapp/palettes/EVTDLY_c.png
Binary files differ
diff --git a/palettes/EVTGEN_f.png b/src/main/webapp/palettes/EVTGEN_f.png
index f7550e8..f7550e8 100644
--- a/palettes/EVTGEN_f.png
+++ b/src/main/webapp/palettes/EVTGEN_f.png
Binary files differ
diff --git a/palettes/EVTVARDLY.png b/src/main/webapp/palettes/EVTVARDLY.png
index 75fa575..75fa575 100644
--- a/palettes/EVTVARDLY.png
+++ b/src/main/webapp/palettes/EVTVARDLY.png
Binary files differ
diff --git a/palettes/EXPBLK_m.png b/src/main/webapp/palettes/EXPBLK_m.png
index c7341a2..c7341a2 100644
--- a/palettes/EXPBLK_m.png
+++ b/src/main/webapp/palettes/EXPBLK_m.png
Binary files differ
diff --git a/palettes/EXPRESSION.png b/src/main/webapp/palettes/EXPRESSION.png
index 9fbc05e..9fbc05e 100644
--- a/palettes/EXPRESSION.png
+++ b/src/main/webapp/palettes/EXPRESSION.png
Binary files differ
diff --git a/palettes/EXTRACT.png b/src/main/webapp/palettes/EXTRACT.png
index 06e4276..06e4276 100644
--- a/palettes/EXTRACT.png
+++ b/src/main/webapp/palettes/EXTRACT.png
Binary files differ
diff --git a/palettes/EXTRACTBITS.png b/src/main/webapp/palettes/EXTRACTBITS.png
index 4ed0f79..4ed0f79 100644
--- a/palettes/EXTRACTBITS.png
+++ b/src/main/webapp/palettes/EXTRACTBITS.png
Binary files differ
diff --git a/palettes/EXTRACTOR.png b/src/main/webapp/palettes/EXTRACTOR.png
index 9a45cf4..9a45cf4 100644
--- a/palettes/EXTRACTOR.png
+++ b/src/main/webapp/palettes/EXTRACTOR.png
Binary files differ
diff --git a/palettes/EXTTRI.png b/src/main/webapp/palettes/EXTTRI.png
index 2c5fb35..2c5fb35 100644
--- a/palettes/EXTTRI.png
+++ b/src/main/webapp/palettes/EXTTRI.png
Binary files differ
diff --git a/palettes/Extract_Activation.png b/src/main/webapp/palettes/Extract_Activation.png
index 640f082..640f082 100644
--- a/palettes/Extract_Activation.png
+++ b/src/main/webapp/palettes/Extract_Activation.png
Binary files differ
diff --git a/palettes/FROM.png b/src/main/webapp/palettes/FROM.png
index 14bd241..14bd241 100644
--- a/palettes/FROM.png
+++ b/src/main/webapp/palettes/FROM.png
Binary files differ
diff --git a/palettes/FROMMO.png b/src/main/webapp/palettes/FROMMO.png
index 5d1274d..5d1274d 100644
--- a/palettes/FROMMO.png
+++ b/src/main/webapp/palettes/FROMMO.png
Binary files differ
diff --git a/palettes/FROMWSB.png b/src/main/webapp/palettes/FROMWSB.png
index e0451a6..e0451a6 100644
--- a/palettes/FROMWSB.png
+++ b/src/main/webapp/palettes/FROMWSB.png
Binary files differ
diff --git a/palettes/Flowmeter.png b/src/main/webapp/palettes/Flowmeter.png
index 1ee7fe3..1ee7fe3 100644
--- a/palettes/Flowmeter.png
+++ b/src/main/webapp/palettes/Flowmeter.png
Binary files differ
diff --git a/palettes/GAINBLK.png b/src/main/webapp/palettes/GAINBLK.png
index 8fa10d5..8fa10d5 100644
--- a/palettes/GAINBLK.png
+++ b/src/main/webapp/palettes/GAINBLK.png
Binary files differ
diff --git a/palettes/GAINBLK_f.png b/src/main/webapp/palettes/GAINBLK_f.png
index 8fa10d5..8fa10d5 100644
--- a/palettes/GAINBLK_f.png
+++ b/src/main/webapp/palettes/GAINBLK_f.png
Binary files differ
diff --git a/palettes/GAIN_f.png b/src/main/webapp/palettes/GAIN_f.png
index 8fa10d5..8fa10d5 100644
--- a/palettes/GAIN_f.png
+++ b/src/main/webapp/palettes/GAIN_f.png
Binary files differ
diff --git a/palettes/GENERAL_f.png b/src/main/webapp/palettes/GENERAL_f.png
index bad61b6..bad61b6 100644
--- a/palettes/GENERAL_f.png
+++ b/src/main/webapp/palettes/GENERAL_f.png
Binary files differ
diff --git a/palettes/GENSIN_f.png b/src/main/webapp/palettes/GENSIN_f.png
index 83afc34..83afc34 100644
--- a/palettes/GENSIN_f.png
+++ b/src/main/webapp/palettes/GENSIN_f.png
Binary files differ
diff --git a/palettes/GENSQR_f.png b/src/main/webapp/palettes/GENSQR_f.png
index 3e9f154..3e9f154 100644
--- a/palettes/GENSQR_f.png
+++ b/src/main/webapp/palettes/GENSQR_f.png
Binary files differ
diff --git a/palettes/GOTO.png b/src/main/webapp/palettes/GOTO.png
index f1cb7a1..f1cb7a1 100644
--- a/palettes/GOTO.png
+++ b/src/main/webapp/palettes/GOTO.png
Binary files differ
diff --git a/palettes/GOTOMO.png b/src/main/webapp/palettes/GOTOMO.png
index 6e4728f..6e4728f 100644
--- a/palettes/GOTOMO.png
+++ b/src/main/webapp/palettes/GOTOMO.png
Binary files differ
diff --git a/palettes/GotoTagVisibility.png b/src/main/webapp/palettes/GotoTagVisibility.png
index b397415..b397415 100644
--- a/palettes/GotoTagVisibility.png
+++ b/src/main/webapp/palettes/GotoTagVisibility.png
Binary files differ
diff --git a/palettes/GotoTagVisibilityMO.png b/src/main/webapp/palettes/GotoTagVisibilityMO.png
index 7a2eb73..7a2eb73 100644
--- a/palettes/GotoTagVisibilityMO.png
+++ b/src/main/webapp/palettes/GotoTagVisibilityMO.png
Binary files differ
diff --git a/palettes/Ground.png b/src/main/webapp/palettes/Ground.png
index 19681b6..19681b6 100644
--- a/palettes/Ground.png
+++ b/src/main/webapp/palettes/Ground.png
Binary files differ
diff --git a/palettes/Gyrator.png b/src/main/webapp/palettes/Gyrator.png
index 55f0cf4..55f0cf4 100644
--- a/palettes/Gyrator.png
+++ b/src/main/webapp/palettes/Gyrator.png
Binary files differ
diff --git a/palettes/HALT_f.png b/src/main/webapp/palettes/HALT_f.png
index dc8c23e..dc8c23e 100644
--- a/palettes/HALT_f.png
+++ b/src/main/webapp/palettes/HALT_f.png
Binary files differ
diff --git a/palettes/HYSTHERESIS.png b/src/main/webapp/palettes/HYSTHERESIS.png
index ccee255..ccee255 100644
--- a/palettes/HYSTHERESIS.png
+++ b/src/main/webapp/palettes/HYSTHERESIS.png
Binary files differ
diff --git a/palettes/IFTHEL_f.png b/src/main/webapp/palettes/IFTHEL_f.png
index 4ffba86..4ffba86 100644
--- a/palettes/IFTHEL_f.png
+++ b/src/main/webapp/palettes/IFTHEL_f.png
Binary files differ
diff --git a/palettes/INIMPL_f.png b/src/main/webapp/palettes/INIMPL_f.png
index 4750c15..4750c15 100644
--- a/palettes/INIMPL_f.png
+++ b/src/main/webapp/palettes/INIMPL_f.png
Binary files differ
diff --git a/palettes/INTEGRAL_f.png b/src/main/webapp/palettes/INTEGRAL_f.png
index e1fd0c8..e1fd0c8 100644
--- a/palettes/INTEGRAL_f.png
+++ b/src/main/webapp/palettes/INTEGRAL_f.png
Binary files differ
diff --git a/palettes/INTEGRAL_m.png b/src/main/webapp/palettes/INTEGRAL_m.png
index f560cf5..f560cf5 100644
--- a/palettes/INTEGRAL_m.png
+++ b/src/main/webapp/palettes/INTEGRAL_m.png
Binary files differ
diff --git a/palettes/INTMUL.png b/src/main/webapp/palettes/INTMUL.png
index 8185aaf..8185aaf 100644
--- a/palettes/INTMUL.png
+++ b/src/main/webapp/palettes/INTMUL.png
Binary files differ
diff --git a/palettes/INTRP2BLK_f.png b/src/main/webapp/palettes/INTRP2BLK_f.png
index 850a028..850a028 100644
--- a/palettes/INTRP2BLK_f.png
+++ b/src/main/webapp/palettes/INTRP2BLK_f.png
Binary files differ
diff --git a/palettes/INTRPLBLK_f.png b/src/main/webapp/palettes/INTRPLBLK_f.png
index d67fa1f..d67fa1f 100644
--- a/palettes/INTRPLBLK_f.png
+++ b/src/main/webapp/palettes/INTRPLBLK_f.png
Binary files differ
diff --git a/palettes/INVBLK.png b/src/main/webapp/palettes/INVBLK.png
index e70af6c..e70af6c 100644
--- a/palettes/INVBLK.png
+++ b/src/main/webapp/palettes/INVBLK.png
Binary files differ
diff --git a/palettes/IN_f.png b/src/main/webapp/palettes/IN_f.png
index c05dfff..c05dfff 100644
--- a/palettes/IN_f.png
+++ b/src/main/webapp/palettes/IN_f.png
Binary files differ
diff --git a/palettes/ISELECT_m.png b/src/main/webapp/palettes/ISELECT_m.png
index 376e80a..376e80a 100644
--- a/palettes/ISELECT_m.png
+++ b/src/main/webapp/palettes/ISELECT_m.png
Binary files differ
diff --git a/palettes/IdealTransformer.png b/src/main/webapp/palettes/IdealTransformer.png
index 7342c1c..7342c1c 100644
--- a/palettes/IdealTransformer.png
+++ b/src/main/webapp/palettes/IdealTransformer.png
Binary files differ
diff --git a/palettes/Inductor.png b/src/main/webapp/palettes/Inductor.png
index 3a9f355..3a9f355 100644
--- a/palettes/Inductor.png
+++ b/src/main/webapp/palettes/Inductor.png
Binary files differ
diff --git a/palettes/JKFLIPFLOP.png b/src/main/webapp/palettes/JKFLIPFLOP.png
index af400ed..af400ed 100644
--- a/palettes/JKFLIPFLOP.png
+++ b/src/main/webapp/palettes/JKFLIPFLOP.png
Binary files differ
diff --git a/palettes/LOGBLK_f.png b/src/main/webapp/palettes/LOGBLK_f.png
index 85965d4..85965d4 100644
--- a/palettes/LOGBLK_f.png
+++ b/src/main/webapp/palettes/LOGBLK_f.png
Binary files differ
diff --git a/palettes/LOGIC.png b/src/main/webapp/palettes/LOGIC.png
index ec4aa35..ec4aa35 100644
--- a/palettes/LOGIC.png
+++ b/src/main/webapp/palettes/LOGIC.png
Binary files differ
diff --git a/palettes/LOGICAL_OP.png b/src/main/webapp/palettes/LOGICAL_OP.png
index 09f5f4e..09f5f4e 100644
--- a/palettes/LOGICAL_OP.png
+++ b/src/main/webapp/palettes/LOGICAL_OP.png
Binary files differ
diff --git a/palettes/LOOKUP_f.png b/src/main/webapp/palettes/LOOKUP_f.png
index ab43c1b..ab43c1b 100644
--- a/palettes/LOOKUP_f.png
+++ b/src/main/webapp/palettes/LOOKUP_f.png
Binary files differ
diff --git a/palettes/MATBKSL.png b/src/main/webapp/palettes/MATBKSL.png
index 74a541c..74a541c 100644
--- a/palettes/MATBKSL.png
+++ b/src/main/webapp/palettes/MATBKSL.png
Binary files differ
diff --git a/palettes/MATCATH.png b/src/main/webapp/palettes/MATCATH.png
index 28b7b58..28b7b58 100644
--- a/palettes/MATCATH.png
+++ b/src/main/webapp/palettes/MATCATH.png
Binary files differ
diff --git a/palettes/MATCATV.png b/src/main/webapp/palettes/MATCATV.png
index cf693c1..cf693c1 100644
--- a/palettes/MATCATV.png
+++ b/src/main/webapp/palettes/MATCATV.png
Binary files differ
diff --git a/palettes/MATDET.png b/src/main/webapp/palettes/MATDET.png
index c20b9c9..c20b9c9 100644
--- a/palettes/MATDET.png
+++ b/src/main/webapp/palettes/MATDET.png
Binary files differ
diff --git a/palettes/MATDIAG.png b/src/main/webapp/palettes/MATDIAG.png
index fd255ab..fd255ab 100644
--- a/palettes/MATDIAG.png
+++ b/src/main/webapp/palettes/MATDIAG.png
Binary files differ
diff --git a/palettes/MATDIV.png b/src/main/webapp/palettes/MATDIV.png
index 39f8b2b..39f8b2b 100644
--- a/palettes/MATDIV.png
+++ b/src/main/webapp/palettes/MATDIV.png
Binary files differ
diff --git a/palettes/MATEIG.png b/src/main/webapp/palettes/MATEIG.png
index 12fd878..12fd878 100644
--- a/palettes/MATEIG.png
+++ b/src/main/webapp/palettes/MATEIG.png
Binary files differ
diff --git a/palettes/MATEXPM.png b/src/main/webapp/palettes/MATEXPM.png
index 2951e52..2951e52 100644
--- a/palettes/MATEXPM.png
+++ b/src/main/webapp/palettes/MATEXPM.png
Binary files differ
diff --git a/palettes/MATINV.png b/src/main/webapp/palettes/MATINV.png
index b4bb390..b4bb390 100644
--- a/palettes/MATINV.png
+++ b/src/main/webapp/palettes/MATINV.png
Binary files differ
diff --git a/palettes/MATLU.png b/src/main/webapp/palettes/MATLU.png
index 863afce..863afce 100644
--- a/palettes/MATLU.png
+++ b/src/main/webapp/palettes/MATLU.png
Binary files differ
diff --git a/palettes/MATMAGPHI.png b/src/main/webapp/palettes/MATMAGPHI.png
index a56b57a..a56b57a 100644
--- a/palettes/MATMAGPHI.png
+++ b/src/main/webapp/palettes/MATMAGPHI.png
Binary files differ
diff --git a/palettes/MATMUL.png b/src/main/webapp/palettes/MATMUL.png
index 90c71fd..90c71fd 100644
--- a/palettes/MATMUL.png
+++ b/src/main/webapp/palettes/MATMUL.png
Binary files differ
diff --git a/palettes/MATPINV.png b/src/main/webapp/palettes/MATPINV.png
index a17a7a7..a17a7a7 100644
--- a/palettes/MATPINV.png
+++ b/src/main/webapp/palettes/MATPINV.png
Binary files differ
diff --git a/palettes/MATRESH.png b/src/main/webapp/palettes/MATRESH.png
index cbc0189..cbc0189 100644
--- a/palettes/MATRESH.png
+++ b/src/main/webapp/palettes/MATRESH.png
Binary files differ
diff --git a/palettes/MATSING.png b/src/main/webapp/palettes/MATSING.png
index ef53ffd..ef53ffd 100644
--- a/palettes/MATSING.png
+++ b/src/main/webapp/palettes/MATSING.png
Binary files differ
diff --git a/palettes/MATSUM.png b/src/main/webapp/palettes/MATSUM.png
index 1b9a43b..1b9a43b 100644
--- a/palettes/MATSUM.png
+++ b/src/main/webapp/palettes/MATSUM.png
Binary files differ
diff --git a/palettes/MATTRAN.png b/src/main/webapp/palettes/MATTRAN.png
index 0c3a387..0c3a387 100644
--- a/palettes/MATTRAN.png
+++ b/src/main/webapp/palettes/MATTRAN.png
Binary files differ
diff --git a/palettes/MATZCONJ.png b/src/main/webapp/palettes/MATZCONJ.png
index 6251310..6251310 100644
--- a/palettes/MATZCONJ.png
+++ b/src/main/webapp/palettes/MATZCONJ.png
Binary files differ
diff --git a/palettes/MATZREIM.png b/src/main/webapp/palettes/MATZREIM.png
index f217649..f217649 100644
--- a/palettes/MATZREIM.png
+++ b/src/main/webapp/palettes/MATZREIM.png
Binary files differ
diff --git a/palettes/MAXMIN.png b/src/main/webapp/palettes/MAXMIN.png
index 18a800e..18a800e 100644
--- a/palettes/MAXMIN.png
+++ b/src/main/webapp/palettes/MAXMIN.png
Binary files differ
diff --git a/palettes/MAX_f.png b/src/main/webapp/palettes/MAX_f.png
index 18a800e..18a800e 100644
--- a/palettes/MAX_f.png
+++ b/src/main/webapp/palettes/MAX_f.png
Binary files differ
diff --git a/palettes/MBLOCK.png b/src/main/webapp/palettes/MBLOCK.png
index d22c2d4..d22c2d4 100644
--- a/palettes/MBLOCK.png
+++ b/src/main/webapp/palettes/MBLOCK.png
Binary files differ
diff --git a/palettes/MCLOCK_f.png b/src/main/webapp/palettes/MCLOCK_f.png
index bffc806..bffc806 100644
--- a/palettes/MCLOCK_f.png
+++ b/src/main/webapp/palettes/MCLOCK_f.png
Binary files differ
diff --git a/palettes/MFCLCK_f.png b/src/main/webapp/palettes/MFCLCK_f.png
index 70a32be..70a32be 100644
--- a/palettes/MFCLCK_f.png
+++ b/src/main/webapp/palettes/MFCLCK_f.png
Binary files differ
diff --git a/palettes/MIN_f.png b/src/main/webapp/palettes/MIN_f.png
index 9136794..9136794 100644
--- a/palettes/MIN_f.png
+++ b/src/main/webapp/palettes/MIN_f.png
Binary files differ
diff --git a/palettes/MUX.png b/src/main/webapp/palettes/MUX.png
index 8d7936b..8d7936b 100644
--- a/palettes/MUX.png
+++ b/src/main/webapp/palettes/MUX.png
Binary files differ
diff --git a/palettes/MUX_f.png b/src/main/webapp/palettes/MUX_f.png
index 8d7936b..8d7936b 100644
--- a/palettes/MUX_f.png
+++ b/src/main/webapp/palettes/MUX_f.png
Binary files differ
diff --git a/palettes/M_SWITCH.png b/src/main/webapp/palettes/M_SWITCH.png
index 4b3f327..4b3f327 100644
--- a/palettes/M_SWITCH.png
+++ b/src/main/webapp/palettes/M_SWITCH.png
Binary files differ
diff --git a/palettes/M_freq.png b/src/main/webapp/palettes/M_freq.png
index ba07fca..ba07fca 100644
--- a/palettes/M_freq.png
+++ b/src/main/webapp/palettes/M_freq.png
Binary files differ
diff --git a/palettes/Modulo_Count.png b/src/main/webapp/palettes/Modulo_Count.png
index b36ecaf..b36ecaf 100644
--- a/palettes/Modulo_Count.png
+++ b/src/main/webapp/palettes/Modulo_Count.png
Binary files differ
diff --git a/palettes/NEGTOPOS_f.png b/src/main/webapp/palettes/NEGTOPOS_f.png
index 47dadad..47dadad 100644
--- a/palettes/NEGTOPOS_f.png
+++ b/src/main/webapp/palettes/NEGTOPOS_f.png
Binary files differ
diff --git a/palettes/NMOS.png b/src/main/webapp/palettes/NMOS.png
index 298a523..298a523 100644
--- a/palettes/NMOS.png
+++ b/src/main/webapp/palettes/NMOS.png
Binary files differ
diff --git a/palettes/NPN.png b/src/main/webapp/palettes/NPN.png
index eb590e6..eb590e6 100644
--- a/palettes/NPN.png
+++ b/src/main/webapp/palettes/NPN.png
Binary files differ
diff --git a/palettes/NRMSOM_f.png b/src/main/webapp/palettes/NRMSOM_f.png
index 13d25c7..13d25c7 100644
--- a/palettes/NRMSOM_f.png
+++ b/src/main/webapp/palettes/NRMSOM_f.png
Binary files differ
diff --git a/palettes/OUTIMPL_f.png b/src/main/webapp/palettes/OUTIMPL_f.png
index 2d7c6fc..2d7c6fc 100644
--- a/palettes/OUTIMPL_f.png
+++ b/src/main/webapp/palettes/OUTIMPL_f.png
Binary files differ
diff --git a/palettes/OUT_f.png b/src/main/webapp/palettes/OUT_f.png
index 9711671..9711671 100644
--- a/palettes/OUT_f.png
+++ b/src/main/webapp/palettes/OUT_f.png
Binary files differ
diff --git a/palettes/OpAmp.png b/src/main/webapp/palettes/OpAmp.png
index 83844f5..83844f5 100644
--- a/palettes/OpAmp.png
+++ b/src/main/webapp/palettes/OpAmp.png
Binary files differ
diff --git a/palettes/PDE.png b/src/main/webapp/palettes/PDE.png
index fa49103..fa49103 100644
--- a/palettes/PDE.png
+++ b/src/main/webapp/palettes/PDE.png
Binary files differ
diff --git a/palettes/PID.png b/src/main/webapp/palettes/PID.png
index 43444cc..43444cc 100644
--- a/palettes/PID.png
+++ b/src/main/webapp/palettes/PID.png
Binary files differ
diff --git a/palettes/PMOS.png b/src/main/webapp/palettes/PMOS.png
index f6fd975..f6fd975 100644
--- a/palettes/PMOS.png
+++ b/src/main/webapp/palettes/PMOS.png
Binary files differ
diff --git a/palettes/PNP.png b/src/main/webapp/palettes/PNP.png
index 4bdcc86..4bdcc86 100644
--- a/palettes/PNP.png
+++ b/src/main/webapp/palettes/PNP.png
Binary files differ
diff --git a/palettes/POSTONEG_f.png b/src/main/webapp/palettes/POSTONEG_f.png
index d8c4c72..d8c4c72 100644
--- a/palettes/POSTONEG_f.png
+++ b/src/main/webapp/palettes/POSTONEG_f.png
Binary files differ
diff --git a/palettes/POWBLK_f.png b/src/main/webapp/palettes/POWBLK_f.png
index d34448a..d34448a 100644
--- a/palettes/POWBLK_f.png
+++ b/src/main/webapp/palettes/POWBLK_f.png
Binary files differ
diff --git a/palettes/PRODUCT.png b/src/main/webapp/palettes/PRODUCT.png
index daa15ac..daa15ac 100644
--- a/palettes/PRODUCT.png
+++ b/src/main/webapp/palettes/PRODUCT.png
Binary files differ
diff --git a/palettes/PROD_f.png b/src/main/webapp/palettes/PROD_f.png
index 6d2557b..6d2557b 100644
--- a/palettes/PROD_f.png
+++ b/src/main/webapp/palettes/PROD_f.png
Binary files differ
diff --git a/palettes/PULSE_SC.png b/src/main/webapp/palettes/PULSE_SC.png
index be441fe..be441fe 100644
--- a/palettes/PULSE_SC.png
+++ b/src/main/webapp/palettes/PULSE_SC.png
Binary files differ
diff --git a/palettes/PerteDP.png b/src/main/webapp/palettes/PerteDP.png
index c13b018..c13b018 100644
--- a/palettes/PerteDP.png
+++ b/src/main/webapp/palettes/PerteDP.png
Binary files differ
diff --git a/palettes/PotentialSensor.png b/src/main/webapp/palettes/PotentialSensor.png
index c121089..c121089 100644
--- a/palettes/PotentialSensor.png
+++ b/src/main/webapp/palettes/PotentialSensor.png
Binary files differ
diff --git a/palettes/PuitsP.png b/src/main/webapp/palettes/PuitsP.png
index 6de79da..6de79da 100644
--- a/palettes/PuitsP.png
+++ b/src/main/webapp/palettes/PuitsP.png
Binary files differ
diff --git a/palettes/QUANT_f.png b/src/main/webapp/palettes/QUANT_f.png
index 94a98f7..94a98f7 100644
--- a/palettes/QUANT_f.png
+++ b/src/main/webapp/palettes/QUANT_f.png
Binary files differ
diff --git a/palettes/RAMP.png b/src/main/webapp/palettes/RAMP.png
index 4d99da2..4d99da2 100644
--- a/palettes/RAMP.png
+++ b/src/main/webapp/palettes/RAMP.png
Binary files differ
diff --git a/palettes/RAND_m.png b/src/main/webapp/palettes/RAND_m.png
index cb037c9..cb037c9 100644
--- a/palettes/RAND_m.png
+++ b/src/main/webapp/palettes/RAND_m.png
Binary files differ
diff --git a/palettes/RATELIMITER.png b/src/main/webapp/palettes/RATELIMITER.png
index 3857e1c..3857e1c 100644
--- a/palettes/RATELIMITER.png
+++ b/src/main/webapp/palettes/RATELIMITER.png
Binary files differ
diff --git a/palettes/READAU_f.png b/src/main/webapp/palettes/READAU_f.png
index 1bf4d12..1bf4d12 100644
--- a/palettes/READAU_f.png
+++ b/src/main/webapp/palettes/READAU_f.png
Binary files differ
diff --git a/palettes/READC_f.png b/src/main/webapp/palettes/READC_f.png
index 2afa899..2afa899 100644
--- a/palettes/READC_f.png
+++ b/src/main/webapp/palettes/READC_f.png
Binary files differ
diff --git a/palettes/REGISTER.png b/src/main/webapp/palettes/REGISTER.png
index daa3057..daa3057 100644
--- a/palettes/REGISTER.png
+++ b/src/main/webapp/palettes/REGISTER.png
Binary files differ
diff --git a/palettes/RELATIONALOP.png b/src/main/webapp/palettes/RELATIONALOP.png
index ff2ba4a..ff2ba4a 100644
--- a/palettes/RELATIONALOP.png
+++ b/src/main/webapp/palettes/RELATIONALOP.png
Binary files differ
diff --git a/palettes/RELAY_f.png b/src/main/webapp/palettes/RELAY_f.png
index 980ceb1..980ceb1 100644
--- a/palettes/RELAY_f.png
+++ b/src/main/webapp/palettes/RELAY_f.png
Binary files differ
diff --git a/palettes/RFILE_f.png b/src/main/webapp/palettes/RFILE_f.png
index e2dd24e..e2dd24e 100644
--- a/palettes/RFILE_f.png
+++ b/src/main/webapp/palettes/RFILE_f.png
Binary files differ
diff --git a/palettes/RICC.png b/src/main/webapp/palettes/RICC.png
index 44cc457..44cc457 100644
--- a/palettes/RICC.png
+++ b/src/main/webapp/palettes/RICC.png
Binary files differ
diff --git a/palettes/ROOTCOEF.png b/src/main/webapp/palettes/ROOTCOEF.png
index 79bd011..79bd011 100644
--- a/palettes/ROOTCOEF.png
+++ b/src/main/webapp/palettes/ROOTCOEF.png
Binary files differ
diff --git a/palettes/Resistor.png b/src/main/webapp/palettes/Resistor.png
index 76b4af3..76b4af3 100644
--- a/palettes/Resistor.png
+++ b/src/main/webapp/palettes/Resistor.png
Binary files differ
diff --git a/palettes/SAMPHOLD_m.png b/src/main/webapp/palettes/SAMPHOLD_m.png
index e4ca5a0..e4ca5a0 100644
--- a/palettes/SAMPHOLD_m.png
+++ b/src/main/webapp/palettes/SAMPHOLD_m.png
Binary files differ
diff --git a/palettes/SATURATION.png b/src/main/webapp/palettes/SATURATION.png
index 05a4aef..05a4aef 100644
--- a/palettes/SATURATION.png
+++ b/src/main/webapp/palettes/SATURATION.png
Binary files differ
diff --git a/palettes/SAWTOOTH_f.png b/src/main/webapp/palettes/SAWTOOTH_f.png
index dc8cc49..dc8cc49 100644
--- a/palettes/SAWTOOTH_f.png
+++ b/src/main/webapp/palettes/SAWTOOTH_f.png
Binary files differ
diff --git a/palettes/SCALAR2VECTOR.png b/src/main/webapp/palettes/SCALAR2VECTOR.png
index df3cd3f..df3cd3f 100644
--- a/palettes/SCALAR2VECTOR.png
+++ b/src/main/webapp/palettes/SCALAR2VECTOR.png
Binary files differ
diff --git a/palettes/SELECT_m.png b/src/main/webapp/palettes/SELECT_m.png
index 90b910b..90b910b 100644
--- a/palettes/SELECT_m.png
+++ b/src/main/webapp/palettes/SELECT_m.png
Binary files differ
diff --git a/palettes/SELF_SWITCH.png b/src/main/webapp/palettes/SELF_SWITCH.png
index 58e3589..58e3589 100644
--- a/palettes/SELF_SWITCH.png
+++ b/src/main/webapp/palettes/SELF_SWITCH.png
Binary files differ
diff --git a/palettes/SELF_SWITCH_off.png b/src/main/webapp/palettes/SELF_SWITCH_off.png
index 7a8c530..7a8c530 100644
--- a/palettes/SELF_SWITCH_off.png
+++ b/src/main/webapp/palettes/SELF_SWITCH_off.png
Binary files differ
diff --git a/palettes/SELF_SWITCH_on.png b/src/main/webapp/palettes/SELF_SWITCH_on.png
index df7f4cc..df7f4cc 100644
--- a/palettes/SELF_SWITCH_on.png
+++ b/src/main/webapp/palettes/SELF_SWITCH_on.png
Binary files differ
diff --git a/palettes/SHIFT.png b/src/main/webapp/palettes/SHIFT.png
index bc35f5b..bc35f5b 100644
--- a/palettes/SHIFT.png
+++ b/src/main/webapp/palettes/SHIFT.png
Binary files differ
diff --git a/palettes/SIGNUM.png b/src/main/webapp/palettes/SIGNUM.png
index 83698e9..83698e9 100644
--- a/palettes/SIGNUM.png
+++ b/src/main/webapp/palettes/SIGNUM.png
Binary files differ
diff --git a/palettes/SINBLK_f.png b/src/main/webapp/palettes/SINBLK_f.png
index e7daa78..e7daa78 100644
--- a/palettes/SINBLK_f.png
+++ b/src/main/webapp/palettes/SINBLK_f.png
Binary files differ
diff --git a/palettes/SOM_f.png b/src/main/webapp/palettes/SOM_f.png
index ea51ecd..ea51ecd 100644
--- a/palettes/SOM_f.png
+++ b/src/main/webapp/palettes/SOM_f.png
Binary files differ
diff --git a/palettes/SQRT.png b/src/main/webapp/palettes/SQRT.png
index 4085bf0..4085bf0 100644
--- a/palettes/SQRT.png
+++ b/src/main/webapp/palettes/SQRT.png
Binary files differ
diff --git a/palettes/SRFLIPFLOP.png b/src/main/webapp/palettes/SRFLIPFLOP.png
index d84b569..d84b569 100644
--- a/palettes/SRFLIPFLOP.png
+++ b/src/main/webapp/palettes/SRFLIPFLOP.png
Binary files differ
diff --git a/palettes/STEP_FUNCTION.png b/src/main/webapp/palettes/STEP_FUNCTION.png
index 3eb2c56..3eb2c56 100644
--- a/palettes/STEP_FUNCTION.png
+++ b/src/main/webapp/palettes/STEP_FUNCTION.png
Binary files differ
diff --git a/palettes/SUBMAT.png b/src/main/webapp/palettes/SUBMAT.png
index 91abccb..91abccb 100644
--- a/palettes/SUBMAT.png
+++ b/src/main/webapp/palettes/SUBMAT.png
Binary files differ
diff --git a/palettes/SUMMATION.png b/src/main/webapp/palettes/SUMMATION.png
index a3168ab..a3168ab 100644
--- a/palettes/SUMMATION.png
+++ b/src/main/webapp/palettes/SUMMATION.png
Binary files differ
diff --git a/palettes/SUM_f.png b/src/main/webapp/palettes/SUM_f.png
index 602f369..602f369 100644
--- a/palettes/SUM_f.png
+++ b/src/main/webapp/palettes/SUM_f.png
Binary files differ
diff --git a/palettes/SUPER_f.png b/src/main/webapp/palettes/SUPER_f.png
index 13ba1a1..13ba1a1 100644
--- a/palettes/SUPER_f.png
+++ b/src/main/webapp/palettes/SUPER_f.png
Binary files differ
diff --git a/palettes/SWITCH2_m.png b/src/main/webapp/palettes/SWITCH2_m.png
index 0eb0491..0eb0491 100644
--- a/palettes/SWITCH2_m.png
+++ b/src/main/webapp/palettes/SWITCH2_m.png
Binary files differ
diff --git a/palettes/SWITCH_f.png b/src/main/webapp/palettes/SWITCH_f.png
index 9a4e7a2..9a4e7a2 100644
--- a/palettes/SWITCH_f.png
+++ b/src/main/webapp/palettes/SWITCH_f.png
Binary files differ
diff --git a/palettes/SampleCLK.png b/src/main/webapp/palettes/SampleCLK.png
index b3e9ff5..b3e9ff5 100644
--- a/palettes/SampleCLK.png
+++ b/src/main/webapp/palettes/SampleCLK.png
Binary files differ
diff --git a/palettes/Sigbuilder.png b/src/main/webapp/palettes/Sigbuilder.png
index 290f7c1..290f7c1 100644
--- a/palettes/Sigbuilder.png
+++ b/src/main/webapp/palettes/Sigbuilder.png
Binary files differ
diff --git a/palettes/SineVoltage.png b/src/main/webapp/palettes/SineVoltage.png
index 86708cb..86708cb 100644
--- a/palettes/SineVoltage.png
+++ b/src/main/webapp/palettes/SineVoltage.png
Binary files differ
diff --git a/palettes/SourceP.png b/src/main/webapp/palettes/SourceP.png
index 6bb51ed..6bb51ed 100644
--- a/palettes/SourceP.png
+++ b/src/main/webapp/palettes/SourceP.png
Binary files differ
diff --git a/palettes/Switch.png b/src/main/webapp/palettes/Switch.png
index a707afd..a707afd 100644
--- a/palettes/Switch.png
+++ b/src/main/webapp/palettes/Switch.png
Binary files differ
diff --git a/palettes/TANBLK_f.png b/src/main/webapp/palettes/TANBLK_f.png
index 0cb8642..0cb8642 100644
--- a/palettes/TANBLK_f.png
+++ b/src/main/webapp/palettes/TANBLK_f.png
Binary files differ
diff --git a/palettes/TCLSS.png b/src/main/webapp/palettes/TCLSS.png
index e2d2c15..e2d2c15 100644
--- a/palettes/TCLSS.png
+++ b/src/main/webapp/palettes/TCLSS.png
Binary files differ
diff --git a/palettes/TEXT_f.png b/src/main/webapp/palettes/TEXT_f.png
index ea88f46..ea88f46 100644
--- a/palettes/TEXT_f.png
+++ b/src/main/webapp/palettes/TEXT_f.png
Binary files differ
diff --git a/palettes/TIME_DELAY.png b/src/main/webapp/palettes/TIME_DELAY.png
index 881fa36..881fa36 100644
--- a/palettes/TIME_DELAY.png
+++ b/src/main/webapp/palettes/TIME_DELAY.png
Binary files differ
diff --git a/palettes/TIME_f.png b/src/main/webapp/palettes/TIME_f.png
index 669edfc..669edfc 100644
--- a/palettes/TIME_f.png
+++ b/src/main/webapp/palettes/TIME_f.png
Binary files differ
diff --git a/palettes/TKSCALE.png b/src/main/webapp/palettes/TKSCALE.png
index cd9a1b4..cd9a1b4 100644
--- a/palettes/TKSCALE.png
+++ b/src/main/webapp/palettes/TKSCALE.png
Binary files differ
diff --git a/palettes/TOWS_c.png b/src/main/webapp/palettes/TOWS_c.png
index 145b071..145b071 100644
--- a/palettes/TOWS_c.png
+++ b/src/main/webapp/palettes/TOWS_c.png
Binary files differ
diff --git a/palettes/TRASH_f.png b/src/main/webapp/palettes/TRASH_f.png
index 38b56f7..38b56f7 100644
--- a/palettes/TRASH_f.png
+++ b/src/main/webapp/palettes/TRASH_f.png
Binary files differ
diff --git a/palettes/TrigFun.png b/src/main/webapp/palettes/TrigFun.png
index ef022f7..ef022f7 100644
--- a/palettes/TrigFun.png
+++ b/src/main/webapp/palettes/TrigFun.png
Binary files differ
diff --git a/palettes/VARIABLE_DELAY.png b/src/main/webapp/palettes/VARIABLE_DELAY.png
index 9970551..9970551 100644
--- a/palettes/VARIABLE_DELAY.png
+++ b/src/main/webapp/palettes/VARIABLE_DELAY.png
Binary files differ
diff --git a/palettes/VVsourceAC.png b/src/main/webapp/palettes/VVsourceAC.png
index 40de6b9..40de6b9 100644
--- a/palettes/VVsourceAC.png
+++ b/src/main/webapp/palettes/VVsourceAC.png
Binary files differ
diff --git a/palettes/VanneReglante.png b/src/main/webapp/palettes/VanneReglante.png
index caf624d..caf624d 100644
--- a/palettes/VanneReglante.png
+++ b/src/main/webapp/palettes/VanneReglante.png
Binary files differ
diff --git a/palettes/VariableResistor.png b/src/main/webapp/palettes/VariableResistor.png
index 03550cd..03550cd 100644
--- a/palettes/VariableResistor.png
+++ b/src/main/webapp/palettes/VariableResistor.png
Binary files differ
diff --git a/palettes/VirtualCLK0.png b/src/main/webapp/palettes/VirtualCLK0.png
index 60f5359..60f5359 100644
--- a/palettes/VirtualCLK0.png
+++ b/src/main/webapp/palettes/VirtualCLK0.png
Binary files differ
diff --git a/palettes/VoltageSensor.png b/src/main/webapp/palettes/VoltageSensor.png
index 21a2276..21a2276 100644
--- a/palettes/VoltageSensor.png
+++ b/src/main/webapp/palettes/VoltageSensor.png
Binary files differ
diff --git a/palettes/VsourceAC.png b/src/main/webapp/palettes/VsourceAC.png
index a1394db..a1394db 100644
--- a/palettes/VsourceAC.png
+++ b/src/main/webapp/palettes/VsourceAC.png
Binary files differ
diff --git a/palettes/WFILE_f.png b/src/main/webapp/palettes/WFILE_f.png
index 82fd95d..82fd95d 100644
--- a/palettes/WFILE_f.png
+++ b/src/main/webapp/palettes/WFILE_f.png
Binary files differ
diff --git a/palettes/WRITEAU_f.png b/src/main/webapp/palettes/WRITEAU_f.png
index 54766f5..54766f5 100644
--- a/palettes/WRITEAU_f.png
+++ b/src/main/webapp/palettes/WRITEAU_f.png
Binary files differ
diff --git a/palettes/WRITEC_f.png b/src/main/webapp/palettes/WRITEC_f.png
index 6f8877a..6f8877a 100644
--- a/palettes/WRITEC_f.png
+++ b/src/main/webapp/palettes/WRITEC_f.png
Binary files differ
diff --git a/palettes/ZCROSS_f.png b/src/main/webapp/palettes/ZCROSS_f.png
index 8081825..8081825 100644
--- a/palettes/ZCROSS_f.png
+++ b/src/main/webapp/palettes/ZCROSS_f.png
Binary files differ
diff --git a/palettes/c_block.png b/src/main/webapp/palettes/c_block.png
index 36b4643..36b4643 100644
--- a/palettes/c_block.png
+++ b/src/main/webapp/palettes/c_block.png
Binary files differ
diff --git a/palettes/fortran_block.png b/src/main/webapp/palettes/fortran_block.png
index f7e31b8..f7e31b8 100644
--- a/palettes/fortran_block.png
+++ b/src/main/webapp/palettes/fortran_block.png
Binary files differ
diff --git a/palettes/freq_div.png b/src/main/webapp/palettes/freq_div.png
index b3921b4..b3921b4 100644
--- a/palettes/freq_div.png
+++ b/src/main/webapp/palettes/freq_div.png
Binary files differ
diff --git a/palettes/generic_block3.png b/src/main/webapp/palettes/generic_block3.png
index da7a276..da7a276 100644
--- a/palettes/generic_block3.png
+++ b/src/main/webapp/palettes/generic_block3.png
Binary files differ
diff --git a/palettes/palettes.xml b/src/main/webapp/palettes/palettes.xml
index b091658..b091658 100644
--- a/palettes/palettes.xml
+++ b/src/main/webapp/palettes/palettes.xml
diff --git a/palettes/scifunc_block_m.png b/src/main/webapp/palettes/scifunc_block_m.png
index bd180b3..bd180b3 100644
--- a/palettes/scifunc_block_m.png
+++ b/src/main/webapp/palettes/scifunc_block_m.png
Binary files differ
diff --git a/resources/editor.properties b/src/main/webapp/resources/editor.properties
index 23432a8..23432a8 100644
--- a/resources/editor.properties
+++ b/src/main/webapp/resources/editor.properties
diff --git a/resources/graph.properties b/src/main/webapp/resources/graph.properties
index baf61f8..baf61f8 100644
--- a/resources/graph.properties
+++ b/src/main/webapp/resources/graph.properties
diff --git a/setup.js b/src/main/webapp/setup.js
index e1527fb..e1527fb 100644
--- a/setup.js
+++ b/src/main/webapp/setup.js
diff --git a/styles/Xcos-style.xml b/src/main/webapp/styles/Xcos-style.xml
index ac64f8a..ac64f8a 100644
--- a/styles/Xcos-style.xml
+++ b/src/main/webapp/styles/Xcos-style.xml