LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW executable working with some Windows 10 computers but not others

Solved!
Go to solution

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

0 Kudos
Message 1 of 8
(1,967 Views)

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?

Message 2 of 8
(1,962 Views)

Am presuming u tried a right click and "run as admin" on the exe?

0 Kudos
Message 3 of 8
(1,943 Views)

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?

 

 

George Zou
Message 4 of 8
(1,924 Views)

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

0 Kudos
Message 5 of 8
(1,874 Views)

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.

0 Kudos
Message 6 of 8
(1,872 Views)
Solution
Accepted by topic author rviano

Have you tried NI MAX?

Is the COM port recognized in MAX?

 

George Zou
Message 7 of 8
(1,863 Views)

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!

0 Kudos
Message 8 of 8
(1,844 Views)