09-08-2022 03:36 PM
I have a LabVIEW executable developed on a computer running Windows 10. When I try to run the .exe on other computers, it has worked perfectly on 3 different computers but will not work at all on a 4th computer.
The executable is used to connect to a pump via USB-A cable to control the flow rate. On the computer where the software doesn't work, the pumps are recognized as having connected to COM ports via the computer's Device Manager but are not being recognized in the LabVIEW executable.
All computers are running Windows 10, the only notable difference is that the computers it works on (as well as the one it was developed on) are all running Windows 10 version 21H2 while the computer it does not work on is running Windows 10 version 20H2.
Has anyone else encountered a similar issue or have a workaround?
Thanks,
Robert
Software: LabVIEW 2019 (64 bit)
Hardware: External pumps connected via USB
Solved! Go to Solution.
09-08-2022 03:58 PM
I need some clarification.
Your post title implies that the executable isn't working on one computer. But your post itself talks about hardware.
Does the executable actually run, but fail to connect to hardware? If so that sounds like a driver issue or a hard-coded COM port issue. We can't help you there unless we get the code, or at least more information.
If the executable fails to run, what errors do you get? What is the behavior when you try to launch it?
09-08-2022 05:29 PM
Am presuming u tried a right click and "run as admin" on the exe?
09-08-2022 06:49 PM
> The executable is used to connect to a pump via USB-A cable to control the flow rate.
> On the computer where the software doesn't work, the pumps are recognized as having connected to COM ports
> via the computer's Device Manager but are not being recognized in the LabVIEW executable.
Have you checked the COM port # ?
Is it the same as other computers?
09-09-2022 08:01 AM
Hi George,
The COM port #s vary by computer but aren't hard coded into the executable. The executable was designed in a way that it gives a listed COM ports currently connected to the computer and the user chooses which COM port corresponds to the connected pump. The issue is that on the computer running Windows 10 version 20H2 the executable is failing to recognize any COM port connections despite the pumps showing up as connected on the computers device manager.
Thanks
09-09-2022 08:03 AM
Yes, sorry. The executable opens and is usable but is unable to recognize any COM ports connected to the computer despite them showing up on the computer's device manager.
09-09-2022 08:31 AM
Have you tried NI MAX?
Is the COM port recognized in MAX?
09-09-2022 10:12 AM
That was it! The computer had NI MAX installed but didn't have NI-VISA with it so the COM ports weren't being recognized in MAX or the executable. Installing VISA fixed that problem and everything works now.
Thank you!