NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Station global variable per UUT using a batch process model

Solved!
Go to solution

Hi,

I have 4 UUTs which are tested using individual COM ports. I am using 4 Station Global variables to store the 4 Com ports - COM port assignments are in no particular order and vary depending on test station PC.

 

Example:

S1= Com12

S2= Com14

S3= Com10

S4= Com9

 

Using a batch process model I want to test all UUTs in parallel - I am trying to figure out what is the best/easiest way to pass S1 for UUT1, S2 for UUT2 and so on!

Any help appreciated.

Thanks & Regards,

Shane.

 

0 Kudos
Message 1 of 2
(2,740 Views)
Solution
Accepted by topic author ShaneDonn
The easiest way is to use the Runstate.TestSockets.MyIndex property to index an array.  Each batch socket will get an index (0 to n-1, where n is the number of sockets) when it is created.  Then you can create an array (of strings? I can't tell if you just have strings or need a container) and use the property to index the array.
Josh W.
Certified TestStand Architect
Formerly blue
0 Kudos
Message 2 of 2
(2,736 Views)