Versions Compared

Key

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

...

  1. empty the device update queue of (approximately*) all submitted updates
  2. run all the set ele commands, then re-calculate lattice parameters
  3. update the live.p0c, live.e_tot, live.twiss, live.quads, live.bends, live.rf data structures
  4. empty the LEM update queue and set the live.LEM amplitude, chirp and fudge values

PVA model server(s)

The principal use case for the BmadLiveModel is running a real-time live model server. This server runs its own BmadLiveModel, and then publishes live model data to scalar and table PVs accessible on the controls system via EPICS PVAccess. The code for the live model itself is relatively simple, and is derived from the lcls_live_model server.

For performance, there are actually two production services. Both recalculate and update PVs once per second.

  • Model Server 1: This server is responsible for updating live twiss parameters and LEM data.
  • Model Server 2: This service is responsible for publishing R matrices

Access to the live Bmad model server (for twiss/rmat data), is mediated by the python meme service

...