LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modbus RTU serial communication

Greetings everyone. I am a test engineer that is having some strange issues with a test system that is utilizing a labview program written with labview 2017.

 

I am not the author of the software and unfortunately the software engineer is no longer here. It is utilizing modbus communications via a national instruments 485 card. Specifically an eight channel card to test 8 products at a time. We are periodically receiving timeout errors causing the test to fail. It is a pretty large program utilizing LV class architecture which I am really not that familiar with. However, after searching through the project and all of the sub VI's used within the program I finally found the VI that sets up the communication protocol.

 

My specific question is this: The protocol is hard coded in the program and it is different from the port settings on the computer which is running Windows 11 I believe. The program is set up to use 115,200 baud with two stop bits. The computer settings are 9,600 baud with one stop bit.

 

Could this cause a potential problem as far as communication timeouts or inability to periodically read registers from the processor which is an MSP 430. Does it matter that they are different or should I set the port settings on the computer to match the settings in the software?

 

Thank you for any guidance or information you can provide.

0 Kudos
Message 1 of 3
(507 Views)

Hello Dragon,

 

The baud rate is based on the UUT/Device you are trying to communicate.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 3
(487 Views)

The settings are correct for the device. I just wasn't sure if the computer port settings also had to match.

0 Kudos
Message 3 of 3
(480 Views)