CfgDoubleValue() Function

Note: This function is an Axeda ConnectedConfiguration  feature. If the Axeda Platform is not licensed for ConnectedConfiguration, you will not have access to this function.

The CfgDoubleValue() function finds the Double value corresponding to the specified Path for the asset in the rule execution context. When multiple identical Paths exist in the configuration, the Path argument should include the array index to indicate which configuration element should be returned. For example, the Path "/Config/Hardware/Motherboard[2]/Version" identifies the third occurrence in the array.

Operating on the asset in expression rule context

Format:

Double CfgDoubleValue(String "path")

where:

path -- The Path defined for this comparison. Trailing or leading Asterisk (*) wildcards are allowed.

Example:

 

The following example determines if the version of the motherboard specified in the Path (for the related asset) has a version greater than 6.0.

If: CfgDoubleValue("/Config/Hardware/MotherBoard/version") > 6.0

 

Operating on a specified asset

Format:

Double CfgDoubleValue(String "path", String "model", String "serial")

where:

path -- The Path defined for this comparison. Trailing or leading Asterisk (*) wildcards are allowed.

modelNumber -- The model of the asset configuration (Path) for this operation

serialNumber-- The serial number of the asset configuration (Path) for this operation

Example:

The following example determines if the version of the motherboard specified in the Path for the ACME_Z asset (defined by model and asset number) is greater than 6.0.

If: CfgDoubleValue("/Config/Hardware/MotherBoard/version", "modelXYZ", "serial123") > 6.0

Notes on Rule Execution: