Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

TitlePVDescription
Sweep start:SEQ:n:START_FREQ_SThis sets the initial frequency for the swept NCO.  All frequencies are in multiples of the machine revolution frequency.  The super sequencer offset is added to the sweep frequency.
Sweep step:SEQ:n:STEP_FREQ_SThis sets the frequency advance when the sequencer steps from one dwell period to the next.
Sweep end:SEQ:n:END_FREQ_SThis is automatically set to start+step*capture, and is automatically updated any time any of those values changes.  If this PV is written to then step will be computed (as (end-start)/capture) and this PV will update.
Capture:SEQ:n:COUNT_SThis configures the number of dwells in this sequencer state.
Holdoff (state):SEQ:n:STATE_HOLDOFF_SThis number of turns is added to the start of this sequencer state after the initial sweep frequency has been configured.  The detector is disabled for the duration of this holdoff period.
Holdoff (dwell):SEQ:n:HOLDOFF_SThis number of turns is added to the start of the dwell time after the swept frequency has been stepped.  The detector is disabled for the duration of the holdoff period, which can be used to give time for the swept system to settle to the new frequency.
Dwell time:SEQ:n:DWELL_SThis configures the number of turns for which the sweep frequency is driven and the detector is operated for a single sample.
NCO Magnitude:SEQ:n:GAIN_DB_S, :SEQ:n:ENABLE_SThis determines the gain of the swept NCO excitation in 6dB steps, with 0dB corresponding to full scale DAC excitation.  :ENABLE_S must be set to "On" for a signal to be generated.
Bunch Bank:SEQ:n:BANK_SThis determines which of the four available bunch configuration banks is selected during the operation of this state.
Blanking:SEQ:n:BLANK_SIf this is set to "Blanking" then the detector will be temporarily disabled during the blanking window and the dwell time will be extended.
Data window:SEQ:n:ENWIN_SIf this is set to "Windowed" then the detector data will be multiplied by the data window configured in Detector Window Setup.
Tune PLL:SEQ:n:TUNE_PLL_SIf this is set to "Follow" then the Tune PLL offset will be continuously added to the sweep NCO frequency.  This is designed to allow a swept tune to track dynamic changes in the tune.
Data capture:SEQ:n:CAPTURE_SThis determines whether the detector is active during this sequencer state.

The behaviour of the four fields :START_FREQ_S (

Mathinline
bodys
), :STEP_FREQ_S (
Mathinline
body\delta
), :END_FREQ_S (
Mathinline
bodye
), :COUNT_S (
Mathinline
bodyN
) is a little unexpected at first and merits a little some explanation.  First of all, the three frequency fields
Mathinline
bodys
,
Mathinline
body\delta
,
Mathinline
bodye
are all limited by the 3248-bit resolution of the NCO and are therefore updated with the true underlying value immediately after being written.  Secondly, the end frequency is always updated when any of these fields are modified so that the following equation always holds:

...

Thirdly, when the :END_FREQ_S is written to, the step

Mathinline
body\delta
is updated:
Mathinline
body\delta \leftarrow (e-s)/N
.  Finally, the range of valid values for each field is different:
Mathinline
bodys
is unsigned,
Mathinline
body\delta
is signed,
Mathinline
bodye
is signed and unbounded.  This is summarised in the table below (here
Mathinline
bodyN_{\text{turn}}
is the number of bunches per machine revolution).


PVRange
Updates
Update

Mathinline
bodys

:START_FREQ_S
Mathinlinebody
s

Mathinline
body0 \,.. N_{\text{turn}}

Mathinline
bodye \leftarrow s + N \times \delta

Mathinline
body\delta

:STEP_FREQ_S
Mathinlinebody
\delta

Mathinline
body-\frac12 N_{\text{turn}} .. \frac12 N_{\text{turn}}

Mathinline
bodye \leftarrow s + N \times \delta

Mathinline
bodye

:END_FREQ_S

Mathinline
bodye

Unbounded

Mathinline
body\delta \leftarrow (e - s) / N

:COUNT_S

Mathinline
bodyN

:COUNT_S

Mathinline
body1\,..\,65536

Mathinline
bodye \leftarrow s + N \times \delta

Global Setup

The following PVs control the overall state of the sequencer and show basic information.

...