LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sequencial execution of two VIs in LabView

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 

 

0 Kudos
Message 1 of 4
(2,747 Views)

This thread will give you some info. Beyond that we will need more details to give you a useful answer.

 

Mike... 


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 4
(2,731 Views)

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.

 

 

_______________________________________
Systems Test Engineer
Certified LabVIEW Architect (CLA)
0 Kudos
Message 3 of 4
(2,728 Views)

The simplest would be to just do something like in the image below. It would help if you could provide some more details though.

 

 

Message Edited by Dennis Knutson on 08-14-2008 09:04 PM
0 Kudos
Message 4 of 4
(2,726 Views)