LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to easily control multiple controls in labview

How can I easily control multiple controls with a single write to in Labview?

For instance, I need to update 50 different boolean indicators. When I update them one at a time I use a cntrl refrence in my event structure, but outside of an event structure how can I easily cycle through them and update without making 50 local variables if I need to do them all at once?
0 Kudos
Message 1 of 4
(3,177 Views)
Why don't you use an array of boolean indicators?
Software developer
www.mcm-electronics.com





PORTUGAL
0 Kudos
Message 2 of 4
(3,170 Views)

Have a look at the example attached here, which can also be applied to this. You should usually avoid updating the value of a control from more than one place, though (unless it's something like initialization, where you can guarantee not having race conditions).

Other alternatives: using an array of booleans or using the picture control to create the image.


___________________
Try to take over the world!
0 Kudos
Message 3 of 4
(3,169 Views)
The way i use these booleans in my UI, I had to make them separate so I could arrange them in a user friendly way. And yes this is just for initialization so they won't be getting updated in two places at once.
0 Kudos
Message 4 of 4
(3,164 Views)