For automatic device detection you can use
[SYSTEM]
CreateAutoIni=1
After loading the driver you can query the number of devices via CS2GetNumPorts
. But for this you need to be able to load the GenICam.vin. But be careful if you are automatically discovering devices: the GenICam.vin will detect GigE Vision cameras twice on Windows operating systems:
- Filter Driver
- Socket Driver
You would need to filter the GenICam.ini manually.
For opening GenICam-devices you can use the function I proposed here:
https://forum.commonvisionblox.com/t/old-image-broken-after-setting-new-camport/66/5?u=parsd