09-13-2021 06:31 PM - edited 09-13-2021 06:33 PM
I am attempting to communicate with a communications device class (CDC) USB Device. NI VISA is displaying COM ports that don't exist.
Windows Device Manager displays two COM ports: COM3 and COM4. These are correct. NI VISA in LabVIEW displays: COM3, COM4, and COM4). Sometimes VISA will show ASRL5 and ASRL6 as well. This does not match what shows up in Windows Device Manager. How the hell are the COM ports populated in VISA and why are they wrong!?
09-14-2021 10:22 AM
First, it would be nice if you were to provide those two images. I have seen that when running NI VISA, it requires the user to mention which configuration the software should be using (Windows or VISA). Without that selection, sometimes ports would have dual options until one method or the other is chosen. If that is the case for your configuration, then nothing is wrong as it requires user intervention in NI-MAX to select the preferred connection option.
09-17-2021 11:52 AM - edited 09-17-2021 11:56 AM
Here's a side-by-side screenshot
In this case, the device is present in the system and Device Manager correctly shows the device as present. While VISA resource manager displays the device as 'Not Present'.
The opposite case is also true. The device will go into standby/sleep and VISA will continue to incorrectly show the device as 'Present'. While Device Manager removes the device from the list.
09-17-2021 01:17 PM - edited 09-17-2021 01:19 PM
Here's a screenshot of the other case.
COM4 is disconnected and stills shows up in VISA resource manager as present.
I'm not sure where the settings are to pick between Windows and VISA configuration.
09-23-2021 06:32 AM
I find that doing [Refresh] in MAX does not update many things while doing [F5] does. Try it.
09-23-2021 11:25 AM - edited 09-23-2021 11:26 AM
Thanks! Yes that worked. I never would have thought to do that.
09-23-2021 12:01 PM - edited 09-23-2021 12:01 PM
Nice work NI, bang-up job! 👍