07-06-2010 08:14 AM
Hello, I am trying to build a VI that will run forever and constantly listen to a port and recieve integers and display them. i would like to make it so that a person on a different computer without labview can telnet to my PC at the port and send integers. I only want to listen to the numbers he sends, on reply is necessary. I'm trying to test my VI by running it and opening a puTTY window and telneting to 127.0.0.1 but it doesn't work. Im probably missing somehtign very simple here. any help would be appreciated. by the way im using labview 8.2
07-06-2010 08:18 AM
Hi F11Raven,
your vi is definitively missing some code to read or write data to/from ethernet. What have you done so far? Do you have the Internet Toolkit? It contains vi's to work with telnet.
Mike
07-06-2010 08:20 AM
i dont think so, where can i get it?
07-06-2010
08:28 AM
- last edited on
02-28-2025
03:52 PM
by
Content Cleaner
Hi F11Raven,
here is a link:
http://sine.ni.com/nips/cds/view/p/lang/de/nid/2501
Mike
07-06-2010 08:31 AM
is there no way i can do this wiht my current software?
07-06-2010 08:39 AM
Hi F11Raven,
you can use the TCP/IP functions to realize the telnet protocol. Or maybe there is already a free library which you can download.
Mike
07-06-2010 08:44 AM
but just using the TCP functions givien in labview (open, listen, read, write, wait on listener etc) can't i do this? im just not sure which ones to use but im sure you can do it with those.
07-06-2010 08:47 AM
Hi F11Raven,
yes as i wrote, you can write your own vi's. First you can create a listener, the std port is 23. Wait for a connection. Then you can use read and write to send data. See the TCP IP Server example (in the example finder) to get a first step in the correct direction.
Mike
07-06-2010 08:55 AM
i looked at the example and its pretty much what i have. i listen for connections on port 2305. then i assume the program blocks there until a connection is established. then it sends the connection id to the tcp read. then the TCP read blocks until it receives somehting and when it does it outputs it to the front panel. then repeats the reading. i dont know what im missing here
07-06-2010 09:26 AM
Hi F11Raven,
do you speak about your vi posted earlier? I can't find something what looks like TCP/IP.
Mike