Applies To:
  • CitectSCADA 5.xx, 6.xx
  • CitectHMI 5.xx, 6.xx

The IODeviceInfo() function returns statistical values for a IODevice such as

a) minimum read time,
b) maximum read time, and
c) average read time.

I am considering trending these readings but the trends would not be useful if I cannot reset the values on some controllable interval. The only way to reset these values is from the Kernel (Reset Stats under the Tools menu). How do you go about resetting these values in runtime?

If we know the command under the menu item, we should be able to reset this programmatically.

The Kernel commands (including the Reset Stats) can be run from cicode using the KerCmd(Window,Command) cicode function.
To reset the statistics you would use:


This cicode can be used a number of ways such as in a periodic Event or on Keyboard and Button commands.