Somewhere in the IVA_ImageProcess function, there is a call to a function similar to this:
VisionErrChk (IVA_GetDistance (image, ivaData, 2, 0, 2, 2, & caliperResults));
caliperResults is a structure of type IVA_Result whose definition is given a little higher in the file
typedef struct IVA_Result_Struct
{
#if defined (IVA_STORE_RESULT_NAMES)
char resultName[256]; // Result name
#endif
IVA_ResultType type; // Result type
IVA_ResultValue resultVal; // Result value
} IVA_Result;
The result of the measurement is in the value resultVal which can be type : bool or double or char
So i want to calculate the distance between several points my qst:
1 how to display the result i would like to test and see the results under CVI
2 how to recover its data as an array to reuse it to calculate another parameters
Thanks for help