How to call the refresh custom code in c caller block from command line?

조회 수: 13 (최근 30일)
Hello all,
i would like to know is there any way to call the refresh custom code in c caller block from command line?
Thanks,
V.Ajay Krishna

채택된 답변

Ajay krishna Vasanthakumar
Ajay krishna Vasanthakumar 2021년 1월 6일
set_param(blockPath, 'InstantiateOnLoad', 'On');
This will refresh the block. Hope this will be helpful to someone
  댓글 수: 2
Adrianne van Roessel
Adrianne van Roessel 2021년 3월 18일
Does this still work for you? I am also looking for a way to refresh the block from the command line but for me this doesn't work. The blockPath is the complete path including the name of the C Caller block right?

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

추가 답변 (1개)

Pratik
Pratik 2024년 11월 20일 6:33
Hey Ajay,
There is no direct API to access the refresh button; however the refresh occurs automatically when using “get_param” for “AvailableFunctions” parameter.
Please refer to the following documentation for more information about “AvailableFunctions” parameter and “get_param”:

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by