APIs, concepts, guides, and more

◆ FilterCoeffSet() [2/2]

void FilterCoeffSet ( RSIFilterGainPIVCoeff coeff,
int32_t gainTable,
double coeffValue )

Set PIV filter coefficients.

See also
FilterCoeffGet

Set a filter coefficient (ex: Kp, Ki, Kd).

Description:
FilterCoeffSet will set the value for any filter coefficient (ex: Kp, Ki, Kd) for any gain table
Parameters
coeffCoefficient to set, use RSIFilterGainPIDCoeff or RSIFilterGainPIVCoeff.
gainTableGain Table, valid from 0 to 4. (99% of users will always use Gain Table 0)
coeffValueNew value for coefficient.
Sample Code:
axis.FilterCoeffSet(RSIFilterGainPIDCoeff.RSIFilterGainPIDCoeffOUTPUT_OFFSET,
gainTable, 1000.0);
RSIFilterGainPIDCoeff
PID gain coefficients.
Definition rsienums.h:1114
RapidSetup:
Go to axis screen->Tuning Parameters. Available filter coefficents (Kp, Ki, Kd, etc) are shown in image below.
See also
FilterCoeffGet, RSIFilterGainPIDCoeff, RSIFilterGainPIVCoeff