LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get I32 enum text out of a control (i/p terminal config, active edge of DAQmx vis)

Solved!
Go to solution

Hi,

 

 I am using DAQmx VIs create channel.vi and sample clock.vi, they have inputs (input terminal configuration) and (active edge) both are I32 and have enum looking drop down options. i want to use those text values to put into my excel file, but they give out numeric codes related to respective option. is it possible to get the text as it is.

 

it is not an enum but I32 which looks like enum..

 

plz help..

 

Thanks

0 Kudos
Message 1 of 6
(4,095 Views)
Solution
Accepted by topic author freemason

Actually the active edge is a ring control. Right click it and create a property node for it ring text.text. This will give you the string selected when the property node runs.

 

Hope this helps.

Now Using LabVIEW 2019SP1 and TestStand 2019
0 Kudos
Message 2 of 6
(4,086 Views)

thank you

 

it didnt strike me although i worked with ring controls.

0 Kudos
Message 3 of 6
(4,079 Views)
Note: This assumes that you have an actual control on the VI. If you have a block diagram constant, then that won't actually work. In this case to get the actual text you need to pick from list of text items. To further complicate things, the actual values that are generated are not sequential. You can use either a case structure or a 2-step lookup.
0 Kudos
Message 4 of 6
(4,078 Views)

thank you,

 

interesting, what is the vion top right which uses indices and text constant?

0 Kudos
Message 5 of 6
(4,072 Views)

ok got it, pick line

 

i did the case structure , but i wanted something simpler..

 

thanks

0 Kudos
Message 6 of 6
(4,067 Views)