getGlobalNamesImpl
Global variable names for MATLAB System block
Syntax
name = getGlobalNamesImpl(obj)
Description
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 block. To enable a global variable
in Simulink, your model also must include a Data
Store Memory block with a Data Store Name that matches the
global variable name.
Run-Time Details
getGlobalNamesImpl
is called by the MATLAB System
block.
Method Authoring Tips
You must set Access = protected
for this method.
Input Arguments
Output Arguments
Examples
Version History
Introduced in R2016b