Features
This function loaded the entered task into the vision system.
Parameters
|
Parameter Name |
Data Type |
Default Value |
Description |
|---|---|---|---|
|
job_name |
string |
|
Task name to be loaded. |
Return
|
Value |
Data Type |
Description |
|---|---|---|
|
0 |
int |
Success |
|
-1 |
int |
Failed |
Example
Python
vs_set_info(DR_VS_COGNEX) #Vision type information setting
vs_connect("192.168.137.10") #Connect to vision - Vision IP, Default port
vs_set_job("test.job") # Set (load) the current vision job
job_name=vs_get_job() # Get the current setting vision job
tp_popup("{0}".format(job_name))
vs_disconnect() # Disconnect to vision