Return value of data dictionary entry


entryValue = getValue(entryObj)


entryValue = getValue(entryObj) returns the value of the data dictionary entry entryObj, a object.

To programmatically access variables for the purpose of sweeping block parameter values, consider using Simulink.SimulationInput objects instead of modifying the variables through the programmatic interface of the data dictionary. See Optimize, Estimate, and Sweep Block Parameter Values.

Input Arguments

expand all

Target data dictionary entry, specified as a object. Before you use this function, represent the target entry with a object by using, for example, the getEntry function.


expand all

Represent the data dictionary entry fuelFlow with a object named fuelFlowObj. fuelFlow is defined in the data dictionary myDictionary_ex_API.sldd.

myDictionaryObj ='myDictionary_ex_API.sldd');
dDataSectObj = getSection(myDictionaryObj,'Design Data');
fuelFlowObj = getEntry(dDataSectObj,'fuelFlow');

Return the value of the entry fuelFlow and assign the value to variable fuelFlowValue.

fuelFlowValue = getValue(fuelFlowObj)
fuelFlowValue =


Introduced in R2015a