Main Content

Discover Hardware and View Device Details

This example shows how to discover the supported data acquisition devices on your system. You can also view the detailed device information for the discovered devices.

Discover Hardware Devices

View all the available data acquisition hardware resources on your system using the daqlist function.

dev  = daqlist
dev = 

  4×5 table

      VendorID       DeviceID                  Description                                Model                     DeviceInfo     
    _____________    ________    ___________________________________________  ______________________________   ____________________

    "ni"             "Dev2"      "National Instruments(TM) USB-6509"          "USB-6509"                       [1×1 daq.DeviceInfo]
    "ni"             "Dev3"      "National Instruments(TM) USB-6211"          "USB-6211"                       [1×1 daq.DeviceInfo]
    "directsound"    "Audio0"    "DirectSound Primary Sound Capture Driver"   "Primary Sound Capture Driver"   [1×1 daq.DeviceInfo]
    "directsound"    "Audio1"    "DirectSound Primary Sound Driver"           "Primary Sound Driver"           [1×1 daq.DeviceInfo]

Get Detailed Device Information

View the DeviceInfo details for the device with ID Dev3.

dev.DeviceInfo(2)
ans = 

ni: National Instruments(TM) USB-6211 (Device ID: 'Dev3')
   Analog input supports:
      4 ranges supported
      Rates from 0.1 to 250000.0 scans/sec
      16 channels ('ai0' - 'ai15')
      'Voltage' measurement type
   
   Analog output supports:
      -10 to +10 Volts range
      Rates from 0.1 to 250000.0 scans/sec
      2 channels ('ao0','ao1')
      'Voltage' measurement type
   
   Digital IO supports:
      8 channels ('port0/line0' - 'port1/line3')
      'InputOnly','OutputOnly' measurement types
   
   Counter input supports:
      Rates from 0.1 to 80000000.0 scans/sec
      2 channels ('ctr0','ctr1')
      'EdgeCount','PulseWidth','Frequency','Position' measurement types
   
   Counter output supports:
      Rates from 0.1 to 80000000.0 scans/sec
      2 channels ('ctr0','ctr1')
      'PulseGeneration' measurement type

See Also

Topics