Demonstrates how to dynamically adjust image acquisition parameters based on the results of analysis performed downstream in the inspection process by making use of variables in Vision Builder for Automated Inspection (VBAI).
When setting up an image acquisition step in VBAI, you normally adjust the camera parameters and then go about creating a script to perform a task. Since many vision processing algorithms are very sensitive to lighting conditions, the environmental lighting has to be strictly controlled for predictable algorithm results, or the inspection must be modified to account for the change in lighting conditions.
Many users assume that you will have to change these parameters manually every time the environment changes, but it is possible to update the acquisition parameters based on the results of an inspection step. This allows your application to respond to changing environmental conditions without direct user input.
Regards,
Alyssa H.
Applications Engineer
National Instruments
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.