Simulink sample time determination for S32K144EVB + MPC33771

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Simulink sample time determination for S32K144EVB + MPC33771

ソリューションへジャンプ
2,585件の閲覧回数
bcelikte
Contributor III

hi,

I have a complex model (BMS model) for S32K144EVB with MPC33771

When I try 1s sample time, everything is calculating in time (every timestep), but when I changed sample time 50ms some blocks of model (stateflow) is lagging for couple of timesteps (basically, showing same values for couple of of counters which should be increased every 50ms ). My model solver is discrete and has one sample time. So, what I understand MCU could not handle all calculation for 50ms but 1s is OK. 

Is there any way to know the minimum sample time that I can run without any problem on this MCU? Or do you have any suggestion on the Simulink side?

Thanks

0 件の賞賛
返信
1 解決策
2,531件の閲覧回数
mariuslucianand
NXP Employee
NXP Employee

Hello,

Just for the record, and to others who are facing this issue, proved that the issue was mainly caused due to the step execution time longer than 50ms.

Hope this helps,

Marius

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
2,532件の閲覧回数
mariuslucianand
NXP Employee
NXP Employee

Hello,

Just for the record, and to others who are facing this issue, proved that the issue was mainly caused due to the step execution time longer than 50ms.

Hope this helps,

Marius

0 件の賞賛
返信
2,538件の閲覧回数
Woodlawn22
Contributor I

I faced similar kind of issue last time, I am still searching for some proper solution Same issue still no fix to this 

0 件の賞賛
返信