Products & Services Solutions Academia Support User Community Company

Learn more about Data Acquisition Toolbox   

putsample - Immediately output one analog output 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

  


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