Hello,
I have created a program which contains two parallel loops running concurrently. One is an event loop the other is a 10HZ
while loop.reading data over TCP socket. The event loop has calbacks that use same TCP socket for writing /reading data over TCP.
Do I need to provide synchronized (I.e semaphores etc) accesss to TCP? For example, if callback event occurs before 10Hz
loop iteraion,will the 10hz loop defer until callback has completed. I believe that the labview TCP read VI is blocks until data is available and I have 5 sec timeout
in TCP read
Thanks
Hello Hershey,
Can you post a small chuck on code that displays what you are doing? I'm assuming your are trying to communicate with the same port in both of the loops. Is this correct?
Hello,
port shouild be the same but take quick look at code.
Thanks
Hello,
Here are some other VIs I am using. Perhaps you need these to understand what is going on
Thanks
Hello,
Last 2 VI's. Could not attach more than 3 seperately.
Thank you
Hello Hershey,
It looks like almost all of your TCP/IP communication takes place in SBC Communication for Encoder.vi. I looked at the VI properties for this VI and it is set to be nonreentrant. This means that this entire VI will complete before it can be executed from another spot in your main VI. Because of this you do not need to protect this VI by semaphores.