Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Data Archive Administration

Delete digital state archive events by using piconfig

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.

  1. 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

  2. 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,*,20

    The format is: PI point name, starttime, endtime, count of events you want to delete.

  3. Open a command prompt, go to the PI\adm directory and run piconfig with DELEVENTS.TXT as input.

    C:\PI\adm>piconfig < delevents.txt

TitleResults for “How to create a CRG?”Also Available in