06-04-2020 10:40 AM
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.
Solved! Go to Solution.
06-04-2020 12:57 PM
Problem fixed by using the TCP Listen VI and placing it outside the loop and configuring it to wait indefinitely.
Thanks