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. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Prepare session for operation





prepare(s) configures and allocates hardware resources for the session s and reduces the latency of startBackground and startForeground functions. There must be at least one channel in the session before you can call this function. Use of this function is optional; it is automatically called as needed.


collapse all

Create a session with one channel, and prepare it for operation.

s = daq.createSession('directsound');
ch = addAudioInputChannel(s,'Audio1',1);

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.

Introduced in R2010b