Professional Documents
Culture Documents
SCILAB.
M.Mohamed Ibrahim
Tenet Technetronics
08-NOV-16
Tenet Technetronics 1
Application Notes
Contents
Introduction .2
Open XCOS . 2
Palette browser
11
Tenet Technetronics 2
Application Notes
Introduction
Scilab is an open source, cross-platform numerical computational package and a highlevel, numerically oriented programming language. Xcos is Scilab tool dedicated to the
modeling and simulation of hybrid dynamic systems including both continuous and
discrete models. Models can be designed, loaded, saved, compiled and simulated.
Open XCOS
From Scilab console window, typing -->XCOS
Otherwise, click XCOS icon
#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726., Website: www.tenettech.com, Email: info@tenettech.com
Tenet Technetronics 3
Application Notes
Palette browser
Palette browser contains different types of blocks. To design diagram, select the
required blocks in palette browser and place the blocks into XCOS window by using
drag & drop option. Blocks are then connected each other using their different ports
(input, output, event) in order to create the simulated model.
Step 1: Select the above blocks in palette browser and then place the blocks in
XCOS window by drag & drop.
Tenet Technetronics 4
Application Notes
Step 2: Arrange the blocks in XCOS window and then connected to required ports.
Tenet Technetronics 5
Application Notes
Tenet Technetronics 6
Application Notes
Tenet Technetronics 7
Application Notes
Step 4: If you want to modify any of the parameters of Continuous time system block,
double click on the CLR block and change the parameters.
Step 5:Set context menu containing Scilab script allows easy to use of functions and
variables.
Simulation-> set context
For example: enter the Y=1 & Tau=1 in set context window
Tenet Technetronics 8
Application Notes
Tenet Technetronics 9
Application Notes
Step 8: If we want to modify final integration time and cscope parameters
Goto, Simulation ->setup
Enter final integration value as 5 and click OK
Tenet Technetronics 10
Application Notes
Tenet Technetronics 11
Application Notes
Step 11: Replace the step function by sine wave generator and then restart the
simulation .The output will be displayed.
Simple Demos:
1. Step function in Scilab
Tenet Technetronics 12
Application Notes
2.
Pulse generator