Main Content

ssGetRootSS

(To be removed) Get the root of a SimStruct hierarchy

ssGetRootSS will be removed in a future release.

Syntax

SimStruct *ssGetRootSS(SimStruct *S)

Arguments

S

SimStruct that represents an S-Function block or a Simulink® model.

Returns

The SimStruct at the root of the SimStruct hierarchy.

Description

Use to obtain the root of the SimStruct hierarchy containing S. If S is, itself, the root SimStruct then ssGetRootSS returns S.

Note

There is one SimStruct for each S-function in your model and one for the model itself. The structures are arranged as a tree with the model SimStruct as the root. This macro is for internal use. User-written S-functions should not use the ssGetRootSS macro.

Languages

C, C++

Version History

Introduced before R2006a

expand all