LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Handling User Events in sub panel vis and main vis with same Event reference Number.

Hi All, Iam trying to work to handle events in both subpanel vi and main vi.

 

I have a main program, and 2 sub vi. I will load the sub VI in 2 sub panels in main vi. Each sub pael vi has controls on it.

 

I have created 2 User events for 2 sub panels vi. One user event consits of a Cluster with 2 Booleans (x & Y) and Other User Event consists of cluster of 2 unsigned 8 Numbers (a & b). These are created and registered in the main Vi and event register refnum is passed to the subpanel vi from the main panel vi.

 

I have Event structure in main panel and sub panel vis.

In one sub panel vi, When the value of one boolean(i.e. X) in the clusters changes, the Events structure in sub panel vi should perform some operation in sub panel vi only. When the value of other boolean (i.e. Y) changes it should perform some operation in main vi. I will try to Generate user event with the x value and Y value changed based on the control clicks in the sub panel vi.

 

The OTher panel vi should behave in the smae way when the a & b value changes.

 

The "Generate User Event" is working fine some times and sometimes there in no event triggered in the sub panel vi or main vi.

 

 

Please let me know what is the problem Ramesh.

0 Kudos
Message 1 of 2
(2,632 Views)

There is a lot of talking, but not much understanding.  It'd be better if you posted some example VI's of what you are trying to do so that the words will make sense.

 

One thing I can tell you is that you don't want to have two event structures handle the same event reference number.  You want to have two event registrations with each one going to its own event structure.

0 Kudos
Message 2 of 2
(2,624 Views)