MBDtoolbox for S32k using matlab R2017a

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

MBDtoolbox for S32k using matlab R2017a

跳至解决方案
3,831 次查看
释然111
Contributor III

QQ图片20170524124425.jpg

1/while using Model Based Design Toolbox indicating a problem with ???

Error calling slsfnagctlr('Clear',...)
A viewer named "DAS" already exists.
Error calling slsfnagctlr('GetNags',...)
A viewer named "DAS" already exists.
One or more output arguments not assigned during call to "varargout".

2/How to put the path for the model code?

1 解答
3,329 次查看
lethuer
Contributor V

Sometimes a simple restart helps !

在原帖中查看解决方案

8 回复数
3,329 次查看
Daniel_Popa
NXP Employee
NXP Employee

Hello, 

Can you please provide more details. What version of the toolbox are you using rev1.0.0 or rev2.0.0 ?

Do you have a block or more called DAS in your model? The diagnostic view indicates a Simulink modelling error: two blocks with the same name.

Can you share your model ?

Best regards,

Daniel

0 项奖励
回复
3,328 次查看
lethuer
Contributor V

Hello dumitru-daniel.popa

I have the same problem with my modified model from PMSM Workshop Module 5.

The Simulation is successful but after I want to build the model this error occurs:

Unbenannt.PNG

Could you help ? I attached the model with KV4x.

Do you have a block or more called DAS in your model?

I already searched in the model Explorer and didn't found any match.

Best regards

Leon

0 项奖励
回复
3,328 次查看
lethuer
Contributor V

Seems that it doesn't depend on the model.

A completely new model only with the "MCD_MKV4xF_Config_Information" block deliveres the same error.

So it is not possible to build any model at the Moment... 

What's going on here ?

0 项奖励
回复
3,328 次查看
Daniel_Popa
NXP Employee
NXP Employee

Your last attachment works fine on my side. Perhaps you have an issue with the code gen license. Try to change the Matlab Workspace to a fresh new one. Perhaps something is saved in the slprj an cause this issue.

I see others had similar issues like that with Matlab.

How can I return simulink memory back to OS? - MATLAB Answers - MATLAB Central 

3,330 次查看
lethuer
Contributor V

Sometimes a simple restart helps !

3,328 次查看
brianmckay
Contributor III

Daniel is correct to recommend deleting the slprj folder, especially when you see odd code generation errors. Typically the code generator looks at what has changed and generates code based on your changes. (so it only generates code for what it needs to).  Deleting the slprj folder forces the code generator to start fresh, and this can solve a whole host of odd issues.

Cheers,

-Brian

0 项奖励
回复
3,328 次查看
Daniel_Popa
NXP Employee
NXP Employee

I think it was related somehow with the amount of java heap or stack used by MATLAB.

0 项奖励
回复
3,328 次查看
Daniel_Popa
NXP Employee
NXP Employee

Hi Leon, 

You need to eliminate all continuous time blocks from the model. The Code Gen from MATLAB works only for discrete blocks.

Here is the model i hacked by removing the  RAMP block.

pastedImage_1.png

Attached is the project with code generated for your reference.

Hope this help!

Daniel

0 项奖励
回复