BNMR: Helicity: Difference between revisions

From DaqWiki
Jump to navigation Jump to search
en>Suz
m (New page: {{Pagelinks}} = Links = <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> * BNMR * Dual Channel Mode * [[BNMR: Experimental Modes|Expe...)
 
en>Suz
No edit summary
Line 3: Line 3:
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3">
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3">
* [[BNMR]]
* [[BNMR]]
* [[BNMR: Dual Channel Mode|Dual Channel Mode]]
* [[BNMR Dual Channel Mode|Dual Channel Mode]]
* [[BNMR: Experimental Modes|Experimental Modes]]
* [[BNMR: Experimental Modes|Experimental Modes]]
* [[BNMR: Getting Started|Getting Started]]
* [[BNMR: Getting Started|Getting Started]]
Line 9: Line 9:


== Introduction ==
== Introduction ==
The {{bnmqr|join=and}} experiments control the helicity via the PPG "POL DRV" output. The helicity is changed using a plate that is moved into and out of the beam. The two helicity states are called "UP" and "DOWN". An experimental parameter ''flip helicity'' is provided for each [[BNMR#Experimental (PPG) Modes|Experimental Mode]]. When this is set to true, the helicity will be flipped. Some modes flip the helicity after each PPG cycle, others at the end of the scan. See [[BNMR Mode Parameters]] for details.
The {{bnmqr|join=and}} experiments control the helicity via the PPG "POL DRV" output. The helicity is changed using a waveplate (Figure 1) that is moved into and out of the beam. The two helicity states are called "UP" and "DOWN". An experimental parameter ''flip helicity'' is provided for each [[BNMR#Experimental (PPG) Modes|Experimental Mode]]. When this is set to true, the helicity will be flipped. Some modes flip the helicity after each PPG cycle, others at the end of the scan. See [[BNMR Mode Parameters]] for details.
[[Image:waveplate.png|400px|center|]]
<br clear=all>
<center>
'''Figure 1''' Helicity Waveplate
</center>


== Helicity Switch Box ==
== Helicity Switch Box ==
Since both experiments {{bnmqr|join=and}} control the same hardware (the helicity plate) signals from both experiments are connected to a helicity switch box (Rolf's box).
Since both experiments {{bnmqr|join=and}} control the same hardware (the helicity plate), signals to drive the helicity from both experiments are connected to a helicity switch box (Rolf's box), Figure 2. These signals are from each experiment's PPG "POL DRV" output.  The electronics is edge-driven, so it only changes when it sees an edge. To ensure a particular helicity state at the begin-of-run in single channel mode (e.g. DOWN), the PPG must drive the helicity DOWN-UP-DOWN. In dual channel mode, it is not possible to ensure the required helicity in the way at the begin of run. It is assumed that by the second PPG cycle, the helicity will be in the correct state and the latched helicity readback provides confirmation. The first cycle is always discarded.  
These signals are from the PPG "POL DRV" output.  The electronics is edge-driven, so it only changes when it sees an edge. To ensure a particular helicity state at the begin-of-run in single-channel mode (e.g. DOWN), the PPG must drive the helicity DOWN-UP-DOWN.


The experiment requests the helicity state for its next cycle by setting the PPG "POL DRV" output. In single channel mode, the helicity state is changed immediately. In dual channel mode, the helicity is not changed until that experiment receives the beam (see  [[BNMR: Dual Channel Mode#Helicity Switching]]. A circuit diagram of the helicity switch box in single and dual channel modes is shown in Figure 1.
The experiment requests the helicity state for its next cycle by setting the PPG "POL DRV" output. In single channel mode, the helicity state is changed immediately. In dual channel mode, the helicity is not changed until that experiment receives the beam (see  [[BNMR Dual Channel Mode#Helicity]]). A circuit diagram of the helicity switch box as used for single and dual channel modes is shown in Figure 2b. (Figure 2a shows the original, single channel mode only). The D-type flip flops are edge driven, so they only change when an edge from the beam kicker signal is received.
 
[[Image:helicity_switch_box.png|center|frame|Figure 2 Helicity Switch box]]
<br clear=all>


== Helicity Read Back ==
== Helicity Read Back ==
Helicity read back signals have been provided in recent years so that the state of the helicity can be read with certainty, particularly in dual channel mode. The helicity state is read using a VMEIO32
Helicity read back signals have been provided in recent years (Figure 1) so that the state of the helicity can be read with certainty, particularly in dual channel mode. The helicity state is read using a VME NIMIO32 register specially modified for the  {{bnmqr|join=and}} experiments (see [[BNMR: DAQ Hardware Connections#NIMIO32|NIMIO32]] for details). Each experiment in provided with a VMEIO32 register.
It provides a helicity readout for the present state of the helicity (used in single channel mode) as well as a latched helicity readout for dual channel mode. The latched readout latches the helicity state at the time that channel (BNMR or BNQR) has the beam.
 
== Helicity test program ==
There is a helicity test program on both experiments  {{Filepath|path=~/vmetest/heltest}} . This can be useful to diagnose problems when the helicity readback is not working. Usually it is found that a NIM bin is switched off, or a NIM module has failed.


In case, the frontend software sets the helicity it requires for its next cycle via the PPG "POL DRV" output
A simulator mode was also made to test the VME NIMIO32 modifications before the readback signals were available. This mode is not now used.


[[Category:BNMR]]
[[Category:BNMR]]

Revision as of 16:38, 8 June 2016

Links

Introduction

The bnmr and bnqr experiments control the helicity via the PPG "POL DRV" output. The helicity is changed using a waveplate (Figure 1) that is moved into and out of the beam. The two helicity states are called "UP" and "DOWN". An experimental parameter flip helicity is provided for each Experimental Mode. When this is set to true, the helicity will be flipped. Some modes flip the helicity after each PPG cycle, others at the end of the scan. See BNMR Mode Parameters for details.

Waveplate.png


Figure 1 Helicity Waveplate

Helicity Switch Box

Since both experiments bnmr and bnqr control the same hardware (the helicity plate), signals to drive the helicity from both experiments are connected to a helicity switch box (Rolf's box), Figure 2. These signals are from each experiment's PPG "POL DRV" output. The electronics is edge-driven, so it only changes when it sees an edge. To ensure a particular helicity state at the begin-of-run in single channel mode (e.g. DOWN), the PPG must drive the helicity DOWN-UP-DOWN. In dual channel mode, it is not possible to ensure the required helicity in the way at the begin of run. It is assumed that by the second PPG cycle, the helicity will be in the correct state and the latched helicity readback provides confirmation. The first cycle is always discarded.

The experiment requests the helicity state for its next cycle by setting the PPG "POL DRV" output. In single channel mode, the helicity state is changed immediately. In dual channel mode, the helicity is not changed until that experiment receives the beam (see BNMR Dual Channel Mode#Helicity). A circuit diagram of the helicity switch box as used for single and dual channel modes is shown in Figure 2b. (Figure 2a shows the original, single channel mode only). The D-type flip flops are edge driven, so they only change when an edge from the beam kicker signal is received.

Figure 2 Helicity Switch box


Helicity Read Back

Helicity read back signals have been provided in recent years (Figure 1) so that the state of the helicity can be read with certainty, particularly in dual channel mode. The helicity state is read using a VME NIMIO32 register specially modified for the bnmr and bnqr experiments (see NIMIO32 for details). Each experiment in provided with a VMEIO32 register. It provides a helicity readout for the present state of the helicity (used in single channel mode) as well as a latched helicity readout for dual channel mode. The latched readout latches the helicity state at the time that channel (BNMR or BNQR) has the beam.

Helicity test program

There is a helicity test program on both experiments ~/vmetest/heltest . This can be useful to diagnose problems when the helicity readback is not working. Usually it is found that a NIM bin is switched off, or a NIM module has failed.

A simulator mode was also made to test the VME NIMIO32 modifications before the readback signals were available. This mode is not now used.