You can also use dynamic events. Just pass the dynamic event registration refnum into a subvi and use the generate event in the subvi to trigger an event in the top level vi. The corresponding event case in the top level vi could be used to update values (shift register or whatever). Most or the responses to this thread have been about using queues, but I wanted to mention the possibility of using dynamic events also... They both will do the job nicely.
Eric -----Original Message----- From: Paul F. Sullivan [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 22, 2004 1:29 PM To: Xavier Michalet Cc: [EMAIL PROTECTED]; George Gatling (Contractor) Subject: Re: Generic UI question Xavier, You wrote: >...I have tried to update my LV Vi design style to keep up with the new >functionalities like User Event Handling... >I have a main Vi (call it TopLevel.vi) that dynamically launches subVis >on user demand (call them subViN.vi, N=1,2, etc). The user plays with >the subVi, and one action requires the main Vi to be updated somehow ... >I thought initially that the dynamic event registration feature would >help me do this in a more elegant way, but I can't figure out how, so >maybe I am just wrong. What I would need is some sort of event >registration in the TopLevel.vi that would be fired in the subVis. But >since the subVis are not started until possibly very late in the >execution process, this cannot be done at launch time in the >TopLevel.vi... Can't you create and register a user event (or multiple user events) in the main VI and pass the appropriate user event reference to each subVI as it is launched? Each subVI then generates the appropriate user event at the appropriate time and the event structure in the main VI responds. -- EnWirementally, Paul F. Sullivan ---------------------------------------------------- SULLutions (781)769-6869 "when a single discipline is not enough" visit http://www.SULLutions.com ----------------------------------------------------
