RDVCU5775EV, program does not run according to the given period

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

RDVCU5775EV, program does not run according to the given period

624 次查看
RegulusCheng
Contributor III

Hello,

I am using RDVCU5775EVM, Using MBDT with Simulink 2019b.

I found that when I added the application layer algorithm, the program ran slower than the set cycle. For example, I added a StateFlow to the program to control LED light flicker. The sampling time of Stateflow is 0.1, but the blinking frequency of LED light after running is 2.6Hz. In addition, I encapsulated the CAN send module in the atomic subsystem and set the sampling time to be 0.02 (20ms), but the actual collected CAN message cycle is about 50ms.
Attached is my program, is it because of the complicated calculation of the application layer that affects the running cycle? Or is it caused by another module? Please take a look.

0 项奖励
回复
0 回复数