Difference between revisions of "Dalma - daLogMsg Archiver"

From Cuawiki
Jump to navigation Jump to search
Line 31: Line 31:
  
 
=== dalma library ===
 
=== dalma library ===
Source installed in '''$CODA_VME/dalma'''. 
+
Source installed in  
 +
$CODA_VME/dalma
  
 
Header is installed as
 
Header is installed as

Revision as of 15:44, 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 macro calls.

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();