BNMR: Difference between revisions

From DaqWiki
Jump to navigation Jump to search
en>Suz
mNo edit summary
en>Suz
Line 40: Line 40:
A number of different experimental modes are defined for each of Type 1 (Integral) and Type 2 (TD) [[#Environment]]s. These allow different experimental modes to be run (e.g. Frequency scan, Na Cell scan).  The modes used in recent years are shown in a brighter colour.  These modes correspond to different programs downloaded into the [[#Hardware Components|PPG]] (i.e. to different pulse sequences) so are also known as '''PPG Modes'''.  To understand what each experimental mode does, consult the appropriate '''timing diagram''' listed below and see [[BNMR: Experimental Modes|experimental (PPG) modes]].
A number of different experimental modes are defined for each of Type 1 (Integral) and Type 2 (TD) [[#Environment]]s. These allow different experimental modes to be run (e.g. Frequency scan, Na Cell scan).  The modes used in recent years are shown in a brighter colour.  These modes correspond to different programs downloaded into the [[#Hardware Components|PPG]] (i.e. to different pulse sequences) so are also known as '''PPG Modes'''.  To understand what each experimental mode does, consult the appropriate '''timing diagram''' listed below and see [[BNMR: Experimental Modes|experimental (PPG) modes]].


{| class="wikitable" border=4 cellspacing=3 cellpadding=1 width=70% style="background-color:white"
{| class="wikitable" border=4 cellspacing=3 cellpadding=1 width=100% style="background-color:white"
|+ <b><center>Table 1 INTEGRAL and TIME DIFFERENTIAL Experimental (PPG) Modes</center></b>
|+ <b><center>Table 1 INTEGRAL and TIME DIFFERENTIAL Experimental (PPG) Modes</center></b>
|-  style="background-color:pink;color:white"
|-  style="background-color:pink;color:white"
Line 48: Line 48:
|+ <b><center> Table 1a: Type 1 Integral Modes</center></b>
|+ <b><center> Table 1a: Type 1 Integral Modes</center></b>
|-  style="background-color: #ccffcc"
|-  style="background-color: #ccffcc"
! Mode Name !!  [[BNMR Mode Parameters|Mode Parameters]] !! Timing Figure  
! Experimental<br>Mode Name !!  [[BNMR Mode Parameters|Mode Parameters]] !! PPG Mode !! Timing Figure  
|- style="background-color: #80ff80"
|- style="background-color: #80ff80"
| Scalers || 10 || Same as 1f  
| Scalers || 10 || 1f || See 1f  
|- style="background-color: #80ff80"
|- style="background-color: #80ff80"
| Freq    || 1f || [http://www.triumf.info/wiki/DAQwiki/images/a/a0/1f_timing_ps.pdf 1f]   
| Freq    || 1f ||1f|| [http://www.triumf.info/wiki/DAQwiki/images/a/a0/1f_timing_ps.pdf 1f]   
|- style="background-color: #80ff80"
|- style="background-color: #80ff80"
| NaCell  || 1n || [http://www.triumf.info/wiki/DAQwiki/images/1/17/1n_timing_ps.pdf 1n]       
| NaCell  || 1n ||1f|| [http://www.triumf.info/wiki/DAQwiki/images/1/17/1n_timing_ps.pdf 1n]       
|-  style="background-color: #80ff80"
|-  style="background-color: #80ff80"
| Camp    || 1c || Same as 1f   
| Camp    || 1c || 1c|| See 1f   
|-   
|-   
|-  style="background-color: #80ff80"
|-  style="background-color: #80ff80"
| CW**   || 1w || Same as 1f   
| CW <sup>[1]</sup>   || 1w || 1f ||See 1f   
|-
|-
| colspan = 3  style="font-size:80%; text-align:center"|The following modes have not been used in recent years:  
| colspan = 3  style="font-size:80%; text-align:center"|The following modes have not been used in recent years:  
|-     
|-     
| 1a      || 1a || [https://www.triumf.info/wiki/DAQwiki/images/6/6c/1a_timing_ps.pdf 1a]  
| 1a      || 1a || 1a||[https://www.triumf.info/wiki/DAQwiki/images/6/6c/1a_timing_ps.pdf 1a]  
|-
|-
| 1b      || 1b || [http://www.triumf.info/wiki/DAQwiki/images/4/4a/1b_timing_ps.pdf 1b]       
| 1b      || 1b || 1b||[http://www.triumf.info/wiki/DAQwiki/images/4/4a/1b_timing_ps.pdf 1b]       
|-   
|-   
| Laser  || 1d || Same as 1n    
| Laser  || 1d ||1n|| See 1n   
|-   
|-   
| Fast <span style="color:green">*</span>    || 1g || Not available
| Fast <span style="color:green">*</span>    || 1g ||20|| See 20
|-
|-
| LCR  <span style="color:green">**</span>
| LCR  <span style="color:green">**</span>
   || 1j || Not available 
   || 1j ||20 ||  See 20
|-  style="background-color: white; color: green"
|-  style="background-color: white; color: green"
| colspan=3 style="font-size:80%"|*Combination of Modes 20 and 1f <br>  **Combination of Modes 20 and 1c   
| colspan=3 style="font-size:80%"|*Combination of Modes 20 and 1f <br>  **Combination of Modes 20 and 1c   
|}
|}


|  spacer
|  spacer  
|
|


Line 84: Line 84:
|+ <b><center> Table 1b: Type 2 Differential Modes</center></b>
|+ <b><center> Table 1b: Type 2 Differential Modes</center></b>
|-  style="background-color: #ffccff"
|-  style="background-color: #ffccff"
! Mode Name !! [[BNMR Mode Parameters|Mode Parameters]] !! Timing Figure  
! Experimental<br>Mode Name !! [[BNMR Mode Parameters|Mode Parameters]] !! PPG Mode!!Timing Figure  
|- style="background-color: #ff99ff"
|- style="background-color: #ff99ff"
| SLR    || 20  || [http://www.triumf.info/wiki/DAQwiki/images/5/5e/20_timing_ps.pdf 20]       
| SLR    || 20  ||20|| [http://www.triumf.info/wiki/DAQwiki/images/5/5e/20_timing_ps.pdf 20]       
|-       
|-       
|- style="background-color: #ff99ff"
|- style="background-color: #ff99ff"
| 2e      || 2e || [http://www.triumf.info/wiki/DAQwiki/images/f/fb/2e_timing_ps.pdf 2e]   
| 2e      || 2e || 2e||[http://www.triumf.info/wiki/DAQwiki/images/f/fb/2e_timing_ps.pdf 2e]   
|-    |- style="background-color: #ff99ff"
|-    |- style="background-color: #ff99ff"
| Alpha   || 2h <span style="color:purple">*</span> || same as [http://www.triumf.info/wiki/DAQwiki/images/5/5e/20_timing_ps.pdf 20]
| Alpha <sup>[2]</sup> || 2h ||20|| see [http://www.triumf.info/wiki/DAQwiki/images/5/5e/20_timing_ps.pdf 20]
|- style="background-color: #ff99ff"
|- style="background-color: #ff99ff"
| Spin Echo   || 2s <span style="color:purple">**</span> || [https://www.triumf.info/wiki/DAQwiki/images/8/82/Bnmr_2s_timing.png 2s]
| Spin Echo <sup>[1]</sup> || 2s ||2s || [https://www.triumf.info/wiki/DAQwiki/images/8/82/Bnmr_2s_timing.png 2s]
|-
|-
| colspan = 3  style="font-size:80%; text-align:center"|The following modes have not been used in recent years :  
| colspan = 3  style="font-size:80%; text-align:center"|The following modes have not been used in recent years :  
|-     
|-     
| 2a      || 2a || [http://www.triumf.info/wiki/DAQwiki/images/b/bb/2a_timing_ps.pdf 2a]       
| 2a      || 2a ||2a|| [http://www.triumf.info/wiki/DAQwiki/images/b/bb/2a_timing_ps.pdf 2a]       
|-
|-
| 2b      || 2b || [http://www.triumf.info/wiki/DAQwiki/images/2/2b/2b_timing_ps.pdf 2b]       
| 2b      || 2b ||2b|| [http://www.triumf.info/wiki/DAQwiki/images/2/2b/2b_timing_ps.pdf 2b]       
|-
|-
| 2c      || 2c || [http://www.triumf.info/wiki/DAQwiki/images/4/4a/2c_timing_ps.pdf 2c]  
| 2c      || 2c ||2c|| [http://www.triumf.info/wiki/DAQwiki/images/4/4a/2c_timing_ps.pdf 2c]  
|-
|-
| 2d      || 2d || same as [http://www.triumf.info/wiki/DAQwiki/images/4/4a/1b_timing_ps.pdf 1b]  
| 2d      || 2d || 1b||see [http://www.triumf.info/wiki/DAQwiki/images/4/4a/1b_timing_ps.pdf 1b]  
|- style="color:#ffe6ff"
|- style="color:#ffe6ff"
| colspan=3 |spacer
| colspan=3 |spacer
|- style="color:#ffe6ff"
|- style="color:#ffe6ff"
| colspan=3 |spacer
| colspan=3 |spacer
|-
|- style="color:#ffe6ff"
| colspan=3 style="font-size:80%; background-color:white;color:purple"|* Supported by '''BNQR''' only; [[#Hardware Components|SIS3820 Scaler]] required for this mode<br>** Supported by '''BNMR''' only; [[#Hardware Components|PSMIII RF Synthesizer]] required for this mode   
| colspan=3 |spacer
|- style="color:#ffe6ff"
| colspan=3 |spacer
 
 
|}
|}
|}
|}
:<sup>[1]</sup>Supported by '''BNMR''' only; [[#Hardware Components|PSMIII RF Synthesizer]] required for this mode
:<sup>[2]</sup>Supported by '''BNQR''' only; [[#Hardware Components|SIS3820 Scaler]] required for this mode<br>


Any of these modes may be run in [[#Beam Control|single channel mode]]. Only Type 2 modes may be run in [[#Beam Control|dual channel mode]].
Any of these modes may be run in [[#Beam Control|single channel mode]]. Only Type 2 modes may be run in [[#Beam Control|dual channel mode]].
 
== Hardware Components ==
== Hardware Components ==



Revision as of 15:29, 17 May 2019

Links

BNMR and BNQR Experiments at TRIUMF

This is the main page of the documentation for the Data Acquisition System (DAQ) for the BetaNMR (BNMR) and BetaNQR (BNQR) experiments at TRIUMF

Introduction

The Data Acquisition System is based on the MIDAS data acquisition package.

There are two separate beamlines, BNMR and BNQR, each with its own experimental setup :

  • bnmr running on the BNMR high-voltage platform
  • bnqr running on the BNQR high-voltage platform

Each experimental setup has its own #Hardware Components (i.e. a VME crate containing DAQ modules). Each runs as a separate MIDAS experiment named bnmr or bnqr. DAQ software specific to these experiments (MIDAS clients) run the experiments - see #Software Components. Experimenters control the experiment using the MIDAS Web Server (mhttpd).

Beam Control

The main TRIUMF EPICS Control System is used to control the beam, which can be switched to either experiment's beamline. There are two Beam Modes that the experiments can be run in:

single channel mode
where the beam is sent to one beamline (channel) only, either BNMR or BNQR. Only one of the DAQ systems bnmr or bnqr is active.
dual channel mode
where the beam is switched between the two beamlines (channels) BNMR and BNQR at regular intervals. Both DAQ systems bnmr and bnqr are active.

Environment

For both experiments, two types of environment are defined (cf MUSR experiments):

  • Integral (Type 1)
  • Time Differential or TD (Type 2)
  • Combination of the above two types

See #Experimental (PPG) Modes.


Experimental (PPG) Modes

A number of different experimental modes are defined for each of Type 1 (Integral) and Type 2 (TD) #Environments. These allow different experimental modes to be run (e.g. Frequency scan, Na Cell scan). The modes used in recent years are shown in a brighter colour. These modes correspond to different programs downloaded into the PPG (i.e. to different pulse sequences) so are also known as PPG Modes. To understand what each experimental mode does, consult the appropriate timing diagram listed below and see experimental (PPG) modes.

Table 1 INTEGRAL and TIME DIFFERENTIAL Experimental (PPG) Modes
Table 1a: Type 1 Integral Modes
Experimental
Mode Name
Mode Parameters PPG Mode Timing Figure
Scalers 10 1f See 1f
Freq 1f 1f 1f
NaCell 1n 1f 1n
Camp 1c 1c See 1f
CW [1] 1w 1f See 1f
The following modes have not been used in recent years:
1a 1a 1a 1a
1b 1b 1b 1b
Laser 1d 1n See 1n
Fast * 1g 20 See 20
LCR ** 1j 20 See 20
*Combination of Modes 20 and 1f
**Combination of Modes 20 and 1c
spacer


Table 1b: Type 2 Differential Modes
Experimental
Mode Name
Mode Parameters PPG Mode Timing Figure
SLR 20 20 20
2e 2e 2e 2e
Alpha [2] 2h 20 see 20
Spin Echo [1] 2s 2s 2s
The following modes have not been used in recent years :
2a 2a 2a 2a
2b 2b 2b 2b
2c 2c 2c 2c
2d 2d 1b see 1b
spacer
spacer
spacer
spacer


[1]Supported by BNMR only; PSMIII RF Synthesizer required for this mode
[2]Supported by BNQR only; SIS3820 Scaler required for this mode

Any of these modes may be run in single channel mode. Only Type 2 modes may be run in dual channel mode.

Hardware Components

DAQ hardware components for each DAQ system (BNMR/BNQR) include the following VME modules:

Table 2: VME Modules for each Experiment
Module Description VME Base Address BNMR BNQR Manual
SIS3801 version E multichannel scaler A 0x2800 yes no SIS3801
SIS3801 version E multichannel scaler B 0x1800 yes yes *
SIS3820 multichannel scaler B 0x38000000 no yes * SIS3820
PPG (Pulseblaster) Pulse Programmer 0x8000 yes yes PPG
Spincore Pulseblaster
PSM Pol Synthesizer module (RF) 0x820000 no yes PSM
AD9857 Quadrature
Digital Upconverter

Programming Guides:
PSM / PSMII
PSMII** Pol Synthesizer module II (RF) 0x820000 yes no
PSMIII** Pol Synthesizer module III(RF) 0x820000 yes no Pol Synth III (VSF)
Programming Guide
PSMIII
NIMIO32 Input/Output Register 0x100000 yes yes NIMIO32
MVME162 68040 board, cpu runs CAMP (VxWorks) bnmrvw polvw
VMIC cpu runs frontend (Linux) lxbnmr lxbnqr
* Currently (July 2017) BNQR crate contains both SIS3801E and SIS3820. Latest version supports Alpha Mode which requires the SIS3820. The SIS3801E will be removed from the crate shortly.
** May 2018 PSMII replaced by PSMIII in BNMR crate.

The names of the VMIC running the frontend and MVME162 (the CAMP host) for each experiment are shown in Table 2 above.


The connections between the DAQ VME Modules are shown in BNMR DAQ Hardware Connections.

Software Components

The DAQ system is based on the MIDAS package. Data acquisition software to run the bnmr and bnqr experiments has been written to run under MIDAS. This includes the frontend, custom logger etc. This software is mostly common to both experiments (differences between the two experiments are handled with ifdefs).

The experiment is controlled using the MIDAS webserver (mhttpd). Due to the large number of experimental parameters required, Midas custom pages have been written for the experimenters to control and monitor their experiment.

The custom logger (mdarc/midbnmr) saves the data into MUSR MUD format files, and the MUSR CAMP slow control system is used for slow controls. Analysis is done by physica.

The DAQ software components are started by the script start-all and stopped by the script kill-all. These include standard MIDAS utilities (e.g. mhttpd, mlogger, mserver) as well as components specific to the bnmr and bnqr experiments.

The main DAQ software components specific to the bnmr and bnqr experiments are

Table 3: DAQ Software Components
Component Host Experiment Purpose
Name Type Name Type
febnmr_vmic Midas
frontend
lxbnmr #VMIC bnmr the frontend sets up, reads out hardware modules, sends histograms.
The frontend code for both experiments is identical.
febnqr_vmic lxbnqr bnqr
rf_config Midas
Client
isdaq01 Midas
Host
PC
both check PPG parameters, download program to PPG
mdarc custom data logger saves data in MUD format
midbnmr converts MIDAS format saved data files to save in MUD format
mheader sends out CAMP and EPICS slow-control data to be saved in the MUD data file
fe_epics sends experimental data to EPICS (can be read by control-room)
autorun automatic run controller
cleanup cleans up and archives any saved run files that were not properly archived. Run by user occasionally as needed.
scripts isdaq01 MIDAS
host
PC
both scripts perform important functions e.g. kill-all, start-all. Scripts run at the begin and end of each run send information to the elog, check the CAMP logged variables etc.
perlscripts isdaq01 both various perlscripts control changing experimental mode, checking and maintaining run numbering, etc.
camp camp
server
bnmrvw MVME162 bnmr MUSR slow control system
polvw bnqr
camp
client
isdaq01 Midas
Host PC
both
physica isdaq01 Midas
Host PC
both data analyser
lcrplot plot data


Each of the DAQ components is described in more detail (click on the appropriate link in Table 3). The perlscripts use the MIDAS utility odbedit to communicate with the ODB, and may be run by one of the MIDAS clients, or by a (custom)script button on a MIDAS web page.

Separate test software has been created for some of the hardware modules. See BNMR: Hardware Debugging.


DAQ Summary

The VMIC front end computer
  • runs the frontend code which
    • controls PSM,PPG, VMEIO, Scaler modules
    • acquires data from SIS MCS (scaler) module(s), builds histograms
    • uses channel access to control EPICS variable(s) (e.g. helicity)
    • periodically sends the data out into the data buffer
The host computer (isdaq01)
  • runs all other software components which
    • acquire the data from the data buffer
    • log the data
    • monitor the experiment
    • start/stop runs

Nomenclature

In this document, " bnmr or bnqr " may be written as " bn[mq]r "

For example, directories :

/home/bnmr/online/bnmr spc and spc /home/bnqr/online/bnqr

are referred to by shortcuts such as

space /home/bn[nm]r/online/b[nm]r spc and spc ~/online/b[nm]r

Alternatively, these directories may be written as

  • /home/<experiment>/online/<beamline>
  • /home/<expt>/online/<beamline>
  • ~/online/<beamline>

where <experiment> <expt> and <beamline> are bnmr or bnqr.