List archive values (piarc.dif)
- Last UpdatedJan 13, 2023
- 1 minute read
- PI System
- PI Server
The piconfig input file PI\adm\piarc.dif allows you to quickly view archive data with piconfig:
@input piarc.dif
Next, enter data with the format:
tagname, starttime, endtime, count
For example, to view four hours of data for the tag sinusoid, with a maximum of 100 values, type:
@input piarc.dif
sinusoid, *-4h, *, 100
@endsection
You can also use the PIARC table to view interpolated data by specifying the mode. In this example, five evenly spaced values will be retrieved:
* (Ls - PIARC) piconfig> @table piarc
* (Ls - PIARC) piconfig> @istru tag, starttime, endtime, count, mode
* (Ls - PIARC) piconfig> @ostr value,status,time
* (Ls - PIARC) piconfig> @ostr ...
* (Ls - PIARC) piconfig> sinusoid,*,*-4h,5,even
*> sinusoid,*,*-4h,5,even
71.32876,GOOD,20-Nov-02 17:52:51
77.07982,GOOD,20-Nov-02 16:52:51
Digital State,Shutdown,20-Nov-02 15:52:51
Digital State,Shutdown,20-Nov-02 14:52:51
Digital State,Shutdown,20-Nov-02 13:52:51
* End Repeat...