NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Assigning VI result to certain teststand socket

Solved!
Go to solution

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..

 

Capture.PNGIs there any way in achieving this?

 

Best regards,

Crystal

0 Kudos
Message 1 of 3
(2,328 Views)
Solution
Accepted by topic author 123xj

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.

Capture1.PNG

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:

Capture2.PNG

Each Socket runs the next step and publishes results based off of the socket index:
Capture3.PNG

 

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

https://www.linkedin.com/in/trentweaver
0 Kudos
Message 2 of 3
(2,296 Views)

Hi WireWeaver,

 

This method works. Thank you.

0 Kudos
Message 3 of 3
(2,271 Views)