NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass parameters in the parallel process model

Hi,
 
I'm looking for a possibility to pass parameters to each test socket called in the parallel test model. We want to test 12 devices of the same type at once using Teststand 3.1. To communicate with our devices we use a can bus and we need to send/read data from each of the 12 devices that are connected to this bus. So we need to pass a seperate node id as a parameter to each test socket.
 
My idea is to use an array[0..11] in FileGlobals where the different node ids are saved. Each id is reserved for one of the 12 test chambers. When I start the test procedure, test socket 1 should get the first node id, test socket 2 the second node id, ...
 
Does anybody here have an idea how I can pass parameters dynamical to each test socket in the parallel model?
 
Thanks,
Thomas
0 Kudos
Message 1 of 2
(2,875 Views)
If you save the nodeIDs as a FileGlobal array, you can use the RunState.TestSockets.MyIndex to determine which Socket is being tested.  You can then use this index to access the nodeIDs array to get the proper index.
 
Allen P.
NI
0 Kudos
Message 2 of 2
(2,860 Views)