/Runinfo ODB tree

From MidasWiki
Revision as of 12:39, 20 August 2013 by Suz (talk | contribs) (Created page with "== Creating the /Runinfo tree == The <span style="color: purple;">''/Runinfo''</span> tree is created automatically when the ODB is first created...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Creating the /Runinfo tree

The /Runinfo tree is created automatically when the ODB is first created.

Purpose

The /Runinfo ODB tree contains system information about the state of the current run. Several time fields are available for run time statistics. This information is displayed on the mhttpd Main Status page or can be viewed with odbedit as shown below.

Example

> odb -e expt -h host
[host:expt:Running]/>ls -r -l /runinfo
Key name                      Type    #Val  Size  Last Opn Mode Value
------------------------------------------------------------------------
Runinfo                        DIR
   State                      INT     1     4     2h   0   RWD  3
   Online Mode                INT     1     4     2h   0   RWD  1
   Run number                 INT     1     4     2h   0   RWD  8521
   Transition in progress     INT     1     4     2h   0   RWD  0
   Requested transition       INT     1     4     2h   0   RWD  0
   Start time                 STRING  1     32    2h   0   RWD  Thu Mar 23 10:03:44 2000
   Start time binary          DWORD   1     4     2h   0   RWD  953834624
   Stop time                  STRING  1     32    2h   0   RWD  Thu Mar 23 10:03:33 2000
   Stop time binary           DWORD   1     4     2h   0   RWD  0

Keys in the /Runinfo tree

The keys in the ODB /Runinfo tree are described in the following sections.

/Runinfo/State

  • Type: INT
  • Default: 1

Specifies the state of the current run (see Run States and Transitions #MIDAS State and Transition Codes) . The possible states are

  • 1: STOPPED ( STATE_STOPPED )
  • 2: PAUSED ( STATE_PAUSED )
  • 3: RUNNING ( STATE_RUNNING )





/Runinfo/Online Mode

  • Type: INT
  • Default: 1

Specifies the expected acquisition mode. This parameter allows the user to detect if the data are coming from a "real-time" hardware source (the default) or from a data save-set. Note that for analysis replay using "analyzer" this flag will be switched off.





/Runinfo/Run number

  • Type: INT
  • Default: 0

Specifies the current run number. This number is automatically incremented by a successful run start procedure.




/Runinfo/Transition in progress

  • Type: INT
  • Default: 0

Specifies the current internal state of the system. This parameter is used for multiple source of "run start" synchronization. Sometimes when run start or stop fails, Transition in progress is left set to 1, and must be manually set to 0 by the user before the run start/stop can be retried.

 > odb set /runinfo/transition in progress 0





/Runinfo/Requested transition

  • Type: INT
  • Default: 1

Specifies the current internal state of the Deferred Transition state of the system.



/Runinfo/

  • Type: INT
  • Default: 1





/Runinfo/

  • Type: INT
  • Default: 1





/Runinfo/

  • Type: INT
  • Default: 1





/Runinfo/

  • Type: INT
  • Default: 1






/Runinfo/

  • Type: INT
  • Default: 1





/Runinfo/

  • Type: INT
  • Default: 1