Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Reliable image grabbing?

I grab images in a while loop and a few times in a minute i get an weird image that is not sync-ed well. What's the best way to grab an image the most reliable way. Don't need a lot performance...
or how do i solve the sync problem. I use a 1409 and labview 6.2
0 Kudos
Message 1 of 3
(3,453 Views)
Janus,
The best way to do this envolves initializing the board before your loop, doing an acquire inside the loop and following up by closing your session. There are good example that ship with LabVIEW in the following directory:
...Program Files/National Instruments/LabVIEW 6/examples/IMAQ/IMAQ High Level
You may want to look at IMAQ HL Grab in Vision Display.
I hope this helps!
Chris D
NI Applications Engineer
0 Kudos
Message 2 of 3
(3,453 Views)
Janus. I'd also like to suggest the use of a skip table that specifies how many frames to skip before acquiring an image. This way your Vision hardware stays in sync with the camera, but just skips a specified number of v-sync signals before actually acquiring image data. This way you can avoid Windows based Timers or loop delays, and still acquire at a lower frame rate.

There is an example that ships with LabVIEW called HL Sequence in IMAQ Vision display.vi, and is located in the IMAQ High Level.llb. It can be modified with a loop to run continuously.
0 Kudos
Message 3 of 3
(3,453 Views)