How to Get the Text of Enum’s Item Name in LabVIEW
By Ralph - Last updated: Thursday, July 1, 2010 - Save & Share - 2 Comments
In LabVIEW, if we want to get the text of an enum’s item name, we can do that as following:
- In case of an enum control or indicator, we can simply use property node with the "String[]" property to get the text of item name. A sample LabVIEW VI to get the text looks like this:
- In case of an enum constant, property node can not be used with it. But we can use the “Format Into String” VI of LabVIEW to convert enum’s item name into text. A sample LabVIEW VI looks like this:
These are the solution to get item name of an enum in LabVIEW for me. If there are other better ways to solute this problem, please post a comment to this blog.
No related posts.
Comment from Eirik
Time September 20, 2011 at 4:01 am
Hi Ralph!
You could also get the Item Name of an Enum by wiring it to a “Format to string” function.
Cheers!