Writing S-Functions | ![]() ![]() |
C Syntax
const char_T *ssGetPath(SimStruct *S)
Ada Syntax
function ssGetPath(S : in SimStruct) return String;
Arguments
S
SimStruct representing an S-function block or a Simulink model.
Description
If S is an S-function block, this macro returns the full Simulink path to the block. If S is the root SimStruct of the model, this macro returns the model name. In a C MEX S-function, in mdlInitializeSizes
, if
strcmp(ssGetModelName(S),ssGetPath(S))==0
the S-function is being called from MATLAB and is not part of a simulation.
Languages
See Also
ssGetModelName
![]() | ssGetOutputPortWidth | ssGetParentSS | ![]() |