Products > Test Equipment
How do you find the proper communication TCP/IP port number for Rigol DG-1022z?
(1/4) > >>
Ben321:
Ok so I have my DG-1022z connected by ethernet cable to my laptop, and I want to control it without installing the massive framework that comes with NI software. Even for controlling just one device you have to install an entire set of NI drivers for tons of devices. Even if you just download the official Ultra Sigma software, running the installer adds in a ton of NI bloatware (like drivers for every possible device that Rigol makes), with no chance to select just the driver(s) for the device(s) you plan to use. At least that's the situation for the USB connection. As much as I'd like the convenience of operating my DG-1022z as a USB device (so I don't need to waste an Ethernet port), I don't like that Rigol depends exclusively on NI software and driver framework, and doesn't bother to write their own Rigol drivers that you can install by themselves (one for each device that Rigol makes). So to avoid wasting several gigabytes of harddrive space, I've decided to not go with the USB connectivity, and instead go for Ethernet connection.

Fortunately the official Rigol programming guide at https://beyondmeasure.rigoltech.com/acton/attachment/1579/f-0493/1/-/-/-/-/DG1000Z%20Programming%20Guide.pdf gives me every command I'll need to use. Unfortunately, neither this nor any other document I can find tells me what the TCP/IP port number is for sending commands to the DG-1022z. Even the onscreen display on the device itself, when viewing the LAN settings, doesn't show a port number. Instead, the closest thing it shows is a string intended for use with NI VISA drivers (the name of the field is even "VISA" on the onscreen display). The string in question says TCPIP0::192.168.1.1::INSTR and this doesn't tell me at all what the port number is. What I can gather from it is that it's using TCP/IP as the protocol, 192.168.1.1 as the IP address, and that this is for controlling the instrument (it abbreviates it as INSTR). No mention of the port numbers. Apparantly, Rigol intends not only the USB connection to be dependent on NI bloatwear, but also even the TCP/IP connection to be dependent on NI bloatwear. And that's despite the fact that they provide a list of all the commands that can be used in the programming guide, so all you really would need would be to write your own software for sending these commands over TCP/IP (which is a trivial matter, as Windows itself provides API functions for sending data over network sockets), if you could find your device's TCP/IP port number. And that's a big if, as Rigol seems to want to hide it from the end user, as if it were some kind of trade secret.

If anybody else can tell me where to discover my device's port number, I'd be really happy to know.
JDubU:
The SCPI command port number for Rigol devices is 5555.
Ben321:

--- Quote from: JDubU on February 11, 2024, 06:27:23 am ---The SCPI command port number for Rigol devices is 5555.

--- End quote ---

Where did you find that? I couldn't find that documented anywhere.
JDubU:
I happened to know it from past experience but confirmed it with Google search:

rigol scpi "port number"
nightfire:
Another thing when you are not sure about which ports a device has open is to use a port scanner.

Most prominent example here would be nmap: https://nmap.org/
These tools scan the target and print out a number of open ports that are listening to data communication.
Navigation
Message Index
Next page
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod