LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

creating enum from strings[] list

I have many items need to add to enum. so add it one by one is wasteing time .

Do you have another way ?

0 Kudos
Message 1 of 11
(4,993 Views)

I can not to change the strings[].

such as this.

0 Kudos
Message 2 of 11
(4,992 Views)
you can use a string combo box
Message Edited by Harold Timmis on 05-14-2009 11:06 PM
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 3 of 11
(4,967 Views)

Ya u can use Combobox and ring text, I have the programme to programatically populate the enum,give me some time to find that one.Smiley Happy

http://forums.ni.com/ni/board/message?board.id=170&message.id=131315 check this link for more info

Message Edited by Baji on 05-15-2009 08:44 AM
Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
Message 4 of 11
(4,962 Views)

I would advise you  to use the Variant To Control tools from LAVA. They have an example VI to convert an array of strings to an enum (typedef if you want).

 

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!
Message 5 of 11
(4,935 Views)

Thanks Ton, I have download the tools form LAVA. But I have not find the Get Defalut Data form TD_ogtk.vi when I run ArrayToEnum__A2E.vi.

          

Would you supply the vi to me?

0 Kudos
Message 6 of 11
(4,926 Views)

Thanks Ton, I have download the tools form LAVA. But I have not find the Get Defalut Data form TD_ogtk.vi when I run ArrayToEnum__A2E.vi.

          

Would you supply the vi to me?

0 Kudos
Message 7 of 11
(4,923 Views)

Its attached here....Cheers Smiley Happy

Place the folders in: C:\Program Files\National Instruments\LabVIEW 8.5\user.lib\_OpenG.lib

Message Edited by JK1 on 05-15-2009 01:14 AM
Message Edited by JK1 on 05-15-2009 01:15 AM
With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
Download All
Message 8 of 11
(4,897 Views)

These VIs are part of the OpenG toolkit a valuable Open Source set of VIs.

You can install them with the (free) VIPM.

 

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!
0 Kudos
Message 9 of 11
(4,881 Views)

 

Old-Timers Trick:

 

Start with a ring control and write all of your strings to it. Then right-click and choose replace and naviagte to a enum. The enum will inherit all f the strings from the ring control.

 

Have fun!

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 10 of 11
(4,857 Views)