Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cognex Set Job Issue #41

Open
cjorden opened this issue Mar 1, 2024 · 0 comments
Open

Cognex Set Job Issue #41

cjorden opened this issue Mar 1, 2024 · 0 comments

Comments

@cjorden
Copy link

cjorden commented Mar 1, 2024

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant