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.

How to add Digital Control Library to project?

Other Parts Discussed in Thread: CONTROLSUITE

Hi ,

    I am trying to use the digital control library, but I don't know how to add the lib. I read the DCL user guide, a ' #include DCL.h ' should be added to the code, but the problem is I should link the original file to the project, I just don't know where the files are and how can I link them to the project? Please help me, thank you!

  • Another question I forgot is : normally we have a discrete PI controller approximated either by ZOH or Tustin method, but controller structure gotten from these methods look quite different from the one shown in Fig. 4-1 of SPRUI31. So my question is how can such a structure be derived? Thank you!
  • Li Yang,

    The DCL library is shipped with controlSUITE.  If you have installed that in the default location you will find the source files at:

    C:\ti\controlSUITE\libs\control\DCL\v1_00_00_00\source

    You can link these files to your CCS project, but it is probably just as easy to copy the ones you want into the location where your other project source and header files are.  Everything is open source in the DCL, there is no .lib file.

    The DCL contains a series form PI controller, as shown in figure 4-1.  if you calculate the transfer function of this structure (neglecting the anti-windup feature) you will find it's an integrator with a configurable zero.  

    Kp (Ki + s) / s

    In some applications, it is common to approximate this using a filter structure where the parameters are transfer function coefficients rather than P & I gains.  If that's the approach you prefer, you can use either the DF13 or the DF22 controller structure in the library.  

    I hope this helps.  Please post back if anything's still unclear.

    Regards,

    Richard