Skip to main content
Skip table of contents

vs_set_job(job_name)

기능

입력된 작업을 비전시스템에 로딩한다. (*VS_TYPE: DR_VS_COGNEX, DR_VS_SICK)

인수

인수명자료형기본값설명

job_name

string


로딩할 작업명

리턴

자료형설명

0

int

성공

-1

int

실패

예제

PY
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
JavaScript errors detected

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

If this problem persists, please contact our support.