Virus scan in progress. Please wait to download attachments.
Overview This example will perform a RS-485 two wire loopback in AUTO mode.
In order to perform a RS-485 two wire loopback in AUTO mode, you need to have two separate ports to communicate between. In this example, the two wire AUTO mode is programmatically set on both ports. The important part is the connection made between the two ports. Make sure to tie pins 4 and 8 (RXD+ and TXD+) together then wire this connection to pins 5 and 9 (RXD- and TXD-), which should also be tied together. This is refelected in the next two images.
LabVIEW 2012 (or compatible)
Steps to Implement or Execute Code
Specify VISA setting
Run the application.
Additional Information or References
Select the serial resource and the operations (Read, Write, or both) to be performed. If both are selected, the VI will write the data first, read data and then close the VISA session that is opened to the port. This VI will wait until the specified number of bytes is received at the port. Only the number of bytes specified will be read.
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.