Hello,
i am currently working with MATLAB/Simulink and followed this tutorial: https://www.youtube.com/watch?v=535gxJa72v0.
When I tried to bring the Pulse Generator to its maximum with Digital Write, surprisingly it already stopped at 25kHz. After some research I found out that this is related to the BaseRateSampleTime and can be set in the solver. After I set this to 1e-7 still no faster frequencies than 25kHz are possible.
Has anyone had the same experience or do I still have a configuration error. Or is it because no faster code can be generated from Simulink?
Greetings,
ChRegBrg
当我尝试用数字写入法将脉冲发生器调到最大值时,出乎意料的是它已经在 25kHz 时停止了。经过研究,我发现这与 BaseRateSampleTime 有关,可以在求解器中进行设置。我将其设置为 1e-7,但频率仍然无法超过 25kHz。
有没有人有过同样的经历,或者我仍然存在配置错误?还是因为 Simulink 无法生成更快的代码?
解决方法:
I had a similar issue using ADC sampling Triggered by HRTIM. It was stuck at 50kHz using HAL (even w