Aerospace, Defense, & Government
Academic & Research
Benchtop Measurement and Test
Distributed Measurement and Control
Systems Engineering Software
You can request repair, schedule calibration, or get technical support. A valid service agreement may be required.
Provides support for NI data acquisition and signal conditioning devices.
Provides support for Ethernet, GPIB, serial, USB, and other types of instruments.
Provides support for NI GPIB controllers and NI embedded controllers with GPIB ports.
I think that is usefull to convert a string-array as/into a enum.
After that you can use the enum easier in cases, and s.o.
The Variant to Control toolbox has a demo VI which creates an enum based on an array of strings.
We use a tool like this almost every day. But remember, by nature, that enum cannot be in memory, so this VI is only a design-time tool, not a run-time tool.
Initially I wanted to post a new idea, but this original post contained practically the same comments,
except that I have the proposal to add this option when editing rings/enums. So Kudos to this post...
The easiest way (without any additional tools, ...) would be if this option was built into LabVIEW itself
and the most logical place would be under enum/ring --> "Edit Items..." !!!
Why not add an additional option (Besides Insert/Delete/MoveUp/Down) to paste a string-array (or load an array from file)
Duuuuuuudes. and Dudettes!.. Use a Text ring by golly!
Too many snarky replies on the enum... Once day I will learn the enum and post it.
I personally wonder WHY ENUM Ring and WHY TEXT Ring, what's the diff??
How do you spell automobile?... Ummmm... CAR...
@davekorpi Enums are type-safe selectors whose value is visible on the diagram in case structures and probes. Rings are pure display objects that return a raw integer and support string localization. Enums protect you from cross-wiring and ensure that your code breaks if new cases are added. Rings are used for user interfaces where you may need to dynamically populate with text from various sources. In general, rings should be used exclusively for UI front panels and enums should be used exclusively for subVI connector panes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What do you need our team of experts to assist you with?
We'll be in touch soon!