Using pipetest in file input mode
- Last UpdatedOct 04, 2024
- 1 minute read
- PI System
- PI Server 2023
- PI Server
You can also put one or more performance equations in a simple text file, and pass the entire file to pipetest using the -f switch. In the text file, you put each equation on a single line. You can include comment lines by beginning the line with an exclamation mark (!).
Here's the text from an example pipetest file, called peTestEquations.txt:
! test calculation for point A
if BadVal('sinusoid') then 0 else ('sinusoid')/25
! test calculation for point B
TimeLT('sinusoid', 'y' , 't', TagVal('sinusoid', '*'))
To test the equations in the file, type:
pipetest -f peTestEquations.txt
Each input line in turn is echoed and the evaluated result is displayed.