IMAQ Clamp Max VI
- Updated2023-02-21
- 12 minute(s) read
Requires: NI Vision Development Module
Finds edges along a region of interest (rotated rectangle only) and measures the distance between the furthest opposed points on the edges found. Edges are determined by extracting contours from the ROI and analyzing their order and geometry. When valid calibration information is present, the distance is measured in pixels and real-world units.
Supported Image Types

![]() |
Overlay Settings is a cluster defining the information that is to be overlaid on the result image.
|
||||||||||||||||||||||||||||
![]() |
Source Image is a reference to the source image. |
||||||||||||||||||||||||||||
![]() |
ROI Descriptor is the descriptor that defines the rotated rectangle within which to perform the clamp.
|
||||||||||||||||||||||||||||
![]() |
Curve Extraction Settings is a cluster containing information about how curves are extracted from the image.
|
||||||||||||||||||||||||||||
![]() |
Coordinate System specifies the coordinate system to which the ROI Descriptor is linked.
|
||||||||||||||||||||||||||||
![]() |
error in (no error) describes the error status before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
|
||||||||||||||||||||||||||||
![]() |
Clamp Settings is a cluster that controls the behavior of the clamp. You can control the angle tolerance of the clamp and the edge polarity of the curves.
|
||||||||||||||||||||||||||||
![]() |
Image Out is a reference to Image. |
||||||||||||||||||||||||||||
![]() |
Clamp Results is a cluster which shows the measured distances and angles for the applied clamp.
|
||||||||||||||||||||||||||||
![]() |
Clamp Points is a cluster specifying the locations of the clamp start and end points, both in pixel and real-world coordinates.
|
||||||||||||||||||||||||||||
![]() |
Coordinate System (duplicate) is a reference to the coordinate system.
|
||||||||||||||||||||||||||||
![]() |
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
|
||||||||||||||||||||||||||||
![]() |
Calibration Valid indicates whether the calibration information in the image is valid. Returns TRUE if calibration information was available to compute the clamp in real-world units. |
Examples
Refer to the following for an example that uses this VI.
- LabVIEW\examples\Vision\Caliper\Clamp Max.vi






















