NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Starting two VIs on the same time in TetsStand

Solved!
Go to solution

Hi,

 

I want to start two LabView VI on the same time. First I tought i can use the parallel or batch model but this isnt working. Are there any possibilties to start two VI on the same time?

 

Kind Regards

Christian

0 Kudos
Message 1 of 5
(1,360 Views)
Solution
Accepted by topic author christian1996

Hi Christian,

 

Do you need both of your VIs to start at the same time or are you happy for them to be running at the same time?  If you are happy for them to be running at the same time and that one will start before the other then you could create a VI like the one shown below, that launches the two VIs you want running at the same time, and call that VI from TestStand.  Putting the calls to Run VI in the same VI will get your VI starts pretty close together but not at the same time.

 

Run Two VIs.png

 

If you are not bothered how far apart the VIs are started, then I would advocate having a VI like the example below, instead of launching both VIs in a single VI have a VI that launches one VI and call it twice from TestStand.  This gives you a more useable VI.

 

Run One VI.png

 

Hope this helps

 

Steve

0 Kudos
Message 2 of 5
(1,330 Views)
Solution
Accepted by topic author christian1996

Hi Christian,

 

you can put each vi in separate sequence and call those sequence one after another in a new thread as described here 

When to Run a Sequence in a New Execution versus in a New Thread - NI.

Your VIs will run simultaneously.

 

Roman

0 Kudos
Message 3 of 5
(1,324 Views)

Thank You for your help. I decided for Roman solution but the answer from Steve was also Helpful now it works perfect.

 

Christian

0 Kudos
Message 4 of 5
(1,306 Views)

HI, 

 

TS ships with "Run VI Asynchronously" step type that does exactly what Roman called out but without the developer having to create a sequence etc. 

 

Regards, 

Anand Jain

NI

0 Kudos
Message 5 of 5
(1,288 Views)