get
Description
get(
returns the values of the specified variables connectionObj
,varNames
)varNames
in the connected
data source connectionObj
. The function returns a missing value,
displayed as <missing>
, for variables that are not defined in the
connected data source connectionObj
.
If the data connection can access multiple definitions of the same variable (for example, in a data dictionary and in a referenced dictionary), the function reports an error if the definitions of the variable are inconsistent. For multiple consistent definitions, the function returns the value of one of the variable definitions.
Examples
Input Arguments
Tips
You can also read and assign values to variables by using dot notation. For example:
dd = Simulink.data.connect('myDictionary.sldd');
dd.x = 1;
dd.x
ans = 1
dd.b
ans = missing <missing>
Version History
Introduced in R2024a