Products & Services Solutions Academia Support User Community Company

Learn more about Image Acquisition Toolbox   

flushdata - Remove data from memory buffer used to store acquired image frames

Syntax

flushdata(obj)
flushdata(obj,mode)

Description

flushdata(obj) removes all the data from the memory buffer used to store acquired image frames. obj can be a single video input object or an array of video input objects.

flushdata(obj,mode) removes all the data from the memory buffer used to store acquired image frames, where mode can have either of the following values:

Mode

Description

'all'

Removes all the data from the memory buffer and sets the FramesAvailable property to 0 for the video input object obj. This is the default mode when none is specified, flushdata(obj).

'triggers'

Removes data from the memory buffer that was acquired during the oldest trigger executed. TriggerRepeat must be greater than 0 and FramesPerTrigger must not be set to inf.

See Also

getdata | imaqhelp | peekdata | propinfo | videoinput

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS