Quantcast

Documentation Center

  • Trial Software
  • Product Updates

gcs

Get pathname of current system

Syntax

gcs

Description

gcs returns the full pathname of the current system.

The current system is one of these:

  • During editing, the current system is the system or subsystem most recently clicked.

  • During simulation of a system that contains S-Function blocks, the current system is the system or subsystem containing the S-Function block that is currently being evaluated.

  • During callbacks, the current system is the system containing any block whose callback routine is being executed.

  • During evaluation of the MaskInitialization string, the current system is the system containing the block whose mask is being evaluated.

The current system is always the current model or a subsystem of the current model. Use bdroot to get the current model.

Examples

This example returns the path of the system that contains the most recently selected block.

gcs
ans =
   clutch/Locked

See Also

|

Was this topic helpful?