11-09-2009 12:06 PM
Hi,
I have a question about working with an RS-232 connection in LabVIEW. I did a search on it in the Examples window in Help and found the Basic Serial Write and Read.vi file (it came standard with the IDE). I read the description at the top (in the yellow box) and based on how I understood it, I should be able to write to the RS-232 connection (say COM1) and then read from it a little later and display the read string. I typed in 10 characters of "a" and ran the app (right before the string "*IDN?\r\n"). The problem that I got was that the character array was not displayed! Why? I could swear that this worked somehow some time ago.
I do not get an error message, just don't see my original message that I typed in.
Solved! Go to Solution.
11-09-2009 12:20 PM
What do you have connected to the serial port? Unless you've done a loopback, you will not get what you wrote. If you have no loopback or instrument, you will not read anything.
11-09-2009 12:27 PM
At the moment nothing. I'm relatively new to RS-232 and doing development on it 🙂 .
How would you set up a loopback on it?
11-09-2009 12:40 PM
You connect the transmit line to the receive line. On a DB9 that's pins 2 and 3.
Doing a loopback does not do much more than test whether the port on the pc is functional. Not much good for debugging anything related to an actual instrument you might have to connect.
11-10-2009 02:06 PM