MBDtoolbox for S32k using matlab R2017a

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

MBDtoolbox for S32k using matlab R2017a

Jump to solution
2,537 Views
释然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 Solution
2,035 Views
lethuer
Contributor V

Sometimes a simple restart helps !

View solution in original post

8 Replies
2,035 Views
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 Kudos
Reply
2,035 Views
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 Kudos
Reply
2,035 Views
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 Kudos
Reply
2,035 Views
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 

2,036 Views
lethuer
Contributor V

Sometimes a simple restart helps !

2,035 Views
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 Kudos
Reply
2,035 Views
Daniel_Popa
NXP Employee
NXP Employee

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

0 Kudos
Reply
2,035 Views
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 Kudos
Reply