Immediately output one analog output sample
Note: You cannot use the legacy interface on 64-bit MATLAB®. See About the Session-Based Interface to acquire and generate data on a 64-bit MATLAB.
An analog output object.
The data to be queued in the engine.
outputs the row vector
data, which consists of
one sample for each channel contained by
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);
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
putsample is not supported for
sound cards and Dynamic Signal Acquisition and Generation (DSA) cards.
Note: Refer to the Hardware Limitations by Vendor section before you access National Instruments devices with the NI-DAQmx adaptor simultaneously from multiple applications.