NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

parallel and sequential in the same sequence

Solved!
Go to solution

Hello,

 

In order to accelerate test duration, I'd like to perform some of my steps in parallel with others.

Nevertheless, some of previous and following steps must be run sequentially.

 

How to combine these 2 execution behaviour inside the same sequence ? 

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 1 of 4
(3,818 Views)
Solution
Accepted by topic author CyGa

Put the DMM read in a subsequence. Then call it three times, using the New Thread sub-sequence call option. You can use three Sequence Call steps, or loop on a single call.

 

After the call, use a Wait step with the Wait for Thread option for each call. You can use three Wait steps to match your three calls, or if your calls were in a loop, you can use one Wait step in a loop.

 

Message 2 of 4
(3,800 Views)

The previous post is right. You'll need to pass in a different DMM address for each thread call. Also, you could use the Rendezvous synch object instead of the wait, four rendezvous, one at the end of each thread and one after all threads. I don't know if this is better than using the Wait or not.

 

cc

Message 3 of 4
(3,777 Views)
You need the wait steps in order to get the results from the asynchronous threads back into the main sequence.
Message 4 of 4
(3,758 Views)