Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

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.

    Note:   To get a list of options you can use on a function, press the Tab key after entering a function on the MATLAB® command line. The list expands, and you can scroll to choose a property or value. For information about using this advanced tab completion feature, see Using Tab Completion for Functions.

Introduced before R2006a

Was this topic helpful?