Return file names and paths of open data dictionaries
returns
the file names and paths of all data dictionaries that are open. For
example, a data dictionary is open if you create objects, such as openDDs
= Simulink.data.dictionary.getOpenDictionaryPathsSimulink.data.Dictionary
,
that refer to the dictionary. If you open two or more dictionaries
that have the same file name but different file paths, this function
returns multiple file paths.
Before executing commands and functions that cannot operate
when dictionaries are open, use this function to identify open dictionaries
so that you can close them. For example, when you run parallel simulations
as described in Sweep Variant Control Using Parallel Simulation,
this function helps you identify open dictionaries before executing
the command Simulink.data.dictionary.cleanupWorkerCache
.
returns
the file paths of data dictionaries that have the file name openDDs
= Simulink.data.dictionary.getOpenDictionaryPaths(dictFileName
)dictFileName
.
If you open two or more dictionaries that have the same file name
but different file paths, you can use this syntax to return all of
the file paths.
A data dictionary is open if any of these conditions are true:
The dictionary appears as a node in the Model
Hierarchy pane of the Model Explorer. To close this connection
to the dictionary, right-click the node in Model Explorer and select Close.
Alternatively, use the hide
method of
a Simulink.data.Dictionary
object.
You created an object of any of these classes that refer to the dictionary:
Simulink.data.Dictionary
Simulink.data.dictionary.Section
Simulink.data.dictionary.Entry
To close these connections to the dictionary, use the close
method of the Simulink.data.Dictionary
object
or clear the object. Clear the Simulink.data.dictionary.Section
and Simulink.data.dictionary.Entry
objects.
A model that is linked to the dictionary is open. To close this connection to the dictionary, close the model.
Simulink.data.Dictionary
| Simulink.data.dictionary.cleanupWorkerCache
| Simulink.data.dictionary.closeAll
| Simulink.data.dictionary.setupWorkerCache