Quicker code generation using the MBD Toolbox 3.2.0

cancel
Showing results for 
Search instead for 
Did you mean: 

Quicker code generation using the MBD Toolbox 3.2.0

143 Views
Contributor III

Hello,

I notice after updating the MBD toolbox from the version 3.0.0 to the newest version 3.2.0 that the code generation is slower that usual.

Can I disable some callbacks in order to make it quicker?

Also, how can I stop the "mbd_mpc_consistency_checks(bdroot(gcs));" callback to load automatically? 

(I try to delete it, but It loads automatically after building the model)

pastedImage_1.png 

Kind Regards, Rafael

3 Replies

91 Views
NXP Employee
NXP Employee

Hello rafael.barbosa@chassisbrakes.com 

The consistency checks are set from 2 scripts (2 different scenarios) - so you'll have to edit both of them. The scripts I'm talking about are the following:

mbd_mpc_set_tmf

mbd_mpc_model_init_fcn

The problem with these scripts is that they are pcoded - so you can't edit them as they are. If you are sure you don't need the consistency checks, I can edit them for you and attach them here.

Regarding the code generation, in the newer versions of our toolboxes we have added more functionality, more checks, etc. and this lead to a slow-down on code generation speed. There might be room for improvement, but unfortunately for the moment we are focused on other toolboxes so we can not investigate this issue.

Kind regards,

Razvan. 

91 Views
Contributor III

Hello constantinrazvan.chivu‌,

Thank you for the reply.

Yes, I would appreciate very much is you can share these modifications with me.

Kind Regards, Rafael

0 Kudos

91 Views
NXP Employee
NXP Employee

Hello rafael.barbosa@chassisbrakes.com ,

Here you go - I have attached the 2 files here.

You can find them in the following paths:

{ROOT}\mbdtbx_mpc\mscripts\config

{ROOT}\mbdtbx_mpc\mscripts\model

Kind regards,

Razvan.

0 Kudos