Main Content

Automatically infer global variables as function interfaces

Description

Specify the behavior of global variables in custom code called by the C Caller block. If you select this option, the C Caller block automatically infers global variables from the custom code on the block interface.

Category: Simulation Target

Settings

Default: Off

On

Enables automatic addition or deletion of global variables from the custom code called by C Caller block. C Caller block treats the global variables in your custom code as global arguments on the block interface. These arguments appear in bold on the Port Specification table.

Off

Disables automatic addition or deletion of global variables from the custom code called by the C Caller block. From the MATLAB® command line, use the addGlobalArg function to add or the deleteGlobalArg function to delete global arguments.

Command-Line Information

Parameter: CustomCodeGlobalsAsFunctionIO
Value: 'on' | 'off'
Default: 'off'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo recommendation
Safety precautionNo recommendation

See Also

| | | | |

Related Topics