From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Telnet VIs - MAC OS X - Any way to read #Bytes in buffer?

Solved!
Go to solution

Hello Folks,

 

I am trying to do Telnet Read from my DUT. At this point, I am not sure about the #bytes to read, so I am considering using the "normal" or "line" mode reading chunks of data with a small timeout (~50mS order).

 

Is there anyway to read the #bytes in the buffer so I know exactly how many bytes I need to be reading, something similar to what we have for Visa?

 

Please let me know.

 

Thanks.


Kudos are the best way to say thanks 🙂
0 Kudos
Message 1 of 4
(2,265 Views)
Solution
Accepted by topic author winterishere8
There is no buffer to read. VISA doesn't read any buffer either.
0 Kudos
Message 2 of 4
(2,245 Views)

Hey Dennis, 

 

I've used this in the past with luck. I suppose we dont have something similar for Telnet?

 

Screen Shot 2014-06-26 at 3.43.46 PM.png


Kudos are the best way to say thanks 🙂
0 Kudos
Message 3 of 4
(2,217 Views)

No, as Denis said.  There is no buffer here to read.  Telnet is an unbuffered protocol so there isn't a bytes at port.

If you are truly doing a telnet then line mode is correct protocol for determining end of line.  If you are doing non terminal type stuff, then the message packaging and end of message terminator is up to you.

LabVIEW ChampionLabVIEW Channel Wires

0 Kudos
Message 4 of 4
(2,215 Views)