NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

MouseMove Event in LV blocks TestStand Events?

Hey there!

I'm working with a standard LV OI for TestStand 3.1, and I've noticed that when I add a MouseMove event to the event handler, I can no longer get any of the context sensitive menus for the list bar, and many of the activeX UI objects have either erratic behavior, or no behavior.

Is this because the MouseMove Events are coming in too quickly? I can work around this using dynamic event register/un-register, since all I care about is a very short burst of movement, but I was curious if anyone had ever noted this behavior before.

Is there any other workaround possible?

Curious,

Elaine R.
www.bloomy.com
Cheers,
Elaine R.
www.bloomy.com
0 Kudos
Message 1 of 2
(2,768 Views)
Hello Elaine R.,

It is possible that the mouse move events inside the operator interface, as with any LabVIEW application, could cause unexpected behavior since the mouse move event happens so often. Unexpected behavior is usually related to how long the code inside the mouse move event needs to execute. With regards to possible workarounds, I believe that dynamically registering and un-registering events might be the best possible option. Another option to consider may be to process the mouse move event inside the event structure, and then execute the code associated with that event inside of a separate while loop. This could give better performance to your application. I hope that this information is helpful for you.

Regards,
Kevin Leonard

Applications Engineer
National Instruments
www.ni.com/support
0 Kudos
Message 2 of 2
(2,768 Views)