LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA read RS 485 in half-duplex

I have a VI that's running fine now after some troubleshooting. I have a serial 422/485 - USB converter that then connects to my laptop. And I'm using Device Monitoring Studio to see what the data I send over. I'm having trouble understanding how this gets sent over half-duplex. It seems like I can't use full duplex mode with the converter since it specifies it as RS 422 and I'm using a RS 485. I also tried it earlier and my Labview VI will produce an error in that configuration. However when I wire it in half duplex my Labview VI will work but on Labview it's showing me the same data I sent over. I'm wondering if my indicator is in the right place in order to read what's coming from the external device. Right now it's wired to the "VISA read" read buffer terminal. Is that the right way to read the data coming back? My goal is to see the data I sent over in the Device Monitoring Studio software but I'm not seeing it currently.

 

Also, what's confusing me is that when I specify the wire mode to be in 4-wire the Labview VI works and it sends the same data back to me but when I specify the wire mode to be in 2-wire auto I get a timeout. Isn't half duplex supposed to be in 2-wire auto not 4-wire?

 

My wiring configuration is the following:

485      serial-USB converter

Tx+   -> T/R+

Rx+   -> T/R+

 

Tx-   -> T/R-

Rx-   -> T/R-

 

GND -> GND

0 Kudos
Message 1 of 3
(3,191 Views)

You need to tie the RX+ to the TX+ line and the RX- to the TX- line. See the RS-485 Topologies section of the attached document. 

—Ben
Prevent your computer from sleeping programmatically!
Use Power Requests
Download from GitHub

0 Kudos
Message 2 of 3
(3,179 Views)

Currently I have it set up that way. The Tx+ and Rx+ are both twisted and go into the T/R+ terminal and the Tx- and Rx- are twisted and go into the T/R- terminal. But I'm wondering why am I not seeing the data in the software though.

0 Kudos
Message 3 of 3
(3,171 Views)