hexagon logo

Assign the Average Deviation and Standard Deviation of a Profile

Hi Y'all.

I have a simple question with a long-winded lead up, so please bear with me.

I have a customer that would like us to start reporting the Average Deviation and Standard Deviation of profile measurements. They even want to apply tolerances to these metrics. So, I'm looking for a way to display these on the report with a tolerance applied. That way our CMM operators can make a quick pass/fail judgment on each part.

I see that PC-DMIS has the option to display these metrics in a DIMINFO box, but I don't see a way to make them appear directly on the report. Even so, what I would really like to do is assign those values to some variables so I can go the route of putting them in generic features and reporting them with tolerances applied.

For example. Here is a Legacy Profile Dimension from the Edit Window:


And how it appears on the report:


From the DimInfo Box Dialog window I have access to the metrics I want.


And I can see from the Graphics Display Window that the values are being calculated:


I found that I can get the Standard Deviation using the GetText command:

However, I just can't seem to find a way to get the Mean value.

​Does anyone know how I can assign the Mean value to a variable? Or possibly an easier way to get the Standard Deviation value?
Or can you think of any other routs I may take to report these metrics with tolerances applied?


Parents
  • You said assignment ?Rolling eyes
    DISPLAYPRECISION/6 (or 7 in inches)
    ASSIGN/T_VALUE=DOT(DSCN01.HIT[1..DSCN01.NUMHITS].XYZ-DSCN01.HIT[1..DSCN01.NUMHITS].TXYZ,DSCN01.HIT[1..DSCN01.NUMHITS].TIJK)
    ASSIGN/MEAN=AVERAGE(T_VALUE)
    ASSIGN/STD_DEV=SQRT(SUM(T_VALUE^2-MEAN^2)/(DSCN01.NUMHITS-1))


    If there's no AVERAGE in your version, just

    ASSIGN/AVERAGE=SUM(T_VALUE)/DSCN01.NUMHITS
Reply
  • You said assignment ?Rolling eyes
    DISPLAYPRECISION/6 (or 7 in inches)
    ASSIGN/T_VALUE=DOT(DSCN01.HIT[1..DSCN01.NUMHITS].XYZ-DSCN01.HIT[1..DSCN01.NUMHITS].TXYZ,DSCN01.HIT[1..DSCN01.NUMHITS].TIJK)
    ASSIGN/MEAN=AVERAGE(T_VALUE)
    ASSIGN/STD_DEV=SQRT(SUM(T_VALUE^2-MEAN^2)/(DSCN01.NUMHITS-1))


    If there's no AVERAGE in your version, just

    ASSIGN/AVERAGE=SUM(T_VALUE)/DSCN01.NUMHITS
Children
No Data