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

2 views (last 30 days)
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

Accepted Answer

Ajay krishna Vasanthakumar
set_param(blockPath, 'InstantiateOnLoad', 'On');
This will refresh the block. Hope this will be helpful to someone
  2 Comments
Adrianne van Roessel
Adrianne van Roessel on 18 Mar 2021
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?

Sign in to comment.

More Answers (0)

Categories

Find more on Simulink Functions in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!