Difference between revisions of "Dalma - daLogMsg Archiver"

From Cuawiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
  PATH = /home/hccoda/scripts/dalma
 
  PATH = /home/hccoda/scripts/dalma
 
  COMMAND = dalma_entry.sh %(rt) START/END/RESET %(rn) %(session)
 
  COMMAND = dalma_entry.sh %(rt) START/END/RESET %(rn) %(session)
 
 
  
 
=== output files ===
 
=== output files ===
Line 18: Line 16:
 
'''daLogMsg output ilename format'''
 
'''daLogMsg output ilename format'''
 
  RUNNUMBER-SESSION.log
 
  RUNNUMBER-SESSION.log
 +
 +
== Readout List interface ==
 +
All messages using '''daLogMsg''' will be caught by dalma.
 +
 +
For example:
 +
  daLogMsg("INFO","TI Configured for Internal Pulser Triggers");
 +
 +
Capturing standard out is done with the dalmaRol library using the '''DALMAGO''' and '''DALMASTOP''' macros
 +
 +
For example:
 +
  DALMAGO;
 +
  tiStatus(1);
 +
  DALMASTOP;
 +
 +
=== dalma library ===
 +
Source installed in
 +
$CODA_VME/dalma
 +
 +
Header is installed as
 +
$CODA_VME/include/dalmaRolLib.h
 +
 +
Shared Library is installed as
 +
$CODA_VME_LIB/libdalmaRol.so
 +
 +
Initialized in readout list in '''rocLoad()''' with the call:
 +
dalmaInit(1);
 +
 +
Closed in readout list in '''rocCleanup()''' with the call:
 +
dalmaClose();

Latest revision as of 14:46, 20 February 2023

dalma installation - eel108

CODA State Script - dalma_entry.sh

Installed for configurations as a Supervisor Process (jcedit pulldown menu: Expert->Supervisor Process), this script is called for the CODA states: START / END / RESET with

PATH = /home/hccoda/scripts/dalma
COMMAND = dalma_entry.sh %(rt) START/END/RESET %(rn) %(session)

output files

Output Path

cdaql3:/data1/cdaq/eel108/dalma_output/

dalma_entry.sh debug output

dalma_entry.dbg

daLogMsg output ilename format

RUNNUMBER-SESSION.log

Readout List interface

All messages using daLogMsg will be caught by dalma.

For example:

 daLogMsg("INFO","TI Configured for Internal Pulser Triggers");

Capturing standard out is done with the dalmaRol library using the DALMAGO and DALMASTOP macros

For example:

 DALMAGO;
 tiStatus(1);
 DALMASTOP;

dalma library

Source installed in

$CODA_VME/dalma

Header is installed as

$CODA_VME/include/dalmaRolLib.h

Shared Library is installed as

$CODA_VME_LIB/libdalmaRol.so

Initialized in readout list in rocLoad() with the call:

dalmaInit(1);

Closed in readout list in rocCleanup() with the call:

dalmaClose();