40m QIL Cryo_Lab CTN SUS_Lab TCS_Lab OMC_Lab CRIME_Lab FEA ENG_Labs OptContFac Mariner WBEEShop
  40m Log  Not logged in ELOG logo
Entry  Wed Jul 16 01:27:01 2014, Nichin, HowTo, Computer Scripts / Programs, HP8591E spectrum analyzer remote scan HP8591E_View.pdf
    Reply  Wed Jul 16 17:06:41 2014, Nichin, Update, Computer Scripts / Programs, HP8591E spectrum analyzer remote scan HP8591E_View.pdf
    Reply  Wed Aug 13 23:58:49 2014, rana, HowTo, Computer Scripts / Programs, HP8591E spectrum analyzer remote scan HP8591E_View.pdf
Message ID: 10210     Entry time: Wed Jul 16 01:27:01 2014     Reply to this: 10217   10381
Author: Nichin 
Type: HowTo 
Category: Computer Scripts / Programs 
Subject: HP8591E spectrum analyzer remote scan 

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

Attachment 1: HP8591E_View.pdf  20 kB  Uploaded Wed Jul 16 02:33:01 2014  | Hide | Hide all
HP8591E_View.pdf
ELOG V3.1.3-