Building the Task

A Task was constructed out of an Image File Device, referencing a sample VisionPro image data base file (C:\Program Files\Cognex\VisionPro\Images\RangeWithGrey.idb), and a VisionPro Tool Blocks, containing:

  • Cog3DRangeGreySplitterScriptTool: Produces a RangeImage result, and GreyImage result, which are used as an input to the CogPMAlignTool and CogFixtureTool, respectively.
  • CogPMAlignTool: Produces the Results.Item[0].GetPose() for the CogFixtureTool RunParams.UnfixturedFromFixturedTransform input.
  • CogFixtureTool: Produces the output image (GreyImage) for the CogOCRMaxTool and CogPixelMapTool.
  • CogOCRMaxTool: Produces the LineResult (must be added as an output).
  • CogPixelMapTool: Produces the output image for the IDTool.
  • CogIDTool: Produces Results (must be added as an output).

In addition, the VisionPro tags need to be added as outputs, and the Expose ToolBlock checkbox enabled.

Note: For more information about VisionPro tags, see the Adding Tags Using the VisionPro Tag Manager topic.

Once the VisionPro Tool Block is configured, it will appear as shown below: