Tektronix Technical Forums are maintained by community involvement. Feel free to post questions or respond to questions by other members. Should you require a time-sensitive answer, please contact your local Tektronix support center here.

AFG3022C Remote Control via Sockets

Post Reply
Posts: 2
Joined: February 12th, 2015, 3:44 am

AFG3022C Remote Control via Sockets

Post by Norman » February 12th, 2015, 3:54 am

Hi All,

So my Lab just bought a DPO and an AFG3022C, as well as a few PWS and a Keithley SMU.
We have a very open source philosophy, and are very reluctant to use any proprietary software with closed source code. This is because we want our application to be as portable as possible. In addition LabView is clearly out of the question for us.

In short, we would like to avoid using TekVISA.

So we develop our own solution based on NodeJS with Python interfaces to communicate with VXI11 with the scope. No problem here, works perfectly with the Tek scope, the Keithley SMU (even through raw sockets !), the lasers, the spectrometer, the arduino, etc. No need for TekVISA or any NI software.

(PyVXI11: https://github.com/mwalle/pyvxi11)

I'm struggling a bit more with the AFG. First of all the only open ports are:

Code: Select all

tsf-460-wpa-3-177:spectrolab-control transients$ nc -z 20-30000
Connection to port 23 [tcp/telnet] succeeded!
Connection to port 111 [tcp/sunrpc] succeeded!
Connection to port 807 [tcp/*] succeeded!
Connection to port 810 [tcp/fcp-udp] succeeded!
With allow me to connect via sockets to the AFG.

If I use the telnet port however, I'm reading:

Code: Select all

Tek-Vgpp login:
So here is my question. Can I get the login and password =) ?
If I go through with that, I assume I can simply send the SCPI commands through the telnet port, just like I do with the Keithley SMU.

Second question: I don't see the LXI sign on my AFG. Can I use VXI11 to communicate with it ? Port 111 is open with suggets I can use RPC, but nothing is documented...

Thanks in advance,

Norman Pellet
PhD Student
Laboratory of Photonics and Interfances
Laboratory of Photomolecular Sciences
Ecole Polytechnique Fédérale de Lausanne
Lausanne, Switzerland

Max Planck Institute for Solid State Research
Stuttgart, Germany

Posts: 2
Joined: February 12th, 2015, 3:44 am

Re: AFG3022C Remote Control via Sockets

Post by Norman » February 12th, 2015, 4:17 am

Hey again,

So I managed to communicate with the AFG via VXI11

Code: Select all

tsf-460-wpa-3-177:pyvxi11 transients$ python vxi11_cli.py
Enter command to send. Quit with 'q'.
=> *IDN?
TEKTRONIX,AFG3022C,C011520,SCPI:99.0 FV:1.0.2

But I'd still like an answer to my telnet question !


Carl M
Tektronix Applications
Tektronix Applications
Posts: 797
Joined: July 30th, 2008, 4:45 pm
Country: United States

Re: AFG3022C Remote Control via Sockets

Post by Carl M » February 13th, 2015, 11:36 am

The AFG3000 series and it's derivatives (B revision, C revision, and AFG2000) do not use raw sockets. VXI-11 is the only available protocol for remote instrument communication over Ethernet.

Please submit quantitative feedback here: http://e-sites2.tek.com/actionrequest/art_ui.home
Tektronix Application Engineer

Post Reply

Return to “AFG1000/2000/3000 series”

Who is online

Users browsing this forum: No registered users and 1 guest