17.12.2018 Views

Image Acquisitionand Proces

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Image</strong> Acquisition 51<br />

use a property node 1 (Figure 3.6). The property node example in Figure 3.8 returns<br />

the image type of the session, which is determined by either camera initialization,<br />

or is set dynamically. This image type value can then be passed to IMAQ Create,<br />

reserving the correct number of bytes per pixel for the acquired image data.<br />

FIGURE 3.7 Simple snap example.<br />

3.2.1 SNAP<br />

Acquiring an image using IMAQ Snap is the simplest type of image acquisition<br />

(Figure 3.7). Used for slow acquisition rates, IMAQ Snap requires just three steps<br />

to execute: initialize, acquire and close. To initialize the IMAQ session, the interface<br />

name (or the camera name in the case of an FireWire interface) is input to IMAQ Init,<br />

which opens the camera by loading and parsing its icd Þle from disk (as determined<br />

by the Measurement and Automation Explorer), and opening an IMAQ session<br />

(Figure 3.8).<br />

FIGURE 3.8 Simple snap example — wiring diagram.<br />

The IMAQ session refnum is then fed into a property node, which is set to<br />

determine the image type of the camera interface. The dataspace for the image is<br />

1<br />

The FireWire image acquisition VIs do not use a property node for setting acquisition properties. Use<br />

IMAQ1394 Attribute to set properties, and IMAQ1394 Attribute Inquiry to read properties.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!