looping for stats

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • looping for stats

    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
    Jonathan S
    pcdmis 2009
    G&L CORDAX RS-150 DCC
    B&S global 15-30-10
    DEA Delta Slant 30-100-15

  • #2
    STATS/UPDATE at the end of the program but within the loop. I think this is what you want.

    BS
    Windows 7
    Pc-Dmis 2015
    Global Performance 7-10-7


    Comment


    • #3
      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 dirt

      Comment


      • #4
        Originally posted by Perry Fisher
        Jonathan,


        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,

        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.

        TK
        sigpicHave a homebrew

        Comment


        • #5
          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


          • #6
            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.

            PF
            Perry
            B&S Mistral
            3.207 Beta on XP

            Older'n dirt

            Comment


            • #7
              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-15

              Comment


              • #8
                Don / Perry,

                Thanks, guys! Hadn't been hurt by this one yet but your sharing your experience may have saved me some pain in the future.

                TK
                sigpicHave a homebrew

                Comment


                • #9
                  Originally posted by Jonathan S
                  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.
                  If you need to run stats report you need to uncheck the box to keep all the parts you run under the same column heading in Datapage.

                  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

                  Perry
                  Perry
                  B&S Mistral
                  3.207 Beta on XP

                  Older'n dirt

                  Comment


                  • #10
                    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-15

                    Comment


                    • #11
                      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?
                      A spreadsheet report from Datapage will include the stats count numbers.
                      Perry
                      B&S Mistral
                      3.207 Beta on XP

                      Older'n dirt

                      Comment


                      • #12
                        I will be incremented each time the stats are transferred to the database.

                        Comment


                        • #13
                          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-15

                          Comment


                          • #14
                            Yes, it is incremented by pcdmis when the stats header information is written to the stats file.

                            Comment

                            Related Topics

                            Collapse

                            Working...
                            X