LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ External Display and Keyboard Input

I like the IMAQ External Display Window (i.e. WindDraw) and prefer it over putting images (be they static or from a video camera) on a LabView front panel (for a variety of reasons). The one gripe I have is that the WindDraw window doesn't recieve keyboard input through the event structure. It's possible to still catch the input by using Labview's Acquire Input Data vi but there's a problem. Running this VI with even a small amount of logic to determine when a key is released causes the loop to run slow enough that it misses keyboard input (when I'm typing at normal speed). My feeling is the Event Structure is a bit faster and, more over, I don't need any logic in the loop to isolate key releases (since those are their own seperate event).

 

I've looked around the Windows API for some answers but haven't found any. I tried EnableWindow on the Front Panel after it loses focus but the Event Structure won't activate. Is there a trick I can use here to make the Front Panel continue to register input without it being the window in Focus. I'd prefer not to force a window to be top most and have focus be independent of the top most window.

 

Is there a solution in 8.1 that was added that solves this issue that I didn't notice? I can live with the lost keystrokes, but this application just won't be complete without it.

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

Hello,

 

Do you have any sample code of what you are trying to do? Using an event structure is definitely the way to ensure that you don't miss key strokes. Are you currently using the WinDraw functions within an event structure?

 

-Zach

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