HOME ESR EXPERIMENTS LABS etc
NucAR lab laser_lab Fritz-Bosch-Lab X-Ray Lab target Beavertail
  NucAR lab  Not logged in ELOG logo
Message ID: 23     Entry time: Mon Sep 9 09:53:42 2024
Author: Jan 
Category: DAQ 
Subject: MBS cheat sheet 
General
  • to start MBS, always navigate to the folder containing the f_user.c setup for your hardware
  • it is recommended to start MBS in a sceen session (see at the bottom)
  • use MBS scripts to do initialitation "startup.scom", shutdown "shutdown.scom" or file writing "runstart.scom"/"runstop.scom" and other things
    these scripts are simple lists of MBS shell commands, one per row
    they should be in your MBS folder and can be created or adjusted as needed

TCSH/BASH terminal of your MBS node:
command comment
> mbs  
starts the mbs shell
> resl  
stops all running mbs services (use to kill DAQ from a different terminal)
> rate
status monitor for MBS data I/O on this node
> ratf
same as "rate" but with full file /dir/name
[CTRL] + [Z]
exit MBS shell


In the MBS shell
command parts in parenthesis () are optional/autocompleted
optional arguments are given in {}

Initialization & status
command comment
mbs> @startup
call the startup script, if existing, it should setup everything
mbs> sh(ow) ac(quisition)
show the status of the aquisition (RUNNING, OUTPUT DEVICE, FILE OPEN, etc)
mbs> sh(ow) f(ile)
show the file status
mbs> t(ype) e(vent) {X} {-v}
display header of next X events, -v option also displays the data part
[CTRL] + [Z]
exit MBS shell


File handling

While it is possible to directly write into the /home/ mounted by your MBS user, it is highly recommended to use an RFIO server to write to an external disk. Direct local file writing will go to the one disk any of the MBS users work on with their DAQs. This might lead to perfomance problems for others and in the worst case (the disk is full), no one can use MBS.

command comment
mbs> co(nnect) rfio linuxpc.gsi.de -DISK 
connect to a running RFIO server on the pc linuxpc.gsi.de (see below)
mbs> disc(onnect) rfio 
disconnect the RFIO server
mbs> op(en) f(ile) /path/to/storage/place/file.lmd -disk 
open a file on the local disk (not recommended)
mbs> op(en) f(ile) /path/to/storage/place/file.lmd -rfio 
open a file and send to RFIO server (recommended)
mbs> op(en) f(ile) file.lmd -rfio {-auto} 
-auto does automatic filename numbering, next number given in filenum.set, new file after 1GB file size
mbs> op(en) f(ile) file.lmd -rfio {-auto} {first=Y} 
first=Y sets the first file number for -auto and resets number in filenum.set
mbs> op(en) f(ile) file.lmd -rfio {-auto} {size=X} 
size=X sets the maximum file size in MB for -auto to open a new file automatically
mbs> cl(ose) f(ile) 
close the current file (regardless of how it was opened)
mbs> 
mbs> 
mbs> 
mbs> 
mbs> 
mbs> 
[CTRL] + [Z]
exit MBS shell


RFIO server

Online monitoring (Go4 & stream server)

screen: usage of a virtual terminal
ELOG V3.1.5-fc6679b