11-11-2015 11:13 AM
Dear LabVIEW and TestStand community,
let me, please, ask you for an advise.
I have to implement test sequence for 2 DUTs, which will be testing in parallel. All hardware will be separated for them, and I need just to synchronize start and stop of testing.
The question is - what is better to use for this task? Parallel model, or Sequential model, when sequences will run in parallel threads?
Parallel model is OK, but has a bit more complicated control of test sockets, as for me. In Sequential model I can explicitly see, when sequence is started.
But, for Sequential model all my VIs should be reetrant, b/c in other way they'll simply block each other, if I understand correct. With Sequential model I don't have to carry about.
What would be your suggestions or comments, please?
Thanks a lot in advance!
11-11-2015 05:44 PM
If you need to synchronize the start and stop then I'd go with the Batch Model. It's the best for your scenario.
Anytime you have synchronization and multiple threads then Batch is the best choice.
Consider the image attached.
11-12-2015 01:22 AM
Thank you very much for the answer!
But could you, please, also tell, whether it's possible to do the following:
- start one thread, to determine how many DUTs are present in the system;
- based on the result launch one or two threads?
Should I use for this Execution Entry points? And how to launch two threads with different parameters - let's say, I want to pass into one threads number of lines to test 0-31; and to the second thread lines 32-64? Could you, please, explain, or give an example of such implementation?
Thanks in advance!
11-12-2015 08:41 AM
Let me know if this helps.
11-13-2015 06:13 AM
Thanks a lot for an example!
11-20-2015 03:38 AM
Dear jigg,
thanks once more for an example, it inspired me. I will do the following: start two threads, and if one will not contain DUT, it will just simply fail.