LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI 8.1 - RS-232 - Everything transmitted is in the receive buffer

Using the following code, everything transmitted is in the receive buffer - how can I prevent this? And, how is this happening? The receiving end is not echoing the data.
 
Thanks!
 
   memcpy(out_buffer, "AT\r\n", 4);
   ComWrt (com1, out_buffer, 4);
   Delay(5);
   inx = ComRd (com1, (char *)buffer, 8);

0 Kudos
Message 1 of 2
(2,748 Views)
One thing I would double check is that com1 actually refers to the physical port you think it does. If your ports' aliases changed, you could possibly be writing/reading out of a different physical port -- maybe one that has a loopback connector hooked up.

If that's not it, can you give some details about your setup? For example, what kind of port (built-in, or plugin board) com1 refers to, what it is connected to, if anything... Can you can reproduce this behavior if you disconnect the cables/connectors from all the machine's serial ports? That would definatively show that the issue has nothing to do with connections or DTEs.

Mert A.
National Instruments
0 Kudos
Message 2 of 2
(2,734 Views)