MATLAB: Where can I find more information on writing a TLC file for a function-call subsystem

simulink coder

I would like to write a block TLC file for my S-Function that has a function call output. However, I am confused about which of the following TLC functions I should use in the block TLC file to execute the function call subsystem:
LibCallFCSS
LibExecuteFcnCall
Also I would like to know what the purpose of the following functions is:
ssSetEnableFcnIsTrivial(S,1);
ssSetDisableFcnIsTrivial(S,1);

Best Answer

Information on these functions is missing from the documentation for Real-Time Workshop 7.1 (R2008a). Here is additional information on these functions:
1. What is the difference between the LibCallFCSS and LibExecuteFcnCall TLC Library functions?
LibCallFCSS can be only be invoked from within a block scope as opposed to LibExecuteFcnCall. Also, LibExecuteFcnCall is more robust and has a simpler interface. Therefore, it is recommended to use LibExecuteFcnCall while writing your own TLCs.
2. What is the purpose of the ssSetEnableFcnIsTrivial and ssSetDisableFcnIsTrivial functions?
The purpose of these functions is to indicate whether the S-Function is trivial, or in other words, does nothing more than to enable or disable its attached function-call subsystem (using ssEnableSystemWithTid and ssDisableSystemWithTid within mdlEnable and mdlDisable respectively) and thus can lead to the generation of more efficient code.