C2000 embedded Coder and f28379D, problem with getting delayed value

1 回表示 (過去 30 日間)
Alexandros Boubaris
Alexandros Boubaris 2021 年 12 月 21 日
Hallo,
I have a problem, I try to get the delayed value α⁻¹ of an ADC signal (α), and use it as a reference α-α⁻¹.
When I use z⁻¹ matlab function (but as z⁻¹⁰⁰⁰, due to the desired past-value which I want), the entire program is stucked.
We use Hardware three interrupts one for ADC, one for main Code (i.e. PLL and Current Controll) and an interrupt with the lowest priority for data recieve (from Host, as it is indicated in Mathworks examples).
The simulink file along with its host work excellent without the delay.
When the solver is increased from 1e-4 ->1e-3, the program runs but then there are problems with the control.
What we sould do in order to solve our problem (I have a problem, I try to get the delayed value α⁻¹ of an ADC signal (α), and use it as a reference α-α⁻¹) with the optimized way, keeping 1e-4 as a solver?

回答 (0 件)

カテゴリ

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

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by