Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69253

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

$
0
0

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.


Viewing all articles
Browse latest Browse all 69253

Trending Articles