Upload
mihaly-agocs
View
18
Download
4
Embed Size (px)
Citation preview
1 ni.com
LabVIEW Workshop
April 2013, Hungary
2 ni.com
LabVIEW Workshop
3 ni.com
LabVIEW Installation
Please install LabVIEW Development System if you have not done so far!
4 ni.com
Agenda
Brief Company Introduction
Workshop Topics Introduction
Getting Started with LabVIEW
LabVIEW and Hardware Integration
Workshops:
Data Acquisition and signal processing templates and lower-level functions
State machines as a powerful application integration tool
Multithreading applications leveraging multi-core processors in test,
control and measurement applications
Network communication in LabVIEW
5 ni.com
National Instruments Our Mission
We equip engineers and scientists with tools that accelerate productivity, innovation, and discovery.
6 ni.com
National Instruments Our Stability
2012 Yearly Revenue: $1.14 Billion
Global Operations: Approximately 6,870 employees; operations in more than 40 countries
Broad customer base: More than 35,000 companies served annually
Diversity: No industry >15% of revenue
Culture: Ranked among top 25 companies to work for worldwide by the Great Places to Work Institute
Strong Cash Position: Cash and short-term investments of $335M at December 31, 2012
12 86 88 90 92 94 96 98 00 02 04 06 08 10 12
7 ni.com
LabVIEW Has Been Proven Over Nearly 30 Years Withstanding the test of time across operating systems, buses, technologies, and more
8 ni.com
Graphical System Design
A Platform-Based Approach for Measurement and Control
9 ni.com
Workshop Content
10 ni.com
Multithreading with Multi-Core Processors in Test, Control and Measurement Applications
11 ni.com
42 m diameter mirror
984 Hexagonal mirror segments
6,000 sensor inputs
3,000 Actuators
Extremely Large Telescope Control European Southern Observatory
Control problem
distributed onto
128 cores!
12 ni.com
Data Acquisition and Signal Processing Templates and Lower-Level Functions
Ready to Run Project Templates High-Level Analysis with Express Vis Low-Level Analysis with Built-In Functions
13 ni.com
Data Acquisition and Signal Processing Templates and Lower-Level Functions
Hundreds of Math and DSP functions
14 ni.com
Lean-Soft Analyzing Parameters of Photovoltaic Solar Panels
Outside temperature
Moisture
Air pressure
Wind speed and direction
Solar panel output voltage
Solar panel output current
Solar radiation
Remote measurement nodes
Database logging (here Firebird)
15 ni.com
State Machines as a Powerful Application Integration Tool
16 ni.com
State Machines as a Powerful Application Integration Tool
17 ni.com
State Machine Pattern
Usually has a start-up and shut-down state, but also contains other states.
18 ni.com
Simple State Machine Template
Use the Create Project dialog box to expedite implementing an event-based state machine application.
19 ni.com
Network Communication in LabVIEW
20 ni.com
Network Communication in LabVIEW
21 ni.com
Network Communication in LabVIEW
Data
Remote Measurement system Server Application
4 Possibilities:
No programming Little programming Some programming Fully programmed
Commands
22 ni.com
Getting Started with LabVIEW
23 ni.com
LabVIEW Building Blocks Are Called
LabVIEW Front Panel
The user interface of a VI
LabVIEW Block Diagram
The source code of a VI
Icon / Connector Pane
Maps inputs and outputs
Note: A *.vi file encapsulates all
three elements
Virtual Instruments (*.VI)
24 ni.com
Creating a LabVIEW Front Panel
Controls Palette (Right-Click) Access a hierarchical palette of all front panel
elements.
Quick Drop (Ctrl + Space) Search by object name.
25 ni.com
Front Panel Objects Decorations Decorative elements and imagery
Text Arrows Callouts Lines Images and more
Customizable Indicators Used to convey outputs to a user
Graphs and Charts Progress Bars Gauges and Meters LEDs Numerics Strings and Paths and more
Customizable Controls Used to receive input from a user
Knobs and Dials Sliders Buttons Numerics Strings and Paths and more
26 ni.com
All Front Panel Elements Have Block Diagram
Block diagram terminals provide access to front panel values
Terminals
27 ni.com
What Is Data Flow?
Each block diagram node executes only when it receives all inputs
Each node produces output data after execution
Data flows along a path defined by wires
The movement of data determines execution order
Formula: Result = (A+B*C) / (D-E)
28 ni.com
What Is Data Flow?
Each block diagram node executes only when it receives all inputs
Each node produces output data after execution
Data flows along a path defined by wires
The movement of data determines execution order
The [Multiply] and [Subtract] operations can execute at the same time
since they dont have any data dependencies.
29 ni.com
Dataflow Languages Naturally Express Parallelism
Data Parallelism
Task Parallelism
The LabVIEW compiler will automatically multithread code expressed in parallel
30 ni.com
Text Loops and Their LabVIEW Equivalents
int x = 0;
String y;
while (x < 5)
{
y = functionCall(x);
printf(y);
x++;
}
for (i = 0; i < 10; i++)
{
/* loop body */
}
for (i = 0; i < 10; i++)
{
if(check(i)) break;
}
31 ni.com
Event and Case Structures
Event Selector Label This indicates which subdiagram is visible
and details the event that the code within the
diagram handles.
Selector Terminal The value wired to this terminal determines
which of the subdiagrams, or cases, will
execute.
Event Structure
Case Structure Case Selector Label
This indicates which subdiagram is visible.
32 ni.com
Text-based Signal Processing, Analysis and Math within LabVIEW
Over 700 built-in functions Reuse many of your .m file scripts
created with The MathWorks, Inc.s MATLAB software and others
Based on original math from MATRIXx
A native LabVIEW solution Does not require 3rd party software Interactive GUI Programmatic: Graphical plus textual
math
MathScript
MATLAB is a registered trademark of The MathWorks, Inc. All other
trademarks are the property of their respective owners.
33 ni.com
Demonstration MathScript Node
34 ni.com
Demonstration .dll and .m Files
35 ni.com
Results Presentation
Databases Local and remote databases
Complete SQL capabilities
Report Generation Programmatically create and edit
reports in Microsoft Word and Excel
E-mail reports and execute macros
Networking Web Services
FTP, SMTP
Web Publishing tool
36 ni.com
LabVIEW and Hardware Integration
37 ni.com
38 ni.com
Measurements:
Temperature Humidity Pressure Sound Wind speed Wind direction
39 ni.com
Sensors/Signals
Thermocouple
C Series Modules
C Series: an Integrated, Modular Solution
Accelerometer
Strain Gauge
Any AI/AO
Sensor Measurements Usually Involve a lot of Hardware and Components
40 ni.com
41 ni.com
KODA ELECTRIC Hardware-in-the-Loop Tester
The Challenge: Developing a hardware-in-the-loop (HIL) simulator for a main drive locomotive to test newly developed control algorithms.
The Solution: Creating two versions of the simulator based on NI CompactRIO hardware and the NI PXI Express platform with an FPGA card. A core element of the simulator is the model of a controlled system, which was programmed with NI LabVIEW system design software and the LabVIEW FPGA Module. The accuracy of the programmed model was verified by the LabVIEW Control Design and Simulation Module from the same system.
42 ni.com
PXI Backplane
PCI (PCIe) bus Timing and
Synchronization
Shared clock Triggering Star Lines
Peripheral Modules
Chassis Controller
Embedded PC or remote PC /
laptop interface
Runs all standard software or Real-
Time
Modular PXI Platform
43 ni.com
Data Acquisition and Control
Multifunction I/O
Analog Input/Output
Digital I/O
Counter/Timer
FPGA/Reconfigurable I/O
Machine Vision
Motion Control
Signal Conditioning
Temperature
Strain/Pressure/Force/Load
Synchro/Resolver
LVDT/RVDT
Many More. . .
Modular Instrumentation
Digital Waveform Generator
Digital Waveform Analyzer
Digital Multimeter
LCR Meter
Oscilloscope/Digitizer
Source/Signal Generator
Switching
RF Signal Generator
RF Signal Analyzer
RF Power Meter
Frequency Counter
Programmable Power Supply
Many More. . .
Bus Interfaces
Ethernet, USB, FireWire
SATA, ATA/IDE, SCSI
GPIB
CAN, DeviceNet
Serial RS-232, RS-485
VXI/VME
Boundary Scan/JTAG
MIL-STD-1553, ARINC
PCMCIA/CardBus
PMC
Profibus
LIN
Many More. . .
Others
IRIG-B, GPS
Direct-to-Disk
Reflective Memory
DSP
Optical
Resistance Simulator
Fault Insertion
Prototyping/Breadboard
Graphics
Audio
Many More. . .
PXI Products. . .Over 1,500 and Counting
ni.com
NI CompactRIO Architecture
ni.com
NI CompactRIO Architecture
Reconfigurable FPGA for high-speed and custom I/O timing, triggering, and control
Real-time processor for reliable measurement, analysis, connectivity, and control
I/O modules with built-in signal conditioning for connection to sensors/actuators
Real-Time Processor
FPGA
ni.com
NI CompactRIO Architecture
Reconfigurable FPGA for high-speed and custom I/O timing, triggering, and control
Real-time processor for reliable measurement, analysis, connectivity, and control
I/O modules with built-in signal conditioning for connection to sensors/actuators
FPGA
ni.com
NI C Series I/O Modules
Analog Input Up 1MS/s Simultaneous sampling 4, 8, 16, and 32-ch options Built-in signal condition for
sensors o Strain gages, accelerometers,
thermocouples, RTDs
Up to 300 V, 5A 12, 16 and 24-bit resolution Available ch-to-ch isolation
Analog Output Up to100 kS/s simultaneous
updating 4-ch per module 10 V, 20 mA Isolation
Digital I/O Up to 30 MHz timing 8 and 32-channel options 5V/TTL, 12/24/48 V logic levels Available ch-to-ch isolation
Others 2-port CAN module DC servo motor drive module PROFIBUS module
Connector options Screw terminal, spring terminal,
BNC, D-Sub
48 ni.com
NI LabVIEW - Limited offer for Getting Started Kit
The offer is limited ,on first comes, first served basis.
NI LabVIEW Full Development System
OR
NI USB-6218
32 analog input channels, 250kS/S sampling rate with 16-bit resolution
2 analog outputs samples at 250kS/s 16 digital IO 2 32 bit counters
SAVE: 669193 HUF SAVE: 899738 HUF
NI CompactDAQ System
NI CompactDAQ 9174 4 slot USB chassis NI 9219 universal analog input module for strain/bridge-based
sensor, current, resistance, RTD, temperature, thermocouple, voltage
NI 9205 32-Ch 200 mV to 10 V, 16-Bit, 250 kS/s analog input NI 9401 8 Ch, 5 V/TTL high-speed bidirectional digital I/O
LabVIEW Core 1 Instructor-led Online Training
49 ni.com
Renew Your Standard Service Program with 40%
Benefits for members of the SSP (Software Subscription Program) program:
NEW Self Paced Online Training - take training courses using the brand new self paced online learning system for developing programming skills in LabVIEW, TestStand and more. Learn more about NEW Self Paced Online Training:www.ni.com/services/software_benefits.htm
Prioritized technical support - get up and running faster and save trouble shooting time with professional technical support from our local engineers.
Exclusive downloads - enjoy access to current and older versions of NI software
Software updates - receive automatic shipments of your software updates at no additional cost
Until June 2013, as a past member of the SSP program you have the possibility to renew your services at a special price that can save you up to 40% of the regular price*.
This offer is eligible for licenses which SSP expired >60 days.
Discount
50 ni.com
NI LabVIEW Training Courses
51 ni.com
User Community
9,000+ Certified Users
700+ Alliance Partners
60+ Registered User Groups
LabVIEW Tools Network
1,000,000+ Add-Ons Downloaded
26+ Certified Add-Ons
100+ Available Add-Ons
Leveraging the LabVIEW Ecosystem
Modules and Toolkits
40+ Toolkits and Modules Including:
LabVIEW Real-Time Module
LabVIEW FPGA Module
LabVIEW Embedded Module for ARM
LabVIEW Touch Panel Module
LabVIEW Wireless Sensor Network Module
LabVIEW C Code Generator
NI Real-Time Hypervisor
Vision Development Module for LabVIEW
Sound and Vibration Measurement Suite
Sound and Vibration Toolkit
LabVIEW Advanced Signal Processing Toolkit
LabVIEW Adaptive Filter Toolkit
LabVIEW Digital Filter Design Toolkit
LabVIEW MathScript RT Module
Spectral Measurements Toolkit
Modulation Toolkit for LabVIEW
LabVIEW Robotics Module
LabVIEW Biomedical Toolkit
ECU Measurement and Calibration Toolkit
GPS Simulation Toolkit for LabVIEW
Measurement Suite for Fixed WiMAX
WLAN Measurement Suite
Automotive Diagnostic Command Set
LabVIEW GPU Analysis Toolkit
Multicore Analysis and Sparse Matrix Toolkit
LabVIEW PID and Fuzzy Logic Toolkit
LabVIEW Control Design and Simulation Module
LabVIEW System Identification Toolkit
LabVIEW Simulation Interface Toolkit
LabVIEW SoftMotion Module
LabVIEW Datalogging and Supervisory Control Module
LabVIEW Report Generation Toolkit for Microsoft Office
LabVIEW Database Connectivity Toolkit
LabVIEW DataFinder Toolkit
LabVIEW SignalExpress
LabVIEW VI Analyzer Toolkit
LabVIEW Statechart Module
LabVIEW Desktop Execution Trace Toolkit
NI Requirements Gateway
NI Real-Time Execution Trace Toolkit
LabVIEW Unit Test Framework Toolkit
LabVIEW Application Builder for Windows
52 ni.com
Enjoy the Workshop!
53 ni.com
Contacts us
National Instruments Hungary Email: [email protected] Web: hungary.ni.com Call us: 06 80 204 704