User`s guide

Acquire Images from GigE Vision Cameras
11-9
Acquire Images from GigE Vision Cameras
In this section...
“Create the gigecam Object” on page 11-9
“Acquire One Image Frame from a GigE Camera” on page 11-12
Create the gigecam Object
To acquire images from a GigE Vision Compliant camera, you first use the gigecam
function to create a GigE object. You can use it in one of three ways:
Connect to the first or only camera, using no input arguments
Specify a camera by IP address, using the address (specified as a string) as an input
argument
Specify a camera by the list order, using an index number as the input argument
Specify a camera by serial number, using the number (as a string) as an input
argument
You can also optionally set a property when you create the object. For more information,
see “Set Properties for GigE Acquisition” on page 11-4.
Note that you cannot create more than one object connected to the same device, and
trying to do that generates an error.
After you create the object, you can preview and acquire images.
Note: The GigE Vision support requires that you download and install the necessary
files via the Support Package Installer. The GigE Vision Hardware support package
installs the files for both the gige adaptor for the videoinput object and the gigecam
object. For more information, see “Installing the Support Packages for Image Acquisition
Toolbox Adaptors”.
Create a gigecam Object Using No Arguments
Use the gigecamlist function to ensure that MATLAB is discovering your camera.
gigecamlist