Skip to Main Content Skip to Search
Product Documentation

About the Session-Based Interface

Working with Sessions

Use the daq.Session object to communicate National Instruments devices, including a CompactDAQ chassis. The general workflow for session operations is as follows:

Use the daq.createSession method to create a data acquisitions session. See Session Architecture for more information.

You can also synchronize operations within the session. See for more information.

Session-Based Interface and Data Acquisition Toolbox

Data Acquisition Toolbox and the MATLAB technical computing environment use the session-based interface to communicate with National Instruments devices, including a CompactDAQ chassis. You can operate in the foreground, where the operation blocks MATLAB until complete, or in the background, where MATLAB continues to run additional MATLAB commands in parallel with the hardware operation. See Session Architecture for more information.

You can create a session with both analog input and analog output channels and configure acquisition and generation simultaneously. See Acquiring Data and Generating Signals Simultaneously for more information.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS