Worklist Item Code 561: S-Function for a static function

Worklist Item Type

This Worklist Item is a MATLAB/Simulink Limitation

Cause

This problem occurs when Modelify attempts to convert a static function to an S-Function. Access to static functions is restricted to the file where they are declared. In S-Function conversion, the original function is called from the S-Function C file generated for the S-Function block. Therefore, compilation of the S-Function C file generates a compile error.

Recommend Solution

The solution consists in removing the "static" modifier for the function. Note that Modelify does not edit the original C file so that it does not introduce unwanted changes. Modelify also does not copy the original C file in order to avoid creating unnecessary maintenance.

Additional Resources

For further support, contact EnSoft Support at support@ensoftcorp.com