LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Telnet programming?

So I am about to dive into making a Telnet program to interface with a new product.

 

Having not done any programing with Telnet I am kind of lost.

 

I have searched the help and examples but turned up nothing for Telnet.

 

Anyone have any VI's handy for opening a Telnet session, logging in, sending commands to navigate through a menu structure, then sending commands and receiveing the data, then parsing the data?

 

In reality the stuff I have for our old products that had a serial port should still work as far as navigating the menu structure,  sending commands to get data, and parsing the data.

 

I just need to make it work through a telnet session.

 

Is it as simple as opening a TCP connection on port 23, like opening a VISA session for the comm port on the old products?

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 1 of 4
(2,966 Views)
If you have code that works it should be relatively easy to add support for telnet. If you are using VISA already you can use VISA to open the TCP connection on port 23. Then simply use your existing code that parses and interacts with the menus.


Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Message 2 of 4
(2,960 Views)

Is there any disadvantage to using the VISA VI's when communicating with a device/product using telnet as opposed to the Telnet VIs that are also available?

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

The Telnet VI's are actually wrappers that, at the core, use TCP functions. The toolkit with the VI's has since been deprecated. Here is a link with some more information:

http://digital.ni.com/public.nsf/allkb/EB34E86CE3AD08D686257A2B005482FD?OpenDocument

 

VISA can be used with GPIB, VXI, PXI, Serial, Ethernet, and/or USB interface.

 

Thanks!

Stephanie S.
Application Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,585 Views)