ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

how works the grab function in MAX?

The grab function in MAX shows the frames per sec acquired and displayed. how can I reproduce it in my application? is it a grab or a ring acquisition? how to get two different frame rates?
0 Kudos
Message 1 of 4
(3,521 Views)
Hi there,

You can use HL Grab to reproduce it in your application. This is an example for LabVIEW that will reproduce the application used in MAX. Check the link below:

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DB9156A4E034080020E74861&p_node=DZ52490&p_source=External

HL Grab in IMAQVision display acquires images continously and displays them in an image window using the high level acquisition VIs. A grab is appropriate for high-speed applications where you need processing performed on only one image at a time.

A grab acquisition uses a single acquisition buffer to store acquired images, while a ring can use multiple buffers in a circular acquisition scheme. The grab requires the acquisition buffer to be copied for subsequent pr
ocessing, in order to allow the acquisition to continue while the processing is being done. Since a ring has multiple buffers, the processing can be done in place in the acquisition buffer, eliminating the need for copying.

A grab acquisition can result in "split" frames, where a single output image contains information from adjacent frames. This is due to the amount of time required to copy the acquisition buffer into the processing buffer. If the system is slow or busy, the buffer may be overwritten by the acquisition before the copying operation is completed. The result will be a horizontal discontinuity in the image between old and new data. This effect is not noticeable on stationary or nearly-stationary images, but can be quite pronounced for fast-moving scenes. For this reason, a ring acquisition is recommended for dynamic scenes and situations where processing capabilities of the computing system are limited.

The frame rate is set in MAX in the properties of the imaq car
d. There is no function to change this in LabVIEW. You can always use an external trigger to set your frame rate.
0 Kudos
Message 2 of 4
(3,521 Views)
Hi,
I think you misunderstood my question. I know the grab and ring functions and I use them already. My question was about the frame rate indicator seen in MAX. MAX shows the frame rate acquired and displayed. I would like to display the same information in my VI. the MAX also shows lost frames indication if it is the case. I also would like this information in my VI when doing a grab...
0 Kudos
Message 3 of 4
(3,521 Views)
To display lost frames and your frames/s, please check out the link below:

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DC0E56A4E034080020E74861&p_node=DZ52490&p_source=External

Regards.

Joris
0 Kudos
Message 4 of 4
(3,520 Views)