Class: matlab.System
Global variable names for MATLAB System block
name = getGlobalNamesImpl(obj)
specifies the names of global variables that are declared in a System object™ for use in a Simulink® P-code file. For P-code files, in addition to declaring your global variables in
name
= getGlobalNamesImpl(obj
)stepImpl
, outputImpl
, or
updateImpl
, you must include the getGlobalNamesImpl
method. You declare global variables in a cell array in the
getGlobalNamesImpl
method. System objects that contain these
global variables are included in Simulink using a MATLAB System (Simulink) block. To enable a global variable
in Simulink, your model also must include a Data
Store Memory (Simulink) block with a Data Store Name that matches the
global variable name.
getGlobalNamesImpl
is called by the MATLAB System
block.
You must set Access = protected
for this method.
outputImpl
| stepImpl
| updateImpl
(Simulink)