Q: I want to change the calibration resistor (RCAL) on my board. How do I reflect this change in the Amperometric Measurement example?
A: Insert the following into AmperometricMeasurement.c (see screen capture below for location):
- Define a constant for Rcal (1000 used as example):
/* RCAL value in Ohms */
#define RCAL (1000)
- Insert a call to the AFE driver to set the resistor value in the handler:
/* Set RCAL value */
if (ADI_AFE_SUCCESS != adi_AFE_SetRcal(hAfeDevice, RCAL))
{
FAIL("adi_AFE_SetCal");
}
Q: I want to change the TIA resistor (RTIA) on my board. How do I reflect this change in the Amperometric Measurement example?
A: Insert the following into AmperometricMeasurement.c (see screen capture below for location):
- Define a constant for Rtia (7500 used as example):
/* RTIA value in Ohms */
#define RTIA (7500)
- Insert a call to the AFE driver to set the resistor value in the handler:
/* Set RTIA value */
if (ADI_AFE_SUCCESS != adi_AFE_SetRtia(hAfeDevice, RTIA))
{
FAIL("adi_AFE_SetTia");
}