Refresh Mask after saving Model

조회 수: 6 (최근 30일)
Yannic Gerads
Yannic Gerads 2018년 2월 26일
댓글: Yannic Gerads 2018년 2월 26일
Hello,
I try to find a way to update a mask after I saved my model. My current mask creates a mask which shows me the name, the last version and the last modifier of the Model. When I save the model the values don't change, only when I move the block it refreshes the values. I'm searching for a function which I could implement in the mask initialization and updates the values after each saving.
Thanks,

채택된 답변

Fangjun Jiang
Fangjun Jiang 2018년 2월 26일
편집: Fangjun Jiang 2018년 2월 26일
You can specify a function, or lines of code in the Model Properties -> Callbacks -> PostSaveFcn.
I wonder if you can do a model update to refresh the mask.
set_param(YourModel,'SimulationCommand','update')
  댓글 수: 1
Yannic Gerads
Yannic Gerads 2018년 2월 26일
Thanks for the quick response!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Author Block Masks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by