LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI telnet ssh protocol

I am trying to connect to a device via a telnet session.  I am not that familiar with creating TCP interfaces.  The device uses SSH protocol.  Are there any examples in CVI 7.0?
0 Kudos
Message 1 of 9
(8,306 Views)
Howdy TheSpecialist,
 
Refer to the KnowledgeBase Using SSH TCP Communications Protocol With NI Software for reference on NI's current stance on SSH. After reading through this document, refer to our LabWindows/CVI Telnet shipping examples (Help >> Find Examples; Navigate to Networking >> Internet & Web). These examples base off of our Internet Library (Library Tree >> Internet Library) that comes with the Full Development System of LabWindows/CVI.
 
Hope this helps!
 
Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 2 of 9
(8,284 Views)
I downloaded PUTTY and I can connect to the device I am testing.    The problem is to test the device in a production environment I need to automate the process using CVI.  I need to connect, enter login/password then enter test commands and read the feedback from the device.  Does sample code exist the demonstrates how to automate putty in a CVI environment.  I work for Honeywell and we currently use CVI 7.0.  Some of the example programs do not function properly.  I downloaded 8.01 and am currently trying to connect to the device.  This is the first of many projects I am working on the envolves connecting to a device using telnet/network connections.  Any help/suggestions is greatly appriciated.
 
Jon K.
 
0 Kudos
Message 3 of 9
(8,244 Views)
Howdy Jon,
 
We don't have any shipping examples that show communication with putty. However, its quite simple to do through using our LaunchExecutableEx function. For the filename argument, you could give it the path to "putty.exe" along with some command line arguments.  The list of available command line arguments that putty accepts can be found in the putty.hlp help file under Contents >> Chapter 3 >> Section 3.7. One example of using the LaunchExecutableEx function can be found in the <CVI>\samples\utility\launchexe.prj example. 
 
Hope this helps!

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 4 of 9
(8,228 Views)
The problem is the command line arguements are used once you run the putty.exe program.  I need to dynamically send commands, then read and analyze the data coming back.  The command line parameters are only launched when you run the exe file.  I need a way to pull in the text data.
0 Kudos
Message 5 of 9
(8,200 Views)
Hi Jon,
 
First off, since LabWindows/CVI doesn't inherently have any built-in SSH Communication functions, I would suggest making this a product suggestion. The KnowledgeBase I sent you entilted Using SSH TCP Communications Protocol With NI Software provided two options for using Putty. The first was through a command-line interface. The second was to use port-forwarding along with LabWindows/CVI TCP functions. This might be the path you need to take. Refer to that document for instructions.
 
If these options still don't satisfy your needs, then it appears we have encountered just a limitation of CVI and you might just need to use the Internet Library's Telnet functions instead. 
 
I also googled putty to see if Putty supports an ActiveX interface but it appears its does not.  
 
Hope this helps!
 
Best Regards, 
Jonathan N.
National Instruments
0 Kudos
Message 6 of 9
(8,190 Views)
I'm back.  I tried setting up putty with port forwarding but do not know how to read the port.  Using the client/server examples available with CVI 7.0 I can not connect to the port in question.  Do DLL's exist that I can reference that perform basic login, transmit and receive functions?  I need to automate this process for production testing.  The only alternative so far is to buy a package with VB.net that will perform SSH functions.  I would like to keep my test softwar in CVI.
 
 
0 Kudos
Message 7 of 9
(7,839 Views)
Hi,

You can used extraputty which is addon of putty.
This software offered an Telnet API. You can send and received data from teststand.
On the web site an major update it's to add SSH API for TestStand.


I hope, that can help you.

Sorry for my bad english (the french guy .......)

extraputty : http://extraputty.free.fr

Asebt.


Message Edité par asebt le 01-29-2008 04:30 PM
0 Kudos
Message 8 of 9
(7,604 Views)

Hi,

 

Sorry, because your conversation date of several years, but I'm very interesting by your subject.

In fact, I'm doing a project where I want communicate with a device (Raspberry) with the SSH protocol and not with Telnet. I'm using Labwindows/CVI to automate this project. It's typically the same project that The Specialist, and I don't find any solution on Internet.

Do you found the solution to do that?

 

Sorry, my English is really bad. I hope even so that you will understand my question.

 

Thanks you for all answer that could be help me,

 

Caro.

0 Kudos
Message 9 of 9
(5,732 Views)