Get pathname of current system
gcs returns the full pathname of the current
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 current system is the system containing the block whose mask is
The current system is always the current model or a subsystem
of the current model. Use
bdroot to get the current
This example returns the path of the system that contains the most recently selected block.
gcs ans = clutch/Locked