01-27-2023 03:33 AM
Hello, i have this VI. The code is fine, what i want to do now is to customize the interface, and i wanted to put elements of the 2 arrays in pairs of 2, is there a way to separate them?
01-27-2023 04:01 AM
is there a way to separate them?
i have this VI. The code is fine, what i want to do now is to customize the interface
Maybe it would help to attach your VI…
01-27-2023 04:32 AM
01-27-2023 07:25 AM
LabVIEW has a way of bundling together things, similar to structs. You want to bundle elements of "DUT SWITCH ON" and "DUT in position? "together, right? Take the DUT SWITCH ON control outside the event structure (or you can make a local variable), and wire both mentioned controls in a for loop (with indexing inputs) where you bundle their elements together. With indexing output of for loop, you make an array out of it and the indicator you create can be styled.
I would advise against using event structure inside the state machine like this, it would probably work OK in your case though.
01-27-2023 02:28 PM - edited 01-27-2023 02:30 PM
One is a control and one is an indicator, so combine a set in a cluster and disable the LED (so it cannot be operated!)
Here's a quick simulation that should give you some ideas. You can remove all the timers of course, they are just for the simulation:
Also note that it is better to use label and legend instead of all these loose strings everywhere. Herding cats!
(And yes, I agree that your architecture is a bit convoluted!)