LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question on typedefs

I need to make a VI whoes input will be a cluster say UUT_INFO

UUT_INFO has 3 fields SerialNo (a string), TestStatus (Bool) and Power
(double).

Now I want to restrict this VI to only accept clusters of UUT_INFO type. And
I want to make sure that from my main VI (which will call this as subVI), I
pass the cluster of right type.

Since I will be using UUT_INFO cluster in different places and different
VIs, I am thinking of using typedefs of LV. I know somewhat how to do it but
looking for some example VI which other people use. I am not clear how do I
declare a variable of UUT_INFO in my main VI, fill values and pass to subVI.
subVI may modify it and return back.

In C, I can define a structure UUT_INFO and my functions parameter will be
of UUT_IN
FO type. How do I do this LV. I don't want my subVI to take any
cluster which has 3 fields of same type & order like UUT_INFO.



vishi
0 Kudos
Message 1 of 2
(2,435 Views)
Open the control in question in the control editor. Just below the menubar, next to the button with a picture of a wrench on it, is a popup that is (by default) labeled "Contol".

Click on this popup and select either typedef or strict typedef and save the control. The difference is that a strict typedef defines the visual appearance of the control, not just its logical structure.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 2
(2,435 Views)