Badval (Tag-based PE function)
- Last UpdatedOct 04, 2024
- 1 minute read
- PI System
- PI Server 2023
- PI Server
Test a value to see if it is bad. For real and integer points, a bad value is a digital state value. For digital points, a bad value is a value outside the point's digital state set.
Syntax
Badval(x)
Arguments
x
A value to be tested.
Returns
if the value is bad
if the value is not bad
Exceptions
Returns for blob points. Returns for character strings.
Example
BadVal('tag1')
BadVal('digitaltag')
BadVal(TagVal('stringtag', '14-Dec-97 8:00:00'))