Whether Code generation possible for Discrete Fractional PID controller (FOMCON Toolbox)?

2 ビュー (過去 30 日間)
Sanjeev Gupta
Sanjeev Gupta 2020 年 1 月 13 日
コメント済み: Walter Roberson 2020 年 1 月 13 日
I have downloaded and used FOMCON toolbox. My application is field oriented control of motor, where I have used Discrete Fractional PID controller and tuned it.
Now I want test my control algorithm in actual microcontroller (TI's C2000 MCU's to be precise). For that purpose I am using Embedded Coder Support Package for Texas Instruments.
So can I Generate Code(Build) directly for " Discrete Fractional PID controller " block ? Or I have to try to approximate using filter and then conver it into discerte and then proceed ?
  1 件のコメント
Walter Roberson
Walter Roberson 2020 年 1 月 13 日
I doubt that you can generate code for it directly. It is a third party piece of software and I doubt that it has been designed with code generation in mind. It would probably have to be adapted, such by explicitly initializing variables and splitting up statements so that the value returned from one call is not directly passed to another call without being assigned to a variable.
I did not run an analysis of the code to find out if it uses anything that code cannot be generated for.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by