Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-485/2 2-wire loopback configuration & connection

Solved!
Go to solution

I am using the NI USB-485/2 box with CVI and was successful in configuring the two 485 ports in 4-wire mode, connecting the ports for loopback testing and tested by sending data out one port and receiving the same data in the second.  Now I want to change the configuration to 2-wire because I need to interface to equipment using 2-wire so I have read about all the documentation I can find and still have confustion about 2-wire port configuration, transceiver control and loopback connections.  I see three 2-wire port configuration options 1) DTR controlled with echo, 2) DTR controlled without echo, 3) Auto TXRDY controlled.  I see the "RS-485 Transceiver Control" table in the manual and Quick Reference but do not understand what it is trying to tell me at all.  I have studied it for a long time.  There is no explaination of these three options.  So my questions is what are the difference in these three and for each of these options how does the port need to be configured (any handshaking enabled?) and how would I wire the 2 ports together to run a loopback test?

 

I have setup port configurations through VISA attributes for 2-wire Auto with baud, num bits, stop bit, etc, and it seems to be returning successful responses.  (I used VISA only because I did not find the ComSetEscape call before I completed the above).  I connected portA TX- to portB TX- and portA TX+ to portB TX+ for loopback testing and could not get it to work in the short time I tested.  It looks like the data transmits but never gets received.  I am using the VISA write and read functions.

 

0 Kudos
Message 1 of 4
(4,434 Views)
Solution
Accepted by TomB@NASIC

Tom, This document talks a little bit more about the different modes: http://digital.ni.com/public.nsf/allkb/E905D94CF3C0601D862565EF004D5D7F . In addition we have several examples and walk throughs on how to do a 2 wire loopback test using 485. Have you tried using one of these examples?

 

http://decibel.ni.com/content/docs/DOC-4052

http://decibel.ni.com/content/docs/DOC-4169

http://zone.ni.com/devzone/cda/tut/p/id/3450

http://digital.ni.com/public.nsf/allkb/D5CC369B3E3E6F0586256D1600563245

 

 

 

 

 

Richard S -- National Instruments -- (former) Applications Engineer -- Data Acquisition with TestStand
Message 2 of 4
(4,406 Views)
SUCCESS!! Thanks.  Yes, that makes things much clearer.
0 Kudos
Message 3 of 4
(4,382 Views)
I'm glad you got everything up and running, thanks for the kudos!
Richard S -- National Instruments -- (former) Applications Engineer -- Data Acquisition with TestStand
0 Kudos
Message 4 of 4
(4,363 Views)