Simulink.data.DataConnection
R2026bDescription
The Simulink.data.connect function creates a
Simulink.data.DataConnection object, which represents a connection to a
data source.
You can create a data connection object for these types of data sources:
Design Data or Configurations section of a Simulink® data dictionary
Model workspace or Configurations section of a model file
MAT file
Base workspace
After you create a Simulink.data.DataConnection object, you
can manage the data in that data source using the object functions.
Creation
Create a data connection object by using Simulink.data.connect.
Object Functions
clear | Remove specified variables from connected data source |
clearAll | Remove variables from connected data source |
create | Create object in connected data source |
discardChanges | Discard data in memory and reload from connected data source |
exist | Determine whether variable exists in connected data source |
get | Read variables from connected data source |
getMetadata | Get metadata for variable or connected data source |
hasUnsavedChanges | Determine whether connected data source has unsaved data in memory |
isConsistent | Determine whether variable definitions visible to connected data source are consistent |
rename | Rename specified variables in connected data source |
reportInconsistency | Report inconsistent variable definitions |
saveChanges | Save data in memory to the connected data source |
set | Assigns one or more variables in connected data source |
show | Open and show contents of connected data source in Model Explorer |
who | List variables that are in connected data source |
Examples
Version History
Introduced in R2024a