You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am using the following code.
set_tool_digital_output(4,ON) # Camera (on-line state)
wait(1)
vs_set_info(DR_VS_COGNEX) #vision type information setting
vs_connect( "192.168.137.102" ) # Connect to vision- Vision IP, Default port
wait(2)
job_name=vs_get_job() # Get the current setting vision Job
tp_popup("{0}".format(job_name))
wait(2)
vs_set_job("/1part.jobx")
#vs_result
job_name=vs_get_job()
tp_popup("{0}".format(job_name))
vs_disconnect() # disconnect to vision
i can connect to the system, and get the name of the job currently loaded. It will then run the code to load the new Job. the issue is once it loads the new job( I have the Cognex Vision suite open and can see it change the job) it returns the following fault. Value error occurred during program execution. and shows cognex_set_job/Store setting:COGNEX_(0.0) . i have now idea what the issue is and what im doing wrong any help or pointing in the correct direction would be great,
The text was updated successfully, but these errors were encountered:
i am using the following code.
set_tool_digital_output(4,ON) # Camera (on-line state)
wait(1)
vs_set_info(DR_VS_COGNEX) #vision type information setting
vs_connect( "192.168.137.102" ) # Connect to vision- Vision IP, Default port
wait(2)
job_name=vs_get_job() # Get the current setting vision Job
tp_popup("{0}".format(job_name))
wait(2)
vs_set_job("/1part.jobx")
#vs_result
job_name=vs_get_job()
tp_popup("{0}".format(job_name))
vs_disconnect() # disconnect to vision
i can connect to the system, and get the name of the job currently loaded. It will then run the code to load the new Job. the issue is once it loads the new job( I have the Cognex Vision suite open and can see it change the job) it returns the following fault. Value error occurred during program execution. and shows cognex_set_job/Store setting:COGNEX_(0.0) . i have now idea what the issue is and what im doing wrong any help or pointing in the correct direction would be great,
The text was updated successfully, but these errors were encountered: