Simulink.data.connect
Syntax
Description
creates a data connection object for a data dictionary, a MAT file, a model workspace, or
the base workspace. The function returns a connectionObj
= Simulink.data.connect(dataSource
)Simulink.data.DataConnection
object representing the connection to the data
source.
specifies whether tab completion for the object includes methods, variables, or both methods
and variables. Once you create a connection to the data source, you cannot change your tab
completion preference.connectionObj
= Simulink.data.connect(dataSource
,TabComplete=tcOption
)
If you change the contents of the data source outside of the data connection object
(through a user interface, data source-specific functions, or other data connection),
variables listed by tab completion might be out of sync with the list of variables in the
data source. To update the variables in the tab completion list, use the object function
syncTabComplete
.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2024a