BMS_Blockset_changes_default_Sample_Time

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

BMS_Blockset_changes_default_Sample_Time

1,762 Views
Narudol-T
Contributor III

Hi NXP Team,

 

I am testing new BMS blockset for S32K series.

However, I found some problem related to Real-Time Application.

 

The test was conducted in 3 senarios,

1) Looping send-out canbus 0x00 at 4sec with atomic unit 

--- The result shows the canbus send-out periodically correct timing.

2) Looping send-out canbus with BCC headerC included id 0x00 (4sec) & 0x01 (40ms)

--- The result shows the canbus send-out periodically x2 "Twice" slower than setting value at 8sec & 80ms

3) Looping send-out canbus with BCC Blockset id 0x00 (4sec) & 0x01 (40ms)

--- The result shows the canbus send-out periodically x48.5times slower than setting value at 194sec & 1.94sec

 

This problem affect the rest of simulink programming, especially the Time-Integrator.

 

Can you help advise what is the main root cause ?
and how to solve this problem.

 

Looking forward to your advise 

 

Best Regards,

Narudol T.

 

 

 

0 Kudos
Reply
2 Replies

1,736 Views
mariuslucianand
NXP Employee
NXP Employee

Hello @Narudol-T 

From what you are describing here, looks like you have some subsystems whose execution time takes longer than you expect. Let's start first by having a look at this thread https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32k144-Simulation-Time/m-p/1193243 . Here I have responded to some questions related to timing in our toolbox. 

The solution here is to use our profiler block and see how long it takes to execute some subsystems. I will try to have a look at your subsystem next week. 

Hope this helps,

Marius

0 Kudos
Reply

1,761 Views
Narudol-T
Contributor III

Here is the testing program.

0 Kudos
Reply