Logging to a ASCII file: Difference between revisions

From MidasWiki
Jump to navigation Jump to search
No edit summary
(The midas documentation has moved to https://midas.triumf.ca/docs/)
Tag: Replaced
 
Line 1: Line 1:
{{Pagelinks}}
The midas documentation has moved. See [https://midas.triumf.ca/docs/develop/features/storing_data/data_logging/runlog/ Data logging: run log] for the new documentation about logging run information to an ASCII file.
 
==== Links ====
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3">
* [[mlogger]]
* [[keys in the ODB /Logger tree | ODB /Logger tree ]]
* [[keys in the ODB /Logger/Runlog/SQL subtree |ODB /Logger/Runlog/SQL subtree]]
* [[keys in the ODB /Logger/Runlog/ASCII subtree |ODB /Logger/Runlog/ASCII subtree]]
</div>
 
-------
<br>
The MIDAS logger ([[mlogger]]) is able to record information in an ASCII file.
 
Under two dedicated subdirectories
[[Keys in the ODB /Logger/Runlog/SQL subtree #/Logger/Runlog/SQL/Links BOR | Links BOR ]] and
[[Keys in the ODB /Logger/Runlog/ASCII subtree #/Logger/Runlog/ASCII/Links EOR | Links EOR ]],
predefined links exist which will be used at begin-of-run (BOR) and end-of-run (EOR) respectively for storing parameter values into an ASCII file. These elements are [[ODB Page#symbolic link|ODB links]] allowing the user to extend the list with any parameter in the ODB database.
 
The following example shows a <span style="color: purple;">''/Logger/Runlog/ASCII''</span> tree as created by [[mlogger]]. See [[keys in the ODB /Logger/Runlog/ASCII subtree |ODB /Logger/Runlog/ASCII subtree]] for an explanation of the meaning of each key.
 
=== Example /Logger/Runlog/ASCII subtree ===
 
[local:midas]Runlog>ls -lr ASCII
Key name                        Type    #Val  Size  Last Opn Mode Value
---------------------------------------------------------------------------
ASCII                          DIR
    Write data                  BOOL    1    4    >99d 0  RWD  n
    filename                    STRING  1    80    >99d 0  RWD  runlog.log
    Links BOR                  DIR
        Run number -> /Runinfo/Run number
                                INT32  1    4    11h  0  RWD  1517
        Start time -> /Runinfo/Start time
                                STRING  1    32    11h  0  RWD  Mon Oct 31 13:39:21 2022
    Links EOR                  DIR
        Stop time -> /Runinfo/Stop time
                                STRING  1    32    3h  0  RWD  Tue Nov  8 09:27:59 2022
        Comment -> /Experiment/Edit on start/Comment
                                STRING  1    128  11h  0  RWD  FEP Hit Finder
 
[[Category: Logger Tree]] [[Category:Data Logging]]

Latest revision as of 22:00, 30 October 2026

The midas documentation has moved. See Data logging: run log for the new documentation about logging run information to an ASCII file.