当我尝试用数字写入法将脉冲发生器调到最大值时,可以在求解器中进行设置。我将其设置为 1e-7,但频率仍然无法超过 25kHz。

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

  • 5
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

鼾声鼾语

感谢您的支持鼓励!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值