LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i get from enum items name.

Solved!
Go to solution

...


Or the 'Type def to strings' from the Variant function panel, no property nodes needed. 🙂

/Y


Yes, in modern version of LabVIEW.

 

Spoiler
But back when this thread was current, we were working bears skins and stone knives.

 

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 21 of 25
(2,918 Views)

> Or the 'Type def to strings' from the Variant function panel, no property nodes needed.

 

In LV 2015 I do not see that. Search does not find it. Is it newer than 2015?

0 Kudos
Message 22 of 25
(2,911 Views)

@Yamaedo and @Ben, you refer to "'Type def to strings' from the Variant function panel". I'm interested. What LabVIEW version first had that?

0 Kudos
Message 23 of 25
(2,890 Views)
Solution
Accepted by Ben

> you refer to "'Type def to strings' from the Variant function panel".

> What LabVIEW version first had that?

 

Actually, that 2015 VI is named Get Numeric Information.vi; see http://zone.ni.com/reference/en-XX/help/371361M-01/glang/get_numeric_information/. It outputs an array of strings of the text names of the enum elements even from a constant. I found it via http://www.ni.com/en-us/shop/labview/release-details.html, in http://www.ni.com/pdf/manuals/371780l.pdf "LabVIEW 2015 Upgrade Notes", Data Type Parsing Vis:

"The Variant palette includes the new Data Type Parsing subpalette, which includes the following VIs:

...

Use the Data Type Parsing VIs to retrieve the data type of a variant and information about the data type.

You also can check whether the data type of a variant matches a specific data type."

Message 24 of 25
(2,861 Views)

Yeah that's right, Get Numeric Information! Before 2014 it was a 'hidden gem', those variant functions wasn't on the palette but you could use them from labview/vi.lib/utility/Variant something.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 25 of 25
(2,851 Views)