| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Data Acquisition Toolbox |
| Contents | Index |
| Learn more about Data Acquisition Toolbox |
putsample(obj,data)
obj | An analog output object. |
data | The data to be queued in the engine. |
putsample(obj,data) immediately outputs the row vector data, which consists of one sample for each channel contained by obj.
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 and Dynamic Signal Acquisition and Generation (DSA) cards.
Note Refer to the Vendor Limitations section before you access National Instruments devices with the NI-DAQmx adaptor simultaneously from multiple applications. |
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])
![]() | putdata | putvalue | ![]() |

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 |