You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Source code can be found here and can be run locally using Local PyDM/Simulacrum Setup

GUI Procedure

Piezo Pre-RF Check

  1. Turn cavity off
  2. Enable piezo (set ACCL:LXB:XXXX:PZT:ENABLE to 1)
  3. Set piezo to manual (set ACCL:LXB:XXXX:PZT:MODECTRL to 0)
  4. Set piezo DC voltage (ACCL:LXB:XXXX:PZT:DAC_SP) to 0
  5. Star the piezo pre rf test (set ACCL:LXB:XXXX:PZT:TESTSTRT to 1)
  6. Wait for the piezo pre rf test to finish (wait while ACCL:LXB:XXXX:PZT:TESTSTS is 2)
  7. Check test result
    1. If the test was not successful (ACCL:LXB:XXXX:PZT:TESTSTS is not 1)
      1. Throw an error
    2. If the test was successful
      1. Check if chain A passed (ACCL:LXB:XXXX:PZT:CHA_TESTSTAT is 0)
      2. Check if chain B passed (ACCL:LXB:XXXX:PZT:CHB_TESTSTAT is 0)
      3. If either chain didn't pass
        1. Throw an error
      4. If both chains passed
        1. Record piezo capacitance A (ACCL:LXB:XXXX:PZT:CHA_C)
        2. Record piezo capacitance B (ACCL:LXB:XXXX:PZT:CHB_C)

SSA Characterization

  1. Set the SSA drive max (ACCL:LXB:XXXX:SSA:DRV_MAX_REQ) to:
    1. 1 If harmonic linearizer
    2. 0.8 if not harmonic linearizer
  2. Reset SSA interlocks (set ACCL:LXB:XXXX:SSA:FaultReset to 1)
  3. Wait for the faults to reset (wait while ACCL:LXB:XXXX:SSA:StatusMsg is 4)
  4. if ACCL:LXB:XXXX:SSA:StatusMsg is either 1 or 7:
    1. Raise an error
  5. if ACCL:LXB:XXXX:SSA:StatusMsg is neither 1 nor 7:
    1. Turn on SSA (set ACCL:LXB:XXXX:SSA:PowerOn to 1)
    2. Wait for SSA to turn on (wait until ACCL:LXB:XXXX:SSA:StatusMsg is 3)
    3. Reset cavity interlocks (set ACCL:LXB:XXXX:INTLK_RESET_ALL to 1) and wait 3s
    4. If the reset failed (ACCL:LXB:XXXX:RFPERMIT is 0)
      1. Retry up to 2 more times
      2. If the reset succeed within 3 total attemps
        1. Continue to step 5.e.i
      3. If the reset fails after 3 total attempts
        1. Throw an error
    5. If the reset succeeded (ACCL:LXB:XXXX:RFPERMIT is not 0)
      1. Start the calibration (set ACCL:LXB:XXXX:SSA:CALSTRT to 1)
      2. Wait for the calibration to stop running (wait while ACCL:LXB:XXXX:SSA:CALSTS is 2)
      3. If the calibration crashed (if ACCL:LXB:XXXX:SSA:CALSTS is 0)
        1. Throw an error
      4. If the calibration succeeded (if ACCL:LXB:XXXX:SSA:CALSTS is not 0)
        1. If result is not good (if ACCL:LXB:XXXX:SSA:CALSTAT is not 0)
          1. Throw an error
        2. If the result is good (if ACCL:LXB:XXXX:SSA:CALSTAT is 0)
          1. If the max forward power (ACCL:LXB:XXXX:SSA:CALPWR) is below 3000
            1. Throw an error
          2. If the max forward power (ACCL:LXB:XXXX:SSA:CALPWR) is above 3000
            1. If the measured slope (ACCL:LXB:XXXX:SSA:SLOPE_NEW) is not between 0.5 and 1.6
              1. Throw an error
            2. If the measured slope (ACCL:LXB:XXXX:SSA:SLOPE_NEW) is between 0.5 and 1.6
              1. Push the SSA slope (set ACCL:LXB:XXXX:PUSH_SSA_SLOPE.PROC to 1)
              2. Save the SSA slope (set ACCL:LXB:XXXX:SAVE_SSA_SLOPE.PROC to 1)

Cavity Tuning

  1. Enable the piezo (set ACCL:LXB:XXXX:PZT:ENABLE to 1)
    1. While it doesn't enable (while ACCL:LXB:XXXX:PZT:ENABLESTAT is not 1), toggle ENABLE to disabled (0) and enabled (1) again
  2. Set the piezo to manual (set ACCL:LXB:XXXX:PZT:MODECTRL to 0)
    1. While it doesn't enable (while ACCL:LXB:XXXX:PZT:MODESTAT is not 0), toggle MODECTRL to feedback (1) and manual (0) again
  3. Set the DC voltage offset (ACCL:LXB:XXXX:PZT:DAC_SP) to 0
  4. Set the bias voltage (ACCL:LXB:XXXX:PZT:BIAS) to 25
  5. Set the cavity drive level (ACCL:LXB:XXXX:SEL_ASET) to 15
  6. Set the RF to chirp (set ACCL:LXB:XXXX:RFMODECTRL to 5)
  7. Turn on SSA (set ACCL:LXB:XXXX:SSA:PowerOn to 1)
  8. Wait for SSA to turn on (wait until ACCL:LXB:XXXX:SSA:StatusMsg is 3)
  9. Reset cavity interlocks (set ACCL:LXB:XXXX:INTLK_RESET_ALL to 1) and wait 3s
    1. If the reset failed (ACCL:LXB:XXXX:RFPERMIT is 0)
      1. Retry up to 2 more times
      2. If the reset succeed within 3 total attemps
        1. Continue to step 9.b.i
      3. If the reset fails after 3 total attempts
        1. Throw an error
    2. If the reset succeeded (ACCL:LXB:XXXX:RFPERMIT is not 0)
      1. If the cavity isn't online (if ACCL:LXB:XXXX:HWMODE is not 0)
        1. Throw an error
      2. If the cavity is online (if ACCL:LXB:XXXX:HWMODE is 0)
        1. Turn on the RF (set ACCL:LXB:XXXX:RFCTRL to 1)
        2. Wait for the RF to turn on (wait while ACCL:LXB:XXXX:RFSTATE is not 1)
  • No labels