From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass parameter(Instrument addr) in batch model test

Solved!
Go to solution

Hi All,

How to pass parameter to the step type in batch model?

For example: test socket = 2, the 1st UUT use the instrument(Addr=10),the 2nd UUT use the instrument(Addr=11),how to pass the addr=11 to the step type?

0 Kudos
Message 1 of 4
(3,144 Views)
Solution
Accepted by topic author weschen

Hi weschen-

 

When you refer to 'pass parameter to the step type in batch model', are you referring to calling a subseqeuence and passing a parameter with a SequenceCall step in your client Sequence File?

 

Also, are you attempting to pass a different address value to the parameter of your subsequence based on the TestSocket Index?

 

-Jeff

0 Kudos
Message 2 of 4
(3,141 Views)
Solution
Accepted by topic author weschen

thank you for you help.

use a array for instrument addr, pass the array to the step type,and the array index is define by RunState.TestSockets.MyIndex.

0 Kudos
Message 3 of 4
(3,134 Views)

Can You provide us with more detailed information how did you solve this ??

0 Kudos
Message 4 of 4
(2,006 Views)