User`s guide
17 Functions — Alphabetical List
17-50
Function Purpose
imaqhwinfo Returns information about the object.
imaqhwinfo(obj)
displays information about the VideoDevice System object, obj.
Examples
Construct a VideoDevice System object associated with the Winvideo adaptor with device
ID of 1.
vidobj = imaq.VideoDevice('winvideo', 1);
Set an object-level property, such as ReturnedColorSpace. The syntax for an object-
level property uses the object name, property name, and property value.
vidobj.ReturnedColorSpace = 'grayscale';
Set a device-specific property, such as Brightness. The syntax for a device-specific
property uses the DeviceProperties object, the property name, and property value.
vidobj.DeviceProperties.Brightness = 150;
Preview the image.
preview(vidobj)
Acquire a single frame.
frame = step(vidobj);
Display the acquired frame.
imshow(frame)
Release the hardware resource.
release(vidobj);
Clear the VideoDevice System object.
clear vidobj;