I wanted to set up a loop to collect data for stats, but the stats counter is at the top in the program header. Is there a way to save stats with a number count from within a loop? 3.5mr2 TIA
looping for stats
Collapse
X
-
looping for stats
Jonathan S
pcdmis 2009
G&L CORDAX RS-150 DCC
B&S global 15-30-10
DEA Delta Slant 30-100-15Tags: None -
Jonathan,
Here is a portion of a capability program I run regularly. I put this after tne MODE/DCC command:
C1 =COMMENT/INPUT,How many parts are you going to run?
V1 =LOOP/START, ID = YES, NUMBER = C1.INPUT, START = 1, SKIP = ,
OFFSET: XAXIS = 0, YAXIS = 0, ZAXIS = 0, ANGLE = 0
L1 =LABEL/
C2 =COMMENT/YESNO,Have You Changed Parts?
IF/C2.INPUT=="YES"
GOTO/L2
END_IF/
IF/C2.INPUT=="NO"
GOTO/L1
END_IF/
L2 =LABEL/
STATS/ON,DATAPAGE,$
DIRECTORY=C:\DATAPAGE\HAP,$
DIRECTORY=,$
READ=10,WRITE=20,MEMPAGES=4,DIMENSION NAME,CONTROLCALC OFF,$
STATS/END
At the end of your program put a STATS/UPDATE command and LOOP/END command. Also make sure you go into SETUP OPTIONS and uncheck "Display brackets for feature arrays".Perry
B&S Mistral
3.207 Beta on XP
Older'n dirtComment
-
Originally posted by Perry FisherJonathan,
At the end of your program put a STATS/UPDATE command and LOOP/END command. Also make sure you go into SETUP OPTIONS and uncheck "Display brackets for feature arrays".
Just a question from the ignorant, why? to the italicized above. I understand the update loop/end it's the other I'm ignorant of.
TKsigpicHave a homebrewComment
-
Leaving the brackets displayed will send features to Datapage with a different name for each trip through the loop (CIR2.X[1], CIR2.X[2]...). Turning the brackets off enables tracking of data for multiple runs (all will be CIR2.X).v2013 MR1, v2015.1
B&S Global 544, 555
Mitutoyo A504 w/PC-DMIS
sigpic
Since 1994
Never force anything. Get a bigger hammer.
(Advice from my dad.)Comment
-
TK,
The STATS/UPDATE is not critical. Without a STATS/UPDATE nothing is sent to Datapage until all parts are run. I started doing this after a freak power outage occured while a 3 hour long cap study was dumping data. The database was corupted, lost all the data and had to re-run them. I also convinced our IT guy to get me a battery backup as well.
And, if you do not uncheck the "Display brackets for feature arrays" option a new variable will be created within Datapage for each part run instead of 30 pcs of data, or however many parts are run, are under each variable. I have re-run a few cap studies because of this as well.
I hope that answers your questions.
Edit: I type slow. Don's answer explains better anyway.
PFPerry
B&S Mistral
3.207 Beta on XP
Older'n dirtComment
-
So, if I want traceability on the parts (numbered) I leave the "display" brackets box checked? Normally it wouldn't matter, but if I know the process has some variation, I may want to be able to isolate the outliers for the die makers.Jonathan S
pcdmis 2009
G&L CORDAX RS-150 DCC
B&S global 15-30-10
DEA Delta Slant 30-100-15Comment
-
Originally posted by Jonathan SSo, if I want traceability on the parts (numbered) I leave the "display" brackets box checked? Normally it wouldn't matter, but if I know the process has some variation, I may want to be able to isolate the outliers for the die makers.
I always uncheck the box then if I need to find the outliers I run a Data Report from Datapage. From there I either save to file and import into Excel for further use or print the Data Report and count rows to find which part(s) are the outliers.
HTH
PerryPerry
B&S Mistral
3.207 Beta on XP
Older'n dirtComment
-
I see.
What I'm wondering is what ends up in the Stats Count column since the counter in PC-DMIS is in the header at the top of the program and it will not be within the loop?Jonathan S
pcdmis 2009
G&L CORDAX RS-150 DCC
B&S global 15-30-10
DEA Delta Slant 30-100-15Comment
-
What I'm wondering is what ends up in the Stats Count column since the counter in PC-DMIS is in the header at the top of the program and it will not be within the loop?Perry
B&S Mistral
3.207 Beta on XP
Older'n dirtComment
-
OK. I thought the number was incremented by PC-DMIS before transfer to Data Page.Jonathan S
pcdmis 2009
G&L CORDAX RS-150 DCC
B&S global 15-30-10
DEA Delta Slant 30-100-15Comment
Related Topics
Collapse
-
by Jonathan SHow do I add a count # to my stats report from inside a loop? Can I make the loop ID = tracefield and have that update each time through? What is the...
-
Channel: PC-DMIS for CMMs
09-26-2008, 09:50 AM -
-
by Jonathan SDoes trace field need to follow the stats command? Does it need to be inserted between STATS/ON and STATS/END?
-
Channel: PC-DMIS for CMMs
07-29-2008, 08:53 AM -
-
Help! I have just been updated to Data Page + 2012 and have been trying to send data from PCDmis to data page. I have a loop in my program to if I only...
-
Channel: DataSuite SPC
01-09-2014, 02:58 PM -
-
by inspector212I've seen this twice now. The stats code is in the program but the stats (XSTATS11.tmp) do not send to the PC-DMIS folder. The PCs were restarted but...
-
Channel: PC-DMIS for CMMs
05-30-2008, 01:39 PM -
-
by Paul Sarrach
I am writing a program that for some reason stopped updating the the Dimensionla output. So I put in a Stats to make it go to datapage. It...
-
Channel: PC-DMIS for CMMs
05-09-2006, 10:22 AM -
Comment