Main Content

Synchronize global data

Global data synchronization mode for a SIL or PIL execution

Description

App Configuration Pane: Debugging

Configuration Objects: coder.EmbeddedCodeConfig

Global data synchronization mode for a SIL or PIL execution.

See Speed Up SIL/PIL Execution by Disabling Constant Input Checking and Global Data Synchronization (Embedded Coder)

Settings

On

This value is the default value.

A SIL or PIL execution synchronizes the values of global variables in the SIL or PIL execution environment with the values in the MATLAB® workspace. If a global variable is constant and its value in the SIL or PIL execution environment differs from its value in the MATLAB workspace, an error occurs.

Off

The SIL or PIL execution does not synchronize the values of global variables in the SIL or PIL execution environment with the values in the MATLAB workspace. If the values are not synchronized, the results in MATLAB might differ from the results in the SIL or PIL execution.

It is possible to speed up a SIL or PIL execution by setting SILPILSyncGlobalData to false.

Programmatic Use

Property: SILPILSyncGlobalData
Values: true | false
Default: true

Version History

Introduced in R2017b