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

Send one sample for each analog output channel group member or digital I/O line group member.

Syntax

putsample(obj, source)

Description

putsample(obj, source) immediately outputs the data from source. source must be a row vector containing one sample for each channel contained by obj.

Unlike putdata, putsample does not depend on the Running property being On. putsample can be executed at any time after channels have been added to obj.

Using putsample is a good way to test your analog output configuration before issuing start.

Note:
putsample is not supported for sound cards.

Example

National Instruments

Suppose you create the analog output object ao for a National Instruments board and add two hardware channels to it.

If the MATLAB variable data is a row vector containing two data values, then following command outputs the first value of data to channel one, and the second value of data to channel two.

See Also

Functions

putdata



[ Previous | Help Desk | Next ]