Delete digital state archive events by using piconfig
- Last UpdatedOct 02, 2024
- 1 minute read
If you need to delete the values for a digital state, use piconfig as shown here.
-
Copy the following commands into a text file called DELEVENTS.TXT and save it in the pi\adm directory.
This example uses the PI point, cdt158.
*DELEVENTS.TXT
@table piarc
@mode list
@istructure tag, starttime, endtime, count
@ostructure tag, time, status
@ostructure ...
@timf 9
@sigd 9
@output tmpdelevents.dat
cdt158,*-6h,*,*
*@exit - uncomment this to exit and review before deleting
@mode edit
@modify mode=remove
@istructure tag, time, value
@input tmpdelevents.dat
@exit -
Edit DELEVENTS.TXT and replace cdt158 with the PI points (tags) and time ranges from which you want to delete.
If you want to delete events from multiple PI points, add multiple entries. For example:
cdt158,*-6h,*,*
cdm158,y,t,10000
sinusoid,*-1m,*,20The format is:
-
Open a command prompt, go to the PI\adm directory and run piconfig with DELEVENTS.TXT as input.
C:\PI\adm>piconfig < delevents.txt