nxa.GetValue, nxa.Value

Description

This function queries the current value of a Server Item. If the quality of the item is UNCERTAIN, it will return the given default value. Note that this function reads the current value of the item that is stored within the server - it will not send a dedicated read request to the field device.

Signature

variant nxa.GetValue | nxa.Value (string, variant)

Parameters

NameTypeMandatory/OptionalDescription

stringMitemID of the item that shall be queried

variantOdefault value (optional)

Note:
The item path has to be specified with the escape character "\".

The item "NETx\Server\Version" must be written as "NETx\\Server\\Version" in LUA.

Return

TypeDescription
variantcurrent value of the item