About the default setting of the simulink configuration parameters in MPC5643L

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

About the default setting of the simulink configuration parameters in MPC5643L

跳至解决方案
2,469 次查看
edenli
Contributor V

Hi Guys,

When use the NXP rappid564xL to bulid the model, i found some repetitive work about the parameters of simulink configuration,so i modified some content about the Fixed-step size (fundamental sample time) and  Generate model web view as below show:

182985_182985.pngpastedImage_1.png

182986_182986.pngpastedImage_2.png

I modefied the file rappid564xl.tlc :

add the rtwgensettings.SelectCallback = ['MPC5643L_callback_handler(hDlg, hSrc)'] in the file.

shown as below:

182987_182987.pngpastedImage_3.png

And adding the file of MPC5643L_callback_handler.m,shown as attachment.

But When i build a new projection ,the Fixed-step size (fundamental sample time) and  Generate model web view is not default setting .i don't know where is error.

Who can give me some advises?

Original Attachment has been moved to: rappid564xl.tlc.zip

1 解答
2,198 次查看
paulvlase
NXP Employee
NXP Employee

Hi edenli,

You need to add the following extra line to set the version in the rappid564xl.tlc file:

  rtwgensettings.Version = '1';
  rtwgensettings.SelectCallback = ['MPC5643L_callback_handler(hDlg, hSrc)'];

See the section about SelectCallback in Customize System Target Files .

The rtwgensettings.SelectCallback is triggered only when you change the system target file, from something different than rappid564xl.tlc, to rappid564xl.tlc target. You change it from the Configuration Parameters dialog, from Code Generation panel.

system_target_file_browser.jpg

See the attached rappid564xl.tlc file that worked for me.

It seems that using rtwgensettings.ActivateCallback instead of  rtwgensettings.SelectCallback does what you are expecting. It calls MPC5643L_callback_handler when you load the model and updates the parameters from Configuration Parameters dialog.

I hope this helps you.

Best regards,
Paul

在原帖中查看解决方案

2 回复数
2,199 次查看
paulvlase
NXP Employee
NXP Employee

Hi edenli,

You need to add the following extra line to set the version in the rappid564xl.tlc file:

  rtwgensettings.Version = '1';
  rtwgensettings.SelectCallback = ['MPC5643L_callback_handler(hDlg, hSrc)'];

See the section about SelectCallback in Customize System Target Files .

The rtwgensettings.SelectCallback is triggered only when you change the system target file, from something different than rappid564xl.tlc, to rappid564xl.tlc target. You change it from the Configuration Parameters dialog, from Code Generation panel.

system_target_file_browser.jpg

See the attached rappid564xl.tlc file that worked for me.

It seems that using rtwgensettings.ActivateCallback instead of  rtwgensettings.SelectCallback does what you are expecting. It calls MPC5643L_callback_handler when you load the model and updates the parameters from Configuration Parameters dialog.

I hope this helps you.

Best regards,
Paul

2,198 次查看
edenli
Contributor V

Hi Paul,

Thank you for your reply! Now,i have alreadly solved.

Best Regurds,

Eden Li

0 项奖励
回复