From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

control an instrument on network via cmd (telnet)

Hello, I would like to send commands to an instrument on the network through the telnet program that runs with the CMD. I have enabled telnet on windows 10 and when I send the command telnet IP (192. *** .- ***. ***) on CMD it opens my program and I would like labview to send my lines of command on telnet. do you have an idea?

0 Kudos
Message 1 of 3
(1,006 Views)
0 Kudos
Message 2 of 3
(942 Views)

I just use the standard TCP/IP functions to send commands and receive data from a Telnet device.  The only weird part I had to do, because of one device I started using, was to handle Option Codes.  This involved using Match Regular Expression to search for Operation Codes in the received data and replying to those codes that were found (see below).  Everything else was just simple TCP Write and TCP Read.


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
0 Kudos
Message 3 of 3
(937 Views)