LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

COM Ports not reading after build (VISA included in build)

Using LabVIEW 2012 SP1 f4; building on one computer and running on another via Runtime Engine. In addition to the RTE, I included VISA Configuration Support for MAX 5.2, NI-VISA Runtime 5.3, and NI-MAX 5.4. The first thing that came to my attention was that my instruments do not show up in MAX; serial ports aren't even listed at all. In my VI, I have a drop-down menu to select which COM port is for which instrument (the port number changes between building machine and running machine), and I can see the correct ports, but nothing can be written/read from these ports.

 

This is my first time building an application, also.

0 Kudos
Message 1 of 11
(3,344 Views)

What errors are you getting? Your executable can report errors, right?

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 11
(3,317 Views)

@Quevvy wrote:

Using LabVIEW 2012 SP1 f4; building on one computer and running on another via Runtime Engine. In addition to the RTE, I included VISA Configuration Support for MAX 5.2, NI-VISA Runtime 5.3, and NI-MAX 5.4. The first thing that came to my attention was that my instruments do not show up in MAX; serial ports aren't even listed at all. In my VI, I have a drop-down menu to select which COM port is for which instrument (the port number changes between building machine and running machine), and I can see the correct ports, but nothing can be written/read from these ports.

 

This is my first time building an application, also.


If you go to MAX, it should show all the software installed. Can you put a screenshot of that ?

Let's compare that with whats available on your development computer. Also, like the other gentlemen asked, can you please provide the errors you are getting?


Kudos are the best way to say thanks 🙂
0 Kudos
Message 3 of 11
(3,313 Views)

Here are the errors I'm getting:

Just Errors.jpg

The "Temp Error" is from a manufacturer's VI (Eurotherm 24xx VIs), so I'm not sure exactly where the Flush I/O Buffer happens.

With the other two, Set I/O Buffer Size is the first thing I do with the COM port, so it's not able to do anything with the instruments.

 


 

 Here's what's on the developing computer's MAX:

Developer MAX.JPG

 

 

and here is the deployed computer's MAX:

Runtime MAX.JPG

 

Thanks for the help!

 

PS - Sorry for responding so late!

 

0 Kudos
Message 4 of 11
(3,266 Views)
What sort of com ports? Built-in on the motherboard are the only type you'll see without installing drivers.
0 Kudos
Message 5 of 11
(3,261 Views)

@Dennis_Knutson wrote:
What sort of COM ports? Built-in on the motherboard are the only type you'll see without installing drivers.

I guess they are connected via an expansion card. How can I include drivers in my installer?

 

I'm skeptical that this is the problem though. I build the installer and then installed it on my development machine (which should have the correct NI drivers, right?) and that's where I got these error codes. When I simply run the VI, it works, but when built into an .exe file, the COM ports no longer work.

0 Kudos
Message 6 of 11
(3,259 Views)
Your comment makes no sense. You were talking about not seeing any com ports in MAX. To fix that problem, you need the windows device driver that came with the hardware.
0 Kudos
Message 7 of 11
(3,255 Views)

Well, then this problem makes no sense. Smiley Frustrated

 

When I run my VI on the development machine, it works fine. After I build and install it onto the same computer, it can no longer communicate with the instruments. I think this is the issue that needs to be fixed first before I try deploying it on the runtime machine.

0 Kudos
Message 8 of 11
(3,246 Views)
Did you even look up that error? It sounds like you might have LabVIEW and the exe open at the same time. You cant do that and it has nothing to do with not seeing any com ports on MAX.
0 Kudos
Message 9 of 11
(3,244 Views)

@Dennis_Knutson wrote:
Your comment makes no sense. You were talking about not seeing any com ports in MAX. To fix that problem, you need the windows device driver that came with the hardware.

All the drivers were already installed, I just wasn't sure if there were drivers that LabVIEW also required. I just uninstalled and reinstalled NI-MAX, and now they show up. However, I cannot open a VISA Test Panel to test out the connection. I validated each of the ports (i.e. baud rate, stop bit, etc.), but would like to use a Test Panel to verify the read/write procedure for each instrument. I also cannot access the NI VISA Interactive Tool.

 

One of the ports is now reading correctly, but I am still getting zero readings from the other 2 ports. The error I got was -1073807339: VISA Read in [name].vi. I am not 100% sure on what command I have to write to the instrument to get the reading, so that might be the problem (could be easily fixed if the VISA Test Panel could be accessed).

 

Does the VISA Test Panel only work on development systems?

0 Kudos
Message 10 of 11
(3,224 Views)