Main Content


Create DataAcquisition device interface for specific vendor

Since R2020a



d = daq(vendor) creates a DataAcquisition interface object for configuring and operating data acquisition devices from the specified vendor.


collapse all

Create a DataAcquisition object for interfacing with Windows sound devices.

d = daq("directsound")
d = 

DataAcquisition using DirectSound hardware:

                     Running: 0
                        Rate: 44100
           NumScansAvailable: 0
              NumScansQueued: 0
    NumScansOutputByHardware: 0
                   RateLimit: []

Show channels
Show properties and methods

Input Arguments

collapse all

Device vendor specified as a string or character vector.

Example: "ni"

Data Types: char | string

Output Arguments

collapse all

DataAcquisition interface, returned as a DataAcquisition object. This interface can accommodate all supported devices from the specified vendor. Interfaces with different vendors require separate DataAcquisition objects.

Version History

Introduced in R2020a