Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5355

recovery of a result under labwindows

$
0
0

Hello,

on a project based on image processing using vision assistant for processing under a script and then convert it to code c under labwindowscvi 2017, where I calculate distances between every 2 points on the image using (caliper) under Vision Assistant,after code generation as follows

 
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

Viewing all articles
Browse latest Browse all 5355

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>