putsample - Immediately output one sample

Syntax

putsample(obj,data)

Arguments

obj

An analog output object.

data

The data to be queued in the engine.

Description

putsample(obj,data) immediately outputs the row vector data, which consists of one sample for each channel contained by obj.

Remarks

Using putsample is a good way to test your analog output configuration. Additionally:

Examples

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

ao = analogoutput('nidaq','Dev1');
ch = addchannel(ao,0:1);

To call putsample for ao:

putsample(ao,[1 1])

See Also

Functions

putdata

  


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