Difference between revisions of "/Sequencer ODB tree"

From MidasWiki
Jump to navigation Jump to search
Line 7: Line 7:
  
 
== Purpose  ==
 
== Purpose  ==
The ODB /Sequencer tree contains information related to the [[Sequencer]].
+
The ODB /Sequencer tree contains information related to the [[Sequencer]]. The keys are used by the Sequencer system and are not accessed directly by the user.
  
 
== Creating the /Sequencer tree ==
 
== Creating the /Sequencer tree ==
The <span style="color:purple; font-style:italic">/Sequencer</span>  ODB tree is created automatically when the MIDAS web browser [[mhttpd]] is started. It will be filled with default values.
+
The <span style="color:purple; font-style:italic">/Sequencer</span>  ODB tree is created the first time that the Sequencer button on the MIDAS web browser [[mhttpd]] is pressed. It will be filled with default values.
  
 
== Example of /Sequencer tree ==
 
== Example of /Sequencer tree ==

Revision as of 18:49, 18 June 2014

Links

Purpose

The ODB /Sequencer tree contains information related to the Sequencer. The keys are used by the Sequencer system and are not accessed directly by the user.

Creating the /Sequencer tree

The /Sequencer ODB tree is created the first time that the Sequencer button on the MIDAS web browser mhttpd is pressed. It will be filled with default values.

Example of /Sequencer tree

An example of the /Sequencer tree where the sequencer is running is shown below.

$mhttpd -p 8080 -D
$odbedit
[local:Defaults:S]ls -rwl /Sequencer
Key name                        Type    #Val  Size  Last Opn Mode Value
---------------------------------------------------------------------------
Sequencer                       DIR
    State                       DIR
        Path                    STRING  1     256   14s  0   RWD  /home/midas/online/
        Filename                STRING  1     256   14s  0   RWD  
        Error                   STRING  1     256   14s  0   RWD  
        Error line              INT     1     4     14s  0   RWD  0
        SError line             INT     1     4     14s  0   RWD  0
        Message                 STRING  1     256   14s  0   RWD  
        Message Wait            BOOL    1     4     14s  0   RWD  n
        Running                 BOOL    1     4     14s  0   RWD  n
        Finished                BOOL    1     4     14s  0   RWD  y
        Paused                  BOOL    1     4     14s  0   RWD  n
        Current line number     INT     1     4     14s  0   RWD  0
        SCurrent line number    INT     1     4     14s  0   RWD  0
        Stop after run          BOOL    1     4     14s  0   RWD  n
        Transition request      BOOL    1     4     14s  0   RWD  n
        Loop start line         INT     4     4     14s  0   RWD  
                                        [0]             0
                                        [1]             0
                                        [2]             0
                                        [3]             0
        SLoop start line        INT     4     4     14s  0   RWD  
                                        [0]             0
                                        [1]             0
                                        [2]             0
                                        [3]             0
        Loop end line           INT     4     4     14s  0   RWD  
                                        [0]             0
                                        [1]             0
                                        [2]             0
                                        [3]             0
        SLoop end line          INT     4     4     14s  0   RWD  
                                        [0]             0
                                        [1]             0
                                        [2]             0
                                        [3]             0
        Loop counter            INT     4     4     14s  0   RWD  
                                        [0]             0
                                        [1]             0
                                        [2]             0
                                        [3]             0
        Loop n                  INT     4     4     14s  0   RWD  
                                        [0]             0
                                        [1]             0
                                        [2]             0
                                        [3]             0
        Subdir                  STRING  1     256   14s  0   RWD  
        Subdir end line         INT     1     4     14s  0   RWD  0
        Subdir not notify       INT     1     4     14s  0   RWD  0
        Stack index             INT     1     4     14s  0   RWD  0
        Subroutine end line     INT     4     4     14s  0   RWD  
                                        [0]             0
                                        [1]             0
                                        [2]             0
                                        [3]             0
        Subroutine return line  INT     4     4     14s  0   RWD  
                                        [0]             0
                                        [1]             0
                                        [2]             0
                                        [3]             0
        Subroutine call line    INT     4     4     14s  0   RWD  
                                        [0]             0
                                        [1]             0
                                        [2]             0
                                        [3]             0
        SSubroutine call line   INT     4     4     14s  0   RWD  
                                        [0]             0
                                        [1]             0
                                        [2]             0
                                        [3]             0
        Subroutine param        STRING  4     256   14s  0   RWD  
                                        [0]             
                                        [1]             
                                        [2]             
                                        [3]             
        Wait value              FLOAT   1     4     14s  0   RWD  0
        Wait limit              FLOAT   1     4     14s  0   RWD  0
        Start time              DWORD   1     4     14s  0   RWD  0
        Wait type               STRING  1     32    14s  0   RWD  
        Last msg                STRING  1     10    14s  0   RWD  00:00:00


