Simulink function block loses its code interface configuration information

조회 수: 1(최근 30일)
Hi everyone,
I'm trying to add my simulink function block into my custom library. The function interface of the block has already been configured to a desired format.
However, after I put this simulink function block from the user library into the simulink model editor, the block doesn't contain its code interface configuration information any more. All configurations come back to the default settings, so that I have to configure it manually every time. In addition, I have to firstly disable its library link, before configurating it.
So I would like to know:
1) Whether there is a way to keep the configuration information of the simulink function block remained in the custom libray OR
2) Whether there is a way to programmatically configurate code interface for a simulink function block?
Thanks a lot!



Find more on Simulink Functions in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by