Exporting Scan Data

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

  • Exporting Scan Data

    Good Afternoon

    I am conducting 3 different scans on 60 parts. I am using CAD data to generate my scans.
    I was wondering if there is a way of exporting the scan data in the form of the "T" deviation only?

    Thanks in Advance

    I am using Version 2012Mr1
    Bristol Citysigpic
    Home of the Reds

  • #2
    Try something like this. It will create a new row for each part that you run

    Code:
    SCN1       =FEAT/SCAN,LINEAROPEN,NUMBER OF HITS=36,SHOW HITS=NO,SHOWALLPARAMS=NO
                MEAS/SCAN
                BASICSCAN/LINE,NUMBER OF HITS=36,SHOW HITS=NO,SHOWALLPARAMS=NO
                ENDSCAN
                ENDMEAS/
    FPTR       =FILE/OPEN,C:\Users\Public\Documents\WAI\fff,APPEND
    V1         =LOOP/START,ID=YES,NUMBER=SCN1.NUMHITS,START=1,SKIP=,
                  OFFSET:XAXIS=0,YAXIS=0,ZAXIS=0,ANGLE=0
      DIM DIM_1= LOCATION OF POINT SCN1.HIT[V1]  UNITS=IN ,$
      GRAPH=OFF  TEXT=OFF  MULT=10.00  OUTPUT=NONE  HALF ANGLE=NO
      AX       MEAS    NOMINAL       +TOL       -TOL        DEV     OUTTOL
      T       0.0000     0.0000     0.0004     0.0004     0.0000     0.0000 ----#----
      END OF DIMENSION DIM_1
                  ASSIGN/V2=IF(V1==SCN1.NUMHITS,DIM_1.T.MEAS,CONCAT(STR(DIM_1.T.MEAS), ","))
                  FILE/WRITE_BLOCK,FPTR,V2
                LOOP/END
                FILE/WRITELINE,FPTR,
                FILE/CLOSE,FPTR,KEEP

    Comment


    • Virgil UK
      Virgil UK commented
      Editing a comment
      Thanks. I will look into this.

  • #3
    T value is the difference between actual and theo values projected along theo vector :
    ASSIGN/V1=DOT(SCN1.HIT[1..SCN1.NUMHITS].XYZ-SCN1.HIT[1..SCN1.NUMHITS].XYZ,SCN1.HIT[1..SCN1.NUMHITS].TIJK) gives an array of all t values of SCN1.

    I don't know how exporting an array without using a loop from 1 to SCN1.NUMHITS, but writing in a loop is very long...

    Comment


    • Virgil UK
      Virgil UK commented
      Editing a comment
      Thank You.
      I'll look into this.
      I thought it might be easier than this as the T value is always denoted at the end of a measured scan!
Working...
X