Magnetic resonance tools, easy to use.
TopDNP is a Python code package to automate continuous wave (CW) Overhauser dynamic nuclear polarization (ODNP) experiments using Bridge12 microwave power source and TopSpin from Bruker.
TopDNP uses the naming style used in DNPy to make evaluation easier. The style is:
XXXXX - set XX dBm
example: CWODNP - set 10 dBm
, T1 experiment - set 5 dBm
You should download this whole package from the Github repository and extract it in the path C:\Bruker\TopSpin3.2\exp\stan\nmr\py\user\
which puts TopDNP.py in the right folder for TopSpin. Then the parameters on the top of TopDNP.py should be adjusted to match the setup. The rest of the experiment variables will be asked during the experiment. Also make sure you have Python 2.7 and package Pyserial
installed.
Once files are copied, run edpy. In the Python codes list switch to C:\Bruker\TopSpin3.2\exp\stan\nmr\py\user\
. Do the normal TopSpin commands (ii
, edhead
, etc.). Run your CW using Xepr. Then execute TopDNP.py. The UI should guide you through your experiment.
Unfortunately, TopSpin uses Jython for Python implementation which lacks some functionalities and is limited to Python 2.5. Thus, Pyserial library cannot be used and I had to call another Python function from outside the TopSpin and interface it to TopDNP using a temporary file. This is not perfect and errors from the second code do not show up in the main window of TopSpin (although they are mostly shown in TopSpin's command window). I also had to define a timeout for this code so that it closes after some time and releases the COM port to which B12 is connected. We should find a solution to this. But for now it is the best workaround I could come up with.
Created: 2018-08-02 Thu 16:16
2018.08.02 initial release: