0% found this document useful (0 votes)
0 views6 pages

Pi Expression

The document outlines various PI VI expressions and their functions, including evaluation of expressions, event data retrieval, and mathematical calculations. It provides a comprehensive list of functions with descriptions and example usages for each function. Additionally, it notes that some functions may have optional arguments or variations in usage, directing users to refer to documentation for detailed information.

Uploaded by

quocthaitn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views6 pages

Pi Expression

The document outlines various PI VI expressions and their functions, including evaluation of expressions, event data retrieval, and mathematical calculations. It provides a comprehensive list of functions with descriptions and example usages for each function. Additionally, it notes that some functions may have optional arguments or variations in usage, directing users to refer to documentation for detailed information.

Uploaded by

quocthaitn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 6

PI VI expression

Function
Eval
EventData
Exp
0
FindEq
FindGE
FindGT
FindLE
FindLT
FindNE
First
Format
GT
GE
Hour
If
IfPrev
IfValue
Interp
IsGood
Last
Left
LE
LT
Ln
Max
Min
Minute
Month
NE
NextEvent
NextVal
Or
PI
Pos
PrevEvent
PrevVal
Radians
Radix
Round
Second
Sign
Sin
Sqrt
Step
Substring
Sum
TagAvg
TagCount
TagMax
TagMin
TagSpan
TagSource
TagTot
TagType
TagTypVal
TagVal
TagZero
Tan
Tanh
Text

