07-22-2021 02:15 AM
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
Solved! Go to Solution.
07-22-2021 04:39 AM
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.
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.
Hope this helps
Steve
07-22-2021 05:08 AM
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
07-22-2021 07:14 AM
Thank You for your help. I decided for Roman solution but the answer from Steve was also Helpful now it works perfect.
Christian
07-22-2021 11:34 AM
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