10-08-2025 03:52 AM
Hello Experts,
I have used the built-in LabVIEW Vis, VISA for my serial Communication. While running my I got all the outputs. Now I want to make an application for it. I have built an .exe file. But now If I run that application, I am getting an error through VISA VI. What should be the Problem? Did I forget to add the VIs Library while building he application? Or what should be the problem? I am only using In built Visa Vi. Not a specific Vi.
Please suggest a solution.
10-08-2025 04:02 AM
What is the error code? Please provide a screenshot on the error message.
10-08-2025 04:08 AM
Hi rshah,
@Rshah31 wrote:
But now If I run that application, I am getting an error through VISA VI. What should be the Problem?
How do you define the COM (?) port?
Which error do you get?
Did you implement any error handling?
(Problem analysis: the problem originates in your code.)
@Rshah31 wrote:
Please suggest a solution.
Show your code.
Implement error handling.
Make sure your code uses the correct COM (?) port.
Generic advice: Provide more useful information about your problem.
10-08-2025 05:01 AM
Did you include VISA drivers in your installation package?
10-08-2025 07:25 AM - edited 10-08-2025 07:29 AM
Hello,
Sorry for insuficient information. I have attched the Vi. which I want to make as an executable file. I am getting an error no.Error -1073807246 while opening the port. In fact, I already set the Comport Number
10-08-2025 07:59 AM
Hi Rshah,
@Rshah31 wrote:
I am getting an error no.Error -1073807246 while opening the port.
Something else is accessing the COM port - there can be only one!
(Or you forgot to close the COM port before…)
10-08-2025 11:36 AM
That something else could be LabVIEW. You built your application with LV and then tried to run it, but LV still has control of the port.Try closing LV and then running the application.
10-08-2025 12:18 PM - edited 10-08-2025 12:19 PM
As everyone said this error usually means the Com port is open in another application.
Also I think you could benefit from watching this video: VIWeek 2020/Proper way to communicate over serial