NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

batch model loop

Solved!
Go to solution

How to set Batch model TestUUT to loop once? Need to use TestUUT and not single pass as require the UUT dialog box.

In process model if "Goto Next Batch" step is changed to branch to "---- End of Batch Loop ----", threads do not stop.

Please advice.

0 Kudos
Message 1 of 7
(4,337 Views)

Made the following updates but teststand hangs on the step "Wait For TestSockets" in the batch model.

1. Set ContinueTesting to False in modelsupport2.dll - this is in Stop button callback

2. In batch process model did the following

2a. After PostBatch Callback step added Tell TestSockets to Stop

2b. Goto Next Batch points to End of Batch Loop step 

 

When the execution reaches "Wait For TestSockets" after running the first loop, it stays on this step forever.

Is there any other setting needed?

0 Kudos
Message 2 of 7
(4,328 Views)

Hello sonotk,

 

Is the dialog box the only feature you need in addition to what Single Pass offers?

 

Jeff L.

0 Kudos
Message 3 of 7
(4,303 Views)

Jeff,

 

All the feature provided by TestUUTs are needed. Dialog box simply customized.

Only feature not needed in TestUUTs is to loop over for the second iteration. So the dialog box Next button is replaced to show Stop and ContinueTesting set to false in modelsupport.

What is not working is the process model step where it waits forever. 

 

Thanks!

0 Kudos
Message 4 of 7
(4,293 Views)
Solution
Accepted by topic author sonotk

The simplest thing for you to do is in the PreBatch callback/sequence check Parameters.ModelData.BatchLoopIndex if it's > 0 or > 1 (forget if it's 1 or 0 based) then set Parameters.ContinueTesting = false rather than running the steps that are normally run in that sequence. That's it really. That should do it.

 

Hope this helps,

-Doug

0 Kudos
Message 5 of 7
(4,279 Views)

I believe that Doug is correct:

 

2012-05-01_093713.jpg

 

Regards,

 

Jeff L.

0 Kudos
Message 6 of 7
(4,277 Views)

Thanks that worked.

0 Kudos
Message 7 of 7
(4,238 Views)