Point.GetValue (property, read)

Syntax

Point.GetValue

Description

To get a snapshot of the point value from the Point Manager and return it. This operation combines the Get Method and Value Property into a single command.

Note: If the point is unavailable (due to the device being down, remote server unavailable, etc.) an error will be generated if you attempt to access the value (since the value is unavailable.) See the Point.State property if you need to determine if the point is available or not.

Example

sub main()

   Dim MyPoint as new Point       ' Declare the point object

   MyPoint.Id ="TANK_LEVEL"      ' Set the point id

   x = MyPoint.GetValue           ' Read and return the value.

end sub

More information

CIMPLICITY Extensions to Basic