SequencerTiming

Contents

SequencerTiming#

class pulserver.ir.SequencerTiming[source]#

Bases: object

How a playout’s sequencer plays the segment instances of a scan.

A property of the playout, not of the sequence: the C library’s pulseg_sequencer_timing. The sequencer takes gap_us after every segment instance, in no block, and plays an instance that is not a pure delay tail_us past its blocks. A pure delay that waits for no trigger gives that time back, playing a shorter wait but never one under min_wait_us, so the scan keeps the time its file states wherever such a delay follows; played_time() gives what a scan plays.

With quiet_margin_us at 0 or more the sequencer also ends an instance that is not a pure delay inside its quiet tail, the time from its last event to its end: earlier by that tail less quiet_margin_us, on the raster, by at most gap_us plus tail_us. A segment that ends on at least that much silence then plays exactly its blocks. An RF pulse counts as an event until rf_tail_us after it ends and a readout until adc_tail_us after its last sample, the time the playout keeps busy after either.

Attributes:
  • gap_us (int) – Time between two segment instances, in µs.

  • tail_us (int) – Time an instance that is not a pure delay plays past its blocks, in µs.

  • min_wait_us (int) – Shortest wait a pure delay plays, in µs.

  • raster_us (int) – Raster a wait is played on, in µs.

  • rf_tail_us, adc_tail_us – Time the playout keeps busy after an RF pulse and after a readout, in µs.

  • quiet_margin_us (int) – Quiet tail an instance keeps when it ends early, in µs; negative, the default, when instances are not ended early.

Raises:

ValueError – If a time is negative or the raster is not positive.

Methods

as_values

Return the timing as the extension takes it, in the order C declares it.

Attributes

adc_tail_us

ends_early

Whether the sequencer ends an instance early inside its quiet tail.

min_wait_us

quiet_margin_us

raster_us

rf_tail_us

tail_us

gap_us