BNMR: Difference between revisions
en>Suz No edit summary |
en>Suz No edit summary |
||
Line 2: | Line 2: | ||
= Purpose = | = Purpose = | ||
These pages describe the Data Acquisition System for the BNMR and BNQR experiments at TRIUMF | These pages describe the Data Acquisition System (DAQ) for the BetaNMR (BNMR) and BetaNQR (BNQR) experiments at TRIUMF | ||
= Introduction = | = Introduction = | ||
The Data Acquisition System is based on the [https://midas.triumf.ca/MidasWiki/index.php/Midas_documentation MIDAS] data acquisition package. | |||
There are two separate experimental setups : | |||
* '''BNMR''' running on the BNMR high-voltage platform | |||
* '''BNQR''' running on the BNQR high-voltage platform | |||
There are two | 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'' and ''bnqr''. DAQ software specific to the BNMR/BNQR experiments runs the experiments - see [[#Software Components]]. | ||
The main EPICS Control System is used to control the beam, which can be switched to either the BNMR experiment or the BNQR experiment. There are two '''Beam Modes''' that BNMR and BNQR experiments can be run in: | |||
; single channel mode | |||
: where the beam is sent to one channel only, either BNMR or BNQR. Only one of the DAQ systems (bnmr/bnqr) is active. | |||
; '''dual channel mode''' | |||
: where the beam is switched between the two channels BNMR and BNQR at regular intervals. Both DAQ systems (bnmr/bnqr) are active. | |||
For both BNMR and BNQR experiments, two types of environment are defined (cf MUSR experiments): | For both BNMR and BNQR experiments, two types of environment are defined (cf MUSR experiments): | ||
* Integral (Type 1) | * '''Integral (Type 1)''' | ||
* Time Differential or TD (Type 2) | * '''Time Differential or TD (Type 2)''' | ||
* Combination of the above two types | * Combination of the above two types | ||
Line 28: | Line 31: | ||
= Experimental Modes = | = Experimental Modes = | ||
A number of different | 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 [[#Hardware Components|PPG]] (i.e. to different pulse sequences) so are also known as '''PPG Modes'''. | ||
{| class="wikitable" border=0 cellspacing=3 cellpadding=10 style="background-color:white" | {| class="wikitable" border=0 cellspacing=3 cellpadding=10 style="background-color:white" | ||
|+ Table 1 INTEGRAL and TIME DIFFERENTIAL Experimental (PPG) Modes | |||
|- | |- | ||
| | | | ||
{| class="wikitable" border=0 cellspacing=3 cellpadding=10 style="background-color:#e6ffe6" | {| class="wikitable" border=0 cellspacing=3 cellpadding=10 style="background-color:#e6ffe6" | ||
|+ <b><center> Table | |+ <b><center> Table 1a: Type 1 Integral Modes</center></b> | ||
|- style="background-color: #ccffcc" | |- style="background-color: #ccffcc" | ||
! Mode Name !! Run Parameters !! Timing Figure | ! Mode Name !! Run Parameters !! Timing Figure | ||
Line 65: | Line 67: | ||
|+ <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 !! Run Parameters !! Timing Figure | ! Mode Name !! Run Parameters !! Timing Figure | ||
|- style="background-color: #ff99ff" | |- style="background-color: #ff99ff" | ||
| SLR || 20 || 20 | | SLR || 20 || 20 | ||
|- | |- | ||
| 2a || 2a || 2a | | 2a || 2a || 2a | ||
|- | |- | ||
| 2b || 2b || 2b | | 2b || 2b || 2b | ||
|- | |- | ||
| 2c || 2c || 2c | | 2c || 2c || 2c | ||
|- | |- | ||
| 2d || 2d || 2d | | 2d || 2d || 2d | ||
|- style="background-color: #ff99ff" | |- style="background-color: #ff99ff" | ||
| 2e || 2e || 2e | | 2e || 2e || 2e | ||
|- style="background-color:white; color:white " | |- style="background-color:white; color:white " | ||
| this<br>is<br> a<br> spacer || || | | this<br>is<br> a<br> spacer || || | ||
|- style="background-color:white; color:white " | |- style="background-color:white; color:white " | ||
| this<br>is<br> a<br> spacer|| || | | this<br>is<br> a<br> spacer|| || | ||
|- | |- | ||
|} | |} | ||
Line 107: | Line 109: | ||
| PSMII || Pol Synthesizer module II (RF) || 0xC00000 || yes || no | | PSMII || Pol Synthesizer module II (RF) || 0xC00000 || yes || no | ||
|- style="background-color: #e0e0eb;" | |- style="background-color: #e0e0eb;" | ||
| MVME162 || 68040 board, cpu runs CAMP (VxWorks) || || || | | MVME162 || 68040 board, cpu runs CAMP (VxWorks) || || || bnmrvw || polvw | ||
|- | |- | ||
| VMIC|| cpu runs frontend (Linux) || || || | | VMIC|| cpu runs frontend (Linux) || || || lxbnmr || lxbnqr | ||
|} | |} | ||
CAMP host | The names of the VMIC running the frontend and MVME162 (the CAMP host) for bnmr and bnqr are shown in Table 2 above. | ||
= Software Components = | = Software Components = | ||
The DAQ system is based on the [[MIDAS]] package. 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 BNMR/BNQR experimenters to control and monitor their experiment. | 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 BNMR and BNQR 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 BNMR/BNQR 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''. | |||
The main software components of the BNMR/BNQR experiment are | The main software components of the BNMR/BNQR experiment are | ||
{| class="wikitable" border=1 cellspacing=3 cellpadding=10 style="background-color:#f0f0f5" | {| class="wikitable" border=1 cellspacing=3 cellpadding=10 style="background-color:#f0f0f5" | ||
|+ <b><center> Table | |+ <b><center> Table 3: Software Components</center></b> | ||
|- style="background-color: #e0e0eb;" | |- style="background-color: #e0e0eb;" | ||
! Component !! Purpose | ! Component !! Purpose | ||
Line 146: | Line 154: | ||
|} | |} | ||
Each of these components is described in more detail [[here]]. | |||
= DAQ Summary = | = DAQ Summary = |
Revision as of 13:53, 11 March 2016
BNMR Experiments at TRIUMF
Purpose
These pages describe 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 experimental setups :
- 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 and bnqr. DAQ software specific to the BNMR/BNQR experiments runs the experiments - see #Software Components.
The main EPICS Control System is used to control the beam, which can be switched to either the BNMR experiment or the BNQR experiment. There are two Beam Modes that BNMR and BNQR experiments can be run in:
- single channel mode
- where the beam is sent to one channel only, either BNMR or BNQR. Only one of the DAQ systems (bnmr/bnqr) is active.
- dual channel mode
- where the beam is switched between the two channels BNMR and BNQR at regular intervals. Both DAQ systems (bnmr/bnqr) are active.
For both BNMR and BNQR 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
Experimental 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.
|
spacer
|
Hardware Components
DAQ hardware components for each system (BNMR/BNQR) include the following VME modules:
Module | Description | Manual | VME Base Address | BNMR | BNQR |
---|---|---|---|---|---|
SIS3801 version E | multichannel scaler A | SIS3801 | 0x2800 | yes | yes |
SIS3801 version E | multichannel scaler B | 0x1800 | yes | no | |
PPG (Pulseblaster) | Pulse Programmable module | PPG Spincore Pulseblaster |
0x8000 | yes | yes |
PSM | Pol Synthesizer module (RF) | PSM / PSMII AD9857 Quadrature Digital Upconverter |
0xC00000 | no | yes |
PSMII | Pol Synthesizer module II (RF) | 0xC00000 | yes | no | |
MVME162 | 68040 board, cpu runs CAMP (VxWorks) | bnmrvw | polvw | ||
VMIC | cpu runs frontend (Linux) | lxbnmr | lxbnqr |
The names of the VMIC running the frontend and MVME162 (the CAMP host) for bnmr and bnqr are shown in Table 2 above.
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 BNMR and BNQR 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 BNMR/BNQR 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.
The main software components of the BNMR/BNQR experiment are
Component | Purpose |
---|---|
frontend (runs on VMIC) | set up, operate and read hardware modules |
rf_config | 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) |
perlscripts | various perlscripts control changing experimental mode, checking and maintaining run numbering, etc. |
autorun | automatic run controller |
lcrplot | plots experimental data |
physica | analyse data, reads MUD format files |
Each of these components is described in more detail here.
DAQ Summary
- The VMIC front end computer runs the frontend code which
- controls PSM,PPG, VMEIO
- acquires data from SIS MCS module(s), builds histograms
- acquires data from CAMP, EPICS
- sends the data out into the data buffer
- The host computer (isdaq01)
- run all other software components
- starts/stops runs
- acquires the data from the data buffer
- logs the data
- monitors the experiment