Professional Documents
Culture Documents
Gestisci Il Cambiamento Con La Programmazione Orientata Agli Oggetti Di LabVIEW
Gestisci Il Cambiamento Con La Programmazione Orientata Agli Oggetti Di LabVIEW
Programming in LabVIEW
Jan Klasson
VP Products & Training
Endevo
Agenda
• LabVIEW Object Oriented Programming
• What is it?
• What does it look like?
• Why bother?
Short about Object Orientation
• It is a way of structuring software
• Building block: Classes instead of VIs
• A class:
• ”A cluster + VIs”
• Grouping VIs with a common
responsibility
Code Demo – The Counter
Class
Why Object Orientation?
• Easier to modify existing functionality
• Easier to add new functionality
• Easier to verify changes
• The benefits increase when the system
grows
• Supports sharing code between
applications
Case Study Example
• An automated production test system
• Configurable to store data in
• Ini file and
• Data base
• Capable of simulating Device Under
Test (DUT)
Design Overview - using Unified
Modeling Language
Change 1: Bug fix in DB access
Affected
VIs
Change 2: Adding XML
Storage
New Child
Class + VIs
Change 3: Updated DUT
Protocol
Affected
VIs
Change 4: New Test Station
Information