hexagon logo

Can PC-DMIS Automatically Take And Save Photos Of Live Image??

Hey guys,

I'm trying to incorporate a line of code that would save an image to a file path before, during or after it measures that feature. Is this possible?

Say the CMM is in DCC mode and the program is measuring a circle, if the circle appears in the live view screen is there any command or line of code to add to save an image of the circle as is before moving onto the next feature?

This would be very helpful in alot of the applications I program for.

Thanks!!!
Parents
  • Using the Image Capture Command
    The Insert | Feature | Image Capture menu item inserts an IMAGECAPTURE command into the Edit window. During execution PC-DMIS will move the vision probe to the specified position, and using the passed magnification and illumination values, it will capture an image of the camera's Live View tab and save it as a bitmap file to the specified location.

    The command in the Edit window has the following syntax:

    IMAGECAPTURE/<TheoX, TheoY, TheoZ>,n1

    ILLUMINATION/Top Lamp [ON:60%] : Bottom Lamp [ON:69%] : Ring Lamp [ON:59%{1110}]

    FILENAME=s1


    TheoX, TheoY, TheoZ are the X,Y,Z coordinates to which the machine will move to take the image capture.

    n1 is a number value indicating the desired optical magnification.

    The ILLUMINATION line of the command block contains read-only illumination information of the lamps at the time the command was inserted. Currently, you cannot modify any of that information directly in the Edit window. The Illumination settings must be predefined in the Probe Toolbox or by manual controls (if available) before inserting the command.

    Specifically, the ILLUMINATION line shows whether a lamp is on or off and what the light intensity is for each lamp. Since the ring lamp is made up of four separate lights, the four numbers in parentheses indicate the ON/OFF state for each of those lights. If they have differing levels of intensity the command will only show the highest value.

    s1 is a string value providing the file pathway and name for the captured bitmap image.

    A finished command might look something like this:

    IMAGECAPTURE/<10.825,0.714,-95.008>,1.863

    ILLUMINATION/Top Lamp [ON:60%] : Bottom Lamp [ON:69%] : Ring Lamp [ON:59%{1110}]

    FILENAME=D:\Images\ImageCapture_4.bmp



    Currently, this command does not have a dialog box associated with it, so you need to make parameter changes in the Edit window or by creating a new command.
Reply
  • Using the Image Capture Command
    The Insert | Feature | Image Capture menu item inserts an IMAGECAPTURE command into the Edit window. During execution PC-DMIS will move the vision probe to the specified position, and using the passed magnification and illumination values, it will capture an image of the camera's Live View tab and save it as a bitmap file to the specified location.

    The command in the Edit window has the following syntax:

    IMAGECAPTURE/<TheoX, TheoY, TheoZ>,n1

    ILLUMINATION/Top Lamp [ON:60%] : Bottom Lamp [ON:69%] : Ring Lamp [ON:59%{1110}]

    FILENAME=s1


    TheoX, TheoY, TheoZ are the X,Y,Z coordinates to which the machine will move to take the image capture.

    n1 is a number value indicating the desired optical magnification.

    The ILLUMINATION line of the command block contains read-only illumination information of the lamps at the time the command was inserted. Currently, you cannot modify any of that information directly in the Edit window. The Illumination settings must be predefined in the Probe Toolbox or by manual controls (if available) before inserting the command.

    Specifically, the ILLUMINATION line shows whether a lamp is on or off and what the light intensity is for each lamp. Since the ring lamp is made up of four separate lights, the four numbers in parentheses indicate the ON/OFF state for each of those lights. If they have differing levels of intensity the command will only show the highest value.

    s1 is a string value providing the file pathway and name for the captured bitmap image.

    A finished command might look something like this:

    IMAGECAPTURE/<10.825,0.714,-95.008>,1.863

    ILLUMINATION/Top Lamp [ON:60%] : Bottom Lamp [ON:69%] : Ring Lamp [ON:59%{1110}]

    FILENAME=D:\Images\ImageCapture_4.bmp



    Currently, this command does not have a dialog box associated with it, so you need to make parameter changes in the Edit window or by creating a new command.
Children
No Data