在 HALCON 中调试
Read detailed error messages in the Output Console
在 Hdevelop 中调试程序可能具有挑战性,因为错误消息并不总是容易理解。在这种情况下, Output Console 可能能够提供更多详细信息。
例如,如果您将 Zivid Two M70 相机的 SamplingPixel 设置为 blueSubsample4x4 ,您将收到以下错误消息:
并非所有人都能直观地理解该错误是因为 blueSubsample4x4 不被 Zivid 2 M70 支持。然而,查看 Output Console 可以获得更详细的错误信息:
The Zivid camera is not listed in HALCON
Connecting a Zivid camera to HALCON requires two components, one from each vendor.
Vendor |
Component |
Installed by |
|---|---|---|
Zivid |
GenTL Producer |
Zivid SDK installer, GenICam GenTL Producers component |
HALCON |
GenTL Consumer |
HALCON installer, GenICamTL image acquisition package |
Both components are required. The camera does not show up in HALCON if either one is missing.
Only the File and DirectFile interfaces are detected
In the HALCON Image Acquisition Assistant, automatic interface detection returns only File and DirectFile.
The GenICamTL interface is absent, so you cannot select the Zivid camera.
This means the HALCON GenICamTL image acquisition package is not installed. The package is an optional component of the HALCON installation. Installing a newer HALCON version does not carry the package over from an older one.
To fix this, add the GenICamTL image acquisition interface from the MVTec Software Manager. A full HALCON reinstall is not required. Restart HDevelop and run the interface detection again.
备注
This symptom points to the HALCON side of the integration. If the same camera works in another HALCON version on the same machine with the same Zivid SDK version, then the Zivid GenTL Producer is installed correctly.