LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Comunication with LabView

Hi everybody!
 
I've a problem with the serial comunication menaged by LabView... Smiley Sad
 
I've a PC with two serial ports (COM1 & COM2) and I realized two really simple programs to test serial communication: 
 
  • "Serial Tx"  to transmits the string "AA" from port "COM1".   
  • "Serial Rx"  to receive this string from port "COM2".

I've checked with the oscilloscope and the string is properly generated by COM1... Smiley Happy

I start "Serial Rx" and after this, I immediately start "Serial Tx"... But I don't read anything and after the timeout value "Serial Rx" ends Smiley Sad

Can you help me ?!?!

Thank you very much! Smiley Wink

Download All
0 Kudos
Message 1 of 9
(3,494 Views)
Can you post the screen shot of your vi or post it for Lv 8.0?
0 Kudos
Message 2 of 9
(3,492 Views)
You only need one serial port to talk to one scope. The serial port does both send and receive. RS-232.
0 Kudos
Message 3 of 9
(3,490 Views)
First try communicating with Hyperterminal. If you can get that to work, the LabVIEW should have no problem.
Message 4 of 9
(3,487 Views)
If you are just doing a loopback test, then verify you have the correct type of cable. You need one that swaps the Tx and Rx lines. Your comment about the Rx VI stopping does not make any sense. It's supposed to stop whether it reads anything or not. You have no loop there to read continuously.
0 Kudos
Message 5 of 9
(3,479 Views)

Ok...

I attach the screenshoot of the programs.

I don't want to comunicate with the oscilloscope... I want to send datas by one port and read them from another one of the same PC!

I just controlled with the oscilloscope if they go out from the sending port...

 

Download All
0 Kudos
Message 6 of 9
(3,476 Views)
As I said, check your cable. Also, as has been already mentioned, try Hyperterminal. If that doesn't work, you've got the wrong cable (or a bad serial port).
Message 7 of 9
(3,469 Views)
Try "visa configure serial port" first it should work.
0 Kudos
Message 8 of 9
(3,434 Views)
The cable was the wrong one!!!
 
Thank you for the suggestion! Smiley Wink
0 Kudos
Message 9 of 9
(3,412 Views)