knowledge-database (beta)

Current group: comp.lang.labview

Exit from event driven subvi

Exit from event driven subvi  
Mike_SWE
 Re: Exit from event driven subvi  
Paul Cardinale
 Re: Exit from event driven subvi  
vijai
From:Mike_SWE
Subject:Exit from event driven subvi
Date:Thu, 20 Jan 2005 10:40:42 -0600 (CST)
Hey all Labview Gurus!

I have LV 7.1 (Win XP), I run a data aquisiti=
on program which collects data from the serial port. I have a lot of differ=
ent subvis with different analysis functions. To enter these subvis I have =
event structures to identify a button pushed on the control panel. The prob=
lem is thatI cannot solve the exit from the subvi back to the main vi. As i=
t looks now the event structure is inside a while loop running paralell wit=
h the main while loop (doing all the signal analysis etc). This way I have =
to press exit button twice for the VI to shut down (once per while loop I r=
eckon). If I place the event structure inside the main while loop nothing s=
eems to work, and when I place the event structure outside the event struct=
ure without running inside a while loop it does not work either. The main l=
oop is placed inside a stacked sequence structure because the program has t=
o do som sequential initialization before running the main loop.

Was=
this unclear enough for you? ;-)

Cheers,

Mike
From:Paul Cardinale
Subject:Re: Exit from event driven subvi
Date:20 Jan 2005 11:41:37 -0800
Send a reference to the main VI's stop button to the sub-VIs. In the
sub-VI's, make an event case to handle the main stop button being
changed.

Paul Cardinale
From:vijai
Subject:Re: Exit from event driven subvi
Date:Fri, 21 Jan 2005 01:23:07 -0500
ok,for this problem you can add constant of about 100 msec to the timeout
terminal of the event structure.After you have exit from the subvi in the
event structure it returns back to the main vi.that is it checks only for
100 msec for any event in that structure to be occured or not.then it
starts executing the main vi.
   

Copyright © 2006 knowledge-database   -   All rights reserved