Data Acquisition Toolbox | ![]() ![]() |
Syntax
putsample(obj,data)
Arguments
obj |
An analog output object. |
data |
The data to be queued in the engine. |
Description
immediately outputs the row vector putsample(obj,data)
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:
putsample
does not store samples in the data acquisition engine.putsample
can be executed at any time after channels have been added to obj
.putsample
is not supported for sound cards.Example
Create the analog output object ao
for a National Instruments board and add two hardware channels to it.
ao = analogoutput('nidaq',1); ch = addchannel(ao,0:1);
putsample(ao,[1 1])
Functions
![]() | putdata | putvalue | ![]() |