Main Content
getGlobalArg
Class: Simulink.CodeImporter.SimulinkPortSpecification
Namespace: Simulink.CodeImporter
Description
,
where GlobalArg
= getGlobalArg(PortSpecObj
, globalVariableName
)PortSpecObj
is an object of class
Simulink.CodeImporter.SimulinkPortSpecification
, creates a FunctionArgument
object for the specified global argument. To use global
variables in a model that uses C Caller blocks, enable the Enable
custom code globals as function interface setting from Configuration Parameters > Simulation Target.
Input Arguments
Output Arguments
Examples
Version History
Introduced in R2021a