Read_Register and Write_Register blocks error

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

Read_Register and Write_Register blocks error

跳至解决方案
2,481 次查看
ext-rafael_barb
Contributor III

Hi,

I am using the MPC5744P toolbox on Matlab and I got the following error when I tried to load the Read_Register/Write_Register:

pastedImage_1.png

What could I do?

Regards, Rafael

1 解答
2,321 次查看
constantinrazva
NXP Employee
NXP Employee

Hello ext-rafael.barbosa@chassisbrakes.com‌,

When I opened your model, everything seems to be fine.

pastedImage_1.png

I was able to open every block (ADC config, start, main config, freemaster) without any issues - so it must be a problem with some paths. A simple way to check if this is indeed what is causing those errors, you could go to Set Path -> Default -> Save

pastedImage_2.png

and then run the mbd_mpc_path script (from the toolbox installation root).

Note that after resetting the MATLAB path to default, you'll lose paths to other toolboxes you might have had, so you'll have to add them later.

Let us know if you're still having problems.

Kind regards,

Razvan.

在原帖中查看解决方案

7 回复数
2,321 次查看
constantinrazva
NXP Employee
NXP Employee

Hello ext-rafael.barbosa@chassisbrakes.com‌,

Could you share the model with us? I was not able to reproduce this error in a simple example.

Kind regards,

Razvan.

0 项奖励
回复
2,321 次查看
ext-rafael_barb
Contributor III

Hello Razvan,

Thank you for the prompt response.

Sure, please find the model attached.

Kind Regards, Rafael

0 项奖励
回复
2,322 次查看
constantinrazva
NXP Employee
NXP Employee

Hello ext-rafael.barbosa@chassisbrakes.com‌,

When I opened your model, everything seems to be fine.

pastedImage_1.png

I was able to open every block (ADC config, start, main config, freemaster) without any issues - so it must be a problem with some paths. A simple way to check if this is indeed what is causing those errors, you could go to Set Path -> Default -> Save

pastedImage_2.png

and then run the mbd_mpc_path script (from the toolbox installation root).

Note that after resetting the MATLAB path to default, you'll lose paths to other toolboxes you might have had, so you'll have to add them later.

Let us know if you're still having problems.

Kind regards,

Razvan.

2,321 次查看
ext-rafael_barb
Contributor III

Dear Razvan,

The issue appear when trying to load the Write_Register or Read_Register block on the model.
The model without these block, indeed are ok.

Please consider the new model that I am sending, which I can face the error just double clicking either the Read_Register or Write_Register block.

Kind Regards, Rafael

0 项奖励
回复
2,321 次查看
constantinrazva
NXP Employee
NXP Employee

Hello ext-rafael.barbosa@chassisbrakes.com‌,

Even with the new model you provided, I was still able to open all blocks without facing any issues. This makes me think this is due to some paths being broken - so I would still suggest you clean the MATLAB path, run the script mentioned above and see if everything works now. 

Kind regards,

Razvan.

2,321 次查看
ext-rafael_barb
Contributor III

Dear Razvan,

After run mbd_mpc_path it works.

Thank you for the Suport!

0 项奖励
回复
2,321 次查看
constantinrazva
NXP Employee
NXP Employee

Ok, glad to hear that!

Kind regards,

Razvan.

0 项奖励
回复