Global variable names for MATLAB System block
name = getGlobalNamesImpl(obj)
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 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.
getGlobalNamesImpl
is called by the MATLAB
System block.
You must set Access = protected
for this
method.
|
System object |
|
Name of the cell array containing the global variable names. The elements of the cell array are character vectors. |
outputImpl
| stepImpl
| updateImpl