Posted Wed, 13 Sep 2023 09:25:11 GMT by Fisher, Sam
Hi all,

I want to send commands from Hercules software to DPO 4054 over ethernet. What is the TCP port number for sending commands? There is a video on this link : How do I configure the LAN settings on an MDO4000C series oscilloscope? | Tektronix. I only see e-Scope HTTP port number. Is it same?

Thank you in advance.
Posted Wed, 13 Sep 2023 16:04:44 GMT by Teles, Afonso
Hi Sam,

The recommended way to remote control pretty much all of our instruments is to use a VISA (like TekVISA) which handles the connection details for you (USB, GPIB, Ethernet, etc) and gives you a robust protocol for communication. You can then use a library in your favorite language (like pyvisa for Python) to write programs that send and receive data through VISA.

For Ethernet specifically, if you don't want to use VISA (which is probably a mistake), then you can use what we call "raw sockets", which is not well documented and significantly harder to use. To do this you simply connect to the instrument's IP on port 4000, you can then send commands and receive back data, similar to a Telnet interface.
Posted Thu, 14 Sep 2023 05:42:23 GMT by Fisher, Sam
Hi Afonso,

Thank you for this clear information. I use Hercules to check if everything works. At the end of the day I will connect Siemens S7-1500 series PLC to DPO4054 and that's why I think I should use "raw sockets". Maybe I should add a PC and use it as a gateway.
Posted Thu, 14 Sep 2023 15:25:34 GMT by Teles, Afonso

Hi Sam,

That sounds like a good reason to use raw sockets.

I try to steer most people away from raw sockets because it can cause some real headaches, but there are legitimate reasons to use them (mainly if your controller can't run a VISA or if speed is critical).

You must be signed in to post in this forum.