LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert ring to enum

Hello all,

 

I would like to convert the ring out of (DAQmx Channel Property node>>ChanType) for example, to an enum to later use with a case structure.

I saw a previous post going the ohter way (enum to ring)

 

any help will be appreaciated.

0 Kudos
Message 1 of 5
(4,160 Views)

Are you wanting to perform this activity at edit-time or programmatically?

CLD | CTD
LabVIEW 2011 SP1 | TestStand 4.5
0 Kudos
Message 2 of 5
(4,158 Views)

I want to do it programatically.

0 Kudos
Message 3 of 5
(4,154 Views)

If you perform that programmatically, the case structure will not update programmatically.

So, you would either need to continue to use the ring input (relying on the numeric value for the cases) or you would have to create an enum, populate the case structure with those values and make sure the programmatic values are handled at edit time even if they are going to change.

 

It doesn't seem as though you gain much performing the conversion programmatically.

CLD | CTD
LabVIEW 2011 SP1 | TestStand 4.5
0 Kudos
Message 4 of 5
(4,146 Views)

How would you do it otherwise then?

 

0 Kudos
Message 5 of 5
(4,139 Views)