10-11-2006 07:51 AM
10-11-2006 08:30 AM
10-11-2006 08:44 AM
I tried to open you VI again and noticed that it was in 7.1.1 which I still cant open but it was not 8 or 8.2 like I first thought. So, I don't think the timed loop is available in your version of labview. At least it is not in my of 7.0.
In your "keep alive" loop do you call a "wait" function? If you do, change that to "wait until next mS". Also, decrease the wait time and then use shift registers to keep track of the time. Then use a case statement to execute the "keep alive" TCP/IP comand after 5 seconds has elapsed. Stop the loop when you need to. Basicaly this will run the loop more often but you will not send you "keep alive" until it has loop X number of you loop iteration.
Sorry about the confusin about the LV versions
Paul
10-11-2006 10:32 AM
10-11-2006 12:39 PM
I was mistaken about the "wait on listener". You are correct. What I wanted to tell you was that the TCP Read has a timeout input. If you set that to -1 it will never timeout untill it reads the number bytes you are looking for. It will pause at this VI in the loop until data arrives. When you want the VI to continue (probably to exit the program) you can close the connection ID from outside the loop. Then the TCP Read vi will stop and put an error on the error out of the VI. Change that specific error to a warning or clear it.
I am really missing LV 8/8.2 right now.