LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Write and read serial port simultaneously

how to read the same data that is written to the COMport.

0 Kudos
Message 1 of 7
(2,001 Views)

Please open a new thread. Probably your question has nothing to do with this old post.

What you mean exactly? Please give details: do you want to read with what: another program? another computer? ...?

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 7
(1,994 Views)

How to write data to the COM port? And also I want to read the same data from it.(which I write to the COM port)

0 Kudos
Message 3 of 7
(1,989 Views)

@Parvathiiii  ha scritto:

And also I want to read the same data from it.(which I write to the COM port)


What's the point in doing this? This is nearly nonsensical. You already know what you wrote.

If you insist, you can put a loopback on the serial connector. If the serial port is a two wire RS-485, you even don't need the loopback.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 4 of 7
(1,977 Views)

As already stated, if using RS232 or RS422, you need a loopback on your port.  For RS323, this means you wire pin 2 to pin 3.  What I typically do for testing a serial port is to use 2 ports with a crossover cable between them.  Then when I write on one port, I can read on the other.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 7
(1,916 Views)

Or you can use a null modem emulator, such as com0com

0 Kudos
Message 6 of 7
(1,883 Views)

Start here:

How to Perform a Serial Loopback Test

 

Also watch this video before you begin ANY serial communications programming:

VIWeek 2020/Proper way to communicate over serial

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 7 of 7
(1,877 Views)