getdata
Acquire image frames to MATLAB workspace
Syntax
Description
returns data
= getdata(obj
)data
, which contains the video frame data specified in
the FramesPerTrigger
property of the video input object
obj
.
Note
getdata
is a blocking function that returns execution
control to the MATLAB® workspace after the requested number of frames becomes
available within the time period specified by the object's
Timeout
property. The object's
FramesAvailable
property is automatically reduced by
the number of frames returned by getdata
. If the
requested number of frames is greater than the frames to be acquired,
getdata
returns an error.
getdata
removes the data from the memory buffer.
peekdata
does not.
It is possible to issue a Ctrl+C while
getdata
is blocking. This does not stop the
acquisition, but does return control to MATLAB.
Examples
Input Arguments
Output Arguments
Version History
Introduced before R2006a