Main Content

getValue

Retrieve instance value from CDFX object

Description

iVal = getValue(cdfxObj,instName) returns the value of the unique instance whose ShortName is specified by instName. If multiple instances share the same ShortName, the function returns an error.

iVal = getValue(cdfxObj,instName,sysName) returns the value of the instance whose ShortName is specified by instName and is contained in the system specified by sysName.

example

Examples

collapse all

Create an asam.cdfx object and read the value of its VALUE_NUMERIC instance.

cdfxObj = cdfx('c:\DataFiles\AllCategories_VCD.cdfx');
iVal = getValue(cdfxObj,'VALUE_NUMERIC')
iVal =

   12.2400

Input Arguments

collapse all

CDFX file object, specified as an asam.cdfx object. Use the object to access the calibration data.

Example: cdfx()

Instance name, specified as a character vector or string.

Example: 'NUMERIC_VALUE'

Data Types: char | string

Parent system name, specified as a character vector or string.

Example: 'System2'

Data Types: char | string

Output Arguments

collapse all

Instance value, returned as the instance type.

Version History

Introduced in R2019a

See Also

Functions