getValue

Class: Simulink.data.dictionary.Entry
Package: Simulink.data.dictionary

Return value of data dictionary entry

Syntax

entryValue = getValue(entryObj)

Description

entryValue = getValue(entryObj) returns the value of the data dictionary entry entryObj, a Simulink.data.dictionary.Entry 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 Simulink.data.dictionary.Entry object. Before you use this function, represent the target entry with a Simulink.data.dictionary.Entry object by using, for example, the getEntry function.

Examples

expand all

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

myDictionaryObj = Simulink.data.dictionary.open('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 =

   237

Introduced in R2015a