LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

rs485 serial communication

Solved!
Go to solution
Solution
Accepted by topic author ALZJ

I don't understand why you don't get any response. It seems that the instrument does not get or recognize the command.

You said the serial port utility is working, with the same hardware I guess?

You may install a serial port analyzer to view what's actually sent over the line when using the utility. See for example here, there are many other though.

Here is a list of other possible problems:

- serial port settings (for example baud rate, but not only) are wrong

- instrument address is wrong (zero is often used as a broadcast address, you may try it)

- your RS485 port is an adapter plugged into a RS232 and needs the RTS line to be high to enable transmission

- the manual is wrong and you need \r instead of \n to terminate the command

 

Paolo
-------------------
LV 7.1, 2011, 2017, 2019
0 Kudos
Message 11 of 12
(77 Views)
Highlighted

Hi Paolo,

I use \r to terminate the command and it works! Thanks for your help!

0 Kudos
Message 12 of 12
(57 Views)