Main Content

Simulink.sdi.isPCTSupportEnabled

Determine status and mode for Parallel Computing Toolbox support

Description

[enabled,mode] = Simulink.sdi.isPCTSupportEnabled returns enabled, a logical indication of whether support for the Parallel Computing Toolbox™ is enabled, and mode, the mode of support enabled.

example

Examples

collapse all

Before running code that depends on whether automatic import of runs created by parallel workers is enabled, you can use the Simulink.sdi.isPCTSupportEnabled function to check the support status. The default behavior for the Simulation Data Inspector enables parallel worker support in local mode. In local mode, only runs created on local workers automatically import into the Simulation Data Inspector.

[enabled, mode] = Simulink.sdi.isPCTSupportEnabled
enabled =

  logical

   1


mode =

    'local'

Output Arguments

collapse all

Logical indication of parallel worker support.

  • 1 indicates that support for parallel workers is enabled.

  • 0 indicates that support for parallel workers is not enabled.

Mode of Parallel Computing Toolbox support.

  • 'local' — Runs generated on local workers automatically import to the Simulation Data Inspector.

  • 'none' — Parallel worker support is disabled.

  • 'all' — Runs created from local and remote workers automatically import to the Simulation Data Inspector.

  • 'manual' — Support for manual import of runs created by parallel workers using the Simulink.sdi.sendWorkerRunToClient function.

Version History

Introduced in R2017b