Cognex Visionpro-Single ToolBlock Tool Specification and Script Measurement Specification Case Sharing

Insert image description here

Project requirements: Test the width within the red box

Insert image description here

display effect

Insert image description here
Use tool input and output variable analysis:
Variable analysis: Variable Select1 forces the output result of this ToolBLock to be O.
The detailed steps for writing the specific script are as follows:

Step 1: Create variables

Guess you like

Origin blog.csdn.net/weixin_44301520/article/details/133153458