Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

ssGetPath

Get the path of a block

Syntax

const char_T *ssGetPath(SimStruct *S)

Arguments

S

SimStruct representing an S-function block or a Simulink® model.

Returns

A pointer (char_T *) to a character vector containing the path to a block.

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 the MATLAB® command prompt and is not part of a simulation.

Languages

C, C++

Introduced before R2006a

Was this topic helpful?