A company in Europe is using the OPC DataHub Scripting capability to collect data from an OPC server and store it as a comma separated value (csv) file. The DataHub script was developed to simply write a new line to the file every time a set of point values changed in the OPC server. The script also does some conditioning on the data before it is written to file, so that alarm event numbers are converted into plain text strings to make it easier to analyze later.