LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic mousedown event not triggered when value change is also registered

I am using LabVIEW 8.5 and dynamic event registration to register mouse down and value change events for several controls.  The problem I am having is for controls that have both a mouse down and value change event registered.  In this situation, the mouse down event is never triggered.  Controls that have only the mouse down event registered are triggering the event correctly.  Has anyone else seen this problem?  If so, how did you fix it?

 

Thanks,

Cherie

0 Kudos
Message 1 of 6
(3,243 Views)
Post an isolated version of your code so we can visualize the issue better.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 6
(3,226 Views)

Hey Cherie,

 

I made a VI that used both Mouse Down and Value Change for a button, and it worked just fine. I also tried Mouse Down? and still had no problems. The events are queued (as you can see in the VI) and the Value Change event always takes place 1 iteration after the Mouse Down event.

 

 

 

EDIT: Ignore this, I somehow missed the dynamic part...

Message Edited by Chris_VH on 03-31-2009 08:23 AM
Chris Van Horn
Applications Engineer
Download All
0 Kudos
Message 3 of 6
(3,215 Views)

I'd like to see a stripped down demo of this as well.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 6
(3,210 Views)

OK, sorry for the mix-up, it was a little early, so I just missed the dynamic part.

 

I set this up the exact same way I did it originally, except this time by registering for the events and instead of selecting the events off of the button, I selected them off of the dynamic events.

 

Everything still works fine for me, but let me know if I am doing something different than you.

 

 

Message Edited by Chris_VH on 03-31-2009 08:39 AM
Chris Van Horn
Applications Engineer
Download All
0 Kudos
Message 5 of 6
(3,207 Views)

Unfortunately I am unable to post my code due to an agreement with the customer.  The user interface is very complex, with literally thousands of controls that are nested as clusters within clusters and so on.  I am probably running up against some limits for the number of references that can be in a single dynamic event, or the number of events that can be in a single event reference, or something.  In any case, I found a work around.  I put the mouse down events in a separate event reference from the value change events, bundle the event references together, and pass the cluster to the dynamic event terminal on the event structure.  When I do this, the mouse down events are recognized correctly.

 

Thanks,

Cherie

0 Kudos
Message 6 of 6
(3,183 Views)