◆ FilterCoeffSet() [1/2]

virtual void FilterCoeffSet ( RSIFilterGainPIDCoeff  coeff,
int32_t  gainTable,
double  coeffValue 
)
pure virtual

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

ℹ This function is avaliable in RapidCode and RapidSequencer

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);
RapidSetup:
Go to axis screen->Tuning Parameters. Available filter coefficents (Kp, Ki, Kd, etc) are shown in image below.
Axis_Filter.jpg
See also
FilterCoeffGet, RSIFilterGainPIDCoeff, RSIFilterGainPIVCoeff
Examples
SyncInterrupt.cpp.