03-11-2009 06:09 PM
I'm having a problem communicating with a device over RS-232 and would greatly appreciate some help.
I can communicate successfully with the device using hyperterm. I have replicated the same port settings in LabView as best I can, (9600, 8, none, 1 none), \r termination character for transmit, etc. and am passing down the identical commands. This work is taking place on a PXI chassis. Both hyperterminal and the exact same LV software control the DUT on a Dell desktop. The problem appears to be a LV port setting or driver issue as it interacts with the serial port on this PXI chassis. I have no reason to suspect the serial port because hyperterm works just fine. The software works just fine on another machine. Is there possibly a port configuration that I am missing with LV on the PXI chassis?
03-12-2009 04:04 AM
03-12-2009 08:14 AM
Albert,
Thanks for the reply. I do attach the expect character at the end or my command "\r".
Mike
03-15-2009 09:12 AM
08-05-2009 03:19 AM
This is too late of a reply to help Mike, but someone else will undoubtedly have the same issue.
The likely solution is that he needed to send a CR LF (\r\n) instead of just a CR (\r) at the end of messages.
Hyperterminal normally sends out CRLF. It's the LF that signals the receiving device to send it's response. When you type commands in Hyperterminal (HT) the characters are either being echoed back by the serial device or locally by HT. Once you hit enter, HT sends CR to get back to the beginning of the line and then LF so that the response from the receiver is on the next line and does not overwrite the command you sent.
steve