LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Telnet Read VI and variable length response

I am trying out Internet Toolkit's Telnet VIs.

It seems that the Telnet Read VI defaults to 60 bytes.

 

I am not sure what is the best way to deal with the situation of a variable length response.

Some responses are 3 lines; others can be 50 lines.

 

 

0 Kudos
Message 1 of 4
(2,828 Views)

Hi,

Regarding your inquiry, you should try setting the “bytes to read” to a value less than or equal to 0 and simultaneously set the “read mode” to “line” so the VI would read until data matches “line separator”.

A. Acuna

Applications Engineer

National Instruments

A. Acuna
0 Kudos
Message 2 of 4
(2,774 Views)

@aacuna wrote:

Hi,

Regarding your inquiry, you should try setting the “bytes to read” to a value less than or equal to 0 and simultaneously set the “read mode” to “line” so the VI would read until data matches “line separator”.

A. Acuna

Applications Engineer

National Instruments


So, the "line separator" can be the prompt?

 

Thanks. I will give that a try on Monday.

 

 

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

the line seperator is explicitedly <CR><LF> or carriage return and line feed. No other line seperator is automatically supported.

Rolf Kalbermatter
My Blog
0 Kudos
Message 4 of 4
(2,743 Views)