LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW telnet interface

I have finally found a solution. As we already know, there are no Telnet modules available in LabVIEW after the 2012 version. To address this, I started writing a C code that consists of functions such as ConnectAndSendCredentials, SendCommand, CloseTelnetConnection, ProcessResponse, and ReadResponse. I then created a header file with these functions for importing them as a DLL into LabVIEW. Be sure to include the header file and add __declspec(dllexport) in front of every function in the header file. This attribute explicitly defines the DLL interface to its client, which can be an executable file or another DLL. After converting these into DLLs, import the DLL into LabVIEW and create a VI. In this VI, you can enter the IP address with the specific username and password separated by ";" if there is any encryption.

image (2).png

0 Kudos
Message 11 of 12
(351 Views)

Why make a dll and wrapper?  You can do it all with the TCP functions.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 12 of 12
(228 Views)