Skip to content
Schedule operations

Schedule parameters

This page describes Revolution release 4.0.0.

On this page
  1. Inputs and working values
  2. Writing a value of the declared type
  3. JSON parameters
  4. Referencing a parameter in a step
  5. Passing values to a child schedule
  6. Reading and writing parameters from Python
  7. Sharing a value between runs
Revo Ready

Hi, I'm Revo

Ask me anything about Revolution. My answers link the pages they come from.

Parameters hold the values a schedule works with: plate counts, worklist names, temperatures and so on. Every parameter a schedule uses is declared on the schedule, with a name and a type (Text, Number, Decimal, Boolean or JSON).

A schedule can’t declare a name the system sets itself: ThreadCount, the schedule name, a loop’s counters or a system parameter. Steps can still read them.

A parameter is either an input or a working value.

  • An input is asked for when the schedule is run or planned, and when another schedule starts it with Run Schedule or Run Schedule Thread. It can have a default value, which can still be changed at start.
  • A working value is set by the schedule while it runs, for example with Set Parameter or a Python step. It is not asked for at start.

A value written to a parameter is converted to the parameter’s declared type. If it can’t be converted, the step fails and the parameter keeps its old value. See Set Parameter for how a written value is converted.

A JSON parameter holds one JSON document: an object, an array, a string, a number, true, false or null. Its default value, its value at start and every value written to it must be valid JSON. An empty default means no default.

  • The value is stored minified, so { "speed": 5 } is stored as {"speed":5} and formatting is not kept. A default can be up to 1000 characters once minified.
  • A JSON value can be imported from a .json file, with the upload button beside the field’s label, instead of being typed. Files over 1 MB are refused.
  • A ${name} reference is replaced by the stored JSON text, unchanged.
  • Set Parameter stores a number or a true/false result as its JSON literal, such as 42 or true.
  • On a Run Schedule step, a value that is a whole ${name} reference is resolved when the step runs, and the result must be valid JSON.
  • A schedule with a JSON parameter opens in an older version of Revolution with that parameter as Text.

A step field that accepts a parameter takes a reference written as ${name}. A reference can fill the whole field, or sit inside text, for example a worklist name ${PlateId}_worklist.csv. References are resolved when the step runs.

Conditions and loop counts take expressions; see Allowed expressions in schedule operations. A While.. step checks its condition before each pass, so its steps may run no times at all.

A schedule started by Run Schedule Thread or Run Schedule starts with a copy of the caller’s parameters, then the values in Parameter Values are applied. Parameter Values has one field for each input parameter of the child. Changes the child makes stay in the child.

  • Run Schedule Thread starts a thread inside the current run. It can pass labware and bring values back (below).
  • Run Schedule starts a separate run, with its own Thread Count. Each value is converted to the type the started schedule declares, so 0012345 stays text for a Text parameter.

To bring a value back, list it under Returned Parameters on a Join Schedule Thread step. Source is the parameter’s name in the child, Destination is the name it is written to in the parent. Choose a Source that the child itself sets: the child starts as a copy of the parent’s parameters, so a name the child never sets returns the parent’s old value without an error. Only the listed values come back; the rest of the child’s parameters stay with the child.

With the Do Not Fork execution mode, Run Schedule Thread waits for the child and has its own Returned Parameters, so no Join is needed.

Reading and writing parameters from Python

Section titled “Reading and writing parameters from Python”

A Python step can read and write the schedule’s parameters through revo.parameters; see Schedule parameters in Python.

Each run has its own parameters, passed explicitly between parent and child schedules. If several runs need the same value, pass it in when each run starts, or read it from a file or database in a Python step.