Messages from user programs
A user monitoring or control program can send a message which will be written
in a dedicated file which contents are displayed by readinfo
process running on pcdirac02. This messages are not included in data
written to a run file and may be used only to inform shift about met problems.
For example, the message can explain in more detail an alarm detected by
user program or any other problem.
To send messages you call function
int send_mess(int level, char *mess);
where
-
level may be
-
0 - INFO and it is foreseen for messages like run started/stopped and like
it
-
1 - Warning serves to indicate a problem which may affect on a data quality
-
2 - Alarm for problems which is crucial for the data quality or for apparatus
-
mess - is a character string of no more 256 bytes and contains the message
To use this function you must include header file ~daq/include/daq_mess.h
and link you code with ~daq/lib/send_mess.o file.