LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tcp write error code 57

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

0 Kudos
Message 1 of 4
(3,614 Views)

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

0 Kudos
Message 2 of 4
(3,608 Views)

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 

 

0 Kudos
Message 3 of 4
(3,602 Views)

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

0 Kudos
Message 4 of 4
(3,599 Views)