RDVCU5775EV, program does not run according to the given period

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RDVCU5775EV, program does not run according to the given period

634 Views
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 Kudos
Reply
0 Replies