Main Content


Specify resistance value


Use this property to specify the resistance of the device.

You can specify any acceptable value in ohms. When you add an RTD Channel, the resistance is unknown and the R0 property displays Unknown. You must change this value to set the resistance of this device to the temperature you want.


Set RTD Channels Resistance

Create a session and add an RTD channel.

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

Change the channels resistance to 100°C.

ch.R0 = 100
ch = 

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

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