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

PI System Management Tools

DigState (Tag-based PE function)

  • Last UpdatedOct 04, 2024
  • 1 minute read

Translate a character string representing a digital state into its corresponding digital state.

Syntax

DigState(s1 [, x])

Arguments

s1

A character string representing a digital state.

x

(Optional) A digital point in which the character string represents a digital state. If omitted, all digital state sets, starting with the system digital set, are searched for the given string.

Returns

An enumeration value. (For PI PE calculations, a digital state is returned.)

Exceptions

If the character string does not represent a digital state in the digital state set of the specified digital point, the function returns Calc Failed. If digital point is omitted and character string does not represent a digital state in any of the digital sets, Calc Failed is returned.

Example

DigState("digitalstring", 'digitaltag')

StateNo(DigState("digitalstring", 'digitaltag'))

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