This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Code Composer Studio
Hi Ti Community,
there is an example of PID controller program for launchpad f280049c
Regards
YT
YT,
I recommend downloading C2000Ware if you have not already done so. It contains our Digital Control Library, which includes several implementations of PID controllers. There are example CCS projects, including one for a PID on F28069. If you install C2000Ware in the default location, the example will be at:
C:\ti\c2000\C2000Ware_2_00_00_02\libraries\control\DCL\c28\examples\F28069_PID
All DCL functions are independent of the device, sou you should have no difficulty using the same functions on an F280049C.
Regards,
Richard
Hi Poley,
i have used this example but i still have problems with the header files, how can i add the header files from this example to my code, i have tried before but i always get errors when compiling.
Regards
YT
The error is telling you the compiler cannot find the header file. You can either manually copy the DCL headers into the include directory of your project, or (better) enter the DCL include path into your CCS project settings. In the CCS Edit perspective, right-click on your project name and select 'Properties'. Then navigate to "CCS Build -> C2000 Compiler -> Include Options". Enter the DCL path to the CCS include path window and click "Apply and Close". You should then be able to build without the error.
Regards,
Richard
Hi YT,
Can you let me know whether the steps above resolved the problem, or if you are still in difficulty? Thanks.
Regards,
Richard
Hi Poley,
that solved my problem but i didn't go on with PI controls because i noticed a problem with ePWMs, it's about initializing the ePWMs. i want the ePWMs modules to zero at 0Volt from ADCresult. i want to use Trip zone and digital compare CMPSS for that, but i still find difficulties how to use it in my situation.
Regards
YT
Hi YT,
Understood, thanks. I will go ahead and close this thread.
Regards,
Richard