170 likes | 189 Views
BETS Software for LBDS. Data Acquisition & Logging LBDS Technical Audit - 28.01.2008 CERN - AB/BT/EC - N.Magnin. BETS - Software requirements. Roles of Beam Energy Tracking System software are: Controlling and Monitoring of BETS hardware. Acquiring of BETS hardware data.
E N D
BETSSoftware for LBDS Data Acquisition & Logging LBDS Technical Audit - 28.01.2008 CERN - AB/BT/EC - N.Magnin
BETS - Software requirements • Roles of Beam Energy Tracking System software are: • Controlling and Monitoring of BETS hardware. • Acquiring of BETS hardware data. • Logging of BETS hardware data to database. • Recording of BETS hardware data history, and its Publishing for XPOC.
BETS - Acquisition Hardware • 2 identical VME crates for 2 beams • BETS VME crate: • 2 redundant PSU • 2 BEM VME cards • 14 BEI VME cards • 1 BEC VME card • 1 CPU VME card • 1 CTRP PMC card • Receives dump trigger.
BETS - Software Overview Development involves: • Drivers andAPI libraries. • FESA server. • BETS Explorer Java control application. • Configuration of AB/CO services.
BETS - Drivers + API libraries • Drivers for LynxOs developed with driverGen AB/CO tool. • Checking whether hardware and firmware versions are compatible with driver. BETS common VME registers set: • C++ API libraries that ease the use of BETS hardware. • Performes hardware access using AB/CO DAL library. • Implements all register-level functions. • Has no impact on BETS, only rearming is possible. • Applications check whether firmwareis compatible with target system. • Upgrading the firmware using VME interface is not possible.
BETS - FESA Server Composition of 4 FESA classes Deployed as shared-server-split. • 1 Shared-Server process • 4 Server libraries • Access to CMW • Low priority • 1 Real-Time process • 1 RT library • Access to Hardware • High priority • 4 Shared-Memory segments • 4 Device data
Beam 1 (FEC: cfv.ua63.mkdbets) 1 BetsCtrlLbds instance MKD.UA63.MKCB.B1 27 BetsBei instances MKD.UA63.MKCBI.[A..O]B1 MKBH.UA63.MKCBI.[A..D]B1 MKBV.UA63.MKCBI.[A..F]B1 MKQ.UA63.MKCBI.B1 MSD.UA63.MKCBI.B1 2 BetsBem instances MKD.UA63.MKCBM.IB1 MKD.UA63.MKCBM.RB1 1 BetsBec instance MKD.UA63.MKCBC.B1 Beam 2 (FEC: cfv.ua67.mkdbets) 1 BetsCtrlLbds instance MKD.UA67.MKCB.B2 27 BetsBei instances MKD.UA67.MKCBI.[A..O]B2 MKBH.UA67.MKCBI.[A..D]B2 MKBV.UA67.MKCBI.[A..F]B2 MKQ.UA67.MKCBI.B2 MSD.UA67.MKCBI.B2 2 BetsBem instances MKD.UA67.MKCBM.IB2 MKD.UA67.MKCBM.RB2 1 BetsBec instance MKD.UA67.MKCBC.B2 BETS - FESA Instances = 60 FESA instances (+2 for control)
BETS - FESA Main Properties BetsCtrlLbds class: • Statusget the system’s status and operating mode. • Settingset the system’s operating mode. • ReArmrearm the system in case of tracking error. • Resetreset the system in case of hardware error. BetsBem, BetsBei, BetsBec classes: • Statusget the device’s status and operating mode. • CardInfoget info about the VME card version. • Tablesget the lookup table data (BEM and BEI only). • Loggingget the data to log. • PmBufferget the recorded XPOC buffer.
BETS - FESA Main Modes • RECORDING: • Recording of data at ~50 Hz. • Logging of data at ~1 Hz. • Beam injection permitted. • TRIGGERED_OK: • No problem detected. • Beam injection not permitted. • TRIGGERED_ERROR: • Tracking problem detected. • Beam injection not permitted.
BETS - Logging Data Data logged at ~1 Hz to Measurement & Logging database: • BEM • Time stamp [ns] • BEM & BEAs statuses • BEA RAW data (16 bits) • BEM current [KA] • BEM energy [GeV] • BEI • Time stamp [ns] • BEI & BEA statuses • BEA RAW data (16 bits) • BEI voltage/current [KA/KV] • BEI energy [GeV] • BEM ref. energy [GeV] • BEC • Time stamp [ns] • BEC statuses
BETS – XPOC Data Data continuously recordedat ~50 Hz in a circular buffer of a size of 1024 (~20s), saved to SDDS files after each dump : • BEM • Dump time stamp [ns] • Card info Arrays: • Time stamps [ns] • BEM & BEAs statuses • BEA RAW data (16 bits) • BEM current [KA] • BEM energy [GeV] • BEI • Dump time stamp [ns] • Card info Arrays: • Time stamps [ns] • BEI & BEA statuses • BEA RAW data (16 bits) • BEI currents/voltages [KA/KV] • BEI energy [GeV] • BEM ref. energy [GeV] • BEC • Dump time stamp [ns] • Card info Arrays: • Time stamps [ns] • BEC statuses
BETS – Statuses & Alarms Tracking error: • Status = OK • Alarm = WARNING “BEx card has generated a dump.” Must use the ReArm property. Hardware error: • Status = ERROR • Alarm = ERROR “BEx card hardware access error.” Must use the Reset property.
BETS Explorer application • This application shows: • The tree of all BETS FECs and devices. • Status and Mode of all IPOC devices. • Controls pop-up menu for the selected device or FEC. • Last logged values for the selected device.
BETS – Logging data example 24 hours logging of BEI for kicker MKD-A beam 1. Energy Ch1 [GeV]
BETS – XPOC data example XPOC buffer of BEI for kicker MKD-A beam 1. Energy Ch1 [GeV]