ipoc software for lbds data acquisition analysis lbds technical audit - 28.01.2008 cern - ab/bt/ec...
DESCRIPTION
IPOC - System Components 3TRANSCRIPT
IPOCSoftware for LBDS
Data Acquisition & Analysis
LBDS Technical Audit - 28.01.2008
CERN - AB/BT/EC - N.Magnin
IPOC - Software requirements
Roles of Internal Post-Operational Check software are:
Controlling and Monitoring of FAAS hardware.Acquiring of kickers current waveforms.Analyzing of kickers current waveforms.Logging of analysis results to database.Publishing of acquired waveforms for XPOC.Controlling of LHC beam permit.
2
IPOC - System Components
3
Logging ServiceServer
Logging DatabaseServer
IPOC ExplorerWorkstation
MeasurementDatabase
LoggingDatabase
Alarms ServiceServer
XPOC ServiceServer
SDDSFiles
Control Middleware
IPOC ExplorerWorkstation
FAAS FESAFEC Server
PSU 1
PSU 2
CP
UN
I512
2N
I512
2N
I512
2N
I512
2N
I512
2
FAAS FESAFEC Server
PSU 1
PSU 2
CP
UN
I512
2N
I512
2N
I512
2N
I512
2N
I512
2
IPOC - FAAS Hardware4 identical cPCI crates for 2 beams: 2 crates using Pearson current sensors. 2 crates using Rogowski current sensors.
Fast Analog Acquisition System:
1 PSU 8 NI PXI-5122 cPCI cards:
2 channels 14 bits 100 MS/s 30’000 samples acquired per channel
1 CPU cPCI card 1 CTRP PMC card
Receives beam energy. Receives dump trigger. Issues the beam permit to BIS.
PSU
NI P
XI-
5122
EM
PT
Y
NI P
XI-
5122
NI P
XI-
5122
NI P
XI-
5122
NI P
XI-
5122
NI P
XI-
5122
NI P
XI-
5122
NI P
XI-
5122
CP
U -
CT
RP
4
IPOC - Software OverviewD
river
FES
AC
MW
Har
dwar
e
NI PXI-5122cPCI card
NiScopeC API
LhcMkdIpocNiFESA Class
Ni DriverLinux driver
Clie
nt LoggingService
XPOCService
AlarmsService
IPOC ExplorerControl Application
Remote Device Access
CTRPC API
CTRP DriverLinux driver
PC
I
CTRPPCM card
PCI bus
Development involves:
FESA server.
IPOC Explorer java control application.
Configuration of AB/CO services
5
IPOC - FESA Server
FAAS FEC
LhcMkdIpocNi_M«library»
LhcMkdIpocNiServer
«file»LhcMkdIpocNiData
«library»LhcMkdIpocNiRT
Only 1 FESA classDeployed as single-process:
1 Single process 1 Server library 1 RT library 1 Data memory segment
(No critical real-time parts).
6
IPOC - FESA InstancesRogowsky current sensor:
Beam 1 (FEC: cfi.ua63.mkdpm1)
15 LhcMkdIpocNi instances
MKD.UA63.IPOC1.AB1…MKD.UA63.IPOC1.OB1
Beam 2 (FEC: cfi.ua67.mkdpm1)
15 LhcMkdIpocNi instances
MKD.UA63.IPOC1.AB1…MKD.UA63.IPOC1.OB1
Pearson current sensor:
Beam 1 (FEC: cfi.ua63.mkdpm2)
15 LhcMkdIpocNi instances
MKD.UA63.IPOC2.AB1…MKD.UA63.IPOC2.OB1
Beam 2 (FEC: cfi.ua67.mkdpm2)
15 LhcMkdIpocNi instances
MKD.UA63.IPOC2.AB1…MKD.UA63.IPOC2.OB1
= 60 FESA instances7
IPOC - FESA Main PropertiesLhcMkdIpocNi class:
Status get the system’s status and operating mode. Setting set the system’s operating mode. ReArm rearms the system in case of analysis error. Reset resets the system in case of hardware error.
Waveform get the acquired current waveform. IpocResults get the results of analysis & check.
8
IPOC - FESA Main Modes
INITIALIZING
ACQUIRING
TRIGGERED
ANALYZING
mode=ACQUIRING
ANALYZED ERRORANALYZED OK
ReArm()
ACQUIRING: Scope cards are acquiring. Beam injection permitted.
TRIGGERED: Read waveform from scope cards. Beam injection not permitted.
ANALYSING: Waveform available for XPOC. Performing waveform analysis.
ANALYSED_OK: No problem detected Can set mode = ACQUIRING
ANALYSED_ERROR: Tracking problem detected Must use ReArm property.
9
IPOC – Waveform Processing
RemoveOffset
RemoveNoise
CableCorrection
RAWWaveform
CableGain
FilteredWaveform
Removing of the offset to the waveform: Offset is computed from pre-trigger data.
Removing high frequency noise: 399 coefficients low-pass FIR filter (fc 2.5 MHz).
Correction of cable frequency response: 4 Second-Order-Section IIR filters.
Compensation of cable losses: Adjust the overall gain.
10
IPOC – Waveform Analysis P1: 100% P2: Start P3: Threshold P4: Overshoot 1 P5: Overshoot 2 P6: End P7: One-turn
( units: [us] / [KA] )
P4
P1P2 P6
P3
P5P7
100%
Threshold
11
IPOC - Check
Current related values:
100% Current [KA] Overshoot 1 [%] Overshoot 2 [%] One-turn [%]
Time related values:
Delay [us] Rise time [us] Kick length [us] Synchro time [us]
Computed values, checked against predefined limits:
12
IPOC - Logging DataData logged after every dump to Measurement & Logging database:
Acquisition time stamp [ns] Energy [GeV]
Analysis results P1 - P7 times [us] P1 - P7 currents [KA] isValid [bool]
Computed data 100% Current [KA] Overshoot 1 [%] Overshoot 2 [%] One-turn [%] Delay [us] Rise time [us] Kick length [us] Synchro time [us]
Check result ipocCheck [bool]
13
IPOC – XPOC Data
Recorded waveform, saved to SDDS files after every dump:
Acquisition time stamp [ns] Energy [GeV]
Waveform: Start time [us] Sample period [us] Waveform data [KA] isValid [bool]
14
IPOC - Statuses & Alarms
Analysis check error:
Status = OK Alarm = WARNING
“IPOC check failed.”
Must use the ReArm property.
Hardware error:
Status = ERROR Alarm = ERROR
“Scope error occurred.”
Must use the Reset property.
15
IPOC Explorer applicationThis application shows:
The list of all IPOC FECs.
The list of all IPOC devices on the selected FEC.
Status and Mode of all IPOC devices.
Controls for the selected FEC.
TimeStamp , Energy, RAW waveform and Analysis results of last dump for the selected device.
16
IPOC - Logging data example
100% current [KA]
Rise time [us]
3 days logging of FAAS for kicker MKD-A beam 1.
17
IPOC - XPOC data example
Current [KA]
XPOC buffer of FAAS for kicker MKD-A beam 1.
18