getGlobalArg
Get an object definition of a global variable in a C Caller block
Description
, whereGlobalArg
= PortSpecObj.getGlobalArg(globalVariableName
)PortSpecObj
is an object of classFunctionPortSpecification
orSimulink.CodeImporter.SimulinkPortSpecification
, creates aFunctionArgument
object. To use global variables in a model that usesC Callerblocks, turn on theEnable custom code globals as function interfacesetting fromConfiguration Parameters>Simulation Target.