From 0345245e860375a32c9a437c4a9d9cae807134e9 Mon Sep 17 00:00:00 2001 From: Shashank Date: Mon, 29 May 2017 12:40:26 +0530 Subject: CMSCOPE changed --- modules/xcos/demos/Bouncing_ball.zcos | Bin 0 -> 14224 bytes modules/xcos/demos/CodeGen/controller.zcos | Bin 0 -> 7342 bytes modules/xcos/demos/CodeGen/fibo.zcos | Bin 0 -> 7164 bytes modules/xcos/demos/Command.zcos | Bin 0 -> 4991 bytes modules/xcos/demos/Command_bode.zcos | Bin 0 -> 4654 bytes modules/xcos/demos/Cont.Disc-Observer.zcos | Bin 0 -> 11215 bytes modules/xcos/demos/Controller.zcos | Bin 0 -> 9648 bytes modules/xcos/demos/Discrete-KalmanFilter.zcos | Bin 0 -> 20910 bytes modules/xcos/demos/Electrical/AND_Gate.zcos | Bin 0 -> 13182 bytes modules/xcos/demos/Electrical/Boost_Converter.zcos | Bin 0 -> 6983 bytes .../xcos/demos/Electrical/Bridge_Rectifier.zcos | Bin 0 -> 7396 bytes .../xcos/demos/Electrical/Colpitts_Oscillator.zcos | Bin 0 -> 7567 bytes .../demos/Electrical/DC_DC_Buck_Converter.zcos | Bin 0 -> 11045 bytes .../demos/Electrical/Difference_amplifier.zcos | Bin 0 -> 9307 bytes modules/xcos/demos/Electrical/NOR_Gate.zcos | Bin 0 -> 11611 bytes modules/xcos/demos/Electrical/Opamp_Amplifier.zcos | Bin 0 -> 6233 bytes .../Electrical/Switched_capacitor_integrator.zcos | Bin 0 -> 8528 bytes modules/xcos/demos/Electrical/Transformer.zcos | Bin 0 -> 8442 bytes modules/xcos/demos/Electrical/boost_conv.dem.sce | 8 +++ .../xcos/demos/Electrical/bridge_rectifier.dem.sce | 8 +++ modules/xcos/demos/Electrical/buck_conv.dem.sce | 7 ++ modules/xcos/demos/Electrical/colpitts_osc.dem.sce | 8 +++ .../xcos/demos/Electrical/differential_amp.dem.sce | 7 ++ modules/xcos/demos/Electrical/logic_and.dem.sce | 8 +++ modules/xcos/demos/Electrical/logic_nor.dem.sce | 8 +++ modules/xcos/demos/Electrical/op_amplier.dem.sce | 8 +++ modules/xcos/demos/Electrical/rlc_circuit.dem.sce | 10 +++ .../demos/Electrical/switched_cap_filter.dem.sce | 8 +++ modules/xcos/demos/Electrical/transformer.dem.sce | 8 +++ modules/xcos/demos/Event/event_and.dem.sce | 6 ++ modules/xcos/demos/Event/event_and.zcos | Bin 0 -> 4757 bytes .../xcos/demos/Event/event_if_then_else.dem.sce | 6 ++ modules/xcos/demos/Event/if_then_else.zcos | Bin 0 -> 4437 bytes modules/xcos/demos/Fibonacci.zcos | Bin 0 -> 5760 bytes modules/xcos/demos/IF_block.zcos | Bin 0 -> 8192 bytes modules/xcos/demos/Ifsub.zcos | Bin 0 -> 7550 bytes modules/xcos/demos/Inverted_pendulum.zcos | Bin 0 -> 12983 bytes modules/xcos/demos/Kalman.zcos | Bin 0 -> 15848 bytes modules/xcos/demos/Kalman_1.zcos | Bin 0 -> 20231 bytes modules/xcos/demos/Lorenz.zcos | Bin 0 -> 8362 bytes .../xcos/demos/ModelicaBlocks/Ball_Platform.zcos | Bin 0 -> 4241 bytes .../ModelicaBlocks/BouncingBall_Modelica.zcos | Bin 0 -> 4222 bytes .../xcos/demos/ModelicaBlocks/Chaos_Modelica.zcos | Bin 0 -> 4088 bytes modules/xcos/demos/ModelicaBlocks/Hydraulics.zcos | Bin 0 -> 6943 bytes .../xcos/demos/ModelicaBlocks/RLC_Modelica.zcos | Bin 0 -> 6167 bytes .../demos/ModelicaBlocks/ball_platform.dem.sce | 8 +++ .../ModelicaBlocks/modelica_bouncing_ball.dem.sce | 8 +++ .../demos/ModelicaBlocks/modelica_chaos.dem.sce | 7 ++ .../ModelicaBlocks/modelica_hydraulics.dem.sce | 7 ++ .../ModelicaBlocks/modelica_rlc_circuit.dem.sce | 8 +++ modules/xcos/demos/OldGainTest.zcos | Bin 0 -> 11053 bytes modules/xcos/demos/PENDULUM_ANIM.sci | 73 +++++++++++++++++++++ modules/xcos/demos/Plant_DiscreteController.zcos | Bin 0 -> 8639 bytes modules/xcos/demos/Scilab_Block.zcos | Bin 0 -> 4329 bytes modules/xcos/demos/Signal_Builder.zcos | Bin 0 -> 6461 bytes modules/xcos/demos/Simple_Demo.zcos | Bin 0 -> 5699 bytes modules/xcos/demos/Simple_Thermostat.zcos | Bin 0 -> 6643 bytes modules/xcos/demos/System-Observer.zcos | Bin 0 -> 9503 bytes modules/xcos/demos/Table_Lookup.zcos | Bin 0 -> 4669 bytes modules/xcos/demos/Temperature_Controller.zcos | Bin 0 -> 8452 bytes modules/xcos/demos/Thermique_bloc.zcos | Bin 0 -> 15775 bytes modules/xcos/demos/Threshold_ZeroCrossing.zcos | Bin 0 -> 4503 bytes modules/xcos/demos/anim_pen.sci | 46 +++++++++++++ modules/xcos/demos/basic_controller.dem.sce | 8 +++ modules/xcos/demos/batch_simulation.zcos | Bin 0 -> 6622 bytes modules/xcos/demos/bounce.dem.sce | 8 +++ modules/xcos/demos/bounce.zcos | Bin 0 -> 4228 bytes modules/xcos/demos/bouncing_ball.dem.sce | 8 +++ modules/xcos/demos/cont_sys_disc_cont.dem.sce | 8 +++ modules/xcos/demos/control_systems.dem.gateway.sce | 18 +++++ modules/xcos/demos/data_type.dem.sce | 8 +++ modules/xcos/demos/demo_Datatype.zcos | Bin 0 -> 4967 bytes modules/xcos/demos/demo_watertank.dem.sce | 8 +++ modules/xcos/demos/demo_watertank.zcos | Bin 0 -> 11390 bytes modules/xcos/demos/discrete_controller.dem.sce | 8 +++ modules/xcos/demos/discrete_kalman.dem.sce | 8 +++ .../xcos/demos/electrical_systems.dem.gateway.sce | 20 ++++++ modules/xcos/demos/event.dem.gateway.sce | 11 ++++ modules/xcos/demos/fibonacci.dem.sce | 7 ++ modules/xcos/demos/goto_demo.zcos | Bin 0 -> 13223 bytes modules/xcos/demos/goto_from.dem.sce | 8 +++ modules/xcos/demos/if_xcos_block.dem.sce | 8 +++ modules/xcos/demos/inv_pend_anim.dem.sce | 16 +++++ modules/xcos/demos/inverted_pend.dem.sce | 8 +++ modules/xcos/demos/inverted_pendulum.dem.sce | 10 +++ modules/xcos/demos/kalman.dem.sce | 8 +++ modules/xcos/demos/lorenz.dem.sce | 8 +++ .../xcos/demos/mechanical_systems.dem.gateway.sce | 9 +++ modules/xcos/demos/modelica_demos.dem.gateway.sce | 20 ++++++ modules/xcos/demos/old_demos.dem.gateway.sce | 8 +++ modules/xcos/demos/old_gain_block.dem.sce | 8 +++ modules/xcos/demos/pendulum_anim5.zcos | Bin 0 -> 8095 bytes modules/xcos/demos/scicos.dem.gateway.sce | 15 +++++ modules/xcos/demos/scilab_block.dem.sce | 7 ++ modules/xcos/demos/setw.sci | 9 +++ modules/xcos/demos/signal_builder.dem.sce | 8 +++ modules/xcos/demos/simple_demo.dem.sce | 8 +++ modules/xcos/demos/simple_thermostat.dem.sce | 8 +++ modules/xcos/demos/standard.dem.gateway.sce | 20 ++++++ modules/xcos/demos/susp.dem.sce | 8 +++ modules/xcos/demos/susp.zcos | Bin 0 -> 22875 bytes modules/xcos/demos/table_lookup.dem.sce | 7 ++ modules/xcos/demos/temp_controller.dem.sce | 8 +++ modules/xcos/demos/xcos.dem.gateway.sce | 31 +++++++++ modules/xcos/demos/xcos_demos.sce | 45 +++++++++++++ modules/xcos/demos/zero_crossing.dem.sce | 8 +++ 106 files changed, 670 insertions(+) create mode 100755 modules/xcos/demos/Bouncing_ball.zcos create mode 100755 modules/xcos/demos/CodeGen/controller.zcos create mode 100755 modules/xcos/demos/CodeGen/fibo.zcos create mode 100755 modules/xcos/demos/Command.zcos create mode 100755 modules/xcos/demos/Command_bode.zcos create mode 100755 modules/xcos/demos/Cont.Disc-Observer.zcos create mode 100755 modules/xcos/demos/Controller.zcos create mode 100755 modules/xcos/demos/Discrete-KalmanFilter.zcos create mode 100755 modules/xcos/demos/Electrical/AND_Gate.zcos create mode 100755 modules/xcos/demos/Electrical/Boost_Converter.zcos create mode 100755 modules/xcos/demos/Electrical/Bridge_Rectifier.zcos create mode 100755 modules/xcos/demos/Electrical/Colpitts_Oscillator.zcos create mode 100755 modules/xcos/demos/Electrical/DC_DC_Buck_Converter.zcos create mode 100755 modules/xcos/demos/Electrical/Difference_amplifier.zcos create mode 100755 modules/xcos/demos/Electrical/NOR_Gate.zcos create mode 100755 modules/xcos/demos/Electrical/Opamp_Amplifier.zcos create mode 100755 modules/xcos/demos/Electrical/Switched_capacitor_integrator.zcos create mode 100755 modules/xcos/demos/Electrical/Transformer.zcos create mode 100755 modules/xcos/demos/Electrical/boost_conv.dem.sce create mode 100755 modules/xcos/demos/Electrical/bridge_rectifier.dem.sce create mode 100755 modules/xcos/demos/Electrical/buck_conv.dem.sce create mode 100755 modules/xcos/demos/Electrical/colpitts_osc.dem.sce create mode 100755 modules/xcos/demos/Electrical/differential_amp.dem.sce create mode 100755 modules/xcos/demos/Electrical/logic_and.dem.sce create mode 100755 modules/xcos/demos/Electrical/logic_nor.dem.sce create mode 100755 modules/xcos/demos/Electrical/op_amplier.dem.sce create mode 100755 modules/xcos/demos/Electrical/rlc_circuit.dem.sce create mode 100755 modules/xcos/demos/Electrical/switched_cap_filter.dem.sce create mode 100755 modules/xcos/demos/Electrical/transformer.dem.sce create mode 100755 modules/xcos/demos/Event/event_and.dem.sce create mode 100755 modules/xcos/demos/Event/event_and.zcos create mode 100755 modules/xcos/demos/Event/event_if_then_else.dem.sce create mode 100755 modules/xcos/demos/Event/if_then_else.zcos create mode 100755 modules/xcos/demos/Fibonacci.zcos create mode 100755 modules/xcos/demos/IF_block.zcos create mode 100755 modules/xcos/demos/Ifsub.zcos create mode 100755 modules/xcos/demos/Inverted_pendulum.zcos create mode 100755 modules/xcos/demos/Kalman.zcos create mode 100755 modules/xcos/demos/Kalman_1.zcos create mode 100755 modules/xcos/demos/Lorenz.zcos create mode 100755 modules/xcos/demos/ModelicaBlocks/Ball_Platform.zcos create mode 100755 modules/xcos/demos/ModelicaBlocks/BouncingBall_Modelica.zcos create mode 100755 modules/xcos/demos/ModelicaBlocks/Chaos_Modelica.zcos create mode 100755 modules/xcos/demos/ModelicaBlocks/Hydraulics.zcos create mode 100755 modules/xcos/demos/ModelicaBlocks/RLC_Modelica.zcos create mode 100755 modules/xcos/demos/ModelicaBlocks/ball_platform.dem.sce create mode 100755 modules/xcos/demos/ModelicaBlocks/modelica_bouncing_ball.dem.sce create mode 100755 modules/xcos/demos/ModelicaBlocks/modelica_chaos.dem.sce create mode 100755 modules/xcos/demos/ModelicaBlocks/modelica_hydraulics.dem.sce create mode 100755 modules/xcos/demos/ModelicaBlocks/modelica_rlc_circuit.dem.sce create mode 100755 modules/xcos/demos/OldGainTest.zcos create mode 100755 modules/xcos/demos/PENDULUM_ANIM.sci create mode 100755 modules/xcos/demos/Plant_DiscreteController.zcos create mode 100755 modules/xcos/demos/Scilab_Block.zcos create mode 100755 modules/xcos/demos/Signal_Builder.zcos create mode 100755 modules/xcos/demos/Simple_Demo.zcos create mode 100755 modules/xcos/demos/Simple_Thermostat.zcos create mode 100755 modules/xcos/demos/System-Observer.zcos create mode 100755 modules/xcos/demos/Table_Lookup.zcos create mode 100755 modules/xcos/demos/Temperature_Controller.zcos create mode 100755 modules/xcos/demos/Thermique_bloc.zcos create mode 100755 modules/xcos/demos/Threshold_ZeroCrossing.zcos create mode 100755 modules/xcos/demos/anim_pen.sci create mode 100755 modules/xcos/demos/basic_controller.dem.sce create mode 100755 modules/xcos/demos/batch_simulation.zcos create mode 100755 modules/xcos/demos/bounce.dem.sce create mode 100755 modules/xcos/demos/bounce.zcos create mode 100755 modules/xcos/demos/bouncing_ball.dem.sce create mode 100755 modules/xcos/demos/cont_sys_disc_cont.dem.sce create mode 100755 modules/xcos/demos/control_systems.dem.gateway.sce create mode 100755 modules/xcos/demos/data_type.dem.sce create mode 100755 modules/xcos/demos/demo_Datatype.zcos create mode 100755 modules/xcos/demos/demo_watertank.dem.sce create mode 100755 modules/xcos/demos/demo_watertank.zcos create mode 100755 modules/xcos/demos/discrete_controller.dem.sce create mode 100755 modules/xcos/demos/discrete_kalman.dem.sce create mode 100755 modules/xcos/demos/electrical_systems.dem.gateway.sce create mode 100755 modules/xcos/demos/event.dem.gateway.sce create mode 100755 modules/xcos/demos/fibonacci.dem.sce create mode 100755 modules/xcos/demos/goto_demo.zcos create mode 100755 modules/xcos/demos/goto_from.dem.sce create mode 100755 modules/xcos/demos/if_xcos_block.dem.sce create mode 100755 modules/xcos/demos/inv_pend_anim.dem.sce create mode 100755 modules/xcos/demos/inverted_pend.dem.sce create mode 100755 modules/xcos/demos/inverted_pendulum.dem.sce create mode 100755 modules/xcos/demos/kalman.dem.sce create mode 100755 modules/xcos/demos/lorenz.dem.sce create mode 100755 modules/xcos/demos/mechanical_systems.dem.gateway.sce create mode 100755 modules/xcos/demos/modelica_demos.dem.gateway.sce create mode 100755 modules/xcos/demos/old_demos.dem.gateway.sce create mode 100755 modules/xcos/demos/old_gain_block.dem.sce create mode 100755 modules/xcos/demos/pendulum_anim5.zcos create mode 100755 modules/xcos/demos/scicos.dem.gateway.sce create mode 100755 modules/xcos/demos/scilab_block.dem.sce create mode 100755 modules/xcos/demos/setw.sci create mode 100755 modules/xcos/demos/signal_builder.dem.sce create mode 100755 modules/xcos/demos/simple_demo.dem.sce create mode 100755 modules/xcos/demos/simple_thermostat.dem.sce create mode 100755 modules/xcos/demos/standard.dem.gateway.sce create mode 100755 modules/xcos/demos/susp.dem.sce create mode 100755 modules/xcos/demos/susp.zcos create mode 100755 modules/xcos/demos/table_lookup.dem.sce create mode 100755 modules/xcos/demos/temp_controller.dem.sce create mode 100755 modules/xcos/demos/xcos.dem.gateway.sce create mode 100755 modules/xcos/demos/xcos_demos.sce create mode 100755 modules/xcos/demos/zero_crossing.dem.sce (limited to 'modules/xcos/demos') diff --git a/modules/xcos/demos/Bouncing_ball.zcos b/modules/xcos/demos/Bouncing_ball.zcos new file mode 100755 index 000000000..afd6934cb Binary files /dev/null and b/modules/xcos/demos/Bouncing_ball.zcos differ diff --git a/modules/xcos/demos/CodeGen/controller.zcos b/modules/xcos/demos/CodeGen/controller.zcos new file mode 100755 index 000000000..e8ecf04a3 Binary files /dev/null and b/modules/xcos/demos/CodeGen/controller.zcos differ diff --git a/modules/xcos/demos/CodeGen/fibo.zcos b/modules/xcos/demos/CodeGen/fibo.zcos new file mode 100755 index 000000000..7960529aa Binary files /dev/null and b/modules/xcos/demos/CodeGen/fibo.zcos differ diff --git a/modules/xcos/demos/Command.zcos b/modules/xcos/demos/Command.zcos new file mode 100755 index 000000000..f508d2af8 Binary files /dev/null and b/modules/xcos/demos/Command.zcos differ diff --git a/modules/xcos/demos/Command_bode.zcos b/modules/xcos/demos/Command_bode.zcos new file mode 100755 index 000000000..4363d6a85 Binary files /dev/null and b/modules/xcos/demos/Command_bode.zcos differ diff --git a/modules/xcos/demos/Cont.Disc-Observer.zcos b/modules/xcos/demos/Cont.Disc-Observer.zcos new file mode 100755 index 000000000..01e2ceba2 Binary files /dev/null and b/modules/xcos/demos/Cont.Disc-Observer.zcos differ diff --git a/modules/xcos/demos/Controller.zcos b/modules/xcos/demos/Controller.zcos new file mode 100755 index 000000000..83bbc85e6 Binary files /dev/null and b/modules/xcos/demos/Controller.zcos differ diff --git a/modules/xcos/demos/Discrete-KalmanFilter.zcos b/modules/xcos/demos/Discrete-KalmanFilter.zcos new file mode 100755 index 000000000..75d37211c Binary files /dev/null and b/modules/xcos/demos/Discrete-KalmanFilter.zcos differ diff --git a/modules/xcos/demos/Electrical/AND_Gate.zcos b/modules/xcos/demos/Electrical/AND_Gate.zcos new file mode 100755 index 000000000..e308b7a0e Binary files /dev/null and b/modules/xcos/demos/Electrical/AND_Gate.zcos differ diff --git a/modules/xcos/demos/Electrical/Boost_Converter.zcos b/modules/xcos/demos/Electrical/Boost_Converter.zcos new file mode 100755 index 000000000..eb3e923dd Binary files /dev/null and b/modules/xcos/demos/Electrical/Boost_Converter.zcos differ diff --git a/modules/xcos/demos/Electrical/Bridge_Rectifier.zcos b/modules/xcos/demos/Electrical/Bridge_Rectifier.zcos new file mode 100755 index 000000000..f1ef54f3b Binary files /dev/null and b/modules/xcos/demos/Electrical/Bridge_Rectifier.zcos differ diff --git a/modules/xcos/demos/Electrical/Colpitts_Oscillator.zcos b/modules/xcos/demos/Electrical/Colpitts_Oscillator.zcos new file mode 100755 index 000000000..6616f9639 Binary files /dev/null and b/modules/xcos/demos/Electrical/Colpitts_Oscillator.zcos differ diff --git a/modules/xcos/demos/Electrical/DC_DC_Buck_Converter.zcos b/modules/xcos/demos/Electrical/DC_DC_Buck_Converter.zcos new file mode 100755 index 000000000..fae46a91f Binary files /dev/null and b/modules/xcos/demos/Electrical/DC_DC_Buck_Converter.zcos differ diff --git a/modules/xcos/demos/Electrical/Difference_amplifier.zcos b/modules/xcos/demos/Electrical/Difference_amplifier.zcos new file mode 100755 index 000000000..3b4543dbd Binary files /dev/null and b/modules/xcos/demos/Electrical/Difference_amplifier.zcos differ diff --git a/modules/xcos/demos/Electrical/NOR_Gate.zcos b/modules/xcos/demos/Electrical/NOR_Gate.zcos new file mode 100755 index 000000000..dffce81d3 Binary files /dev/null and b/modules/xcos/demos/Electrical/NOR_Gate.zcos differ diff --git a/modules/xcos/demos/Electrical/Opamp_Amplifier.zcos b/modules/xcos/demos/Electrical/Opamp_Amplifier.zcos new file mode 100755 index 000000000..5ee57b5ff Binary files /dev/null and b/modules/xcos/demos/Electrical/Opamp_Amplifier.zcos differ diff --git a/modules/xcos/demos/Electrical/Switched_capacitor_integrator.zcos b/modules/xcos/demos/Electrical/Switched_capacitor_integrator.zcos new file mode 100755 index 000000000..3c6565d11 Binary files /dev/null and b/modules/xcos/demos/Electrical/Switched_capacitor_integrator.zcos differ diff --git a/modules/xcos/demos/Electrical/Transformer.zcos b/modules/xcos/demos/Electrical/Transformer.zcos new file mode 100755 index 000000000..b2ba138b5 Binary files /dev/null and b/modules/xcos/demos/Electrical/Transformer.zcos differ diff --git a/modules/xcos/demos/Electrical/boost_conv.dem.sce b/modules/xcos/demos/Electrical/boost_conv.dem.sce new file mode 100755 index 000000000..a873d1221 --- /dev/null +++ b/modules/xcos/demos/Electrical/boost_conv.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Electrical/Boost_Converter.zcos"); + diff --git a/modules/xcos/demos/Electrical/bridge_rectifier.dem.sce b/modules/xcos/demos/Electrical/bridge_rectifier.dem.sce new file mode 100755 index 000000000..17d372634 --- /dev/null +++ b/modules/xcos/demos/Electrical/bridge_rectifier.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Electrical/Bridge_Rectifier.zcos"); + diff --git a/modules/xcos/demos/Electrical/buck_conv.dem.sce b/modules/xcos/demos/Electrical/buck_conv.dem.sce new file mode 100755 index 000000000..022afc07f --- /dev/null +++ b/modules/xcos/demos/Electrical/buck_conv.dem.sce @@ -0,0 +1,7 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Electrical/DC_DC_Buck_Converter.zcos"); diff --git a/modules/xcos/demos/Electrical/colpitts_osc.dem.sce b/modules/xcos/demos/Electrical/colpitts_osc.dem.sce new file mode 100755 index 000000000..dcff2b43b --- /dev/null +++ b/modules/xcos/demos/Electrical/colpitts_osc.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Electrical/Colpitts_Oscillator.zcos"); + diff --git a/modules/xcos/demos/Electrical/differential_amp.dem.sce b/modules/xcos/demos/Electrical/differential_amp.dem.sce new file mode 100755 index 000000000..4fcd7f093 --- /dev/null +++ b/modules/xcos/demos/Electrical/differential_amp.dem.sce @@ -0,0 +1,7 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Electrical/Difference_amplifier.zcos"); diff --git a/modules/xcos/demos/Electrical/logic_and.dem.sce b/modules/xcos/demos/Electrical/logic_and.dem.sce new file mode 100755 index 000000000..4ab0c0121 --- /dev/null +++ b/modules/xcos/demos/Electrical/logic_and.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Electrical/AND_Gate.zcos"); + diff --git a/modules/xcos/demos/Electrical/logic_nor.dem.sce b/modules/xcos/demos/Electrical/logic_nor.dem.sce new file mode 100755 index 000000000..82d77f984 --- /dev/null +++ b/modules/xcos/demos/Electrical/logic_nor.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Electrical/NOR_Gate.zcos"); + diff --git a/modules/xcos/demos/Electrical/op_amplier.dem.sce b/modules/xcos/demos/Electrical/op_amplier.dem.sce new file mode 100755 index 000000000..1856cb96d --- /dev/null +++ b/modules/xcos/demos/Electrical/op_amplier.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Electrical/Opamp_Amplifier.zcos"); + diff --git a/modules/xcos/demos/Electrical/rlc_circuit.dem.sce b/modules/xcos/demos/Electrical/rlc_circuit.dem.sce new file mode 100755 index 000000000..a6165e3db --- /dev/null +++ b/modules/xcos/demos/Electrical/rlc_circuit.dem.sce @@ -0,0 +1,10 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + + +// electrical blocks are simulated with Modelica +xcos("SCI/modules/xcos/demos/ModelicaBlocks/RLC_Modelica.zcos"); +clear thispath; diff --git a/modules/xcos/demos/Electrical/switched_cap_filter.dem.sce b/modules/xcos/demos/Electrical/switched_cap_filter.dem.sce new file mode 100755 index 000000000..022e35723 --- /dev/null +++ b/modules/xcos/demos/Electrical/switched_cap_filter.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Electrical/Switched_capacitor_integrator.zcos"); + diff --git a/modules/xcos/demos/Electrical/transformer.dem.sce b/modules/xcos/demos/Electrical/transformer.dem.sce new file mode 100755 index 000000000..608c6c459 --- /dev/null +++ b/modules/xcos/demos/Electrical/transformer.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Electrical/Transformer.zcos"); + diff --git a/modules/xcos/demos/Event/event_and.dem.sce b/modules/xcos/demos/Event/event_and.dem.sce new file mode 100755 index 000000000..21711f650 --- /dev/null +++ b/modules/xcos/demos/Event/event_and.dem.sce @@ -0,0 +1,6 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011-2011 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Event/event_and.zcos"); diff --git a/modules/xcos/demos/Event/event_and.zcos b/modules/xcos/demos/Event/event_and.zcos new file mode 100755 index 000000000..77e7cfb76 Binary files /dev/null and b/modules/xcos/demos/Event/event_and.zcos differ diff --git a/modules/xcos/demos/Event/event_if_then_else.dem.sce b/modules/xcos/demos/Event/event_if_then_else.dem.sce new file mode 100755 index 000000000..9bd1b7cc7 --- /dev/null +++ b/modules/xcos/demos/Event/event_if_then_else.dem.sce @@ -0,0 +1,6 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011-2011 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Event/if_then_else.zcos"); diff --git a/modules/xcos/demos/Event/if_then_else.zcos b/modules/xcos/demos/Event/if_then_else.zcos new file mode 100755 index 000000000..a0fd25623 Binary files /dev/null and b/modules/xcos/demos/Event/if_then_else.zcos differ diff --git a/modules/xcos/demos/Fibonacci.zcos b/modules/xcos/demos/Fibonacci.zcos new file mode 100755 index 000000000..0c9ed4fe2 Binary files /dev/null and b/modules/xcos/demos/Fibonacci.zcos differ diff --git a/modules/xcos/demos/IF_block.zcos b/modules/xcos/demos/IF_block.zcos new file mode 100755 index 000000000..e645f1eb8 Binary files /dev/null and b/modules/xcos/demos/IF_block.zcos differ diff --git a/modules/xcos/demos/Ifsub.zcos b/modules/xcos/demos/Ifsub.zcos new file mode 100755 index 000000000..006db336e Binary files /dev/null and b/modules/xcos/demos/Ifsub.zcos differ diff --git a/modules/xcos/demos/Inverted_pendulum.zcos b/modules/xcos/demos/Inverted_pendulum.zcos new file mode 100755 index 000000000..d47ed331b Binary files /dev/null and b/modules/xcos/demos/Inverted_pendulum.zcos differ diff --git a/modules/xcos/demos/Kalman.zcos b/modules/xcos/demos/Kalman.zcos new file mode 100755 index 000000000..b0cc0786f Binary files /dev/null and b/modules/xcos/demos/Kalman.zcos differ diff --git a/modules/xcos/demos/Kalman_1.zcos b/modules/xcos/demos/Kalman_1.zcos new file mode 100755 index 000000000..df66e1ed3 Binary files /dev/null and b/modules/xcos/demos/Kalman_1.zcos differ diff --git a/modules/xcos/demos/Lorenz.zcos b/modules/xcos/demos/Lorenz.zcos new file mode 100755 index 000000000..5b7e01fb4 Binary files /dev/null and b/modules/xcos/demos/Lorenz.zcos differ diff --git a/modules/xcos/demos/ModelicaBlocks/Ball_Platform.zcos b/modules/xcos/demos/ModelicaBlocks/Ball_Platform.zcos new file mode 100755 index 000000000..15faf5349 Binary files /dev/null and b/modules/xcos/demos/ModelicaBlocks/Ball_Platform.zcos differ diff --git a/modules/xcos/demos/ModelicaBlocks/BouncingBall_Modelica.zcos b/modules/xcos/demos/ModelicaBlocks/BouncingBall_Modelica.zcos new file mode 100755 index 000000000..f5f6f7311 Binary files /dev/null and b/modules/xcos/demos/ModelicaBlocks/BouncingBall_Modelica.zcos differ diff --git a/modules/xcos/demos/ModelicaBlocks/Chaos_Modelica.zcos b/modules/xcos/demos/ModelicaBlocks/Chaos_Modelica.zcos new file mode 100755 index 000000000..0cb31dc7b Binary files /dev/null and b/modules/xcos/demos/ModelicaBlocks/Chaos_Modelica.zcos differ diff --git a/modules/xcos/demos/ModelicaBlocks/Hydraulics.zcos b/modules/xcos/demos/ModelicaBlocks/Hydraulics.zcos new file mode 100755 index 000000000..ed7305762 Binary files /dev/null and b/modules/xcos/demos/ModelicaBlocks/Hydraulics.zcos differ diff --git a/modules/xcos/demos/ModelicaBlocks/RLC_Modelica.zcos b/modules/xcos/demos/ModelicaBlocks/RLC_Modelica.zcos new file mode 100755 index 000000000..930deede1 Binary files /dev/null and b/modules/xcos/demos/ModelicaBlocks/RLC_Modelica.zcos differ diff --git a/modules/xcos/demos/ModelicaBlocks/ball_platform.dem.sce b/modules/xcos/demos/ModelicaBlocks/ball_platform.dem.sce new file mode 100755 index 000000000..e02968508 --- /dev/null +++ b/modules/xcos/demos/ModelicaBlocks/ball_platform.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/ModelicaBlocks/Ball_Platform.zcos"); + diff --git a/modules/xcos/demos/ModelicaBlocks/modelica_bouncing_ball.dem.sce b/modules/xcos/demos/ModelicaBlocks/modelica_bouncing_ball.dem.sce new file mode 100755 index 000000000..601efdc29 --- /dev/null +++ b/modules/xcos/demos/ModelicaBlocks/modelica_bouncing_ball.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/ModelicaBlocks/BouncingBall_Modelica.zcos"); + diff --git a/modules/xcos/demos/ModelicaBlocks/modelica_chaos.dem.sce b/modules/xcos/demos/ModelicaBlocks/modelica_chaos.dem.sce new file mode 100755 index 000000000..634641f00 --- /dev/null +++ b/modules/xcos/demos/ModelicaBlocks/modelica_chaos.dem.sce @@ -0,0 +1,7 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/ModelicaBlocks/Chaos_Modelica.zcos"); diff --git a/modules/xcos/demos/ModelicaBlocks/modelica_hydraulics.dem.sce b/modules/xcos/demos/ModelicaBlocks/modelica_hydraulics.dem.sce new file mode 100755 index 000000000..da5ded8a5 --- /dev/null +++ b/modules/xcos/demos/ModelicaBlocks/modelica_hydraulics.dem.sce @@ -0,0 +1,7 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/ModelicaBlocks/Hydraulics.zcos"); diff --git a/modules/xcos/demos/ModelicaBlocks/modelica_rlc_circuit.dem.sce b/modules/xcos/demos/ModelicaBlocks/modelica_rlc_circuit.dem.sce new file mode 100755 index 000000000..8c123b86a --- /dev/null +++ b/modules/xcos/demos/ModelicaBlocks/modelica_rlc_circuit.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/ModelicaBlocks/RLC_Modelica.zcos"); + diff --git a/modules/xcos/demos/OldGainTest.zcos b/modules/xcos/demos/OldGainTest.zcos new file mode 100755 index 000000000..de8761bc3 Binary files /dev/null and b/modules/xcos/demos/OldGainTest.zcos differ diff --git a/modules/xcos/demos/PENDULUM_ANIM.sci b/modules/xcos/demos/PENDULUM_ANIM.sci new file mode 100755 index 000000000..2ddfffe55 --- /dev/null +++ b/modules/xcos/demos/PENDULUM_ANIM.sci @@ -0,0 +1,73 @@ +///withoutPrompt +function [x,y,typ]=PENDULUM_ANIM(job,arg1,arg2) + // Animation of the cart-pendulum problem + x=[];y=[];typ=[] + select job + case "plot" then + standard_draw(arg1) + case "getinputs" then + [x,y,typ]=standard_inputs(o) + case "getoutputs" then + x=[];y=[];typ=[]; + case "getorigin" then + [x,y]=standard_origin(arg1) + case "set" then + x=arg1; + graphics=arg1.graphics;exprs=graphics.exprs + model=arg1.model;dstate=model.dstate + while %t do + [ok,plen,csiz,phi,xmin,xmax,ymin,ymax,exprs]=scicos_getvalue(.. + "Set Scope parameters",.. + ["pendulum length";"cart size (square side)";"slope"; + "Xmin";"Xmax"; "Ymin"; "Ymax"; ],.. + list("vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1),exprs) + if ~ok then break,end + mess=[] + if plen<=0|csiz<=0 then + mess=[mess;"Pendulum length and cart size must be positive.";" "] + ok=%f + end + if ymin>=ymax then + mess=[mess;"Ymax must be greater than Ymin";" "] + ok=%f + end + if xmin>=xmax then + mess=[mess;"Xmax must be greater than Xmin";" "] + ok=%f + end + if ~ok then + message(mess) + else + rpar=[plen;csiz;phi;xmin;xmax;ymin;ymax] + model.rpar=rpar; + graphics.exprs=exprs; + x.graphics=graphics;x.model=model + break + end + end + case "define" then + plen=2; csiz=2; phi=0; + xmin=-5;xmax=5;ymin=-5;ymax=5 + + model=scicos_model() + model.sim=list("anim_pen",5) + model.in=[1;1] + model.evtin=1 + model.dstate=0 + model.rpar=[plen;csiz;phi;xmin;xmax;ymin;ymax] + model.blocktype="d" + model.dep_ut=[%f %f] + + exprs=string(model.rpar) + gr_i=["thick=xget(''thickness'');xset(''thickness'',2);"; + "xx=orig(1)+sz(1)*[.4 .6 .6 .4 .4]" + "yy=orig(2)+sz(2)*[.2 .2 .4 .4 .2]" + "xpoly(xx,yy,''lines'')" + "xx=orig(1)+sz(1)*[.5 .6]" + "yy=orig(2)+sz(2)*[.4 .8]" + "xpoly(xx,yy)" + "xset(''thickness'',thick);"] + x=standard_define([3 3],model,exprs,gr_i) + end +endfunction + diff --git a/modules/xcos/demos/Plant_DiscreteController.zcos b/modules/xcos/demos/Plant_DiscreteController.zcos new file mode 100755 index 000000000..e626097f5 Binary files /dev/null and b/modules/xcos/demos/Plant_DiscreteController.zcos differ diff --git a/modules/xcos/demos/Scilab_Block.zcos b/modules/xcos/demos/Scilab_Block.zcos new file mode 100755 index 000000000..cbde748a0 Binary files /dev/null and b/modules/xcos/demos/Scilab_Block.zcos differ diff --git a/modules/xcos/demos/Signal_Builder.zcos b/modules/xcos/demos/Signal_Builder.zcos new file mode 100755 index 000000000..64b0f114d Binary files /dev/null and b/modules/xcos/demos/Signal_Builder.zcos differ diff --git a/modules/xcos/demos/Simple_Demo.zcos b/modules/xcos/demos/Simple_Demo.zcos new file mode 100755 index 000000000..754b6e7eb Binary files /dev/null and b/modules/xcos/demos/Simple_Demo.zcos differ diff --git a/modules/xcos/demos/Simple_Thermostat.zcos b/modules/xcos/demos/Simple_Thermostat.zcos new file mode 100755 index 000000000..09bae2f4b Binary files /dev/null and b/modules/xcos/demos/Simple_Thermostat.zcos differ diff --git a/modules/xcos/demos/System-Observer.zcos b/modules/xcos/demos/System-Observer.zcos new file mode 100755 index 000000000..a82dd2789 Binary files /dev/null and b/modules/xcos/demos/System-Observer.zcos differ diff --git a/modules/xcos/demos/Table_Lookup.zcos b/modules/xcos/demos/Table_Lookup.zcos new file mode 100755 index 000000000..1830ab079 Binary files /dev/null and b/modules/xcos/demos/Table_Lookup.zcos differ diff --git a/modules/xcos/demos/Temperature_Controller.zcos b/modules/xcos/demos/Temperature_Controller.zcos new file mode 100755 index 000000000..c9cb02f4e Binary files /dev/null and b/modules/xcos/demos/Temperature_Controller.zcos differ diff --git a/modules/xcos/demos/Thermique_bloc.zcos b/modules/xcos/demos/Thermique_bloc.zcos new file mode 100755 index 000000000..416c1308f Binary files /dev/null and b/modules/xcos/demos/Thermique_bloc.zcos differ diff --git a/modules/xcos/demos/Threshold_ZeroCrossing.zcos b/modules/xcos/demos/Threshold_ZeroCrossing.zcos new file mode 100755 index 000000000..f37026ea2 Binary files /dev/null and b/modules/xcos/demos/Threshold_ZeroCrossing.zcos differ diff --git a/modules/xcos/demos/anim_pen.sci b/modules/xcos/demos/anim_pen.sci new file mode 100755 index 000000000..45ca1878e --- /dev/null +++ b/modules/xcos/demos/anim_pen.sci @@ -0,0 +1,46 @@ +function [blocks] = anim_pen(blocks,flag) + //** 7 Jan 2009 : updated for Scilab 5.x + win = 20000+curblock(); + if flag<>4 then + H=scf(win) + end + xold = blocks.z + rpar = blocks.rpar + plen = rpar(1); csiz = rpar(2); phi = rpar(3); + + //** INIT + if flag==4 then + H = scf(win) + clf(H) + + Axe = H.children + Axe.data_bounds=rpar(4:7) + Axe.isoview="on" + S=[cos(phi),-sin(phi);sin(phi),cos(phi)] + XY=S*[rpar(4),rpar(5);-csiz/2,-csiz/2] + + drawlater(); + xsegs(XY(1,:),XY(2,:)) + x=0; theta=0; + x1=x-csiz/2;x2=x+csiz/2;y1=-csiz/2;y2=csiz/2 + XY=S*[x1 x2 x2 x1 x1;y1,y1,y2,y2,y1] + xpoly(XY(1,:),XY(2,:),"lines",1) + XY=S*[x,x+plen*sin(theta);0,0+plen*cos(theta)] + xsegs(XY(1,:),XY(2,:)); + drawnow(); + + //** UPDATE + elseif flag==2 then + Axe = H.children + x = blocks.inptr(1)(1) + theta = blocks.inptr(2)(1) + drawlater(); + XY=Axe.children(2).data' + [cos(phi)*(x-xold);sin(phi)*(x-xold)]*ones(1,5); + Axe.children(2).data=XY' ; + x1=x*cos(phi);y1=x*sin(phi) ; + XY=[x1,x1+plen*sin(theta);y1,y1+plen*cos(theta)] ; + Axe.children(1).data=XY' ; + blocks.z = x ; + drawnow(); + end +endfunction diff --git a/modules/xcos/demos/basic_controller.dem.sce b/modules/xcos/demos/basic_controller.dem.sce new file mode 100755 index 000000000..b963150c3 --- /dev/null +++ b/modules/xcos/demos/basic_controller.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Controller.zcos"); + diff --git a/modules/xcos/demos/batch_simulation.zcos b/modules/xcos/demos/batch_simulation.zcos new file mode 100755 index 000000000..3d2be17ae Binary files /dev/null and b/modules/xcos/demos/batch_simulation.zcos differ diff --git a/modules/xcos/demos/bounce.dem.sce b/modules/xcos/demos/bounce.dem.sce new file mode 100755 index 000000000..98001ddc6 --- /dev/null +++ b/modules/xcos/demos/bounce.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/bounce.zcos"); + diff --git a/modules/xcos/demos/bounce.zcos b/modules/xcos/demos/bounce.zcos new file mode 100755 index 000000000..4981a0932 Binary files /dev/null and b/modules/xcos/demos/bounce.zcos differ diff --git a/modules/xcos/demos/bouncing_ball.dem.sce b/modules/xcos/demos/bouncing_ball.dem.sce new file mode 100755 index 000000000..85fa0ec22 --- /dev/null +++ b/modules/xcos/demos/bouncing_ball.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Bouncing_ball.zcos"); + diff --git a/modules/xcos/demos/cont_sys_disc_cont.dem.sce b/modules/xcos/demos/cont_sys_disc_cont.dem.sce new file mode 100755 index 000000000..3692f1712 --- /dev/null +++ b/modules/xcos/demos/cont_sys_disc_cont.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Cont.Disc-Observer.zcos"); + diff --git a/modules/xcos/demos/control_systems.dem.gateway.sce b/modules/xcos/demos/control_systems.dem.gateway.sce new file mode 100755 index 000000000..1a9a66146 --- /dev/null +++ b/modules/xcos/demos/control_systems.dem.gateway.sce @@ -0,0 +1,18 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +subdemolist = [_("Basic controller") , "basic_controller.dem.sce" ;.. +_("Water tank") , "demo_watertank.dem.sce" ; .. +_("Discrete Controller") , "discrete_controller.dem.sce" ;.. +_("Kalman Filter") , "kalman.dem.sce" ; .. +_("Discrete Kalman Filter") , "discrete_kalman.dem.sce" ; .. +_("Cont.Plant-Hybrid Observer") , "cont_sys_disc_cont.dem.sce" ; .. +_("Temperature Controller") , "temp_controller.dem.sce" ; .. +_("Inverted pendulum") , "inverted_pendulum.dem.sce" ; .. +_("Lorenz butterfly") , "lorenz.dem.sce" ; .. +]; + +subdemolist(:,2) = SCI + "/modules/xcos/demos/" + subdemolist(:,2); diff --git a/modules/xcos/demos/data_type.dem.sce b/modules/xcos/demos/data_type.dem.sce new file mode 100755 index 000000000..c867ffaf7 --- /dev/null +++ b/modules/xcos/demos/data_type.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/demo_Datatype.zcos"); + diff --git a/modules/xcos/demos/demo_Datatype.zcos b/modules/xcos/demos/demo_Datatype.zcos new file mode 100755 index 000000000..7f21a8c04 Binary files /dev/null and b/modules/xcos/demos/demo_Datatype.zcos differ diff --git a/modules/xcos/demos/demo_watertank.dem.sce b/modules/xcos/demos/demo_watertank.dem.sce new file mode 100755 index 000000000..8aac57d15 --- /dev/null +++ b/modules/xcos/demos/demo_watertank.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/demo_watertank.zcos"); + diff --git a/modules/xcos/demos/demo_watertank.zcos b/modules/xcos/demos/demo_watertank.zcos new file mode 100755 index 000000000..eadf5a3d9 Binary files /dev/null and b/modules/xcos/demos/demo_watertank.zcos differ diff --git a/modules/xcos/demos/discrete_controller.dem.sce b/modules/xcos/demos/discrete_controller.dem.sce new file mode 100755 index 000000000..d5272d892 --- /dev/null +++ b/modules/xcos/demos/discrete_controller.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Plant_DiscreteController.zcos"); + diff --git a/modules/xcos/demos/discrete_kalman.dem.sce b/modules/xcos/demos/discrete_kalman.dem.sce new file mode 100755 index 000000000..62f456c26 --- /dev/null +++ b/modules/xcos/demos/discrete_kalman.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Discrete-KalmanFilter.zcos"); + diff --git a/modules/xcos/demos/electrical_systems.dem.gateway.sce b/modules/xcos/demos/electrical_systems.dem.gateway.sce new file mode 100755 index 000000000..2f20162e3 --- /dev/null +++ b/modules/xcos/demos/electrical_systems.dem.gateway.sce @@ -0,0 +1,20 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +subdemolist = [_("RLC Circuit") , "Electrical/rlc_circuit.dem.sce" ; .. +_("Bridge Rectifer") , "Electrical/bridge_rectifier.dem.sce" ; .. +_("Transformer") , "Electrical/transformer.dem.sce" ; .. +_("Differential amplifier") , "Electrical/differential_amp.dem.sce" ; .. +_("OpAmp amplifier") , "Electrical/op_amplier.dem.sce" ; .. +_("Switched capacitor integrator") , "Electrical/switched_cap_filter.dem.sce" ; .. +_("DC/DC Buck Converter") , "Electrical/buck_conv.dem.sce" ; .. +_("DC/DC Boost Converter") , "Electrical/boost_conv.dem.sce" ; .. +_("Colpitts oscillator") , "Electrical/colpitts_osc.dem.sce" ; .. +_("Logic AND gate") , "Electrical/logic_and.dem.sce" ; .. +_("Logic NOR gate") , "Electrical/logic_nor.dem.sce" ; .. +]; + +subdemolist(:,2) = SCI + "/modules/xcos/demos/" + subdemolist(:,2); diff --git a/modules/xcos/demos/event.dem.gateway.sce b/modules/xcos/demos/event.dem.gateway.sce new file mode 100755 index 000000000..6b2ce1b5e --- /dev/null +++ b/modules/xcos/demos/event.dem.gateway.sce @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +subdemolist = [_("If Then Else") , "Event/event_if_then_else.dem.sce"; ... + _("And") , "Event/event_and.dem.sce" ; ... + ]; + +subdemolist(:,2) = SCI + "/modules/xcos/demos/" + subdemolist(:,2); diff --git a/modules/xcos/demos/fibonacci.dem.sce b/modules/xcos/demos/fibonacci.dem.sce new file mode 100755 index 000000000..e3a2e65fa --- /dev/null +++ b/modules/xcos/demos/fibonacci.dem.sce @@ -0,0 +1,7 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Fibonacci.zcos"); diff --git a/modules/xcos/demos/goto_demo.zcos b/modules/xcos/demos/goto_demo.zcos new file mode 100755 index 000000000..b8e580b21 Binary files /dev/null and b/modules/xcos/demos/goto_demo.zcos differ diff --git a/modules/xcos/demos/goto_from.dem.sce b/modules/xcos/demos/goto_from.dem.sce new file mode 100755 index 000000000..aabfc50bc --- /dev/null +++ b/modules/xcos/demos/goto_from.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/goto_demo.zcos"); + diff --git a/modules/xcos/demos/if_xcos_block.dem.sce b/modules/xcos/demos/if_xcos_block.dem.sce new file mode 100755 index 000000000..b154b64bf --- /dev/null +++ b/modules/xcos/demos/if_xcos_block.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/IF_block.zcos"); + diff --git a/modules/xcos/demos/inv_pend_anim.dem.sce b/modules/xcos/demos/inv_pend_anim.dem.sce new file mode 100755 index 000000000..10c0c46e0 --- /dev/null +++ b/modules/xcos/demos/inv_pend_anim.dem.sce @@ -0,0 +1,16 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +function demo_xcospendul() + exec("SCI/modules/xcos/demos/PENDULUM_ANIM.sci",-1); + exec("SCI/modules/xcos/demos/anim_pen.sci",-1); + xcos("SCI/modules/xcos/demos/pendulum_anim5.zcos"); +endfunction + +demo_xcospendul(); +clear demo_xcospendul; + + diff --git a/modules/xcos/demos/inverted_pend.dem.sce b/modules/xcos/demos/inverted_pend.dem.sce new file mode 100755 index 000000000..213451962 --- /dev/null +++ b/modules/xcos/demos/inverted_pend.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Inverted_pendulum.zcos"); + diff --git a/modules/xcos/demos/inverted_pendulum.dem.sce b/modules/xcos/demos/inverted_pendulum.dem.sce new file mode 100755 index 000000000..3e280b892 --- /dev/null +++ b/modules/xcos/demos/inverted_pendulum.dem.sce @@ -0,0 +1,10 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2011 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +if ~isdef("setw") then exec("SCI/modules/xcos/demos/setw.sci",-1),end +xcos("SCI/modules/xcos/demos/Inverted_pendulum.zcos"); + + diff --git a/modules/xcos/demos/kalman.dem.sce b/modules/xcos/demos/kalman.dem.sce new file mode 100755 index 000000000..433086880 --- /dev/null +++ b/modules/xcos/demos/kalman.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Kalman.zcos"); + diff --git a/modules/xcos/demos/lorenz.dem.sce b/modules/xcos/demos/lorenz.dem.sce new file mode 100755 index 000000000..baf04e9cf --- /dev/null +++ b/modules/xcos/demos/lorenz.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Lorenz.zcos"); + diff --git a/modules/xcos/demos/mechanical_systems.dem.gateway.sce b/modules/xcos/demos/mechanical_systems.dem.gateway.sce new file mode 100755 index 000000000..a810c83b8 --- /dev/null +++ b/modules/xcos/demos/mechanical_systems.dem.gateway.sce @@ -0,0 +1,9 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +subdemolist = [_("Automotive Suspension") , "susp.dem.sce"]; + +subdemolist(:,2) = SCI + "/modules/xcos/demos/" + subdemolist(:,2); diff --git a/modules/xcos/demos/modelica_demos.dem.gateway.sce b/modules/xcos/demos/modelica_demos.dem.gateway.sce new file mode 100755 index 000000000..dbeca02c3 --- /dev/null +++ b/modules/xcos/demos/modelica_demos.dem.gateway.sce @@ -0,0 +1,20 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +if with_modelica_compiler() then + + subdemolist = [_("Ball on a Platform") , "ModelicaBlocks/ball_platform.dem.sce" ; .. + _("Bouncing Ball") , "ModelicaBlocks/modelica_bouncing_ball.dem.sce" ; .. + _("Chaos Modelica") , "ModelicaBlocks/modelica_chaos.dem.sce" ; .. + _("Hydraulics blocks") , "ModelicaBlocks/modelica_hydraulics.dem.sce" ; .. + _("RLC circuit") , "ModelicaBlocks/modelica_rlc_circuit.dem.sce" + ]; + + subdemolist(:,2) = SCI + "/modules/xcos/demos/" + subdemolist(:,2); + +end + +clear with_modelica_compiler; diff --git a/modules/xcos/demos/old_demos.dem.gateway.sce b/modules/xcos/demos/old_demos.dem.gateway.sce new file mode 100755 index 000000000..9cef7f760 --- /dev/null +++ b/modules/xcos/demos/old_demos.dem.gateway.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +subdemolist = [_("Old Gain Block") , "old_gain_block.dem.sce" ]; +subdemolist(:,2) = SCI + "/modules/xcos/demos/" + subdemolist(:,2); diff --git a/modules/xcos/demos/old_gain_block.dem.sce b/modules/xcos/demos/old_gain_block.dem.sce new file mode 100755 index 000000000..97652466f --- /dev/null +++ b/modules/xcos/demos/old_gain_block.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/OldGainTest.zcos"); + diff --git a/modules/xcos/demos/pendulum_anim5.zcos b/modules/xcos/demos/pendulum_anim5.zcos new file mode 100755 index 000000000..18b5bef49 Binary files /dev/null and b/modules/xcos/demos/pendulum_anim5.zcos differ diff --git a/modules/xcos/demos/scicos.dem.gateway.sce b/modules/xcos/demos/scicos.dem.gateway.sce new file mode 100755 index 000000000..dde2c5e05 --- /dev/null +++ b/modules/xcos/demos/scicos.dem.gateway.sce @@ -0,0 +1,15 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +subdemolist = [_("Standard demos") , "standard.dem.gateway.sce" ; .. +_("Control Systems") , "control_systems.dem.gateway.sce" ; .. +_("Electrical Systems") , "electrical_systems.dem.gateway.sce" ; .. +_("Mechanical Systems") , "mechanical_systems.dem.gateway.sce" ; .. +_("Modelica demos") , "modelica_demos.dem.gateway.sce" ; .. +_("Old demos") , "old_demos.dem.gateway.sce" ; .. +]; + +subdemolist(:,2) = SCI + "/modules/xcos/demos/" + subdemolist(:,2); diff --git a/modules/xcos/demos/scilab_block.dem.sce b/modules/xcos/demos/scilab_block.dem.sce new file mode 100755 index 000000000..8a36f479e --- /dev/null +++ b/modules/xcos/demos/scilab_block.dem.sce @@ -0,0 +1,7 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Scilab_Block.zcos"); diff --git a/modules/xcos/demos/setw.sci b/modules/xcos/demos/setw.sci new file mode 100755 index 000000000..81bc78510 --- /dev/null +++ b/modules/xcos/demos/setw.sci @@ -0,0 +1,9 @@ +function y = setw(x) + mu = size(x, 1); + y(1:mu,1:mu) = 0; + for j = 1:mu + for i = 1:mu-j+1 + y(i,j) = x(i+j-1); + end + end +endfunction diff --git a/modules/xcos/demos/signal_builder.dem.sce b/modules/xcos/demos/signal_builder.dem.sce new file mode 100755 index 000000000..6016dbfc9 --- /dev/null +++ b/modules/xcos/demos/signal_builder.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Signal_Builder.zcos"); + diff --git a/modules/xcos/demos/simple_demo.dem.sce b/modules/xcos/demos/simple_demo.dem.sce new file mode 100755 index 000000000..c56e79183 --- /dev/null +++ b/modules/xcos/demos/simple_demo.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Simple_Demo.zcos"); + diff --git a/modules/xcos/demos/simple_thermostat.dem.sce b/modules/xcos/demos/simple_thermostat.dem.sce new file mode 100755 index 000000000..89989f737 --- /dev/null +++ b/modules/xcos/demos/simple_thermostat.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Simple_Thermostat.zcos"); + diff --git a/modules/xcos/demos/standard.dem.gateway.sce b/modules/xcos/demos/standard.dem.gateway.sce new file mode 100755 index 000000000..0b946c207 --- /dev/null +++ b/modules/xcos/demos/standard.dem.gateway.sce @@ -0,0 +1,20 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +subdemolist = [_("Simple Demo") , "simple_demo.dem.sce" ; .. +_("Bouncing Balls") , "bounce.dem.sce" ; .. +_("Simple Thermostat") , "simple_thermostat.dem.sce" ; .. +_("Table Lookup") , "table_lookup.dem.sce" ; .. +_("Signal Builder") , "signal_builder.dem.sce" ; .. +_("Fibonacci Numbers") , "fibonacci.dem.sce" ; .. +_("Scilab block") , "scilab_block.dem.sce" ; .. +_("Xcos data types") , "data_type.dem.sce" ; .. +_("Zero Crossing") , "zero_crossing.dem.sce" ; .. +_("_IF_ Xcos block") , "if_xcos_block.dem.sce" ; .. +_("Goto/From blocks") , "goto_from.dem.sce" ; .. +]; + +subdemolist(:,2) = SCI + "/modules/xcos/demos/" + subdemolist(:,2); diff --git a/modules/xcos/demos/susp.dem.sce b/modules/xcos/demos/susp.dem.sce new file mode 100755 index 000000000..5257a9c4b --- /dev/null +++ b/modules/xcos/demos/susp.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/susp.zcos"); + diff --git a/modules/xcos/demos/susp.zcos b/modules/xcos/demos/susp.zcos new file mode 100755 index 000000000..6eed246bc Binary files /dev/null and b/modules/xcos/demos/susp.zcos differ diff --git a/modules/xcos/demos/table_lookup.dem.sce b/modules/xcos/demos/table_lookup.dem.sce new file mode 100755 index 000000000..98c7cb5c8 --- /dev/null +++ b/modules/xcos/demos/table_lookup.dem.sce @@ -0,0 +1,7 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Table_Lookup.zcos"); diff --git a/modules/xcos/demos/temp_controller.dem.sce b/modules/xcos/demos/temp_controller.dem.sce new file mode 100755 index 000000000..34915cc63 --- /dev/null +++ b/modules/xcos/demos/temp_controller.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Temperature_Controller.zcos"); + diff --git a/modules/xcos/demos/xcos.dem.gateway.sce b/modules/xcos/demos/xcos.dem.gateway.sce new file mode 100755 index 000000000..c74bf74c2 --- /dev/null +++ b/modules/xcos/demos/xcos.dem.gateway.sce @@ -0,0 +1,31 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// Copyright (C) 2011 - DIGITEO - Allan CORNET +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +function subdemolist = demo_gateway() + + demopath = get_absolute_file_path("xcos.dem.gateway.sce"); + add_demo(gettext("Xcos"), demopath + "xcos.dem.gateway.sce"); + + subdemolist = [_("Standard demos") , "standard.dem.gateway.sce" ; .. + _("Control Systems") , "control_systems.dem.gateway.sce" ; .. + _("Electrical Systems") , "electrical_systems.dem.gateway.sce" ; .. + _("Mechanical Systems") , "mechanical_systems.dem.gateway.sce" ;]; + + if with_modelica_compiler() then + subdemolist = [subdemolist; .. + _("Modelica demos") , "modelica_demos.dem.gateway.sce"]; + end + + subdemolist = [subdemolist; .. + _("Event demos") , "event.dem.gateway.sce" ; .. + _("Old demos") , "old_demos.dem.gateway.sce"]; + + subdemolist(:,2) = demopath + subdemolist(:,2); +endfunction + +subdemolist = demo_gateway(); +clear demo_gateway; diff --git a/modules/xcos/demos/xcos_demos.sce b/modules/xcos/demos/xcos_demos.sce new file mode 100755 index 000000000..f2f2a62c6 --- /dev/null +++ b/modules/xcos/demos/xcos_demos.sce @@ -0,0 +1,45 @@ +// +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO - Vincent COUVERT +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +// +// + +function demo_xcos() + + bResumeSomeVariables = %t; + // check if some variables used by demo_gui already exist + if isdef("demo_gui_update") & isdef("resize_gui") then + bResumeSomeVariables = %f; + end + + // Launch Scilab standard demo GUI + demo_gui(); + + // Get main list + frame1 = findobj("tag", "listbox_1"); + + // Select Xcos + allitems = frame1.string; + xcosItem = find(allitems == gettext("Xcos")); + frame1.value = xcosItem; + + // Exec callback to display Xcos demos list + gcbo = frame1; + execstr(frame1.callback, "errcatch"); + + // resume some variables + if bResumeSomeVariables then + [demo_gui_update, resize_gui] = resume(demo_gui_update, resize_gui); + end + +endfunction + +demo_xcos(); +clear demo_xcos; diff --git a/modules/xcos/demos/zero_crossing.dem.sce b/modules/xcos/demos/zero_crossing.dem.sce new file mode 100755 index 000000000..0d51590d9 --- /dev/null +++ b/modules/xcos/demos/zero_crossing.dem.sce @@ -0,0 +1,8 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - INRIA +// Copyright (C) 2009-2010 - DIGITEO +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +xcos("SCI/modules/xcos/demos/Threshold_ZeroCrossing.zcos"); + -- cgit