12-05-2007 02:29 PM
12-05-2007 04:16 PM
hi
in my opinion, the most common error with RS232 -I've done that- is that the hardware is not responding. Ususally is the cable (serial, null modem etc..), that means : what is a TX for the other should be the RX (but not always !).
If the vi you mention is working then is a good point. Now, you have to be sure that the TX on the cable connects to the right pin to the hardware (try changing the cables first, then if it is still not working post again...)
N
12-05-2007 04:18 PM
The loopback test verifies that the UART on your pc is working and that you have NI-VISA installed. It doesn't do much more than that. With a instrument connected, the things that could be wrong are: wrong baud rate, wrong parity, wrong number of stop bits, wrong number of data bits, wrong number of stop bits, incorrect command, incorrect format of command, straight through cable when null mom is required, null modem cable when straight through is required, no termination character, incorrect termination character, incorrect format for termination character.
There are so many things that could be wrong and you haven't provided much information as to narrow it down. You could provide the make and model of the instrument, the exact command you are sending, the programming manual, and the actual VI with the command saved (use Edit>Make Current Values Default). I would also recomend using a program such as Hyperterminal first. You can usually get help from the vendor if you explain what you have done with that. Some will have never heard of LabVIEW.