HOW TO: Running QC-CALC in Parallel with DataPage
Print Friendly View
written: 11/14/2008
last modified: 03/19/2024

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

  1. 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
  1. 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.
  2. Copy the file to the C:\PCDMISW\ directory.
  3. 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.
  4. Inspect your parts. They should continue to flow to DataPage and will also start flowing to QC-CALC Real-Time.


Attachments

Applies To

QC-CALC Real-Time v.4.10
QC-CALC Real-Time v.3.20
QC-CALC Real-Time v.3.00

Category

Data Collection
See more articles in this category