Simscape for HDL code generation

I generated different HDL systems for simscape subsystems. Now I want to simulate generated HDL subsystems together. But when I tried to model single HDL compatible system with genrated HDL systems, I receive an error as 'statespaceparam.mat' or 'statespaceparam.cd' is missing. I understand these files were generated during generation of HDL susystems.
My question is how I can simulate all HDL subsystems together ?

2 Comments

I do not know the cause, but I notice there is a statespaceparam.mat in
/Applications/MATLAB_R2019a.app/examples/plantdeployment/statespaceparam.mat
on my system. There appear to be multiple examples mixed in that directory, including https://www.mathworks.com/help/hdlcoder/ug/troubleshoot-generate-implementation-model-from-dc-motor-control.html
Thank you for your reply.
Yes, there is statespaceparam.mat file. But in my case each subsystem generates its own statespaceparam.mat. When I try to update the complete model then statespaceparam.mat file for each subsystem misleads the model parameters.
I want subsystem with corresposnding statespaceparam.mat as a seperate single unit.

Sign in to comment.

 Accepted Answer

Kiran Kintali
Kiran Kintali on 16 Aug 2019
Edited: Kiran Kintali on 19 Aug 2019
Support for multiple simscape networks is planned. Please share your usecases or sample models with us support@mathworks.com
In the interim we can provide you a patch for manual stiching of implementation models with unique statespaceparams file.
Thanks

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!