Interface Workflow
Working a DataAcquisition
Use the DataAcquisition object to communicate with data acquisition devices, such as National Instruments™ devices including a CompactDAQ chassis.
Use the daq
function
to create a DataAcquisition interface.
You can also synchronize operations within the DataAcquisition. See Synchronization for more information.
DataAcquisition Interface and Data Acquisition Toolbox
Data Acquisition Toolbox™ and the MATLAB® technical computing environment use the DataAcquisition interface to communicate with devices of various vendors, such as National Instruments, 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 while the hardware operation proceeds.
You can create a DataAcquisition with both analog input and analog output channels and configure acquisition and generation simultaneously. See Acquire Data and Generate Signals Simultaneously for more information.