Documentation Center

  • Trial Software
  • Product Updates

daq.getDevices

Display available National Instruments devices

Syntax

daq.getDevices
device=daq.getDevices

Description

daq.getDevices lists devices available to your system. Use

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

Output Arguments

expand all

device — Device list handlecharacter string

Device list handle variable that you want to store a list of devices available to your system, specified as a string.

Examples

expand all

Get a list of devices

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:

 d(13)

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. You can now access detailed device information which includes:

  • subsystem type

  • rate

  • number of available channels

  • measurement type

More About

expand all

Tips

Devices not supported by the toolbox are denoted with an *. For a complete list of supported CompactDAQ devices, see the Supported Hardware page in the Data Acquisition Toolbox™ area of the MathWorks Web site.

See Also

|

Was this topic helpful?