VBAI Get Image VI

NI Vision Builder ActiveX

VBAI Get Image VI

Retrieves an image from Vision Builder AI. Details

NIVBAILib._NIVBAIInspectionImage is the image you are passing in from a Vision Builder AI inspection.
Image In is a reference to the image from the Vision Builder AI inspection.
ZoomX is the location on the x-axis where you want to zoom in on the image.
ZoomY is the location on the y-axis where you want to zoom in on the image.
error in (no error) describes the error status before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
status is TRUE if an error occurred before this VI was called, or FALSE if not. If status is TRUE, code is a nonzero error code. If status is FALSE, code is zero or a warning code.
code is a number identifying an error or warning. If status is TRUE, code is a nonzero error code. If status is FALSE, code is zero or a warning code. Use the error handler VIs to look up the meaning of this code and display the corresponding error message.
source is a string that indicates the origin of the error, if any. Typically, source is the name of the VI in which the error occurred.
Image Out is a reference to the image from the Vision Builder AI inspection.
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
status is TRUE if an error occurred, or FALSE if not. If status is TRUE, code is a nonzero error code. If status is FALSE, code is zero or a warning code.
code is a number identifying an error or warning. If status is TRUE, code is a nonzero error code. If status is FALSE, code is zero or a warning code. Use the error handler VIs to look up the meaning of this code and display the corresponding error message.
source is a string that indicates the origin of the error, if any. Typically, source is the name of the VI in which the error occurred.

Using This VI

Use this VI to use an image acquired in Vision Builder AI with your LabVIEW code.

Refer to the SimpleExample VI for a demonstration of using an image from a Vision Builder AI inspection in a LabVIEW VI. This shipping example is installed to <Vision Builder AI>\ActiveX Support\Examples\LabVIEW, where <Vision Builder AI> is the location to which you installed Vision Builder AI.