LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I write some data to a telnet connection, then perform a read and I only get back the data I have just written.

I am using the Labview Internet Toolkit with LabVIEW V6.1. I do a telnet open connection, followed by a read to get the username: prompt (which works fine). I then send the username (say "kermit") followed by a \r\n. I then do another read, hoping to find the password: prompt, but instead get "kermit\r\n" as the only returned data...
0 Kudos
Message 1 of 2
(2,726 Views)
bhavenst wrote in message news:<50650000000800000093A40000-1042324653000@exchange.ni.com>...
> I write some data to a telnet connection, then perform a read and I
> only get back the data I have just written.
>
> I am using the Labview Internet Toolkit with LabVIEW V6.1. I do a
> telnet open connection, followed by a read to get the username: prompt
> (which works fine). I then send the username (say "kermit") followed
> by a \r\n. I then do another read, hoping to find the password:
> prompt, but instead get "kermit\r\n" as the only returned data...


Perhaps the Telnet server is echoing back the charcters input to it (
a normal feature), so you are indeed reading data FROM the server. Try
a second (or even multiple ) reads to find the password reques
t. As
the read may be terminating on finding a carrage return....
0 Kudos
Message 2 of 2
(2,726 Views)