Skip to main content
Skip table of contents

cognex_set_integer (job_name, integer_number)

Features

Loads the entered index of the corresponding job.

(*VS_TYPE: DR_VS_COGNEX)

Return

ValueDescription

1

Success

-1

Fail

Example

PY
vs_set_info(DR_VS_COGNEX)             #Vision type information setting 
vs_connect("192.168.137.10")     #Connect to vision - Vision IP, Default port
res = cognex_set_integer("Pattern_1.Scale_Tolerance",1)     # Enter your task
tp_popup("{0}".format(res)) 
vs_disconnect()                   #Disconnect to vision
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.