LabVIEW Idea Exchange

About LabVIEW Idea Exchange

Have a LabVIEW Idea?

  1. Browse by label or search in the LabVIEW Idea Exchange to see if your idea has previously been submitted. If your idea exists be sure to vote for the idea by giving it kudos to indicate your approval!
  2. If your idea has not been submitted click Post New Idea to submit a product idea to the LabVIEW Idea Exchange. Be sure to submit a separate post for each idea.
  3. Watch as the community gives your idea kudos and adds their input.
  4. As NI R&D considers the idea, they will change the idea status.
  5. Give kudos to other ideas that you would like to see in a future version of LabVIEW!
cancel
Showing results for 
Search instead for 
Did you mean: 
Tobox

convert String-Array to Enum

Status: Declined
Functionality already exists in LabVIEW. Editing enums is possible only at edit time and not at run time.

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.

8 Comments
Tobox
Member
or write/change the property nodes...
tst
Knight of NI Knight of NI
Knight of NI
I can't say I have a need for this, but it should be fairly simple to write a JKI RCF plugin to do this. You basically just need to create a new enum control and push the values into it using the Strings[] property.

___________________
Try to take over the world!
TCPlomp
Trusted Enthusiast

The Variant to Control toolbox has a demo VI which creates an enum based on an array of strings.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
somebody_that_i_used_to_k
Trusted Enthusiast

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. 

 

 

UpdateEnum.png

Message Edited by JackDunaway on 11-19-2009 09:17 AM
Wirebird Labs: Expert Toolkits for LabVIEWDeploy, by Wirebird Labs: Expert Toolkits for LabVIEW
Technico
Member

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)

 

 

Message Edited by Technico on 03-05-2010 04:23 AM
G-Money
NI Employee (retired)
Status changed to: Declined
Functionality already exists in LabVIEW. Editing enums is possible only at edit time and not at run time.
davekorpi
Member

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...

ToTestRing.png

AristosQueue
Proven Zealot

@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.