Vision Control Overview
Note If you received the IMAQ Hardware control as part of NI-IMAQ and have not purchased IMAQ Vision for Visual Basic, the Vision control is in evaluation mode. |
The CWIMAQVision control includes multiple image processing functions. Each function is a method of the CWIMAQVision control. You can pass parameters to a function as you would with any other function. Most functions take Image objects as inputs, outputs, or both.
Operations can be performed in-place when the same Image object is used as both an input and an output. The following line of code adds image1 to image2 and stores the result in image1.
CWIMAQVision1.Add image1, image2, image1
The CWIMAQVision control handles error checking in two different ways. By default, an exception is generated when an error occurs in and is handled by the programming environment. You can disable exception generation using the ExceptionOnError property of the CWIMAQVision control. If you disable exceptions, each call to a method returns an error code. If the code is equal to zero, the method completed normally. If the value is nonzero, an error occurred and the application should handle the condition.
You can view a complete list of all properties, methods, and events associated with the CWIMAQVision control.