LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Include VISA Vis while building .Exe in Labview.

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. 

0 Kudos
Message 1 of 8
(151 Views)

What is the error code? Please provide a screenshot on the error message.

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 2 of 8
(147 Views)

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.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 8
(138 Views)

Did you include VISA drivers in your installation package?

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 4 of 8
(108 Views)

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

Rshah31_0-1759926588337.png

 

0 Kudos
Message 5 of 8
(85 Views)

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…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 8
(77 Views)

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.

0 Kudos
Message 7 of 8
(26 Views)

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

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 8 of 8
(19 Views)