User`s guide

17 Functions — Alphabetical List
17-76
acquisition object obj. You can specify multiple property name/property value pairs
in a single statement. obj can be a single image acquisition object or a vector of image
acquisition objects, in which case set configures the property values for all the image
acquisition objects specified.
set(obj,S) configures the properties of obj with the values specified in S, where S is a
structure whose field names are object property names.
set(obj,PN,PV) configures the properties specified in the cell array of strings, PN, to
the corresponding values in the cell array PV, for the image acquisition object obj. PN
must be a vector. If obj is an array of image acquisition objects, PV can be an M-by-N cell
array, where M is equal to the length of the image acquisition object array and N is equal
to the length of PN. In this case, each image acquisition object is updated with a different
set of values for the list of property names contained in PN.
Note Parameter/value string pairs, structures, and parameter/value cell array pairs can
be used in the same call to set.
Examples
These examples illustrate the various ways to use the set function to set the values of
image acquisition object properties.
set(obj, 'FramesPerTrigger', 15, 'LoggingMode', 'disk');
set(obj, {'TimerFcn', 'TimerPeriod'}, {@imaqcallback, 25});
set(obj, 'Name', 'MyObject');
set(obj, 'SelectedSourceName')
Instead of using set to set individual property values, you should use dot notation. So for
example, instead of this:
set(vid, 'FramesPerTrigger', 100);
You should use this syntax:
vid.FramesPerTrigger = 100;
See Also
get | imaqfind | videoinput