Attached is the small script that generates the data for DMM noise floor measurements. Beware, it is an early crude version to be improved...
I use Jupyter Notebook
http://jupyter.org/ for python execution. It's perfect for instrument control due to the interactive behavior of the jupyter notebook.
The script uses the pyvisa library because I use a visa compatible GPIB adapter (F82357 from BEIMING technologies).
If a prologix adapter is used consider trying the pyserial library instead of pyvisa.
The script is attached in 3 different versions (in one zip file):
1) The .ipynb is the Jupyter Notebook binary (don't open unless you run Jupyter)
2) The .py is the exported python file. This file should be able to run (with very few changes) in an ordinary Python 3 environment with numpy, pyvisa and matplotlib installed.
3) The last .html file shows the jupyter environment with all the python code mixed with instrument data and graphs - the Jupyter way of programming...
-jorn