Data Acquisition Toolbox
  Function/Property:
    Search    Help Desk 
flushdata    Examples   See Also

Remove data from the data acquisition engine.

Syntax

flushdata(obj)

Description

flushdata(obj) removes data from the data acquisition engine and resets the SamplesAvailable property to zero.

Example

National Instruments

Suppose you create the analog input object ai for a National Instruments board and add hardware channels 0-7 to it.

A one second acquisition is configured where SampleRate is set to 2000 Hz and SamplesPerTrigger is set to 2000 samples. The device object is then started.

2000 samples will be acquired for each channel group member. To extract 100 samples from the data acquisition engine for each channel

To remove the remaining 1900 samples from the data acquisition engine, the flushdata command can be used.

See Also

Functions

getdata

Properties

SamplesAvailable



[ Previous | Help Desk | Next ]