12-23-2010 01:49 AM
Hi, me and my team are currently using both VBAI and LabVIEW to accquire and process images of a straight line.Our method is using VBAI to accquire and process the images and giving appropriate operations according to the angle and position measured.
However we've faced some problems after migrating the VBAI program to LabVIEW. We need to extract the information concerning the angle and position of the output but are unable to do so. We've used the function "Geometry" under the Inspection Steps of Measure Features to determine the orientation of the object in the image. However after migrating the program into LabVIEW we do not know where to get the value from the block diagram. Can anyone help?
Thanks.
12-28-2010 05:49 PM
Hi,
Here is an example (VBAI 2009 / LabVIEW 8.5) that shows how to retrieve the results.
The code generated implements a state machine, that implements your inspection state diagram.
Go to the state where the geometry step is called (Inspect in this example).
Double click on the VI that implements that state. The diagram of the VI is somewhat straightforward: you'll see a VI that implements each of the steps that are in that state. IVB Geometry Code.vi that implements the geometry step has an output for the measurements produced by the step.
Simply create an indicator and add it to the connector pane to have access to it in the caller VI.
Note: In the code generated by Vision Builder 2010 (in LabVIEW 2010), the results are not output by default, in an effort to optimize the code. To get the results from a specific step, set to True the Get Measurement constant in that VI.
The first result of each step is always the Pass/Fail. Use the Result Type enum to determine which of the following Value you need to use.
Hope this helps. Let me know if you have any other questions.
Best regards and Happy New Year!
Christophe