02-14-2018 12:29 AM
Hi all,
I have a VI getting user response for visual inspection on all 4 LEDs.
Since the results for all 4 sockets are obtained from only one VI, i would like to assign each of the result to be at their own socket. For example, the output result "Socket 0" is belongs to socket 0, output result "Socket 1" is belongs to socket 1 and so on..
Is there any way in achieving this?
Best regards,
Crystal
Solved! Go to Solution.
02-16-2018 09:00 AM
It's possible to do this using a combination of Batch Synchronization steps and some kind of shared variable. I've attached a simple proof of concept.
Only one socket will actually run the code inside of the Batch section, which retrieves values for all sockets and stores them in a local variable that has the shared flag set:
Each Socket runs the next step and publishes results based off of the socket index:
This probably isn't the only way (or the best way) to do this. For Example: TestStand Semiconductor Module has similar functionality built into its custom step types, effectively doing the same as above, but abstracting it away from the user because it's done in pre-step and post-step substeps of the step type.
Hope this helps!
Trent
02-20-2018 03:01 AM
Hi WireWeaver,
This method works. Thank you.