LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial port time out

I have an ADT-681 gauge that can be operated via the RS-232 port. I tried to write a simplified VISA serial port write-and-read program with the correct configuration for the serial port. When I execute the program, LabVIEW 2016 gets timeouts on reading every time. However, other serial port monitoring and manufacturer's testing application works fine, where I can track and control the gauge normally. My guess from the log is that LabVIEW over-configures the serial port or sends excessive control commands into the serial port, which leads to overflow.

Download All
0 Kudos
Message 1 of 4
(927 Views)

Your guess is wrong!

 

That other software sends always an additional NULL termination character (or two) at the end of every command but you are not doing that in LabVIEW. The device seems to expect that in order to know that a command is finished and can be parsed and evaluated.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 4
(914 Views)

Certainly it's not necessary to set the timeout over and over again. But reading the dump is not enough (besides being annoying).

It's by far better to show us your code. Preferably saved for a previous version if your LabVIEW is very recent.

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

@pincpanter wrote:

It's by far better to show us your code. Preferably saved for a previous version if your LabVIEW is very recent.


Additionally, a user manual that explains the messaging protocol would be extremely helpful.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 4
(865 Views)