The 'C Caller block' is specifically designed to interface with 'C code', not 'MATLAB.m' scripts.
The ‘refresh button’ you are referring to only works when the 'C Caller block' is connected to a valid 'C header file (.h)' that declares the available functions. If you are using a '.m' file (MATLAB script or function), it won’t appear in the available functions list and the button will be disabled.
Depending on the type of code you are working with, you can follow the below given steps:
1. If you are working with '.m' code:
- Do not use the 'C Caller block'.
- Use the 'MATLAB Function block' instead. It is made to support MATLAB code and automatically updates when the '.m' file changes.
2. If you're working with C code:
- Ensure your '.c' and '.h' files are correctly added under:
Model Settings > Code Generation > Custom Code
- Make sure your function is properly declared in the header file.
- Then the refresh button will work and list the available functions.
Hope this helps!