Synchronous DAQ Using Event System

Download Report

Transcript Synchronous DAQ Using Event System

Wir schaffen Wissen – heute für morgen
Paul Scherrer Institut
Babak Kalantari (GFA Controls)
Synchronous DAQ using Event System
MRF workshop, Prague, Eli Beamlines
05.05.2014
Babak Kalantari, PSI
Beam Synchronous DAQ (BSDAQ)
IOC: I/O controller node, PV: e.g. EPICS channel
IOC_0
IOC_1
IOC_2
IOC_m
IOC_n
PV_x
PV_y
PV_z
PV_1
PV_2
PV_3
PV_4
PV_5
PV_6
PV_7
PV_8
PV_9
PV_10
PV_11
PV_12
 User interest: PV set across
several IOCs distinguished
from one pulse to the next
PULSE_1
PV_2
PV_2
PV_2
PV_6
PV_6
PV_6
PV_7
PULSE_2
start
PV_7
start
…
Babak Kalantari (PSI); MRF workshop,
Prague, Eli Beamlines, 05.05.2014
PV_2
PV_6
PV_7
PULSE_3
PV_7
start
…
…
Beam Synchronous DAQ (BSDAQ)
• on-demand BSDAQ (in production)
• runs only for specified number of pulses (seconds
or minutes)
• continuous BSDAQ (under design)
• runs always at the background over a specified
history window up to current time (e.g., last 2 days)
Babak Kalantari (PSI); MRF workshop,
Prague, Eli Beamlines, 05.05.2014
on-demand BSDAQ
Control System Network
post-acquisition data transfer
non real-time (EPICS CA)
Node_n
Node_1
real-time
real-time
Local data collection at real-time
EVR
EVR
real-time (events + BSDAQ controls)
EVG
Timing&Event System Network
Babak Kalantari (PSI); MRF workshop,
Prague, Eli Beamlines, 05.05.2014
real-time
MasterTimingNode
on-demand BSDAQ usage
• Local buffering for scalar
or small data array (few KB)
• pool of unassigned buffers
• parallel users
Computing Node
data
pulse_id
device
trigger
EVR
• on-system data buffering & tagging (large data size)
Computing Node
pulse_id
Measurement system
intern. data buffer
trigger
EVR
Babak Kalantari (PSI); MRF workshop,
Prague, Eli Beamlines, 05.05.2014
on-demand BSDAQ usage
High level DAQ framework
BSDAQ
configuration
transfer
acquired data
data analysis
storage
direct
EPICS CA
protocol layer (custom / EPICS v4 / CA)
BSDAQ
(IOC level)
Babak Kalantari (PSI); MRF workshop,
Prague, Eli Beamlines, 05.05.2014
Changing policy
• Remote buffering, Continuous BSDAQ
IOC node_n
IOC node_2
IOC node_1
PV_1
device1
PV_2
device2
PV_3
pulse_id_x
device3
EVR
Atomic snapshot
100Hz trigger
Remote buffer cluster
(for the whole facility)
Babak Kalantari (PSI); MRF workshop,
Prague, Eli Beamlines, 05.05.2014
PV_1
PV_2
PV_3
pulse_id
Continuous BSDAQ
Babak Kalantari (PSI); MRF workshop,
Prague, Eli Beamlines, 05.05.2014
Work management
R&D +
Tests +
prototype
generic
BSDAQ
package
common
deployment
procedure
System integration engineer
(Deployment)
System integration engineer
(Deployment)
(PSI internal resources)
H/W design & production
MRF (external company)
Babak Kalantari (PSI); MRF workshop,
Prague, Eli Beamlines, 05.05.2014
Thanks!
Babak Kalantari (PSI); MRF workshop,
Prague, Eli Beamlines, 05.05.2014
BS-DAQ Mechanism
EVG
command
IOC
CA (controls net)
Master Timing: central point of BS-DAQ controls
Client, after DAQ:
• retrieve data
• analyze
Events + sync data
EVR
H/W_1
IOC_A
buffer
select
H/W_2
triggers
IOC_B
EVR
buffer
select
H/W_3
H/W_4
subsystem A
subsystem B
CA (controls net)