ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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,821 Views)
Solution
Accepted by 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,818 Views)
Solution
Accepted by 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,811 Views)

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

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