TagTypVal
- Last UpdatedJan 11, 2023
- 1 minute read
- PI System
- PI Server 2018
- PI Server
For an attribute associated with a PI point, get a point's typical value from the point database.
Syntax
TagTypVal(attname)
Arguments
-
attname
The name of an attribute with a PI point data reference, enclosed in single quotes
Returns
The point's typical value. If the point is an integer or real number, a number is returned; if the point's value type is digital, this indicates a digital state
Exceptions
If the point does not exist, returns an error
Example
-
TagTypVal('sinusoid')
[Returns 50]
-
TagTypVal('cdm158')
[Returns 3, a digital state]