Professional Documents
Culture Documents
8/10/2011
Table of Contents
Chapter 1: Installation & Configuration Chapter 2: Getting Started with Scilab Fundamentals Chapter 3: Migrating Data, Datasets and Files into Scilab Chapter 4: Applications Introduction & Review
8/10/2011
8/10/2011
General Information
Download Scilab from Equalis website www.equalis.com Comprehensive GUI will guide you through the installation process For Windows and Mac For Linux, please see slide 4 for more details
Which version of Scilab works for your OS? Review on next slides
8/10/2011
Put Scilab folder in the directory where you want to install Scilab (call it <scilab-path>) Launch Scilab with the following commands
[$SHELL] cd <scilab-path>/scilab-5.3.3 [$SHELL] ./bin/scilab
8/10/2011
(*) Please refer to a workaround given in http://bugzilla.scilab.org/show_bug.cgi?id=9766 Note: Since v.5.3, only 64-bit OS is supported
8/10/2011
8/10/2011
Scilab Console
Variable Browser
Command Window
History Browser
You can dock windows as shown above by dragging one window to another.
8/10/2011 Company Confidential 2011 9
Basic Functions
Use matrices for input/output
Solve Ax = B
8/10/2011
10
ATOMS
You can download and install toolboxes from ATOMS.
Click
8/10/2011
11
Click to install
8/10/2011
12
Graphing 2D, 3D
Scilab has a huge assortment of graphic capabilities
Large 2D and 3D plotting library 2D graphics Special control systems, signal processing graphs Matlab plotting emulation toolbox
8/10/2011
13
Graphing Examples
plot2d
plot3d
8/10/2011 Company Confidential 2011
8/10/2011
15
Initial value of the derivative is Solve the above implicit ODE for
for integer
8/10/2011
16
Optimization
Scilab toolboxes supporting these capabilities
Optimization and simulation toolbox (in baseline Scilab) Quapro Unconstrained Optimization SciCOBYLA - derivative free non linear constrained optimization method Markov Decision Processes (MDP) toolbox Optkelley iterative optimization algorithms from a book by C. T. Kelley A Toolbox for Unconstrained Global Optimization of Polynomial functions And many others
Company Confidential 2011 17
8/10/2011
Optimization Example
Solve the linear programming problem
(2.67, 0.67)
8/10/2011
18
Getting Help
The following resources are available for Community Edition support;
Equalis Community site
Forum Scilab Tips
For more complete support, including email, phone, Chat, as well as access to the exclusive Equalis SOS portal, providing complete on-line searchable documentation, Video Tutorials, Tech Tips, etc, please review our Equalis Pro and Pro Plus programs. For advanced premium features and applications please also review our Equalis Pro and Pro Plus programs
8/10/2011 Company Confidential 2011 19
Datasets Supported
Data import/export using simple commands Data type
xls txt csv xml binary mat etc.
Data size
Up to 2.1 GB of memory = a 16,384 x 16,384 dense matrix of doubles Can use a HUGE dataset!
Can perform various matrix-based syntaxes to the entire data set simple and fast computation
8/10/2011 Company Confidential 2011 21
Importing/Exporting Data
csv file Read in Scilab
M = read_csv(data_file.csv)
csv file
8/10/2011
22
Statistics Spreadsheet Input/Output functions csv_readwrite NaN toolbox Stixbox Artificial Neural Network (ANN) toolbox Scilab JSON toolbox OPC Client Socket etc.
Company Confidential 2011 23
Scilab
Use the function rand(size of matrix). Thats it!
8/10/2011
24
Scilab
Type A*X. Thats it!
8/10/2011
25
Scilab
Can invert large matrices (square or non-square) - For square matrices: inv(A) - For non-square matrices: pinv(A) (pseudoinverse)
8/10/2011
26
8/10/2011
27
Model 1 (blue): f(t) = a*sin(t) + b*t R=0.7501881 Model 2 (green): f(t) =a+b*t+c*t 2+d*t 3+e*t 4+f*t 5 R=0.7160991
8/10/2011 Company Confidential 2011 28
Communications
OPC Client, Serial Port (under development, source code available) HART toolbox, DDE Toolbox, ScilabSerialLib toolbox, Socket
Scilab 2 C xls nlink Scilab_XLL
Compiling Spreadsheet
Misc
8/10/2011
Simulation
Control Systems
Optimization
Optimization
8/10/2011
30
Equalis can help with any corner cases Also Equalis Pro and Pro Plus support programs can help automate your processes through script development
8/10/2011 Company Confidential 2011 31
No structure change Minor changes: comments % --> // clear all --> clear close all --> xdel(winsid()) pi --> %pi figure() --> scf() fft(x) --> fft(x, -1), ifft(x) --> fft(x, 1) Identical outputs
8/10/2011
32
8/10/2011
33
8/10/2011
34
8/10/2011
35
Control Systems
Algorithm Development
Embedded Systems
Mechatronic Systems
8/10/2011
42
Includes sound, images, sensor data, bio-data, radio, telecommunication Processes include: filtering, smoothing, pattern recognition, prediction, correction, digitization
8/10/2011
43
Includes: Linear Controls, Non-Linear Controls, Digital Controls, Optimal Controls, Adaptive Controls, Robust Controls Encompasses: Electronics, mechanical systems, thermo-hydraulic, chemical engineering, financial and biological systems
8/10/2011 Company Confidential 2011 45
CACSD Computer Aided Control Systems Design ANN Neural Networks toolbox Celeste Lab Aerospace toolbox (modeling and control) DACE Design and Analysis of Computer Experiments Linear Time Invariant Systems - Identification Toolbox Linear Model Neural Network Lolimont toolbox Linear System Inversion toolbox
Control Systems in Xcos And many related toolboxes in statistics, DiffEqs, and Linear Algebra
8/10/2011 Company Confidential 2011 46
CACSD Toolbox
Continuous Time Systems
Robust
H2/H-Infinity Riccati
8/10/2011
47
Acquire
Create
Visualize
Analyze
Iterate
Create Models
8/10/2011 Company Confidential 2011
Measure
48
Instrument
8/10/2011 Company Confidential 2011
Instrument
Instrument
49
GUI Design
Scilab has GUIs
Baseline Scilab capabilities Specialized toolboxes for GUI building Ability to interface with external GUI via APIs Ability to interface with external code All major GUI elements supported
List boxes, Text boxes, menus, frames, popup menus Sliders, radio buttons, checkboxes, pushbuttons
8/10/2011
50
GUI Example
8/10/2011
51
Simulation
Xcos: Main toolbox for simulation similar to Simulink or LabView
Allows the user to build a wide assortment of models and perform simulations on those models Very easy to learn and implement Good integration with Scilab environment
8/10/2011
52
Original signal
Noisy signal
De-noised signal
53
Super-block
8/10/2011
54
Further Information
Ask questions in our Community Forum Read Scilab Tips to learn more about Scilab For more complete support and our advanced premium features and applications, please also review our Equalis Pro and Pro Plus programs
8/10/2011
55
Email: sales@equalis.com
Tel: 408-912-1686
www.equalis.com
8/10/2011 Company Confidential 2011 56