C2000 embedded Coder and f28379D, problem with getting delayed value
이전 댓글 표시
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개)
카테고리
도움말 센터 및 File Exchange에서 Embedded Coder Supported Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!