LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP read error "the network is too busy", when try to use more than 1 tcp read in a while loop.

Hi, Guys,

I am trying to use tcp read to receive data from different tcp write commands, but when I use more than one tcp read(with the same connection ID), I got "network is too busy" error and program stopped.  How do I tell the difference which tcp write I am receiving?

For example:

I have two tcp write: 

tcp_write1 sending "tcp write 1", I am expecting tcp_read receve "tcp read 1" and dispaly in string1

tcp_write2 sending "tcp write 2", I am expecting tcp_read receve "tcp read 2" and dispaly in string2

How do I do that?

Thanks

 

 

0 Kudos
Message 1 of 2
(2,988 Views)

Hi cguan,

 

I don't know of any easy to do that with TCP read/writes. However NI System Engineering has a reference library called Simple TCP/IP Messages that does what you want. Here is a link

 

LabVIEW Simple Messaging Reference Library (STM)

 

Please let me know how this works out.

Joe Daily
National Instruments
Applications Engineer

may the G be with you ....
0 Kudos
Message 2 of 2
(2,967 Views)