Simulink.data.dictionary.closeAll
关闭与所有开放数据字典的所有连接
句法
描述
Simulink.data.dictionary.closeAll
attempts to close all connections to all data dictionaries that are open. For example, if you create objects, such as万博1manbetxsimulink.data.dictionary
,这是指词典,即词典是打开的。
Some commands and functions, such asSimulink.data.dictionary.cleanupWorkerCache
,词典打开时无法操作。最好通过使用功能和方法(例如关闭
方法万博1manbetxsimulink.data.dictionary
目的。要查找打开的字典,请使用万博1manbetxsimulink.data.dictionary.getOpentictionaryPath
。However, you can use this function to close all connections to all dictionaries.
您还可以使用此函数来关闭项目一部分的关闭脚本中的字典。
万博1manbetxsimulink.data.dictionary.closeall(
关闭s all connections to the dictionary namedDICSFILENAME
)DICSFILENAME
。如果打开使用此文件名称的多个词典(例如,如果字典具有不同的文件路径),则该函数将关闭所有连接到所有字典。
您无法指定DICSFILENAME
作为完整的文件路径,例如'C:\temp\myDict.sldd'
。
万博1manbetxsimulink.data.dictionary.closeall(___,,,,
通过丢弃或保存未保存的更改来关闭与目标词典的所有连接。您可以选择是保存或丢弃所有目标词典的所有更改。unsavedAction
)
例子
输入参数
尖端
A data dictionary is open if any of these conditions are true:
字典在模型层次结构模型资源管理器的窗格。要关闭与字典的连接,请右键单击Model Explorer中的节点,然后选择关闭。或者,使用
隐藏
方法万博1manbetxsimulink.data.dictionary
目的。您创建了指词典的任何这些类的对象:
万博1manbetxsimulink.data.dictionary
Simulink.data.dictionary.Section
Simulink.data.dictionary.Entry
To close these connections to the dictionary, use the
关闭
方法的方法万博1manbetxsimulink.data.dictionary
目的or clear the object. Clear theSimulink.data.dictionary.Section
andSimulink.data.dictionary.Entry
对象。链接到字典的模型是打开的。要关闭与字典的连接,请关闭模型。