Loop Back Test with a RS-485 Port in Two Wire ModeHardware: PXI/CompactPCI>>Controllers
Problem: How do I do a loop back test with a RS-485 port in two wire mode (Auto or non-Auto mode)? Solution: Two-wire Auto Mode: In RS-485 two wire mode you cannot do a traditional loop back test. A loop back test allows for simple testing of a port by sending and receiving data from the same serial port. To put a 485 port in two wire auto mode, connect pin four with pin eight and pin nine with pin five on the same port. You can connect the send and receive line on the port (4/8 with 5/9) and see the echo but this will not allow you to send and receive data to the same port as with other loop back tests. To achieve a test setup similar to traditional loopback test you need to have two 485 ports in two wire auto mode. Connect:
Two-wire Echo (non-Auto) Mode: In RS-485 two wire mode, if you are using auto mode, you cannot see your serial port's reflection by running a basic loopback test. In this case, use echo mode to send and receive data on the same port. Echo mode can be implemented with a serial property node—the Wire Mode property. Property nodes can be obtained by right-clicking on the block diagram and navigating to Programming»Application Control»Property Node. Once you have wired in the VISA resource name, click on Property and navigate to Serial Settings»Wire Mode. Right-click on Wire Mode and select Change All to Write. Right-click on the input terminal and Create»Constant and choose RS485/Wire2-EchoDTR.
Related Links: Developer Zone Tutorial: How to Do a Serial Loopback Test KnowledgeBase 48NB9TBH: Pinout For Serial Ports Attachments:
Report Date: 04/28/2003 Last Updated: 03/20/2009 Document ID: 2WR9LNHW |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||


