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.


Resistance value of channel’s shunt resistor


When working with the session-based interface, the analog input current channel’s ShuntResistance property indicates resistance in ohms. This value is automatically set if the shunt resistor is located internally on the device and is read only.


Before starting an analog output channel with an external shunt resistor, specify the shunt resistance value.


Specify Shunt Resistance

Set the shunt resistance of an analog input current channel.

Create a session and add an analog input current channel.

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

Set the ShuntLocation to External and the ShuntResistance to 20.

ch.ShuntLocation = 'External';
ch.ShuntResistance = 20
ch = 

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

  ShuntLocation: External
ShuntResistance: 20
       Coupling: DC
 TerminalConfig: Differential
          Range: -0.025 to +0.025 A
           Name: ''
             ID: 'ai0'
         Device: [1x1]
MeasurementType: 'Current'
  ADCTimingMode: HighResolution