User`s guide

getdata
17-19
information about the corresponding frame in data. The metadata structure contains
these fields:
Metadata Field Description
'AbsTime' Absolute time the frame was acquired, expressed as a time
vector
'FrameNumber' Number identifying the nth frame since the start command
was issued
'RelativeFrame' Number identifying the nth frame relative to the start of a
trigger
'TriggerIndex' Number of the trigger in which this frame was acquired
In addition to the fields in the above table, some adaptors may choose to add other
adaptor-specific metadata as well.
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.
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
Construct a video input object associated with a Matrox device at ID 1.
obj = videoinput('matrox', 1);
Initiate an acquisition and access the logged data.
start(obj);
data = getdata(obj);
Display each image frame acquired.
imaqmontage(data);
Remove the video input object from memory.