07-27-2012 10:53 AM
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.
07-27-2012 11:13 AM
Are you wanting to perform this activity at edit-time or programmatically?
07-27-2012 11:15 AM
I want to do it programatically.
07-27-2012 11:26 AM
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.
07-27-2012 11:43 AM
How would you do it otherwise then?