Keys in the /Sequencer ODB tree

State subtree

  • Type: DIR

This subtree in the /Sequencer ODB tree is created by mhttpd. It is used for data needed by the Sequencer.





Path

  • Type: STRING
  • Default: ""

This key in the State subtree contains the directory path of the sequencer loadfile(s)




Filename

  • Type: STRING
  • Default: ""

This key in the State subtree contains the name of the current sequencer loadfile.





Error

  • Type: STRING
  • Default: ""

This key in the State subtree contains the error message from the system when an error is detected, or blank if no error.





Error line

  • Type: INT
  • Default: 0

This key in the State subtree contains the loadfile line number where error occurred, or zero if no error.





Serror line

  • Type: INT
  • Default: 0

This key in the State subtree contains the ??? line number where error occurred, or zero if no error.





Message

  • Type: STRING
  • Default: ""

This key in the State subtree contains the Sequencer message





Message wait

  • Type: BOOL
  • Default: "n"

This key in the State subtree contains ...




Running

  • Type: BOOL
  • Default: "n"

This key in the State subtree indicates whether the sequencer is running.




Finished

  • Type: BOOL
  • Default: "y"

This key in the State subtree indicates whether the sequencer is finished.





Paused

  • Type: BOOL
  • Default: "y"

This key in the State subtree indicates whether the sequencer is paused.





Current line number

  • Type: INT
  • Default: 0

This key in the State subtree indicates the line number in the loadfile that the sequencer is currently executing.





SCurrent line number

  • Type: INT
  • Default: 0

This key in the State subtree indicates the line number in ??? that the sequencer is currently executing.





Stop after run

  • Type: BOOL
  • Default: "n"

This key in the State subtree indicates whether the sequencer should stop after current run





Transition request

  • Type: BOOL
  • Default: "n"

This key in the State subtree indicates whether a transition has been requested by the sequencer loadfile.





Transition request

  • Type: BOOL
  • Default: "n"

This key in the State subtree indicates whether a transition has been requested by the sequencer loadfile.





Loop start line

  • Type: INT array of 4 elements
  • Default: 0,0,0,0

This key in the State subtree contains the line number(s) in the sequencer loadfile where a loop starts.





SLoop start line

  • Type: INT array of 4 elements
  • Default: 0,0,0,0

This key in the State subtree contains the line number(s) ...




Loop end line

  • Type: INT array of 4 elements
  • Default: 0,0,0,0

This key in the State subtree is filled by the Sequencer and contains the line number(s) in the sequencer loadfile where a loop ends.





SLoop end line

  • Type: INT array of 4 elements
  • Default: 0,0,0,0

This key in the State subtree is filled by the Sequencer and contains the line number(s) ... where a loop ends.





Loop counter

  • Type: INT array of 4 elements
  • Default: 0,0,0,0

This key in the State subtree is filled by the Sequencer and contains the loop counter for loops.





Loop n

  • Type: INT array of 4 elements
  • Default: 0,0,0,0

This key in the State subtree is filled by the Sequencer and contains ...





Subdir

  • Type: STRING
  • Default: ""

This key in the State subtree is filled by the Sequencer and contains ...





Subdir end line

  • Type: INT
  • Default: 0

This key in the State subtree is filled by the Sequencer and contains ...





Subdir not notify

  • Type: INT
  • Default: 0

This key in the State subtree is filled by the Sequencer and contains ...





Stack index

  • Type: INT
  • Default: 0

This key in the State subtree is filled by the Sequencer and contains ...





Subroutine end line

  • Type: INT array of 4 elements
  • Default: 0,0,0,0

This key in the State subtree is filled by the Sequencer and contains ...





Subroutine return line

  • Type: INT array of 4 elements
  • Default: 0,0,0,0

This key in the State subtree is filled by the Sequencer and contains ...






Subroutine param

  • Type: STRING array of 4 elements
  • Default:

This key in the State subtree is filled by the Sequencer and contains ...





Wait value

  • Type: FLOAT
  • Default: 0

This key in the State subtree is filled by the Sequencer and contains ...





Wait limit

  • Type: FLOAT
  • Default: 0

This key in the State subtree is filled by the Sequencer and contains ...





Start time

  • Type: DWORD
  • Default: 0

This key in the State subtree is filled by the Sequencer and contains ...





Wait type

  • Type: STRING
  • Default: ""

This key in the State subtree is filled by the Sequencer and contains ...





Last msg

  • Type: STRING
  • Default: "00:00:00"

This key in the State subtree is filled by the Sequencer and contains ...