I want to get the probe deflection results to a real variable, my intention is to automatically recalibrate the probe if that value is greater than a preassigned value. I used to use "getval" command when I wanted to use a value from a measured characteristic (i.e. if I wanted to use X-axis coordinate from a circle or similar) but I don't know how to get a value from a probe calibration result.
The maximum deflection value is not stored in Quindos6. You'll have to loop thru the 9 deflection value to find the highest. The 9 values are stored in fields r,s,t,u,v,w,x,y,z. Sample code below
! Pull 9 deflection values
GETVALS (OBJ=PRB(1), TYP=PRB, RDS=(r,s,t,u,v,w,x,y,z), REA=(val(1),val(2),val(3),val(4),val(5),val(6),val(7),val(8),val(9)))
!LISREA LDBREA:val()
! assign initial value to zero
Max_Dfl=0
! Loop thru to find largest
DO J,1,9
IFTHEN (VL1=val(J), VL2=Max_Dfl, TYP=GT)
Max_Dfl=val(J)
ENDIF
ENDDO
!LISREA Max_Dfl
The maximum deflection value is not stored in Quindos6. You'll have to loop thru the 9 deflection value to find the highest. The 9 values are stored in fields r,s,t,u,v,w,x,y,z. Sample code below
! Pull 9 deflection values
GETVALS (OBJ=PRB(1), TYP=PRB, RDS=(r,s,t,u,v,w,x,y,z), REA=(val(1),val(2),val(3),val(4),val(5),val(6),val(7),val(8),val(9)))
!LISREA LDBREA:val()
! assign initial value to zero
Max_Dfl=0
! Loop thru to find largest
DO J,1,9
IFTHEN (VL1=val(J), VL2=Max_Dfl, TYP=GT)
Max_Dfl=val(J)
ENDIF
ENDDO
!LISREA Max_Dfl