Hi Craig,
You should be able to register for the events that you want to monitor
in your top level vi and then pass the Event Registration Refnum to your
subvi. In your subvi, wire up the incoming Event Registration Refnum to
the dynamic events terminal on your event structure and you should be in
business. 

I'll send you a quick example that I just put together via private
e-mail. 

There are a few shipping examples that helped me figure this stuff out.
Check out ~\LabVIEW 7.0\examples\general\dynamicevents.llb\ in
particular the "Dynamically Monitor VI's.vi" should help.

-----------------------
Tim Fallon
Senior Systems Engineer
Image Therm Engineering


>Subject: Event structures in sub VIs
>From: "Craig Graham" <[EMAIL PROTECTED]>
>Date: Thu, 4 Mar 2004 13:13:49 -0000
>
>I've done a bit of code that lets the user drag a frameless VI about 
>the screen by clicking+dragging on the inert parts of the panel. It's a

>fairly big and self contained while loop that would be better off in a 
>sub-VI, but I can't figure out how to register the event structure in 
>the sub-VI for events from the calling VI. I've tried a few things that

>look sensible but the events never get fired.
>
>Has anyone managed this?
>
>
>--
>Dr. Craig Graham, Software Engineer
>Advanced Analysis and Integration Limited, UK. http://www.aail.co.uk/


Reply via email to