Discussion:
sequencial execution of two VIs in LabView
(too old to reply)
jianglai
2008-08-15 00:40:18 UTC
Permalink
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  
mikeporter
2008-08-15 02:40:18 UTC
Permalink
This thread will give you some info. Beyond that we will need more details to give you a useful answer. Mike... 
Karissa
2008-08-15 03:10:07 UTC
Permalink
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.   


Notification from loop.vi:
http://forums.ni.com/ni/attachments/ni/170/349504/1/Notification from loop.vi
Dennis Knutson
2008-08-15 03:10:07 UTC
Permalink
The simplest would be to just do something like in the image below. It would help if you could provide some more details though.&nbsp;<img src="Loading Image..." border="0" width="289" height="102">&nbsp; Message Edited by Dennis Knutson on 08-14-2008 09:04 PM


Delay Second VI.PNG:
http://forums.ni.com/ni/attachments/ni/170/349505/1/Delay Second VI.PNG
Loading...