From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Non-sequential enums

Hi everyone,
 
I know this has been a problem for awhile, but does LabView have any way yet of creating an enumeration where the values can be explicitly specified?  It would save a lot of conversions for me.
 
Thanks,
 
Jason Bold
0 Kudos
Message 1 of 4
(3,212 Views)
Unfortunately no. The enum datatype does not have support for this. See here for some more.

___________________
Try to take over the world!
0 Kudos
Message 2 of 4
(3,204 Views)
No, Enums cannot be sparsely numbered.  However Rings can be sparse, but the trade-off is that they aren't strongly typed like the enums.  Any numeric including a slightly different version of your ring can be wired to or from your ring.  You would be strongly advised to use Typdefs and pay attention when you see coercion dots on your diagram.

Jason Dunham.
0 Kudos
Message 3 of 4
(3,201 Views)

That's what I had thought.  Any ideas of whether or not there are plans to add this?  It is sorely needed.

Jason

0 Kudos
Message 4 of 4
(3,191 Views)