This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.


Generate single scan on all output channels





outputSingleScan(s,data) outputs a single scan of data on one or more analog output channels.

Input Arguments

collapse all

Data acquisition session, specified as a session object. Create the session object using daq.createSession. Use the data acquisition session for acquisition and generation operations. Create one session per vendor and use that vendor session to perform all data acquisition operations.

Data to output, represented as a 1-by-n matrix of doubles, where n is the number of output channels in the session.


collapse all

Output a single scan on two analog output voltage channels

Create a session and add two analog output channels.

s = daq.createSession('ni');

Create an output value and output a single scan for each channel added.

outputSingleScan(s,[1.5 4]);

Output one value on each of two lines on a digital channel

Create a session and add two digital channels from port 0 that measures output only:

s = daq.createSession('ni');

Output one value each on the two lines:

outputSingleScan(s,[0 1])

Introduced in R2010b

Was this topic helpful?