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.


Channel measurement type


When working with the session-based interface, the MeasurementType property displays the selected measurement type for your channel.


You can only use Audio measurement type with multichannel audio devices.

Counter measurement types include:

  • 'EdgeCount' (input)

  • 'PulseWidth' (input)

  • 'Frequency'(input)

  • 'Position'(input)

  • 'PulseGeneration' (output)

Analog measurement types include:

  • 'Voltage' (input and output)

  • 'Thermocouple' (input)

  • 'Current' (input and output)

  • 'Accelerometer' (input)

  • 'RTD' (input)

  • 'Bridge' (input)

  • 'Microphone' (input)

  • 'IEPE' (input)


Create a session object, add a counter input channel, with the 'EdgeCount' MeasurementType.

s = daq.createSession('ni');
ch = addCounterInputChannel (s,'cDAQ1Mod5', 0, 'EdgeCount')
ch = 

Data acquisition counter input edge count channel 'ctr0' on device 'cDAQ1Mod5':

      ActiveEdge: Rising
  CountDirection: Increment
    InitialCount: 0
        Terminal: 'PFI8'
            Name: empty
              ID: 'ctr0'
          Device: [1x1]
 MeasurementType: 'EdgeCount'