User`s guide

Configuring Image Acquisitio n Object Properties
vid.Previewing
ans =
off
Getting Information About Object Properties
To get information about a p articular property, you can view the reference
page for the property in Chapter 13, “Properties By Category” and Chapter
14, “Properties Alphabetical List”. You can also get information about a
particular property at the command line by using the
propinfo or im aqhelp
functions.
The
propinfo function returns a structure that contains information about
the property such as its data type, default value, and a list of all possible
values, if the property supports such a list. This example uses
propinfo to
get information about the
LoggingMode property.
propinfo(vid,'LoggingMode')
ans =
Type: 'string'
Constraint: 'enum'
ConstraintValue: { 'me mory' 'disk' 'disk&memory '}
DefaultValue: 'mem ory'
ReadOnly: 'whileR unni ng'
DeviceSpecific: 0
The imaqhelp function re turns reference information about the property with
a complete description. This example use s
imaqhelp to get information about
the
LoggingMode property.
imaqhelp(vid,'LoggingMode')
Setting the Value of an Object Proper ty
To set the value of a particular property of an image acquisition o bject, use
the
set function, specifying the name of the property as an argument. You
canalsoassignthevaluetothepropertyasyouwouldafieldinaMATLAB
structure.
4-21