08-14-2008 07:11 PM
Hi,
I am sure other people have encountered the similar problem, but I can not seem to find relevant posts
on the NI forum.
I have two VIs. I like to execute one VI first (which is a while loop), and a second later execute the 2nd VI.
Since the first VI runs "forever", the 2nd VI would never get executed if I put the two VIs in a sequence
in a main VI.
What is the best way to do this? I apologize for the newbie question.
Best regards,
Jianglai
08-14-2008 09:36 PM
This thread will give you some info. Beyond that we will need more details to give you a useful answer.
Mike...
08-14-2008 09:53 PM
You can use queues or notifiers to do this. Here's an example using notifiers that runs a second vi once after the first vi has run in the loop.
See the Master/slave or producer/consumer design patterns (they are included in the LabVIEW templates) if you need to run the second vi more than once.
08-14-2008 10:03 PM - edited 08-14-2008 10:04 PM
The simplest would be to just do something like in the image below. It would help if you could provide some more details though.