OpenPort with vin-driver and order of ports

Hi @Laurens

first of all I want to say sorry for the late response!

When loading the :cvb: vin driver, port 0 gets automatically loaded before it switches to the desired port.
Since opening a specific port twice isn’t possible (at least if you do it from different processes), it makes sense, that you can’t load the driver, if you already opened port 0 before. To fix this, you need to adjust the GenICam.ini file. It is located at %CVB%Drivers. Simply enable the following flag:

AutoSwitchEnable=1

All it does, is letting the driver check if the port, it currently wants to load, is already in use, and if so, it changes to the next port or as in your case: to the desired port.

Alternatively you can use the new :cvb: discovery. You will find a short tutorial on how to use it in this post: https://forum.commonvisionblox.com/t/exception-during-discovery/318/8?u=rtp_derahs

2 Likes