Required Input Parameter for imaqCaliperTool Function in C Code

Updated Feb 18, 2025

Reported In

Software

  • LabWindows/CVI

Programming Language

  • C
  • C++

Issue Details

I want to implement imaqCaliperTool function in C/C++ code to get the caliper report for bracket edge detection. When I tried to use the function based on NI Vision C Support documentation, there was no output when I ran the code. I have implemented the required input parameters as shown below. Is there any parameters supposed to be included for imaqCaliperTool function?

 

Solution

The required input parameters for imaqCaliperTool functions by default in LabVIEW are;

  1. Edge Parameters
  2. Image
  3. Pixel Coordinates
  4. Caliper Parameters

The same parameters above should apply when using imaqCaliperTool function in C/C++ code.


The Pixel Coordinates parameter, however can be obtained using imaqROIProfile function. 

Additional Information

In LabVIEW, the Pixel Coordinates contains the an array of pixels to inspect and it can be obtained from a descriptor of region of interest, ROI descriptor using IMAQ ROIProfile VI