Adept AdeptSight Reference Guide User Manual

Page 38

Advertising
background image

code. It continues up the chain until it finds a tool that supports the code. If no valid tool is found, an

invalid vision result error is generated.

For example, suppose an Arc Finder tool is placed relative to a Blob Analyzer tool. In the application, the

Blob Analyzer tool locates many blobs and adds an Arc Finder tool at each instance. If you ask for the

blob area associated with an arc finder instance, VRESULT will recognize that the Arc Finder tool does

not support that code, so it moves to the parent tool (the Blob Analyzer tool) and finds the blob

instance associated with the specified arc result. It validates that the blob result supports the VRESULT

code, and so it returns the data.

Example

The following illustrates how to retrieve a specific tool result.

; Get the number of instances found by a Locator.

; instance count = 1310

instance_count = VRESULT($ip, 1, 2, 1, 1310)

VRESULT real-valued function

AdeptSight Reference Guide, v3.2.x, Updated: 5/8/2012

Page 38

Advertising