setValue

Set instance value in CDFX object

Description

example

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

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

Note

setValue does not write the instance value in the original CDFX-file. Use the write function to update the CDFX-file or to create a new file.

Examples

collapse all

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

cdfxObj = cdfx('c:\DataFiles\AllCategories_VCD.cdfx');
setValue(cdfxObj,'VALUE_NUMERIC',55)

Read back the value to verify it.

iVal = getValue(cdfxObj,'VALUE_NUMERIC')
iVal =

    55

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

Instance value, specified as the type supported by the instance.

Example: 55

See Also

Functions

Introduced in R2019a