getGlobalArg
Description
,
where GlobalArg
= PortSpecObj.getGlobalArg(globalVariableName
)PortSpecObj
is an object of class
FunctionPortSpecification
, 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.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2020b