LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Editing items of an enum through VI Server

Solved!
Go to solution
I have a strictly typed enum control. I want to call its edit items dialog through another VI (i.e. through VI server). (I want to programmatically generate right click on the enum and choose edit items and get at the resulting dialog box). Is it possible?
0 Kudos
Message 1 of 4
(2,840 Views)

The way you are describing it, no. You can however programatically modify the contrents of a enum as long as it is not in a VI that is running or is reserved for execution.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 4
(2,836 Views)
Thanks ! for the reply. How can it be done programmatically? (By reading the control values and then writing the new ones back, through VI server?).
0 Kudos
Message 3 of 4
(2,823 Views)
Solution
Accepted by Rashid-Malik
You have to use the property node Strings[].

Try this. Create an enum control. Create a Strings[] property. Now, select
it and create a subvi from it. You now have a sub vi that changes the
strings of the enum. It will fail though. An enum's strings can't be changed
while it's in use. So, you have to get the VI reference some other way. For
instance, create another VI. Get it's reference, and then a reference to
it's front panel. Get all controls, and search by name for the enum. Then,
cast the reference to an enum, and you should be able to change it's
strings.

All in all, it is a lot easier to use a ring. Why do you want to do this?

Regards,

Wiebe.


Message 4 of 4
(2,803 Views)