LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I design software to test multiple devices simultaneously and indpendently?

What I'm trying to do is set up things so my recurring VIs in the form of a state machine will run continuously. They are not yet incorporated into the VI. I have one CAN device which I multiplex for 10 devices being tested and must run independently. I'm having trouble getting the user interface to work properly where I select the active device and start a burn-in when I put anything in the TimeCheck case to run continuously. How would I go about creating another parallel loop as you suggested and still keep my cluster current. Each burn-in must stop after 48 hours and I have to maintain which devices are active.

0 Kudos
Message 11 of 14
(659 Views)

Hello,

 

You can keep your cluster current by using a local variable to update the indicator. Just be mindful of the potential to create a race condition and things will be ok.

 

-Zach

0 Kudos
Message 12 of 14
(642 Views)

I tried a local variable in another loop, but for some reason it's  not changing when I change the value in the main loops. The VI is CMM_QueuedStateMachine 5.vi in which I tried that.

 

Thank you.

0 Kudos
Message 13 of 14
(637 Views)
I was able to get it to work by removing the internal while loop in the bottom loop. It was never getting a chance to update the local variables.
0 Kudos
Message 14 of 14
(628 Views)