Units

Specify unit of RTD measurement

Description

Use this property to specify the temperature unit of the analog input channel with RTD measurement type in the session-based interface.

You can specify temperature values as:

  • Celsius (Default)

  • Fahrenheit

  • Kelvin

  • Rankine

Example

Change RTD Unit

Change the unit of an RTD channel.

Create a session, add an analog input RTD channel, and display channel properties.

s = daq.createSession('ni');
ch = addAnalogInputChannel(s,'cDAQ1Mod7', 0, 'RTD')
ch = 

Data acquisition analog input RTD channel 'ai0' on device 'cDAQ1Mod7':

            Units: Celsius
          RTDType: Unknown
 RTDConfiguration: Unknown
               R0: 'Unknown'
ExcitationCurrent: 0.0005
 ExcitationSource: Internal
         Coupling: DC
   TerminalConfig: Differential
            Range: -200 to +660 Celsius
             Name: ''
               ID: 'ai0'
           Device: [1x1 daq.ni.CompactDAQModule]
  MeasurementType: 'RTD'
    ADCTimingMode: HighResolution

Change the Units property from Celsius to Fahrenheit.

ch.Units = 'Fahrenheit'
ch = 

Data acquisition analog input RTD channel 'ai0' on device 'cDAQ1Mod7':

            Units: Fahrenheit
          RTDType: Unknown
 RTDConfiguration: Unknown
               R0: 'Unknown'
ExcitationCurrent: 0.0005
 ExcitationSource: Internal
         Coupling: DC
   TerminalConfig: Differential
            Range: -328 to +1220 Fahrenheit
             Name: ''
               ID: 'ai0'
           Device: [1x1 daq.ni.CompactDAQModule]
  MeasurementType: 'RTD'
    ADCTimingMode: HighResolution