05-14-2009 08:39 PM
I have many items need to add to enum. so add it one by one is wasteing time .
Do you have another way ?
05-14-2009 08:47 PM
I can not to change the strings[].
such as this.
05-14-2009 10:05 PM - edited 05-14-2009 10:06 PM
05-14-2009 10:12 PM - edited 05-14-2009 10:14 PM
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.![]()
http://forums.ni.com/ni/board/message?board.id=170&message.id=131315 check this link for more info
05-14-2009 11:21 PM
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
05-14-2009 11:48 PM
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?
05-14-2009 11:54 PM
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?
05-15-2009 01:05 AM - edited 05-15-2009 01:15 AM
Its attached here....Cheers ![]()
Place the folders in: C:\Program Files\National Instruments\LabVIEW 8.5\user.lib\_OpenG.lib
05-15-2009 02:17 AM
These VIs are part of the OpenG toolkit a valuable Open Source set of VIs.
You can install them with the (free) VIPM.
Ton
05-15-2009 07:51 AM
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