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

13 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

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

Accedi per commentare.

Più risposte (1)

Pratik
Pratik il 20 Nov 2024 alle 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”:

Categorie

Scopri di più su Simulink Functions in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by