Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Discover Hardware Devices

This example shows how to discover devices on your system.

Step 1. Discover hardware devices.

d  = daq.getDevices
d = 

Data acquisition devices:

index Vendor Device ID             Description             
----- ------ --------- ------------------------------------
1     ni     cDAQ1Mod1 National Instruments NI 9205
2     ni     cDAQ2Mod1 National Instruments NI 9201
3     ni     Dev1      National Instruments USB-6211
4     ni     PXI1Slot2 National Instruments PXI-4461

Click the device ID for detailed device information.

Step 2. Get detailed device information.

d(3)
ans = 

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

Properties, Methods, Events

Detailed device information includes:

  • Subsystem type

  • Rate

  • Number of available channels

  • Measurement type

Was this topic helpful?