| Products > Test Equipment |
| How do you find the proper communication TCP/IP port number for Rigol DG-1022z? |
| << < (3/4) > >> |
| rcjoy:
Since you mention it supports VXI-11, then using python with the python-vxi11 package is the easiest way to go. No need to worry about ports, and you don't need to install any NI drivers and frameworks. |
| Ben321:
--- Quote from: rcjoy on February 12, 2024, 09:50:10 pm ---Since you mention it supports VXI-11, then using python with the python-vxi11 package is the easiest way to go. No need to worry about ports, and you don't need to install any NI drivers and frameworks. --- End quote --- I prefer to avoid python if possible. It's an interpreted language. This means if you write a program with it, and you want to distribute it, you need to distribute Python as well. I prefer something like C that can make standalone EXEs. But this kind of direct connecting (rather than working through an already existing framework like the Python VXI-11 framework you already mentioned), means I will need to know the port number. Now I know that supposedly the port 5555 is the one I want, but before I start sending commands on it, I would like official documentation from Rigol that port 5555 is indeed the correct port. Do you know any official PDF docs from Rigol that state that port 5555 is the correct one? |
| coromonadalix:
If you dont send any calibration, eeprom dump or write "if the scope has theses commands" you can use whaterver you want Pyhton, C, C++, VB, VS blah blah for the port(s) well ask rigol directly ? thats why i ditched Rigol after a scope purchase, documentation is .......... sucks their SW ............ sucks For Siglent we developped many apps in Python and or VS 2021 for Siglent stuff lot of fun working with them, the IT guy was drooling loll LXI ... usb and lan controlled I even done my 1st SW in Labview for an SSG3032X At 1st we used Keysight I/O suite, later the Rhode Schwartz visa drivers with their tools to send receive commands correctly, know their opened ports yes and now absolutely "no drivers needed" nothing, fully lan controlled ... we scan the Instrument declared ID send some "presence request say: IDN" toc toc yahoo are you there ... that's all If your network is secured, you may need to whitelist their mac's ... you can achieve this too .. if you are afraid to distibute ?? its the same thing as installing usb drivers to make peripheral work ??? my 2 cents |
| Kean:
--- Quote from: Ben321 on February 12, 2024, 10:22:32 pm ---Now I know that supposedly the port 5555 is the one I want, but before I start sending commands on it, I would like official documentation from Rigol that port 5555 is indeed the correct port. Do you know any official PDF docs from Rigol that state that port 5555 is the correct one? --- End quote --- As I mentioned above, it is documented (poorly) in the official programming guide that you linked to. Page 2-191 (203 of 264). --- Code: ---:SYSTem:COMMunicate:LAN:CONTrol? Syntax :SYSTem:COMMunicate:LAN:CONTrol? Description Query the number of the initial control connecting terminal used for socket communication. Return Format The query returns 5555; if the interface does not support socket, the query returns 0. --- End code --- |
| alm:
--- Quote from: Ben321 on February 12, 2024, 07:07:38 pm ---I can't find any documentation online about what these ports are used for, except for port 111. I know that the Rigol DG-1022z uses LXI protocol for network connectivity, because it displays the LXI logo when connected to a network. The official LXI website has a list of used ports at https://www.lxistandard.org/About/LXI-Protocols.aspx and port 111 is to be used for VXI-11 protocol. --- End quote --- Port 111 is portmap. It tells the port assignment for RPC services. If you run rpcinfo -p <ip address> (for Mac / Linux / Unix, probably rpcinfo /p on Windows), it will show you what some of the other ports are used for. VXI-11 is an RPC based protocol that you could implement in any programming language. Though for something as string-heavy as instrument control, C wouldn't be my first choice. |
| Navigation |
| Message Index |
| Next page |
| Previous page |