NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Parallel execution of steps in Teststand within one sequence

I need to do parallel execution of few steps in teststand sequence to save time. For example, Firstly, I am doing the measurements and then at the end saving of data through datalogging. So I wanted to implement some thing like if the measurement of one device is completed and saving of data is getting performed, then in the same time, measurement of second device starts. So there parallel execution of steps is required. I need help that how I cam implement this using  batch synchronization steps.

0 Kudos
Message 1 of 3
(3,225 Views)

Batch and parallel are 2 very different things.  Are you using the batch process model?  If not then the batch synchronization steps do little for you unless you really want to get crazy and create your own batching system.

 

I've attached an example of what I think you are looking for.  Locking the logging sequence will allow only one thread to access it at a time.

 

Let me know if you have any questions or clarifications.

 

Cheers,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Download All
Message 2 of 3
(3,191 Views)

Another thing I should point out about your situation... If you were really serious about this and wanted a better, more "global" solution with an easy way to turn logging off and on then I would recommend using a plugin.  With On-The-Fly you can set the interval to log for 1 step...meaning on-the-fly will get triggered any time a step places something in the result list.  

 

It's a lot more know-how to create a plugin but totally worth the benefits that plugins give you.  Also, they run in a new threads, or at least you can set them to process the results in new threads so your automation can continue.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 3 of 3
(3,189 Views)