C2000 embedded Coder and f28379D, problem with getting delayed value
Ältere Kommentare anzeigen
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?
Antworten (0)
Kategorien
Mehr zu Deployment, Integration, and Supported Hardware finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!