Getting Started
Bmad and Tao Tutorial
If you are new to Bmad and Tao, please go to the official Bmad website and follow the Tutorial document using the Example files.
The tutorial is designed to be self-paced, with an introductory video presentation and chapter-specific channels in the Bmad Slack Workspace
Setup
See Enviromnent for how to set up your environment on various systems.
Tao command line
tao -init $LCLS_LATTICE/bmad/models/cu_hxr/tao.init
PyTao
from pytao import Tao
tao = Tao('-init $LCLS_LATTICE/bmad/models/cu_hxr/tao.init')
Live or archived PV data
Use the get-lcls-live command line tool to extract PV data from EPICS or the archiver, and form the appropriate tao commands:
get-lcls-live --beampath cu_hxr --source epics --tao > cmds.tao