03-30-2009 03:22 PM
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
03-31-2009 12:31 AM
03-31-2009 08:21 AM - edited 03-31-2009 08:23 AM
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...
03-31-2009 08:32 AM
I'd like to see a stripped down demo of this as well.
Ben
03-31-2009 08:39 AM - edited 03-31-2009 08:39 AM
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.
04-01-2009 06:23 PM
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