Programming Example: Real-Time Signal Capture

SSA5000A Python Programming

Chris Armstrong

Last Update 7 bulan yang lalu

Siglent spectrum analyzers allow remote control using VISA and SCPI over USB and ethernet. The command set can be found in the programming manual for each series. In addition to configuration and measurement or analysis results, these instruments also make it possible to capture and transfer the waveform data or screen images themselves directly to a computer.



Python is the preferred methodology but using VISA and SCPI this simple to do in LabVIEW and other programming languages as well. Most spectrum analyzers also support direct socket communication using the same SCPI commands. The RF instruments have a listener on port 5025.


Regardless of the method, these programming examples show how to capture waveform data and chart it using matplot as well as how to save an image of the display to the PC. This program uses the SSA5000A for reference:

The output of this program includes data in the console, a matplot, and an open image:

Note
the value of the visualization depth of the density display here in real-time mode vs. the data capture of a single trace in matplot. Subtle changes in these dynamic signals show up much more easily on the density view. Use all of the views and debugging tools at your disposal to get the most out of these measurement systems.

Was this article helpful?

0 out of 0 liked this article

Still need help? Message Us