LabVIEW SubVIs
LabVIEW SubVIs
Hans-Petter Halvorsen
SubVIs
• A SubVI is the same as a func2on or a method
used in other languages
• Hundreds or thousands of SubVIs are included
with LabVIEW
• But even be?er: You can create and use your
own SubVIs
Why create and use SubVIs?
• You need to use the same operation many
times in your code
• Reuse your code
• Hide complicated code
• Easier to maintain your code
• Easier to find bugs and repair them
• ...
Select Inputs and Outputs
SubVIs
Input Output
Icon that makes it easier
to understand what the
SubVI is doing
(Control) (Indicator)
Create a nice icon as well
(Icon Editor)
E-mail: [email protected]
Web: https://www.halvorsen.blog