取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
11 条消息(共 14 条)
1,132 次查看

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



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
12 条消息(共 14 条)
1,009 次查看

 

Hello Aravindhk

could you kindly share the dll and header file  ? Thanks

0 项奖励
13 条消息(共 14 条)
401 次查看

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.

0 项奖励
14 条消息(共 14 条)
380 次查看