### Using DataPageStats.exe

This tool lets you create a new XML statistics file from your current part program. If you're using PC-DMIS 2010 or higher, you can simply use the STATS/ON command in PC-DMIS instead.

To use this tool:

1. Ensure that your PC-DMIS part program contains dimensions.

2. In your PC-DMIS part program, add an EXTERNAL COMMAND at the end of the part program that references the DatapPageStats.exe file. By default, this file is located here:

C:/Program Files/WAI/DataPage+/DataPageStats.exe

The DataPageStats.exe command supports the following parameters:

1. - No parameters
     This starts DatapageStats in ReceiveAll mode. See "DataPageStats Working Modes" below.

   - -l or -listening
     This starts DataPageStats in listening mode. See "DataPageStats Working Modes" below.

   - -e or -end
     This ends the previous DataPageStats instance.

   - -s or -settings
     This displays the settings dialog box.

3. Execute your part program. When the execution reaches the EXTERNAL COMMAND, the executable runs. A progress bar appears while the XML output is performed.

4. Once the program executes a part program containing statistical data, it creates the following file in your DirectoryForStatsFiles sub directory:

1. - An XML file based on the data within that program.

5. Once the file exists inside the directory, you can use the PcdmisXMLStatsToDatabase.exe file or the DataImporter.exe file to import the XML statistics file into a Datapage+ database of your choice. See "Using PcdmisXMLStatsToDatabase.exe" and "Using DataImporter.exe".

DataPageStats Working Modes

The DatapageStats tool has been enhanced so that it can receive the command data from PCDMIS at the same time the PC-DMIS part program is executing.

DataPageStat now has two working modes called ReceiveAll mode and Listening mode.

ReceiveAll (default mode)

This mode works the same way as in the past. An external command is inserted at the END of the PC-DMIS part program as shown below.

DatapageStats will exit automatically when it's finished receiving all data from PCDMIS.

Listening

This is the new DataPageStats working mode that runs as a background application listening to the PCDMIS execution events. An External Command is inserted at the START of the PC-DMIS part program with a -listening parameter as shown below.

DatapageStats will exit automatically when PC-DMIS finishes executing the active part program.

Settings for DataPageStats

The Settings for DataPagePlus utility is available to update the XML filename as needed.

1. To start Settings for DataPagePlus, from the Start menu navigate to Start | All Programs | DataPage+ | Tools | Setting for DataPageStats as shown below.

2. The Settings For DataPageStats dialog appears.

- Click on the Browse... button to change the directory to where the XML file will be stored.

- Click on the Edit... button to change the name of the XML file.

- Click on the Close button to close the Settings For DataPageStats dialog. Any changes made will be saved.