Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI System Management Tools

Badval (Tag-based PE function)

  • Last UpdatedOct 04, 2024
  • 1 minute read

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

1 if the value is bad

0 if the value is not bad

Exceptions

Returns 1 for blob points. Returns 0 for character strings.

Example

BadVal('tag1')

BadVal('digitaltag')

BadVal(TagVal('stringtag', '14-Dec-97 8:00:00'))

In This Topic
TitleResults for “How to create a CRG?”Also Available in