Show TOC

Function documentationUnit Converter Locate this document in the navigation structure

 

This action is used to retrieve multiplier information from the UnitConversions.xml file, apply the multiplier to the incoming value, and return a result. The file is located in Lighthammer/Xacute/ReferenceDocuments/UnitConversions.

You can edit the file and add your own multipliers.

Example Example

The following line is included in the XML file:

<Conversion From="lb" To="kg" Multiplier="0.453592"/>

If the From property value is "lb" and the To property value is "kg" in the configuration, the above multiplier is used. The value is multiplied by 0.453592, and the result is shown in the Result property.

End of the example.

Features

There is no configuration screen for this action; all configuration is done through links in the Link Editor screen.

The properties for this action are listed in the following table:

Property

Data Type

Access

Use

Value

Double

In and out

The multiplier is applied to this value.

From

String

In and out

You convert the value from this unit.

To

String

In and out

You convert the value to this unit.

Result

Double

Out

The result of the conversion of the value.

Success

Boolean

Out

Indicates whether the action succeeded or failed. If it failed, errors are displayed in the server trace log.