Edit-on-Sequence Parameters: Difference between revisions

From MidasWiki
Jump to navigation Jump to search
(Created page with " {{Pagelinks}} = Links = <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> * Sequencer * mhttpd * mhttpd Sequencer Page * Edit-on-start Par...")
 
(The midas documentation has moved to https://midas.triumf.ca/docs/)
 
Line 1: Line 1:
{{Pagelinks}}
The midas documentation has moved. See [https://midas.triumf.ca/docs/develop/features/monitoring_and_control/sequencer/scripting/#defining-parameters Defining parameters] on the Sequencer: scripting page and [https://midas.triumf.ca/docs/develop/reference/reference/odb_keys/#experimentedit-on-sequence /Experiment/Edit on sequence] on the ODB keys page for the new documentation about edit-on-sequence parameters.
= Links =
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3">
* [[Sequencer]]
* [[mhttpd]]
* mhttpd [[Sequencer Page]]
* [[Edit-on-start Parameters]]
* [[/Experiment ODB tree]]
* [[/Sequencer ODB tree]]
</div>
 
== Introduction ==
Edit-on-sequence parameters will be displayed for edit when a new [[Sequencer|Sequence]] is started (similar to the [[Edit-on-start Parameters]] that appear when a run is started). Edit-on-sequence parameters may be defined in the
[[/Experiment ODB tree]] in an optional {{Odbpath|path=Edit on Sequence}} subdirectory in the same way that
[[Edit-on-start Parameters]] are defined in the  {{Odbpath|path=Edit on Start}} subdirectory.
 
A sequence can only be run from the [[mhttpd]] [[Sequencer Page]] (not from [[odbedit]]).
Edit-on-sequence parameters are displayed ([[#Figure_1|Figure 1]]) when the  {{Button|name=Start Script}} button is pressed.
 
 
== Creating edit-on-sequence parameters ==
Create the subdirectory {{Odbpath|path=edit on sequence}} in the [[/Experiment ODB tree]] and fill it with the required parameters in the same way as described for [[Edit-on-start Parameters#Creating ''edit-on-start'' parameters|creating edit-on-start parameters]]
 
== Example ==
An example of edit-on-sequence parameters defined in the {{Odbpath|path=/Experiment/edit on sequence}} ODB subtree are shown below using [[odbedit]]. Edit-on-sequence parameters can be linked to Parameter comments in the same way as [[Edit-on-start Parameters#edit-on-start parameter comments|edit-on-start parameter comments]].
 
 
The defined edit-on-sequence parameters are displayed for editing in [[#Figure_1|Figure 1]] below.
 
 
[local:midas:S]/>ls -lrt /experiment
Key name                        Type    #Val  Size  Last Opn Mode Value
---------------------------------------------------------------------------
Experiment                      DIR
    Name                        STRING  1    32    7s  0  RWD  midas
  ................
  <span style="color: purple;">Parameter Comments</span>          DIR                 
        field                          STRING  1    32    >99d 0  RWD  <i>Entered in Tesla unit</i>
        Num cycles                      STRING  1    80    >99d 0  RWD  <i>Stop run after num cycles is reached.  Enter 0 to disable (free running)</i>
    <span style="color: purple;">Run Parameters</span>              DIR
        Comment                        STRING  1    80    2h  0  RWD  Testing with low beam
        Run Description                STRING  1    256  7h  0  RWD  Sequencer Tests
        Number of channels              DWORD  1    4    2h  0  RWD  20
    <span style="color: purple;">Lock when running</span>          DIR
        Num channels -> /Run Parameters/number of channels
                                        DWORD  1    4    2h  0  RWD  20
    <span style="color: purple;">edit on sequence</span>            DIR
        title                          STRING  1    128  2h  0  RWD  none
        experiment number              DWORD  1    4    2h  0  RWD  9438
        experimenter                    STRING  1    32    2h  0  RWD  gls
        sample                          STRING  1    36    2h  0  RWD  NA
        run description -> /Experiment/run parameters/run description
                                        STRING  1    256  7h  0  RWD  Sequencer Tests
        Write Data -> /Logger/Write data
                                        BOOL    1    4    2h  0  RWD  n
        Number of cycles -> /Equipment/FIFO_acq/frontend/hardware/num cycles
                                        DWORD  1    4    2h  0  RWD  0
  ................
<br>
<div id="Figure_1"></div>
CLICK TO ENLARGE
[[File:sequencer_onstart.png|thumb|left|Figure 1: Example of edit-on-sequence parameters]]
 
[[Category:Sequencer]]

Latest revision as of 22:00, 30 October 2026

The midas documentation has moved. See Defining parameters on the Sequencer: scripting page and /Experiment/Edit on sequence on the ODB keys page for the new documentation about edit-on-sequence parameters.