01-11-2023 03:48 AM
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.
01-11-2023 04:05 AM
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.
01-11-2023 04:06 AM
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.
01-11-2023 06:53 AM
@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.