How to copy a Simscape example project done in Mathwork

조회 수: 1 (최근 30일)
Reham Abu Rashed
Reham Abu Rashed 2021년 10월 1일
답변: Anshika Chourasia 2021년 10월 13일
Hello,
I copied an example project blocks 'Linear Electric Actuator' to my project and modified some parameters inside the blocks.
However, when I run the copied model I am not getting a result out of it, is it because I didn't copy the workspace of the original project?
Could you please explain to me the right way of using an example project in my project, and how to include the workspace in my project if that is what is causing the issue?
Thank you
Regards,
Reham

답변 (1개)

Anshika Chourasia
Anshika Chourasia 2021년 10월 13일
Hi Reham,
According to my understanding this erroneous behaviour is because of not importing the variables from the original project into the copied project. Please refer this link for importing variables: Edit and Manage Workspace Variables by Using Model Explorer - MATLAB & Simulink (mathworks.com).
Alternatively, you can make use of Block callback functions Block Callbacks - MATLAB & Simulink (mathworks.com) to define variables that should be loaded into the base workspace once the block is loaded. This helps in resolving missing variable issues in such cases.
I hope this helps you!

카테고리

Help CenterFile Exchange에서 Create Large-Scale Model Components에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by