TimeEQ
TimeGE
TimeGT
TimeLE
TimeLT
TimeNE
Total
Trim
Trunc
UCase
Weekday
Year
Yearday
Note:
PI VI expression
Description
Evaluates an expression and returns the result
Retrieves the value of an event attribute
Calculates the exponential value of a number
Represents a boolean false value
Finds the first occurrence of a specified value within a range
Finds the first occurrence of a value greater than or equal to a specified value within a range
Finds the first occurrence of a value greater than a specified value within a range
Finds the first occurrence of a value less than or equal to a specified value within a range
Finds the first occurrence of a value less than a specified value within a range
Finds the first occurrence of a value not equal to a specified value within a range
Retrieves the first value of a specified attribute within a range
Formats a value according to a specified format string
Compares two values and returns true if the first value is greater than the second value
Compares two values and returns true if the first value is greater than or equal to the second value
Extracts the hour component from a time expression
Returns one value if a condition is true, and another value if the condition is false
Returns one value if the current value meets a condition and the previous value meets another condition
Returns one value if the current value matches a specified value, and another value if it does not
Interpolates a value based on a specified time
Checks if a value is considered good
Retrieves the last value of a specified attribute within a range
Extracts a specified number of characters from the left side of a string
Compares two values and returns true if the first value is less than or equal to the second value
Compares two values and returns true if the first value is less than the second value
Calculates the natural logarithm of a number
Returns the maximum value from a list of arguments
Returns the minimum value from a list of arguments
Extracts the minute component from a time expression
Extracts the month component from a time expression
Compares two values and returns true if the first value is not equal to the second value
Returns the next event after a specified time
Returns the next value after a specified time
Performs a logical OR operation on two boolean values
Represents the mathematical constant pi
Finds the position of a substring within a string
Returns the previous event before a specified time
Returns the previous value before a specified time
Converts an angle from degrees to radians
Converts a decimal number to a string in the specified radix
Rounds a number to the nearest integer or to a specified number of decimal places
Extracts the second component from a time expression
Returns the sign of a number (1 for positive, -1 for negative, and 0 for zero)
Calculates the sine of an angle in radians
Calculates the square root of a number
Returns the step attribute of a tag
Retrieves a substring from a specified string
Returns the sum of a list of values
Calculates the average of a tag over a specified time range
Counts the number of good values for a tag within a specified time range
Retrieves the maximum value of a tag within a specified time range
Retrieves the minimum value of a tag within a specified time range
Retrieves the span (difference between maximum and minimum) value of a tag within a specified time range
Retrieves the point source string of a tag
Calculates the totalized value (time integral) of a tag over a specified time range
Retrieves the type character (I, R, or D) of a tag
Retrieves the typical value of a tag
Retrieves the archived value of a tag at a given time
Retrieves the zero value of a tag
Calculates the tangent of an angle in radians
Calculates the hyperbolic tangent of a number
Concatenates strings representing argument values
Calculates the total time in seconds within a range when a tag is equal to a given value
Calculates the total time in seconds within a range when a tag is greater than or equal to a given value
Calculates the total time in seconds within a range when a tag is greater than a given value
Calculates the total time in seconds within a range when a tag is less than or equal to a given value
Calculates the total time in seconds within a range when a tag is less than a given value
Calculates the total time in seconds within a range when a tag is not equal to a given value
Returns the sum of two or more values
Trims blanks on both sides of a string
Truncates a number or time to the next lower unit
Converts a string to uppercase
Extracts the day of the week from a time expression
Extracts the year from a time expression
Extracts the day of the year from a time expression
Some functions may have additional optional arguments or variations in usage. Refer to the documentation for detailed information o
function.
Example Usage
Eval('2+2')
EventData('tag1', 'attr1')
Exp(2)
FALSE
FindEq('tag1', '-1d', '*', 50)
FindGE('tag1', '-1d', '*', 50)
FindGT('tag1', '-1d', '*', 50)
FindLE('tag1', '-1d', '*', 50)
FindLT('tag1', '-1d', '*', 50)
FindNE('tag1', '-1d', '*', 50)
First('tag1', '-1d', '*')
Format('tag1', 'yyyy-MM-dd HH:mm:ss')
GT(10, 5)
GE(10, 5)
Hour('t')
If(GT('tag1', 10), 'High', 'Low')
IfPrev('tag1', GT('tag1', 10), 'High', 'Low')
IfValue('tag1', 10, 'Equal', 'Not equal')
Interp('tag1', 't')
IsGood('tag1')
Last('tag1', '-1d', '*')
Left('string', 3)
LE(5, 10)
LT(5, 10)
Ln(10)
Max('tag1', 'tag2', 'tag3')
Min('tag1', 'tag2', 'tag3')
Minute('t')
Month('t')
NE('tag1', 10)
NextEvent('tag1', 't')
NextVal('tag1', 't')
Or(True, False)
PI()
Pos('substring', 'string')
PrevEvent('tag1', 't')
PrevVal('tag1', 't')
Radians(180)
Radix(10, 16)
Round('tag1', 2)
Second('t')
Sign('tag1')
Sin(0)
Sqrt(16)
Step('tag1')
Substring('string', 1, 3)
Sum('tag1', 'tag2', 'tag3')
TagAvg('tag1', '-1h', '*')
TagCount('tag1', '-1h', '*')
TagMax('tag1', '-1h', '*')
TagMin('tag1', '-1h', '*')
TagSpan('tag1')
TagSource('tag1')
TagTot('tag1', 'y', '*', 85)
TagType('tag1')
TagTypVal('tag1')
TagVal('tag1', '23-aug-2012 15:00:00')
TagZero('tag1')
Tan(1)
Tanh(1)
Text(Round('sinusoid', 1), " is the current value of 'sinusoid'
at ", '*')
TimeEQ('tag1', 't', '*', 40.0)
TimeGE('tag1', 't', '*', 40.0)
TimeGT('tag1', 't', '*', 40.0)
TimeLE('tag1', 't', '*', 40.0)
TimeLT('tag1', 't', '*', 40.0)
TimeNE('tag1', 't', '*', 40.0)
Total('tag1', 'tag2', TagVal('tag1', 'y'))
Trim(" String ")
Trunc(28.75, 10)
UCase("String")
Weekday('*')
Year('*')
Yearday('*')

You might also like