06-21-2006 03:49 AM
06-21-2006 05:12 AM
06-22-2006 04:21 AM - edited 06-22-2006 04:21 AM
Thanks Andre, I did manage to do what I wanted after all. But I realised one thing however, because some of the files I will be transfering take about 5mins and some may take as long as 10-20min, there comes about an issue with the timeout value for the 'read from telnet session' vi after I write a command to the session. If I set the timeout value to lets say 300ms, that will be almost ok for the smaller files I will be transfering but if I am transfering larger files which take about 20mins, then the session times out after 300ms before the transfer completes. If I set the timeout to 25000ms which is the default, then for the smaller files, the transfer completes and the session just hangs about. Is there a way I can determin when the transfer is complete or is there a reasonable timeout value I can use to accomodate for both the transfer of small and larger files?
Another issue with the read from telnet session vi is that I read in a while loop which runs every 50th of a second, currently I set the while to exit after it reaches 200. Is this reasonable? Do I need to use a while loop to read and if so does it matter a lot the length of time I read from the session. For example if I sent a command to list all the files in a given dir, how many times would I have to read to make sure I capture the entire output? If I used a while loop, when would I exit, after how long? Can this be determined or would I just have to read for a lengthy period of time hoping that I do capture the entire output?
cheers,
Bupe
Message Edited by Bupe on 06-22-2006 04:30 AM
06-22-2006 10:19 AM