Probe Calibration (MACRO)

Started by jason25, June 05, 2012, 03:28:19 AM

Previous topic - Next topic

jason25

I wrote this little macro because we kept forgetting to connect to our device(s) before clicking the device properties button to calibrate.  We primarily use FARO arms and we have a few Romer arms, so that is what the macro is written for.  Enjoy!
version "5.0"
#=======================================================
# ---- InnovMetric Software Inc.
# ---- Module  :    IMInspect
# ---- Version :    12.0.6 ( 12.00.06.4483 )
# ---- Date    :    Wednesday, March 14, 2012 - 10:01:54
#-------------------------------------------------------

DECLARE macro_error

PROBE DEVICE ( "Faro Arm" )
PROBE DEVICE CONNECT ("On")

MACRO GET_ERROR_STATUS(macro_error)

IF $macro_error == "Error"
    PROBE DEVICE ( "CimCore Arm" )
    PROBE DEVICE CONNECT ("On")
    MACRO GET_ERROR_STATUS(macro_error)
    IF $macro_error == "Error"
        MACRO PAUSE ("Error", "Could not connect to FARO arm or CimCore arm.")
        MACRO END
    ENDIF
   
ENDIF

PROBE DEVICE PROPERTIES