Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

frame timeout in vi, not in MAX

I'm using a PCI 1424 to grab images of a 2k by 2k ccd camera. In MAX it runs at a reasonable speed, given the 7 second integration time, and hasn't noticably timed out. In the interface vi I've written to grab images, save them in the FITS format and calculate the mean and standard deviation the response is much slower and ocassionally times out. I'm displaying the image as an intensity graph as well because the tools for zooming in and rescaling are more user friendly and more familiar to my users.
Can anyone think of anything to increase performance?
There's a noticable increase if the image is zoomed in on, so part of the problem appears to me display or front panal update.
0 Kudos
Message 1 of 3
(3,210 Views)
Take a look at this example. This should increase the speed of the display rate. I don't think that you get all of the display tools. Another option is to use the IMAQ Vision. Vision does have a special display tool that has all the zooming features etc.
0 Kudos
Message 2 of 3
(3,210 Views)
Robert,

If you are getting timeouts, it is my guess this is happening where you are waiting for the next buffer to be extracted or copied. If this is the case, you may consider using a form of status checking to only call the extract when an image buffer is available. I have attached an example of this. Also note, that I use a "Vision IMAQ Copy" to copy the image to a new location before doing processing. This is so the buffer can be replaced into the ring while we do processing on the image in another location. As for speeding up the processing, I would suggest that you narrow down to the smallest ROI so you are not doing processing on unneeded portions of the image.
Best Regards,
Chris D
NI Applications Engineer
0 Kudos
Message 3 of 3
(3,210 Views)