Other Parts Discussed in Thread: SYSCONFIG
Dear Sir,
I am using the syscfg for the DCL controller
Please suggest the procedure for updating the this PI controller:
The PI controller running in
interrupt void INT_myADCA_1_ISR(void)
{
uk = DCL_runPI_C7(&myCONTROLLER0, rk, yk);
}
and updating as below for kp and ki
void main(void) , write:
// initialize status update of PI controller
DCL_resetPI(&myCONTROLLER0);
DCL_SET_CONTROLLER_PERIOD(& myCONTROLLER0, 0.01f);
myCONTROLLER0.sps->Kp = 5.0f;
myCONTROLLER0.sps->Ki = 0.51f;
DCL_REQUEST_UPDATE(&myCONTROLLER0);
DCL_updatePI(&myCONTROLLER0);
DCL_fupdatePI(&myCONTROLLER0);
After including the above line, ADC variables are not updating in expression window. Program is not responding
Please suggest the procedure for updating PI controller parameters.
Regards
Ajeet