04-16-2015 08:47 PM
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.
04-17-2015 05:22 PM
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
04-17-2015 08:03 PM
@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.
04-18-2015 07:55 AM
the line seperator is explicitedly <CR><LF> or carriage return and line feed. No other line seperator is automatically supported.