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: 

TestStand Foreach tutorial or example

Solved!
Go to solution

I'm very new to TestStand, can someone point me to a ForEach example or totorial? I'm iteratiing through a Local array of strings and i'm not sure how to access each of the elements.

 

regards,

terrell

 

0 Kudos
Message 1 of 3
(11,138 Views)
Solution
Accepted by tteague

I recently used the For Each loop in an application for a self-test where the user can select to run a certain subset of tests based on a selection.  It does take a bit of work to get used to the syntax.

 

See attached sequence, saved in TestStand 4.0.

 

Locals.TestList is an array of 3 elements: test 1, test 2, test 3.

Locals.test is the current item being processed.

 

Thanks,

 

Paul Holzrichter

Message 2 of 3
(11,133 Views)
Perfect, thank you.
0 Kudos
Message 3 of 3
(11,129 Views)