No support for Gige color cameras
Problem: The ReadXMLFileAsync method errors out with a Gige color camera. Loading the xml file to the XmlDocument object generates this error
System.Xml.XmlException: ''.',hexadecimal value 0x00, is an invalid character. Line 7479 position1.'
Fix pushed:
1: Corrected StartStreamAsync method: On the Mako G-507C PoE, the stream-control registers (GevSCPHostPort, GevSCDA, GevSCPSPacketSize, GevSCSP) aren’t exposed as GenICam feature nodes, so GetRegister(...).pValue is null. Configure them using raw GVCP register reads/writes instead—this is reliable because those registers exist regardless of what the XML publishes.
2: Trim Trailing Zeros if they exist in an camera xml file.That will cause an exception building the XMLDocument object
Most of the Bayer formats (color format) are tested and they work fine, there can be a issue as I haven't tested any RGB format (if this is what you mean by color camera).
Btw I didn't receive any PR for the fix
Hello,
I’ve just submitted a pull request.
While testing with an Allied Vision Mako G-507C PoE (color camera), I encountered two issues:
The camera’s XML file contained trailing zeros, which caused an exception when building the XMLDocument object.
After resolving that, another exception occurred because the properties GevSCPHostPort, GevSCDA, GevSCPSPacketSize, and GevSCSP were missing from the XML file. I addressed this by using the corresponding registry values instead.
These issues did not occur when testing with a greyscale camera (FLIR BFS-PGE-31S4M-C).