Sequencer

Role

The Sequencer module orchestrates automatic acquisition for an astrophotography session. It executes a list of sequence lines, each defining the frame type, filter, exposure, gain, offset, and number of images to acquire. FITS files are saved automatically into a folder tree organised by object, frame type, and filter.

Sequencer module screenshot Sequencer module screenshot

Required devices

DeviceRole
CameraImage acquisition
Filter wheelOptional — used if configured

Sequence structure

A sequence is made up of several lines. Each line defines:

ColumnDescription
Frame typeLight (L), Bias (B), Dark (D), or Flat (F)
FilterFilter selected from the filter wheel
ExposureExposure duration in seconds
CountNumber of images to acquire for this line
GainCamera gain
OffsetCamera offset
ProgressCompletion status of the current line

Lines are executed in order, from first to last.

Parameters

Object

ParameterDescription
NameName of the imaged object — used to name the save folder
RARight ascension of the object
DECDeclination of the object

Slave modules

The sequencer can interact with other modules for focusing and guiding.

ParameterDescription
Focus module instanceName of the Focuser module instance to use (e.g. focus)
Guider module instanceName of the Guider module instance to use (e.g. guider)

Automation parameters

ParameterDescription
Auto-focus at sequence startAutomatically triggers a focus run before the first sequence line (using the first line’s filter)
Auto-focus on filter changeAutomatically triggers a focus run on each filter change (Light and Flat frames only)
Suspend guiding during focusPauses guiding before the focus run and resumes it afterwards
Resume guiding settle time (s)Wait time in seconds after guiding resumes, to allow it to stabilise before acquisitions continue

Algorithm

Sequence start

  1. Connect to the camera and reset the frame
  2. Mark all lines as Queued
  3. If Auto-focus at sequence start is enabled and the first frame is Light or Flat: focus with the first line’s filter, then start
  4. Otherwise: start the first line immediately

Line execution

For each line of the sequence:

  1. Select the filter on the filter wheel
  2. If the filter changed and Auto-focus on filter change is enabled: trigger auto-focus (and suspend/resume guiding if configured)
  3. Configure the frame type on the camera (Light, Bias, Dark, Flat)
  4. Create the destination folder
  5. Acquire the defined number of images one by one

File saving

FITS files are saved in the following folder tree:

<object>/
  LIGHT/
    <filter>/   ← Light frames
  FLAT/
    <filter>/   ← Flat frames
  BIAS/         ← Bias frames
  DARK/         ← Dark frames

Each file name includes the object name, frame type, filter, and a timestamp.

Integration with the Focus module

When an auto-focus is requested:

  1. The sequencer sends the autofocus action to the designated Focuser module
  2. It pauses acquisitions and waits for the focus run to complete
  3. If Suspend guiding is enabled, it sends abortguider to the Guider module before focusing, then guide afterwards
  4. If a settle time is configured, it waits that delay before resuming

Progress

IndicatorDescription
SequenceGlobal progress: number of lines processed out of the total
Current exposureProgress of the current exposure (0 to 100 %)
Per-line progressNumber of images acquired out of the total for each line

Actions

ActionDescription
Start sequenceStarts executing the sequence from the first line
AbortImmediately stops the current sequence