INTRODUCTION
This article describes the steps necessary to collect data from PC-DMIS while still allowing your data to flow to DataPage. If you wish to do this, use this information instead of the normal STATS/ON and STATS/TRANSFER documentation.
Normally at the end of the inspection routine, PC-DMIS creates a TMP file (either date/time.tmp or xstats11.tmp) and calls DPUpdate.exe which updates DataPage. If you call the STATS/ON and STATS/TRANSFER, it takes the file that would have gone to DataPage and sends it to QC-CALC instead.
However, there is a little known back door to PC-DMIS. Just after creating the TMP file, it looks in it's application path (C:\PCDMISW\) for a file called StatUtil.bat. If this file exists, it runs it (passing in the path to the TMP file as its only parameter) and then sends the data to DPUpdate.exe when it's finished. This allows us to insert batch commands. As such, we have created a batch file that will copy the stats file to QC-CALC just before sending it to DataPage.
STEPS
- First create the StatUtil.bat file. Do this by opening notepad and pasting the following code:
echo off
if "" == "%1" goto err
copy %1 C:\SPCData
goto end
:err
ECHO Bad Name passed
pause
:end
echo on
- Save the file as StatUtil.bat. When you save from notepad, make sure you choose "*.*" in the Files Of Type drop down list. Otherwise, Notepad tends to add a .txt on the end which would cause it to become StatUtil.bat.txt. If this is the case, PC-DMIS will not find it.
- Copy the file to the C:\PCDMISW\ directory.
- Make sure QC-CALC is looking at the SPCData directory by going to Tools > Options > Data Collection > Data Source Information. Make sure the path File Path and Name is set to C:\SPCData\*.tmp. Click OK when finished.
- Inspect your parts. They should continue to flow to DataPage and will also start flowing to QC-CALC Real-Time.