Integrating Data Acquisition and Instrument Control with Your Scilab Scripts Darcy Dement Marketing Director National Instruments France [email protected]
Integrating Data Acquisition and
Instrument Control with Your Scilab
Scripts
Darcy Dement
Marketing Director
National Instruments France
2
NI HQ
Who We Are
0
100
200
300
400
500
600
700
800
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00 01 02 03 04 05 06 07 08 09
•Leaders in Computer-based Measurement and Automation
•Long-term track record of growth and profitability
•$677M revenue in 2009
•More than 5,100 employees; operations in 40+ countries
•Fortune’s 100 Best Companies to Work For 11 consecutive years
•16% invested in R&D
3
What We Do
Low-Cost Modular Hardware for
Measurement and Control
Productive Software Development Tools
Highly Integrated Systems Platforms
Used By Engineers and Scientists for Test, Design, and Control
4
The Numerical Mathematics Consortium
http://www.nmconsortium.org/
5
Discussion Topics:
Connecting Math with the Physical World
• Need for adding interactivity & instrumentation
• A software option for interfacing with the physical world: NI LabVIEW
• Using Scilab with LabVIEW
• Use cases
• Demo
• Technical information
6
Textual Math Strengths
• Scripted math
• Sequential order of execution
• Vector and matrix operations
• Algorithm design for signal
processing
• Familiarity
• User network and community
7
Need for Instrumentation & Interactivity
• Acquire real-world data
with hardware
• Generate real stimuli
• Control any of 1000’s of
instruments with available
drivers
• Perform frequency
analysis, probability,
statistics, math, curve
fitting, interpolation, digital
signal processing, etc.
• Create custom algorithms
• Visualize data with
professional user
interfaces
• Generate reports
• Publish and control
applications on the web
• Connect to databases
• Efficiently store data in
multiple file formats
8
Need for Instrumentation & Interactivity
• Acquire real-world data
with hardware
• Generate real stimuli
• Control any of 1000’s of
instruments with available
drivers
• Perform frequency
analysis, probability,
statistics, math, curve
fitting, interpolation, digital
signal processing, etc.
• Create custom algorithms
• Visualize data with
professional user
interfaces
• Generate reports
• Publish and control
applications on the web
• Connect to databases
• Efficiently store data in
multiple file formats
9
Mathematical
Simulation
Measurement and
Presentation
Complementing Your Scripts with
Instrumentation and Presentation
10
Mathematical
Simulation
Measurement and
Presentation
Complementing Your Scripts with
Instrumentation and Presentation
11
What is LabVIEW?
Compiled Graphical Development Environment for Engineering & Science
• Implement and deploy custom applications
Automated test & measurement
Graphical system design
• Easily implement and deploy custom GUIs by applying an open, hybrid (graphical + textual) programming approach
• Acquire / generate signals, instrumentation
• Apply analysis and signal processing
• Present results in an interactive graphical format locally or online
15
ni.com/idnet: Your Source for
Instrument Drivers with LabVIEW
Drivers for 6000+ instruments from over 275 vendors
16
Multiple NI Data Acquisition Options, Same Software
PXI Express
Wi-FiEthernet
PXI
PCI PCI Express
USB
19
How it Works:
Using Scilab Scripts within LabVIEW1. Install Scilab 4.1.1 or later, LabVIEW 8.0 or later, and the
freely downloadable gateway
2. Open LabVIEW, create a new LabVIEW VI, and
insert a Scilab script node on the VI block diagram
3. Enter your Scilab script in the Scilab script node
4. Right-click the Scilab script node border, select
Add Input or Add Output, and enter input / output variable
names
5. Connect LabVIEW wires to the new inputs and outputs
When you run your application, LabVIEW invokes the
Scilab engine to execute your script
21
Conclusion & Call-to-Action
• LabVIEW adds instrumentation and interactivity
to bring life to your mathematical simulations
• Let us know about your applications for the
Scilab / LabVIEW link (forums.ni.com, or
http://url.ie/6dns)
• Try LabVIEW free for 30 days – download at
ni.com/labview