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.