Clamp

NI Vision Assistant

Clamp

Finds edges along a rectangular region of interest (ROI) that you draw in the image and measures the distance between the first and last edges found. The edges are located along multiple parallel search lines drawn within a rectangular ROI. Edges are determined based on their contrast and slope.

Main Tab

The following controls are available on the Main tab.

  • Step Name—Name to give the step.
  • Reposition Region of Interest—When enabled, the step dynamically repositions the region of interest based on a coordinate system you built in a previous step.
  • Reference Coordinate System—Coordinate system to which you want to link the region of interest.

Clamp Tab

  • Process—Type of caliper you want to use.
    •   Horizontal Max Caliper—Measures a distance in the horizontal direction from the vertical sides of the ROI toward the center of the ROI.
    •   Horizontal Min Caliper—Measures a distance in the horizontal direction from the center of the ROI toward the vertical sides of the ROI.
    •   Vertical Max Caliper—Measures a distance in the vertical direction from the horizontal sides of the ROI toward the center of the ROI.
    •   Vertical Min Caliper—Measures a distance in the vertical direction from the center of the ROI toward the horizontal sides of the ROI.
  • Gap—Number of pixels between search lines in the ROI.
  • Edge Strength—Minimum difference in the intensity values between the edge and its surroundings. Only those edges whose strength is greater than this value are used in the detection process.
  • Smoothing—Number of pixels averaged to find the contrast at either side of the edge.
  • Steepness—Maximum distance in which the edge strength must occur. Steepness characterizes the slope of the edge. Use a longer Steepness to detect edges in images whose pixel intensities gradually transition from the background to the edge.
  • Edge Strength Profile—Edge strength along the search line located in the middle of the ROI.
  • Current Distance—Distance measured between the clamp arms.