DigText
- Last UpdatedJan 11, 2023
- 1 minute read
- PI System
- PI Server 2024 R2
- PI Server
Obtain the text corresponding to the digital state.
Syntax
DigText(digstate)
Arguments
-
digstate
An argument that evaluates to a digital state
Returns
The text for the digital state
Exceptions
Returns an error if the argument is not a digital state
Example
-
DigText(TagVal('enum_att1', 'y'))
[Returns the digital state value in string]
-
DigText('enum_att1')
[Returns digital state value in string. Returns an error message if 'enum_att1' is not a PI point attribute with digital state value]