Displaying report 1-1 of 1.
Reports until 12:36, Friday 29 July 2022
H1 ISC (CDS, ISC)
craig.cahillane@LIGO.ORG - posted 12:36, Friday 29 July 2022 (64204)
SR785 at PSL racks set up for remote measurements
Fil, Eric VR, Richard, Dave, Craig

We got the SR785 out at the PSL racks connected via GPIB so we can access it from the control room.
Right now, it is plugged in to get CARM OLG measurements through the common mode board, EXC A.

The GPIB IP address is 10.22.10.30.  The SR785 GPIB address is 10, as usual.

I learned today that you need the GPIB to have the same subnet as the machine you are accessing it from.
So these GPIBs with IP addresses starting with 169 will not work, it has to be configured to work in the network (i.e. have an IP starting with 10)
The GPIBs starting with 169 are good for connecting directly to your laptop, forming a miniature network.
I report this because I've never understood why I couldn't connect directly to some GPIBs, but others "just worked".

To quickly get data off the SR785, go to
/ligo/gitcommon/psl_measurements/code/

then type
python SRmeasure.py -i 10.22.10.30 -a 10 -f tests/test.txt --getdata


This should connect to the SR785, and grab the data currently on the screen.
To plot the data, if it grabbed data from two screens, run 
python quick_tf_plot.py tests/test_"datatimehere".txt

If it grabbed one screen, run 
python quick_spec_plot.py tests/test_"datatimehere".txt


There are also measurement templates in 
/ligo/gitcommon/psl_measurements/templates/


To run the CARM OLG template, first makes sure the common mode board EXC A is engaged.
The meas parameters are stored in carm_olg_template.yml.
You either open the .yml and edit the IP address and filenames, or use the command line args which will override the template file params:
python ../code/SRmeasure.py carm_olg_template.yml -i 10.22.10.30 -a 10


Again you can quickly plot this data with quick_tf_plot.py or multi_tf_plot.py.

Finally, to remotely configure the SR785 you can go to
/ligo/gitcommon/psl_measurements/code/

again, open an ipython terminal,
and run
In [1]: import netgpib

In [2]: ip = "10.22.10.30"

In [3]: gpib = 10

In [4]: gpib_obj = netgpib.netGPIB(ip, gpib, b'\004', 0)

In [5]: gpib_obj.command("OUTX0")

In [6]: print("Instrument ID: ")
   ...: idn_string = gpib_obj.query("*IDN?")
   ...: print(idn_string.splitlines()[-1])
Instrument ID: 
Stanford_Research_Systems,SR785,s/n77104,ver220

Now you can use this GPIB connection to remotely configure any measurement, start it, and record the data.
Images attached to this report
Non-image files attached to this report
Displaying report 1-1 of 1.