06-16-2010 11:19 AM
Hi, someone can help me, I need to use a Telnet session in Labview but without using the http protocol, in this application I can only access the Telnet session using command line, here is an example of how I can access:
06-16-2010 11:36 AM
06-16-2010 11:56 AM - edited 06-16-2010 12:01 PM
Or if you have the Vi's concerned [I think they're in the internet toolkit - search for Telnet on your functions pallete to see if you have them installed],
establish your connection with Telnet open connection (on address 192.168.0.1, port 5454)
read and write as needed with Telnet Read / Telnet Write
when you're done use Telnet Close Connection
(or maybe use Telnet Play Script for your entire conversation, instead of the individual read and write)
Rod.
06-16-2010 12:31 PM
(or maybe use Telnet Play Script for your entire conversation, instead of the individual read and write)
Hi Rod, can you give me a sample?
06-16-2010 03:45 PM - edited 06-16-2010 03:50 PM
I had a similar situation and here is what I did...
In MAX (Measurement and Automation eXplorer)
Select Devices and Interfaces
Select VISA TCP/IP Resources
Create a new resource
Select Manual Entry of Raw Socket
Enter the IP address and port (23 is the standard telnet port)
Give it a name. (VISA Ailas)
Now this "Device" will show up in the VISA drop down just like any other VISA device.
Use the VISA read and write just like you were communicating through a com port.
Since Telnet does not have a stop bit like serial, make sure you enable the termination character.
On your VISA reads set the number of characters to a big number, then VISA will read until it gets the termination character.
See my attached snippet of my Telnet read vi
06-17-2010 09:30 AM
06-17-2010 01:05 PM
That's quite clever. ~
You have said!!
06-17-2010 01:42 PM
I'm sure you could use the TCP/IP functions in the same manner except you would not need to do anything in MAX. After all, that is what the Telnet functions use when you dig down a bit.
06-17-2010 02:08 PM
Dennis Knutson wrote:I'm sure you could use the TCP/IP functions in the same manner except you would not need to do anything in MAX. After all, that is what the Telnet functions use when you dig down a bit.
06-17-2010 02:15 PM
My first instinct was to use the TCP/IP functions but I abandoned them for the VISA route.
I can't remember exactly why bit I think altenbach is eluding to what I was thinking at the time.