05-24-2024 01:55 AM
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.
05-24-2024 06:08 AM
Why make a dll and wrapper? You can do it all with the TCP functions.
11-19-2025 09:06 AM - edited 11-19-2025 09:09 AM
could you kindly share the dll and header file ? Thanks
11-19-2025 10:20 AM
Hi Sal23,
DLL is overkill in this matter. Refer to message 6 and 10 for easier life.
Following message 6, you will able to establish communication. Key thing is to use the right port number, which is 23. Message 10 talks about handling your response data and option codes, if needed.