06-12-2024 03:03 AM
Hello
I have a labview program made by a colleague who has found a new job, but after changing production computer (win10 to win11) no COM ports are found.
The device is a Virtual Com Port and has an FTDI chip. FTDI chip drivers are installed.
I see that it find the COM port but then it checks "SYSTEM\ControlSet001\Control\COM Name Arbiter\Devices" in the registry and there is nothing saved there. And it then returns -603.
I have found a fix by inverting the error and starting the labview program (inHouseTest.exe) in administrator mode.
But why is this?
06-12-2024 07:30 AM - edited 06-12-2024 07:31 AM
I would just use the VISA Find Resource and it will just return the available VISA resources. You can apply a filter to the search to make it only the COM ports that show up.
06-13-2024 02:33 AM
Yeah I know.
But why did it work before on the old computer and have stopped working now? Both on the old and the new production computer.
And it works on my computer but not on the production computers.
I guess it has something to do with the registry SYSTEM\ControlSet001\Control\COM Name Arbiter\Devices beeing empty at the prooduction computers.
06-13-2024 08:35 AM
Microsoft has never been particularly concerned about compatibility.
06-13-2024 10:47 AM
Can you get to the COM port using a regular terminal program (like Termite or TeraTerm)?
It sounds like your FTDI drivers are not actually installed correctly, or perhaps you didn't get NI VISA installed correctly.
06-14-2024 01:28 AM
Yes i can open the COM port in realterm.
FTDI drivers are installed twice. (Did not find a way to remove them)
And have tried a repair of NI VISA.
06-14-2024 01:46 AM
Do you have another control set in the registry? Is SYSTEM\CurrentControlSet\Control\COM Name Arbiter\Devices also empty?
06-14-2024 02:31 AM
Yes, SYSTEM\CurrentControlSet\Control\COM Name Arbiter\Devices is also empty on my production computers.
06-14-2024 06:50 AM
I think you are best off just ignoring the registry. Even Microsoft says you should avoid using it. Just use the Find VISA Resource like I showed above and you will know what ports are available regardless of where things may be stored in the registry.
06-14-2024 07:15 AM
It works fine with my fix for one program but another labview program has some vi's lacking so I can't build it again.
It's not used that often but would be nice to have that working as well.
That would probably involve editing the registry or installing some drivers.