LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LV Unit Test Framework and Enumerations

We're starting to explore the unit test framework (UTF) (since it comes with the dev suite now), and I was trying to figure out if there's a way to get the UTF to know about the labels associated with enumeration controls? The UTF seems to know that a given input or output of a VI is an enumeration (the data type gets populated as Enum U16, for example), but it doesn't seem like the label information goes along with that.

 

Is there a checkbox or clicky-widget I'm missing somewhere?

 

Thanks -

 

Tom

 

 

0 Kudos
Message 1 of 4
(2,279 Views)

Have you tried using enum property node?  I believe you should be able to obtain the labeled text that way.  The following link shows how to extract the strings associated with an enum type.

 

 

Obtaining Enum Elements in String Format:  http://ae.natinst.com/public.nsf/web/searchinternal/7bd127b0c8ac37d3862571af004df697?OpenDocument

 

 

Regards,

Isaac S.

Regards,
Isaac S.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(2,258 Views)

Issac,

When I tried to navigate to the link you suggested I could I got a page load error.  Do you have a better link maybe?

 

Thanks

WireWarrior

Wire Warrior

Behold the power of LabVIEW as my army of Roomba minions streaks across the floor!
0 Kudos
Message 3 of 4
(2,242 Views)

My apologies please try this link instead:

 

http://digital.ni.com/public.nsf/allkb/7BD127B0C8AC37D3862571AF004DF697?OpenDocument

 

 

Regards,

Isaac S.

Regards,
Isaac S.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,228 Views)