2. LabVIEW
2
⮚Laboratory Virtual Instrument Engineering
Workbench
⮚Graphical programming language
⮚Used for data acquisition, instrument
control, and signal processing
3. LabVIEW
•G is a graphical language, so programs
look like flowcharts
•Program modules are clicked and dragged
into place
•Modules are “wired” together, and data
flows through these “wires”
3
4. ⮚Called “Virtual Instruments” (VIs)
⮚Appearance and operation imitates
actual physical instruments
Without With
LabVIEW
4
5. Virtual Instrumentation Applications
• Design
• Signal and Image Processing
• Embedded System Programming
• (PC, DSP, FPGA,
Microcontroller)
• Simulation and Prototyping
• Control
• Automatic Controls and Dynamic
Systems
• Mechatronics and Robotics
• Measurements
• Circuits and Electronics
• Measurements and Instrumentation
A single graphical development
platform
5
6. LabVIEW Background
• LabVIEW(Laboratory Virtual Instrumentation
Engineering Workbench)
• Nicknamed “G” for its graphical programming
• Designed by NI (National Instruments , LabVIEW 2012
was released in August 2012.
• Commonly used for data acquisition, instrument
control, and industrial automation.
6
7. Basics of GSD
• Uses functions called VIs (virtual instruments) to I/O, signal
processing, computations, programming, etc.
• Connects VI icons with wires that transmit values between
functions.
• Has three components: a front panel, a block diagram, and
connector pane.
• Uses data flow, so function execute as soon as all income
data is received.
• Allows for Object /Oriented programming via subVIs and
classes.
7
11. Design (Model)
•Researcher develops a mathematical model of
the system, including sensors, actuators,
plants and controllers, and simulates them
under a variety of initial conditions and
constraints.
•The researcher uses different numerical
methods with the objective of validating the
performance of the model and optimizing it
11
14. Prototype (Lab)
• If experimental validation of the model is required,
researchers develop and test a prototype in the
laboratory.
• The “virtual plant/process” can be used for HIL tests.
• Usually, this experimental (prototyping) phase is
executed on standard PCs or PXI computers, using
PCI/PXI data acquisition devices or external
measuring devices connected to a PC via USB,
Ethernet, GPIB, or serial ports.
14
16. Deployment (Field)
•Finally, the model (controller, analyzer or both) is
deployed in the field using a PC, or it can be
downloaded to a dedicated embedded controller such
as Compact RIO, which usually operates in stand-
alone mode and in real-time .
•For large systems, with high-channel counts or
involving modular instruments such as scopes, digital
multimeters (DMMs), RF vector signal analyzers, and
dynamic signal acquisition (DSA) devices, the PXI
platform is more appropriate.
16
17. DESIGN FLOW WITHOUT GSD
Typical embedded system software and hardware
design flow.
17
18. DESIGN FLOW WITH GSD
Stream-lined development flow with graphical system
design 18
19. ADVANTAGES OF LabVIEW
•Graphical user interface
•Drag-and-drop built-in functions
•Multiple high level development tools
•Multi platforms
•Reduces cost and preserves investment
•Flexibility and scalability
•Visualization capabilities
19