User Tools

Site Tools


nmr_probes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
nmr_probes [2019/10/17 10:32]
pereira [Manually setting Dipole Fields]
nmr_probes [2023/06/09 14:27]
swartzj
Line 1: Line 1:
 ====== NMR Control ===== ====== NMR Control =====
-Two digital oscilloscopes are dedicated to NMR readout – one for the analysis line NMRs and one for the spectrograph NMRs. The scopes are located in data-U6, in upper two shelves on the right electronics rack. They are isolated from clean ground because this signals from the NMR probes are on a dirty ground.+Two digital oscilloscopes are dedicated to NMR readout – one for the analysis line NMRs and one for the spectrograph NMRs. The scopes are located in the S3 mezzanine. They are isolated from clean ground because this signals from the NMR probes are on a dirty ground.
  
 ===== Motivation ===== ===== Motivation =====
Line 9: Line 9:
  
 ===== Description ===== ===== Description =====
-The NMR running programs for both the S800 analysis line and spectrograph dipoles can be started from the desktop of computer [[Software#u6pc5 (data U6)|u6pc5]], by clicking in the icons **NMR Analysis** for the analysis line dipolesand **NMR Spectrograph** for the spectrograph magnets. Alternativelythe NMR control programs can be run from a Linux session by typing ''/usr/bin/wish analysis.tcl'' in directory **/user/s800/Documents/Run/analysis**, for the analysis lineand ''/usr/bin.wish spectrograph_sjw.tcl'' in directory **/user/s800/Documents/Run/spectrograph**, for the spectrograph.+The NMR running programs for both the S800 analysis line and spectrograph dipoles can be started by logging in to exp-s3-nmr.ftc (10.40.230.111accessible from the EXP networknamely, from a whatever computer connected to the EXP network,
  
-Sometimes the initialization of these applications fail. In that case check section [[nmr probes#troubleshooting|"Troubleshooting"]] below). The picture below shows the NMR panel for the S800 Analysis Line GUI as an example. The top (yellow) panel shows the data relevant to the NMR module, the middle (pink) the digitized signal from the oscilloscope and the bottom (blue) the status and measurements for the dipoles. +  $ ssh [your-user-name-on-EXP]@exp-s3-nmr -Y 
 + 
 +and typing, for the analysis line dipoles  
 + 
 +  $ /usr/bin/wish /srv/s3-nmr/analysis/analysis.tcl 
 + 
 +and for the spectrograph dipoles 
 + 
 +  $ /usr/bin/wish /srv/s3-nmr/spectrograph/spectrograph.tcl 
 + 
 +Now press start on the GUI and you should see a field reading. Sometimes the initialization of these applications fail. In that case check section [[nmr probes#troubleshooting|"Troubleshooting"]] below). The picture below shows the NMR panel for the S800 Analysis Line GUI as an example. The top (yellow) panel shows the data relevant to the NMR module, the middle (pink) the digitized signal from the oscilloscope and the bottom (blue) the status and measurements for the dipoles. 
  
 {{:wiki:NMR-control.jpg?350|NMR Control panel for the Analysis line dipoles.}} {{:wiki:NMR-control.jpg?350|NMR Control panel for the Analysis line dipoles.}}
  
 +===== Terminating processes run by another user =====
 +
 +A solution has been implemented for the case where one user needs to run the NMR software via the 'wish' command, but another user is already running it.
 +
 +If a user is running 'wish' (usually 2 processes, one for analysis and one for spectrograph) and another user needs to run it instead, they can do the following:
 +
 +  * Log on to exp-s3-nmr virtual machine (as described above)
 +  * Type 'ps aux | grep wish' to find out the name of the user that is running wish
 +  * Let's suppose user 'alice' is running wish and user 'bob' needed to run it instead. That being the case, user 'bob' should type the command: 'sudo -u alice pkill wish'
 +  * This will stop both wish processes that are running as user 'alice' (the important thing to remember is that the username that goes after the -u is the name of the user whose wish processes you want to stop)
 +  * Now user 'bob' can successfully start wish processes
 +
 +In short,
  
 +  $ ps aux | grep wish
 +  $ sudo -u usernameRunningWish pkill wish
 +  
 +and you should be able to run the NMR software.
 ===== Operation ===== ===== Operation =====
 The NMR program constantly checks the status of the various dipoles from the EPICS system and updates the status column. In addition, the program checks the log file at startup for the closest previously measured value. In case no previous measurement can be used the program searches for a signal around the guessed value of the field. This search can take some time if the calibration is off or the hysteresis of the dipole is large. The maximum number of attempts is limited to 200. After that the status is marked as "Failed" and the program gives up on this dipole.  The NMR program constantly checks the status of the various dipoles from the EPICS system and updates the status column. In addition, the program checks the log file at startup for the closest previously measured value. In case no previous measurement can be used the program searches for a signal around the guessed value of the field. This search can take some time if the calibration is off or the hysteresis of the dipole is large. The maximum number of attempts is limited to 200. After that the status is marked as "Failed" and the program gives up on this dipole. 
Line 51: Line 78:
  
 ===== Troubleshooting ===== ===== Troubleshooting =====
 +
 +
 +==== NMR GUI does not start ====
  
 The NMR program is connected to the following devices and systems:  The NMR program is connected to the following devices and systems: 
Line 73: Line 103:
  
  
 +==== NMR GUI does not communicate with NMR controllers ====
 +  * This can be seen, for instance, when the NMR controller finds a resonance, but the NMR GUI keeps trying forever.
 +  * Most likely, you need to reboot the terminal server located in S3
 +  * Go to the mezzanine level, where the NMR controllers are located
 +  * The terminal server is behind the NMR controllers
 +  * Simply turn it off, wait few seconds, and turn it back on
 +
 +
 +
 +==== Spectrograph NMR GUI "locks" in noise or does not see weak resonance====
 +  * This is typically the case when the thresholds in the NMR GUI are not set properly. If they are too low, the program may lock in noise. Conversely, if the thresholds are too high, it may miss a weak resonance.
 +  * Threshold for the Spectrograph resonance can be adjusted by hand in the Spectrograph NMR GUI. In general, a threshold 0.15 mV is good for normal NMR signals, whereas 0.10 mV may be necessary if the signal are too weak.
  
  
 ==== Manually setting Dipole Fields  ==== ==== Manually setting Dipole Fields  ====
 (Based on notes from Mathias Steiner with some extra info included) (Based on notes from Mathias Steiner with some extra info included)
 +
 +You will need to get access to the NMR controllers in the mezzanine level of S3 (see picture below). You will also have to connect an oscilloscope to one of the NMR controllers, either analysis line (left) or Spectrograph (right). Connect the left BNC connector (field modulation) to CH1 in the oscilloscope and the right BNC connector (NMR signal) in CH2. Select XY display, and AC coupling.
 +
 +
  
 Let’s assume that you want to set the dipole I265DS (first dipole (D1) of S800 Spectrograph) to the rigidity (Brho) 3.7965 Tm (this works for any dipole in the S800) Let’s assume that you want to set the dipole I265DS (first dipole (D1) of S800 Spectrograph) to the rigidity (Brho) 3.7965 Tm (this works for any dipole in the S800)
nmr_probes.txt · Last modified: 2024/06/01 16:35 by swartzj