BNMR: Difference between revisions

From DaqWiki
Jump to navigation Jump to search
en>Suz
mNo edit summary
en>Suz
mNo edit summary
Line 91: Line 91:
|  this<br>is<br> a<br> spacer <br> a ||  ||         
|  this<br>is<br> a<br> spacer <br> a ||  ||         
|-
|-
|}
|}style="color:#20b2aa"|


|-
|-
Line 100: Line 100:
DAQ hardware components for each DAQ system (BNMR/BNQR) include the following VME modules:
DAQ hardware components for each DAQ system (BNMR/BNQR) include the following VME modules:
{| 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 2: Hardware Modules for each Experiment</center></b>
|+ <b><center> Table 2: VME Modules for each Experiment</center></b>
|- style="background-color:#e0e0eb; "
|- style="background-color:#e0e0eb; "
! Module  !! Description !! Manual !! VME Base Address !! BNMR !! BNQR
! Module  !! Description !! VME Base Address !! style="color:#7b68ee "| BNMR !! style="color:#20b2aa"|BNQR !! style="background-color: whitesmoke"| Manual
|-
|-
| SIS3801 version E || multichannel scaler  A ||rowspan="2"| SIS3801 || 0x2800 || yes || yes
| SIS3801 version E || multichannel scaler  A || 0x2800 ||style="color:#7b68ee "| yes ||style="color:#20b2aa"| yes ||rowspan="2" style="background-color: white"| [http://www.triumf.info/wiki/DAQwiki/images/b/b1/Sis3801_V5_to_VE.pdf SIS3801]
|- style="background-color: #e0e0eb;"
|- style="background-color: #e0e0eb;"
| SIS3801 version E || multichannel scaler  B || 0x1800 || yes || no
| SIS3801 version E || multichannel scaler  B || 0x1800 ||style="color:#7b68ee "| yes ||style="color:#20b2aa"| no
|-  
|-  
| PPG (Pulseblaster) || Pulse Programmable module || PPG <br> Spincore Pulseblaster || 0x8000 || yes || yes
| PPG (Pulseblaster)|| Pulse Programmer  ||0x8000 ||style="color:#7b68ee "| yes  ||style="color:#20b2aa"|yes||style="background-color: whitesmoke"|[https://www.triumf.info/wiki/DAQwiki/images/7/74/PPG.pdf PPG] <br> [http://www.triumf.info/wiki/DAQwiki/images/6/6c/Spincore.pdf Spincore Pulseblaster]
|- style="background-color: #e0e0eb;"
|- style="background-color: #e0e0eb;"
| PSM || Pol Synthesizer module (RF) ||rowspan="2"|PSM <br> AD9857 Quadrature<br> Digital Upconverter<br> Programming<br> PSM / PSMII||  0xC00000 || no || yes
| PSM || Pol Synthesizer module (RF)||  0xC00000 ||style="color:#7b68ee "| no ||style="color:#20b2aa"| yes ||rowspan="2" style="background-color: white"|[http://www.triumf.info/wiki/DAQwiki/images/8/8c/PSM.pdf PSM] <br> [http://www.triumf.info/wiki/DAQwiki/images/5/50/AD9857_c_ps.pdf AD9857 Quadrature<br>Digital Upconverter] <br> Programming Guides:<br>[http://www.triumf.info/wiki/DAQwiki/images/e/eb/Psm_ps.pdf PSM] / [http://www.triumf.info/wiki/DAQwiki/images/8/85/Psmii_ps.pdf PSMII]
|-
|-


| PSMII || Pol Synthesizer module II (RF) || 0xC00000 || yes || no
| PSMII || Pol Synthesizer module II (RF) || 0xC00000 ||style="color:#7b68ee "| yes ||style="color:#20b2aa"| no
|- style="background-color: #e0e0eb;"
|- style="background-color: #e0e0eb;"
| MVME162 || 68040 board, cpu runs CAMP (VxWorks) || || || bnmrvw || polvw
| NIMIO32 || Input/Output Register  ||0x100000 ||style="color:#7b68ee "|yes ||style="color:#20b2aa"|yes ||style="background-color: whitesmoke"| [[VME-NIMIO32| NIMIO32]]
|-
| MVME162 || 68040 board, cpu runs CAMP (VxWorks) || ||style="color:#7b68ee "|bnmrvw || style="color:#20b2aa"| polvw ||style="background-color: white"|
|-
|-
| VMIC|| cpu runs frontend (Linux) || || || lxbnmr || lxbnqr
|- style="background-color: #e0e0eb;"
| VMIC|| cpu runs frontend (Linux) || ||style="color:#7b68ee "| lxbnmr || style="color:#20b2aa"|lxbnqr ||style="background-color: whitesmoke"|
|}
|}


Line 130: Line 133:
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 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 DAQ software components are started by the script ''start-all'' and stopped by the script ''kill-all''. These include '''standard MIDAS utilities''' (e.g. [https://midas.triumf.ca/MidasWiki/index.php/Mhttpd mhttpd], [https://midas.triumf.ca/MidasWiki/index.php/Mlogger mlogger], [https://midas.triumf.ca/MidasWiki/index.php/Mserver mserver]) as well as components specific to the  {{bnmqr|join=and}} experiments.


The main software components of the {{bnmqr|join=and}} experiments are
The main DAQ software components specific to the {{bnmqr|join=and}} experiments are


{| class="wikitable" border=1 cellspacing=3 cellpadding=2 style="background-color:#f0f0f5"
{| class="wikitable" border=1 cellspacing=3 cellpadding=2 style="background-color:#f0f0f5"
|+  <b><center> Table 3: Software Components</center></b>
|+  <b><center> Table 3: DAQ Software Components</center></b>
|- style="background-color: #e0e0eb;"
|- style="background-color: #e0e0eb;"
! Component !!   Purpose
 
|-
! Component !! Hostname !!  Purpose  
| frontend (runs on VMIC) || set up, operate and read hardware modules
|- style="background-color:floralwhite;"
|- style="background-color: #e0e0eb;"
| [[febnqr_vmic|febnmr_vmic]]** || lxbnmr||rowspan=2|'''frontend''' sets up, reads out hardware modules, sends histograms
| rf_config || check PPG parameters, download program to PPG
|- style="background-color:floralwhite;"
|-
| [[febnqr_vmic|febnqr_vmic]]** || lxbnqr
| mdarc || custom data logger saves data in MUD format
|- style="background-color:mintcream"
|- style="background-color: #e0e0eb;"
| [[rf_config|rf_config]]||isdaq01|| check PPG parameters, download program to PPG
| midbnmr || converts MIDAS format saved data files to save in MUD format
|- style="background-color:mintcream"
|-
| [[mdarc|mdarc]]|| isdaq01|| custom data logger saves data in MUD format
| mheader || sends out CAMP and EPICS slow-control data to be saved in the MUD data file  
|- style="background-color:mintcream;"
|- style="background-color: #e0e0eb;"
| midbnmr ||isdaq01|| converts MIDAS format saved data files to save in MUD format
| fe_epics || sends experimental data to EPICS (can be read by control-room)
|- style="background-color:mintcream"
|-
| mheader ||isdaq01|| sends out CAMP and EPICS slow-control data to be saved in the MUD data file  
| perlscripts || various perlscripts control changing experimental mode, checking and maintaining run numbering, etc.
|- style="background-color: mintcream;"
|- style="background-color: #e0e0eb;"
| fe_epics ||isdaq01|| sends experimental data to EPICS (can be read by control-room)
| autorun || automatic run controller
|- style="background-color: mintcream;"
|-  
| autorun||isdaq01|| automatic run controller
| lcrplot || plots experimental data
|-  style="background-color:lightyellow"
|- style="background-color: #e0e0eb;"
| perlscripts|| isdaq01 || various perlscripts control changing experimental mode, checking and maintaining run numbering, etc.
| physica || analyse data, reads MUD format files
|}
|}
: **softlinked (experiments run identical software)
Each of the DAQ components is described in more detail (click on the appropriate link in Table 3).  With the exception of the perlscripts, all components in Table 3 are MIDAS clients. The perlscripts use the MIDAS utility [https://midas.triumf.ca/MidasWiki/index.php/Odbedit 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.


Each of these components is described in more detail [[here]].
Analysis of the data is done by '''physica''', and plotting by '''lcrplot'''.  





Revision as of 16:13, 1 June 2016

BNMR and BNQR Experiments at TRIUMF

Main Page

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 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 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 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


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
Mode Name Run Parameters Timing Figure
Scalers 10 Same as 1f
1a 1a 1a
1b 1b 1b
Freq 1f 1f
NaCell 1n 1n
Laser 1d 1d
Camp 1c 1c
Fast * 1g Not available
LCR ** 1j Not available
*Combination of Modes 20 and 1f
**Combination of Modes 20 and 1c
spacer


Table 1b: Type 2 Differential Modes
Mode Name Run Parameters Timing Figure
SLR 20 20
2a 2a 2a
2b 2b 2b
2c 2c 2c
2d 2d 2d
2e 2e 2e
this
is
a
spacer
a
style="color:#20b2aa"|

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 yes SIS3801
SIS3801 version E multichannel scaler B 0x1800 yes no
PPG (Pulseblaster) Pulse Programmer 0x8000 yes yes PPG
Spincore Pulseblaster
PSM Pol Synthesizer module (RF) 0xC00000 no yes PSM
AD9857 Quadrature
Digital Upconverter

Programming Guides:
PSM / PSMII
PSMII Pol Synthesizer module II (RF) 0xC00000 yes no
NIMIO32 Input/Output Register 0x100000 yes yes NIMIO32
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 each experiment 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 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 Hostname Purpose
febnmr_vmic** lxbnmr frontend sets up, reads out hardware modules, sends histograms
febnqr_vmic** lxbnqr
rf_config isdaq01 check PPG parameters, download program to PPG
mdarc isdaq01 custom data logger saves data in MUD format
midbnmr isdaq01 converts MIDAS format saved data files to save in MUD format
mheader isdaq01 sends out CAMP and EPICS slow-control data to be saved in the MUD data file
fe_epics isdaq01 sends experimental data to EPICS (can be read by control-room)
autorun isdaq01 automatic run controller
perlscripts isdaq01 various perlscripts control changing experimental mode, checking and maintaining run numbering, etc.
**softlinked (experiments run identical software)


Each of the DAQ components is described in more detail (click on the appropriate link in Table 3). With the exception of the perlscripts, all components in Table 3 are MIDAS clients. 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.

Analysis of the data is done by physica, and plotting by lcrplot.


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