Simulink.data.DataConnection
Description
The Simulink.data.connect
function creates a
Simulink.data.DataConnection
object, which represents a connection to the
Design Data section of a Simulink® data dictionary, a MAT file, a model workspace, or the 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 | Assign variable 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