Value

23.08.2021

Removes the unit from a quantity or evaluates an object reference.

Syntax

Value[<Y|X|Z|Flat>] Expression

The syntax of the Value operator consists of the following elements:

Element

Description

Expression

Any expression. All data structures, data types and object references are allowed.

Remarks

If Expression provides an object reference, this is evaluated, i.e. the Value property is accessed and the result is returned.

Otherwise, the unit is removed from the data. The values are not transformed to the unit 1. The unit is simply removed.

The operator can process all data types and data structures that are not changed. If a component is appended to the operator, such as in Value<X>, only the relevant component is processed in aggregate data structures and the units of the other components are preserved in the result. If no component is appended, all components are processed. For non-aggregate data structures, Value<Y> is equivalent to Value and Value<X> as well as Value<Z> have no effect.

If Expression a list, then this is returned by Value<Flat> unchanged. All other variants of the Value operator is applied recursively to all of the list elements.

Available in

FlexPro View, Basic, Professional, Developer Suite

Examples

Value 1 V

Returns the 64-bit floating point value 1.

Value<Y> 1 V

Same as the previous example.

Value<X> 1 V

Returns the 64-bit floating point quantity 1 V.

Value Signal

Removes the unit from all of the signal components.

Value<X> Signal

Removes the unit from the X component of the signal.

Value<X> List

Removes the unit from the X components of all the list items.

Unit<A> Value 1 V

Reinterprets the quantity 1 V as 1 A. Omission of the Value operator in this expression would cause an error message to appear, since the unit Ampere is not compatible with the unit Volt.

MyFunction(Value $"\Data\DataSet"$)

Passes the DataSet value and not the object reference, which is formed by $...$.

 

See Also

Unit Manager

Unit Function

UnitSymbol Function

Unit Operator

 

Share article or send as email:

You might be interested in these articles