11-12-2008 02:08 AM
hi all
i get error code 57 for tcp write.vi, i not sure what the problem is , seems like the problem is caused by using tcp write.vi in different while loop with the same tcp connection reference. why the tcp write.vi can not be used in different while loop?
thanks in advance
11-12-2008 02:28 AM
Hi brian005,
you can use this function in different while loops, but you have to make sure that your network is not in use from the other write functions. Which timeout do you use at the moment? If you enlarge it, it should work.
Mike
11-12-2008 02:55 AM
hi
there is no communication between the two while loop, so even i change the timeout, still have chance to get error, but less than before.
i was thinking may be i wrap the tcp write.vi, and call the wrapper vi instead directly call the tcp write.vi, but i am not sure whether it is a right way?
what is the normal way when need to send data from diffenrent place?
thanks
11-12-2008 03:41 AM
Hi brian005,
you can create an object which makes all the TCP communication. You can use a queue to send the data from the different places to this object.
Mike