getGlobalArg
Description
,
where GlobalArg
= PortSpecObj.getGlobalArg(globalVariableName
)PortSpecObj
is an object of class
FunctionPortSpecification
or
Simulink.CodeImporter.SimulinkPortSpecification
, creates a FunctionArgument
object. To use global variables in a model that uses
C Caller blocks, turn on the Enable custom code globals as
function interface setting from Configuration Parameters > Simulation Target.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2020b