Main Content

isOpen

Determine whether dictionary is open

Since R2024a

Description

flag = isOpen(dictionary) determines whether the dictionary specified by dictionary is open.

example

Examples

collapse all

Add a data interface named newInterface to the local dictionary of the model. Save the local dictionary to a shared dictionary as an SLDD file.

arch = systemcomposer.createModel("newModel");
systemcomposer.openModel("newModel");
addInterface(arch.InterfaceDictionary,"newInterface");
saveToDictionary(arch,"TopDictionary")
topDictionary = systemcomposer.openDictionary("TopDictionary.sldd");

Check whether the data dictionary is open.

flag = topDictionary.isOpen
flag =

  logical

   1

Close all open data dictionaries.

Simulink.data.dictionary.closeAll

Check whether the data dictionary is open.

flag = topDictionary.isOpen
flag =

  logical

   0

Input Arguments

collapse all

Data dictionary, specified as a systemcomposer.interface.Dictionary object. For information on how to create a data dictionary, see createDictionary.

Output Arguments

collapse all

Whether dictionary is open, returned as 1 (true) or 0 (false).

Data Types: logical

More About

collapse all

Version History

Introduced in R2024a

See Also

Functions

Objects

Blocks

Tools