User`s guide
Bringing Image Data into the MATL AB Workspace
the frames returned by peekdata at each call. (peekdata returns frames
without removing them from the memory buffer.)
Noteinthefigurethat,atT
3
, only two frames have becom e available since
the last call to
peekdata.Inthiscase,p eekdata returns only the two frames,
with a warning that it returned less data than was requested.
Frames Returned by peekdata
The following example illustrates how to use pe ekdata:
1 Create an im age acquisition object — Th i s example creates a video
input object for a Data Translation image acquisition device. To run this
example on your system, use the
imaqhwinfo function to get the object
constructor for your image acquisition device and substitute that syntax
for the following code.
vid = videoinput('dt' ,1);
2 Configure properties — For this example, configure a manual trig ge r.
You must use the
triggerconfig function to specify the trigger type.
6-7