09-26-2006 03:43 AM
09-26-2006 08:43 AM
09-26-2006 11:18 AM
yes.when i change the type of the client.i find i can recive data .but when i put it as a subvi ,i find my tcpserver can't send data out .why?
i put the tcpserver in while loop
09-26-2006 11:25 AM
I don't understand. Your server is already in a while loop and if you put the whole VI you've posted in another while loop, you just keep calling the TCP Listen and you certainly don't need to do this. This should only be done once at the beginning of your main. You would also need to eliminate the while loop in your posted VI if you want to call it as a subVI.
09-26-2006 10:00 PM
09-26-2006 10:13 PM
Dennis Knutson 写:
you just keep calling the TCP Listen and you certainly don't need to do this. This should only be done once at the beginning of your main.
i can put the port out of the while loop,so it would be done once at the beginning of my main.but the data in it must de written all the time .i don't know how to change it better.
09-26-2006 11:00 PM