Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

imaq vision event windDraw

It seems with the event structure, it would be handy to be able to "fire" an event from the WindDraw window when a user clicks on it.  It also seems that polling the WindLastEvent function is a little "old fashioned".  Can I trigger an event from the WindDraw window?
0 Kudos
Message 1 of 4
(3,584 Views)

Hi,

I am not sure whether we can achieve the event trigger in a seperate window. But event structure gives out some events in the image diaplay controls like mouse up & down. See whether it helps you.

Thanks,

logic

0 Kudos
Message 2 of 4
(3,575 Views)
Hello,

The WindDraw API it is used in older versions of our IMAQ drivers and with that API it is necessary to use the older functions associated with that API.  That means the WindLastEvent function is the way to get access to user events if you want to trigger from an event.  Another option, if you are coding in C or VB, would be to get the window handle and make calls to the Windows API to get the user events.  Also, if you are using LabVIEW 7 or higher with NI-IMAQ 3 or higher you might consider using the new IMAQ Image Display control.  It works with the event structure in LabVIEW and is able to respond to user events such as click.  Hope this helps.
S. Arves S.
National Instruments
Applications Engineer
0 Kudos
Message 3 of 4
(3,568 Views)

Thanks! 

I was thinking that I could go with that option but I liked the "look" of the WindDraw.  Alternatively, I think I can build a popup using the image display control with the ROI Tools -> hidden, use windTools Palette.

It is probably the better choice.  Sighhhhh!

 

Dave 🙂  er... I mean TigerMan

0 Kudos
Message 4 of 4
(3,563 Views)