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.


Display available data acquisition devices


device = daq.getDevices



daq.getDevices lists devices available to your system.

device = daq.getDevices stores this list in the variable device.


Devices not supported by the toolbox are denoted with an *. For a complete list of supported CompactDAQ devices, see


collapse all

Get a list of all devices available to your system and store it in the variable d.

 d = daq.getDevices
d = 

index   Vendor    Device ID                            Description                           
----- ----------- --------- -----------------------------------------------------------------
1     directsound Audio0    DirectSound Primary Sound Capture Driver
2     directsound Audio1    DirectSound Digital Audio (S/PDIF) (High Definition Audio Device)
3     directsound Audio3    DirectSound HP 4120 (2- HP 4120)
4     ni          cDAQ1Mod1 National Instruments NI 9205
5     ni          cDAQ1Mod2 National Instruments NI 9263
6     ni          cDAQ1Mod3 National Instruments NI 9234
7     ni          cDAQ2Mod1 National Instruments NI 9402
8     ni          cDAQ2Mod2 National Instruments NI 9205
9     ni          cDAQ2Mod3 National Instruments NI 9375
10    ni          Dev1      National Instruments USB-6211
11    ni          Dev2      National Instruments USB-6218
12    ni          Dev3      National Instruments PCI-6255
13    ni          PXI1Slot2 National Instruments PXI-4461
14    ni          PXI1Slot3 National Instruments PXI-4461

To get detailed information about a module on the chassis, type d(index). For example, to get information about NI 9265, which has the index 13, type:

ans = 

ni: National Instruments NI 9402 (Device ID: 'cDAQ1Mod5')
   Counter input subsystem supports:
      Rates from 0.1 to 80000000.0 scans/sec
      4 channels ('ctr0','ctr1','ctr2','ctr3')
      'EdgeCount','PulseWidth','Frequency','Position' measurement types
   Counter output subsystem supports:
      Rates from 0.1 to 80000000.0 scans/sec
      4 channels ('ctr0','ctr1','ctr2','ctr3')
      'PulseGeneration' measurement type
This module is in slot 5 of the 'cDAQ-9178' chassis with the name 'cDAQ1'.

You can also click on the name of the device in the list to access detailed device information, which includes:

  • subsystem type

  • rate

  • number of available channels

  • measurement type

Output Arguments

collapse all

Device list, returned as an array of DeviceInfo objects.

Introduced in R2010b