Example Code

Use co-ordinate system in a different state in VBAI

Functional Description

This example demonstrates how a co-ordinate system that is set up in one state in an inspection in Vision Builder for Automated Inspection can be used in another state as well. The origin and angle of the co-ordinate system can be saved to global variables and then they can be used to set up the co-ordinate system in another state of the VBAI inspection. In this example, the co-ordinate system set up in the 'Inspect' state is also used in 'State 1'.

Caveats and Additional Notes

The attaced inspection was saved in VBAI 3.5.

Vivek Nath
National Instruments
Applications Engineer
Machine Vision

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors