LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP wait on Listener not responding to messages

Solved!
Go to solution

Hi,

I have a producer/consumer design pattern where I use the producer loop as the TCP message receiver and consumer loop as the sender.

I want the receiver to continuously receive messages and pass it down to the sender loop to respond.  

However, the issue I'm having when I try to test out my code is that when I'm sending a message continuously to the receiver, it receives the message only once and then the Wait on listener function starts outputting time out error 56 and never responds to subsequent messages.

Unfortunately I cannot post the code but I've attached a screen shot of the message receiver and sender. I also attached my sample tcp message sender code. Any ideas how to tackle this?  Thanks in advance.

0 Kudos
Message 1 of 2
(2,723 Views)
Solution
Accepted by topic author SolPS

Problem fixed by using the TCP Listen VI and placing it outside the loop and configuring it to wait indefinitely.

Thanks

0 Kudos
Message 2 of 2
(2,676 Views)