NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use notification step for parallel testing

Hello All,

 

Can anyone tell me how to use notification step in test stand with multiple main sequence.

 

for example, i have Test_1.seq and Test_2.seq and expect to start run these two sequence in parallel. but my requirement is Test_1.seq has to complete the execution first and send notification to Test_2.seq, where as Test_2.seq has to wait until it gets notification from Test_1.seq. If Test_2.seq gets notification from Test_1.seq  it can proceed for rest of the testing.

 

Any idea how this can be achieved in teststand? 

 

thanks,

kalpana 

 

 

 

0 Kudos
Message 1 of 4
(2,628 Views)

In your Test_1 sequence, you create a notification. Then, you call Test_2 in a separate thread. In Test_2, you put a Notification wait using the name you used to create the notification. When ready in Test_1, you send a notification (Set or Pulse) to all threads or to just one thread. You can pass a value. Then you wait in Test_1 that Test_2 finishes its task.

 

Notice that you do not need to have 2 separate sequence files. You can have more than 1 sequence in the same sequence file.

 

Attached in an example of what I describe above; using only one sequence file, MainSequence is Test_1. 

 

P.S.: You might want to look into the Batch or Parallel process models. A lot of the heavy lifting has been done when it comes to parallel testing.

Marc Dubois
0 Kudos
Message 2 of 4
(2,607 Views)

Hi,

Thanks for your reply. it is working now. also i would like to know is there any option to know which slots or sockets currently running in test stand.

0 Kudos
Message 3 of 4
(2,592 Views)

If you use the parallel or batch process model, you have access to "RunState.TestSockets.MyIndex" that gives you an index starting at 0 for each of the parallel tests.

Marc Dubois
0 Kudos
Message 4 of 4
(2,589 Views)