Edit/Create a file called iorates.dat in the $PIHOME\dat directory. PIHOME is an environment variable that is set equal to the PI home directory name as discussed in the PI API Installation Instructions manual.
Add a line in the iorates.dat file of the form:
inf001, # where inf001 is the name of the I/O Rate Tag and # corresponds to the first instance of the /ec=# parameter in the startup command file. # can be any number between 1 and 34 or between 51 and 200, inclusive. However, it is best to use an event counter, #, that is not equal to 1 because 1 is the default event counter for UniInt‑based interfaces.
To specify additional rate counters for additional copies of the interface, create additional I/O Rate tags and additional entries in the iorates.dat file. The event counter, /ec=#, should be unique for each copy of the interface.
Set the /ec=# parameter on the startup command file of the interface to match the event counter in the iorates.dat file.
The I/O Rate shared memory server and the I/O Rate monitor program must be stopped and started for the changes to take effect. The easiest way to do this is to run the pistop and pistart command scripts with the following commands:
sh $PIHOME/bin/pistop nohup sh $PIHOME/bin/pistart One can determine that the shared memory server and the I/O Rate monitor are running with the commands:
Ps –ef | grep ioshmsrv Ps –ef | grep iorates
Performance Points
Performance points can be configured to monitor the amount of time in seconds that it takes an interface to complete a scan for a particular scan class. The closer the scan time is to 0 seconds, the better the performance. The scan time is recorded to millisecond resolution. Several other measurements concerning the performance of the interface can be monitored with performance points..
Performance point configuration is the same on all operating system platforms. Performance points are configured as follows.
Set the extended descriptor to: