The display window will then outline the write and read operations.In the Basic I/O tab, select Query to send the default *IDN?\n command.Once the Test Panel window has opened, select Input/Output.In MAX, select the communications port of interest and select Open VISA Test Panel.
#How to test loopback cable code#
Make sure not to have VISA Test Panels and LabVIEW simultaneously open, or VISA will throw an access resource error (error code -1073807246 hex:0xbfff0072). Note: You can test communication in MAX VISA Test Panels or LabVIEW examples. If you are using RS-485, select the Advanced tab and make sure the Transceiver Mode is set correctly.
#How to test loopback cable serial#
For more information on serial settings, refer to the Help topic. Make sure the proper settings are selected and select Validate.
![how to test loopback cable how to test loopback cable](https://docs.oracle.com/cd/E19620-01/805-4443/images/graphic59.gif)
![how to test loopback cable how to test loopback cable](https://www.cablesnmore.com/content/images/thumbs/001/0013241_t1e1-loopback-tester.jpeg)
It is not recommended to use the RJ-50 connector by itself to perform a loopback test due to the small separation between pins. If you use a RJ-50 to DB-9 serial cable (Part Number 182845-XX), a loopback test can be performed using the pins for a DB-9 connector. The positive connections are indicated in red, the negative connections are indicated in blue, and the GND connections are indicated in green. Refer to the pins below based on your connector type. From port 1 to port 2, wire the shorted positive signals together, and the shorted negative signals together.On each RS-485 port, place jumper wires between the TXD+ and RXD+ signals, and between TXD-and RXD- signals.The positive connections are indicated in red and the negative connections are indicated in blue.įor 2-wire configurations, you will need two RS-485 ports to achieve a set up similar to a traditional loopback test. On an RS-422/485 port, connect the TXD+ signal to RXD+ signal, and the TXD- signal to the RXD- signal. *It is not recommended to use the RJ-50 connector by itself to perform a loopback test due to the small separation between pins. If you use a RJ-50 to DB-9 serial cable (Part Number 182845-XX), a loopback test can be performed using the pins for a DB-9 connector. On an RS-232 port, connect the transmit (TXD) signal to the receive (RXD) signal. For more details on NI serial hardware pinouts, refer to the Serial Quick Reference Guide. Note: The pin diagrams provided for this tutorial are for the female connector.
![how to test loopback cable how to test loopback cable](https://www.cables.com/Merchant5/graphics/00000001/lc-loopback-om1-62.5-micron-orange-duplex.jpg)
RS-422/485) and the type of serial connector you have. Identify what serial communication protocol you are using (RS-232 vs. Refer to the sections below to properly connect your hardware.