Contenido principal

Synchronize global data

Global data synchronization mode for a SIL or PIL execution

Description

App Configuration Pane: Debugging

Configuration Objects: coder.EmbeddedCodeConfig

Whether 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.

It is possible to speed up a SIL or PIL execution by disabling this parameter. If the values of global variables in the SIL or PIL execution environment are inconsistent with the values in the MATLAB workspace, the results of a SIL or PIL execution in might differ from the results in MATLAB.

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.

Programmatic Use

Property: SILPILSyncGlobalData
Values: true | false
Default: true

Version History

Introduced in R2017b