The session-based interface uses a data acquisition session object that allows you to communicate easily with a National Instruments® device or a CompactDAQ chassis. You can configure and control one or more National Instruments devices, including CompactDAQ chassis, using a session object. You can create a session using the daq.createSession method. A session represents one or more channels that you specify on data acquisition devices. You configure sessions to acquire or generate data at a specific rate, based on the specified number of scans or the duration of the operation.
The Data Acquisition System section explains how this communication works. The relationship between you, the application software, the driver software, the chassis, and the devices is shown here.
For more information about creating sessions, see Set Up Acquisition Session.