필터 지우기
필터 지우기

Manage Variables from Block Parameters 2016b

조회 수: 3 (최근 30일)
Yanbin Mo
Yanbin Mo 2017년 3월 9일
답변: Gillian Rosen 2017년 3월 14일
It seems that 2016b is capable of changing variable name from a single block and execute the change for all other blocks having the same variable. My questions is whether this function can also reach SimScape blocks.

답변 (1개)

Gillian Rosen
Gillian Rosen 2017년 3월 14일
Hi Yanbin, 
I understand that you are wondering if the functionality that changes a variable name in all Simulink blocks can also be used for Simscape blocks. 
Yes, this functionality works for Simscape blocks as well. If you use the Model Explorer to rename a variable that is being used by a Simscape block, the variable will successfully be renamed in that block.
There is one limitation- the ability to right-click a variable name and select 'Explore Variable' is only available for Simulink blocks, not Simscape blocks. For renaming a variable found in a Simscape block, you can look up the variable by name using the Model Explorer's search functionality, then right-click and select 'Rename All...' as usual.

카테고리

Help CenterFile Exchange에서 Troubleshooting에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by