The script for running continuous scans on HP 8591E spectrum analyzer is located at scripts/general/netgpibdata/HP8591E_contdScan.py
Give the file HP8591E_param.yml as an argument when running the script. This contains the sweep parameters: Start and stop frequencies along with the place where the plot is stored as a PDF.
The default PDF is located on the Desktop and is named HP8591E_View.pdf Open this using okular and then run the script. (Okular pdf viewer automatically reloads the PDF as and when a new one is created)
What the script does:
1) Set the start and stop frequencies as given in the .yml file
2) Take a data trace and plot it in a PDF.
3) Repeat taking traces and update the PDF. Untill Ctrl+C is pressed (PDF refresh rate: approximately every 3 seconds )
4) Exit smoothly after the keyboard interrupt.
Other details:
This spectrum analyzer is connected to a GPIB - Ethernet controller that is configured as santuzza.martian (192.168.113.109)
I have currently stolen the wireless modem from the spectrum analyzer inside the lab (vanna.martian) and using it for this one. *poker face*
To improve:
Get the plot to show where the two biggest peaks are located. Currently it recognizes only the biggest one.
Possibly have makers on the two peaks.
PFA a sample pdf |