Simulink.data.dictionary.cleanupWorkerCache
Restore defaults after parallel simulation with data dictionary
Description
Simulink.data.dictionary.cleanupWorkerCache
restores
default settings after you have finished parallel simulation of a
model that is linked to a data dictionary. Use this function in a spmd
(Parallel Computing Toolbox) block, after you finish parallel
simulation using parfor
(Parallel Computing Toolbox) blocks,
to restore default settings that were altered by the Simulink.data.dictionary.setupWorkerCache
function.
During parallel simulation of a model that is linked to a data
dictionary, you can allow each worker to access and modify the data
in the dictionary independently of other workers. The function Simulink.data.dictionary.setupWorkerCache
grants
each worker a unique dictionary cache to allow independent access
to the data, and the function Simulink.data.dictionary.cleanupWorkerCache
restores
cache settings to their default values.
You must have a Parallel Computing Toolbox™ license to perform
parallel simulation using a parfor
(Parallel Computing Toolbox) block.
Examples
Version History
Introduced in R2015a
See Also
spmd
(Parallel Computing Toolbox) | parfor
(Parallel Computing Toolbox) | Simulink.data.dictionary.setupWorkerCache
| Simulink.data.dictionary.getOpenDictionaryPaths
| Simulink.data.dictionary.closeAll
Topics
- Store Data in Dictionary Programmatically
- What Is a Data Dictionary?
- Run Code on Parallel Pools (Parallel Computing Toolbox)