Higher Institute For Applied Sciences and Technology (HIAST) Control Department Mechatronics - 5 Year
Higher Institute For Applied Sciences and Technology (HIAST) Control Department Mechatronics - 5 Year
Control Department
Mechatronics – 5th year
Networked I/O
PC Boards
Workstation
Getting Started with LabView
LabView – Laboratory Virtual Instrument Engineering Workbench
is a graphical (visual) programming from National instruments (NI).
The purpose is automating the usage of processing and measuring equipment in any
laboratory setup.
C language Dataflow programming language
Cross-platform
Getting Started with LabView
Graphical Programming for
Test, Measurement, and
Control
Benefits
• Rapid application
development with Express VIs
and easy-to-use graphical
environment
• Interactive measurement
assistants and powerful
redesigned DAQ interface for
connecting to all types of I/O.
• Allows creating stand-alone
executables.
• Included examples and the
documentation, makes it
simple to create small
applications .
Getting Started with LabView
Without With
Getting Started with LabView
Ethernet
extender
Programmable Logic
Pprogrammable logic Controller (PLC) controler ZELIO
( SCHNEIDER ELECTRIC)
monitoring using MODBUS/TCP protocol
Getting Started with LabView
Edge detection
Barcode reading
Ctrl+E
Run Stop
Reorder objects
Debugging features
Getting Started with LabView
Front panel Block Diagram
Controls palette
Tools palette
Getting Started with LabView
• LabView automatically selects the tool needed
• Available on the front panel and the block diagram
• A tool is a special operating mode of the mouse cursor
• Use the tools to operate and modify front panel and block diagram objects
• To show the tools palette, select Window » Show Tools Palette
Front Panel
• Controls = Inputs
• Indicators = Outputs
Block Diagram
• Accompanying “program”
for front panel
• Components wired
together
20
Context Help
• To display the Context Help window, select
Help » Show Context Help, press the <Ctrl-H> keys,
or press the Show Context Help Window button in
the toolbar
• Move cursor over object
to display help
21
Debugging Techniques
Finding Errors
Click on broken Run button. A window showing the
error appears
Execution Highlighting
Click on Execution Highlighting button; data flow is
animated using bubbles. Values are displayed on
wires.
22
Debugging Techniques
Probe
Right-click on wire and select probe and it shows
data as it flows through the wire segment
Breakpoints
Right-click on wire and select Set Breakpoint; pause
execution at the breakpoint.
Conditional Probe
Combination of a breakpoint and a probe. Right-click on
wire and select custom probe.
23
Debugging Techniques
Step Into, Over, and Out buttons for Single Stepping
Click on Step Into button to enable single stepping
Once Single Stepping has begun, the button steps
into nodes
24