Determine status and mode for Parallel Computing Toolbox support
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'
enabled— Logical indicator of parallel worker support
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— Parallel worker support mode
Mode of Parallel Computing Toolbox support.
'local' — Runs generated on local workers
automatically import to the Simulation Data Inspector.
'none' — Parallel worker support is
'all' — Runs created from local and remote
workers automatically import to the Simulation Data
'manual' — Support for manual import of
runs created by parallel workers using the