halcon異常檢測(try catch)
- 資料
- 官方文檔說明
- 程式測試
- 三級目錄
資料
官方文檔說明
程式測試
try
i:=0
k:=5/i
catch(exception)
ErrorCode:=exception[0]
endtry
dev_get_exception_data (exception, 'error_code', Value)
通過監控 “控制變量”,即可檢視錯誤的具體資訊
輕按兩下檢視 exception,即可看到