Why do derived parameters only update in the base workspace
이전 댓글 표시
Hello,
I'm a Simulink noob currently working with the powertrain blockset. When I update derived parameters (such as "calculate MTPA Table Data" for an electric motor controller), the parameters must be defined in the base workpace and only update in the base workspace. Why is this? Am I supposed to simply copy the data to the model workspace afterward?
Thank you!
답변 (1개)
Rishabh Mishra
2020년 12월 24일
0 개 추천
Hi,
Use the steps below to change/update variables in Model workspace:
- Export the derived variables/updated data to base workspace using ‘to workspace’ or ‘signal to workspace’ block.
- Access the model workspace variables in MATLAB using ‘get_param’ function.
- Once the base workspace variable is accessed, update the base workspace variable with derived parameters. The following link demonstrates how access workspace variable and modify it.
Hope this helps.
카테고리
도움말 센터 및 File Exchange에서 Powertrain Blockset에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!