hexagon logo

Reporting the Average of a Looped Dimension

I am a Level 1 programmer trying to do Level 3 programming. I am writing a program to prove the repeatability of the ROMER calibration bar. I have the Loop completed with the dimension for the long length and the short length and it seems to work fine. I am trying to report the average of all 30 dimensions using this programming that I wrote. I couldn't write all 30 in one line for one variable, so I did 10 dimensions for three different variables. My other question, is there a way to shorten this up to one variable.

ASSIGN/V2=ARRAY(DIM1[1].MEAS, DIM1[2].MEAS, DIM1[3].MEAS,...............)
ASSIGN/V3=ARRAY(DIM1[11].MEAS, DIM1[12].MEAS, DIM1[13].MEAS,.........)
ASSIGN/V4=ARRAY(DIM1[21].MEAS, DIM1[22].MEAS, DIM1[23].MEAS,..........)
ASSIGN/V5=(V2+V3+V4)/30


I'm not sure how to get it to report, so I don't know if it is actually working correctly. I just need to prove the average of the 30 dimensions are within the spec.
Parents Reply Children
No Data