BNMR: Run numbering: Difference between revisions

From DaqWiki
Jump to navigation Jump to search
en>Suz
mNo edit summary
en>Suz
mNo edit summary
Line 12: Line 12:


== User selects TEST or REAL run ==
== User selects TEST or REAL run ==
On the [[BNMR: Custom Status page|custom Status page]] the user selects either a TEST or REAL run by pressing the appropriate button. These buttons are custom script buttons, which call a perlscript to [[#Automatic selection of the run number|select the next run number]].
Prior to starting a run, the user can switch the run type on the [[BNMR: Custom Status page|custom Status page]] to select either a TEST or REAL run by pressing the appropriate button. These buttons are custom script buttons, which call perlscripts  [[BNMR: Perlscripts#real_run.pl|real_run.pl]] or [[BNMR: Perlscripts#test_run.pl|test_run.pl]] to change the [[BNMR: Keys in /Equipment/FIFO_acq/mdarc ODB subtree|run type]]. The [[#Automatic selection of the run number|next run number]] for the appropriate run type (Test or Real) is then selected.


== Run Number Ranges ==
== Run Number Ranges ==

Revision as of 18:19, 7 November 2018

Introduction

bnmr and bnqr experiments use the MUSR run number scheme, whereby "Real" runs are assigned a run number in a certain range depending on the beamline. All "Test" runs have a run number selected from the test run number range (independent of beamline). This means that the selection of the next run number is controlled by software (see #Automatic selection of the run number).

User selects TEST or REAL run

Prior to starting a run, the user can switch the run type on the custom Status page to select either a TEST or REAL run by pressing the appropriate button. These buttons are custom script buttons, which call perlscripts real_run.pl or test_run.pl to change the run type. The next run number for the appropriate run type (Test or Real) is then selected.

Run Number Ranges

The following run number ranges have been assigned:

BNMR
40001 - 44499 inclusive
BNQR
45001 - 49999 inclusive
test
30001 - 30499 inclusive

Automatic selection of the run number

The selection of the next run number is done automatically, controlled by the perlscript get_next_run_number.pl. This script is called by mdarc which saves the data, and indirectly by the test and real buttons on the BNMR: Custom Status page.

Without the automatic checking, duplicate runs between I-MUSR and TD-MUSR and holes in the run numbering are inevitable. To preserve the automatic run numbering scheme, users are prevented from editing the run number.

User prevented from editing run number

By default, the MIDAS system allows the user to edit the run number at the begin-of-run. MIDAS provides a way of preventing editing of the run number. This is implemented in the ODB of both the bnmr and bnqr experiments, e.g.

[local:bnqr:Stopped]/>ls "/experiment/Edit on start/Edit run number" 
Edit run number                 n