Commit 0f0a1008 authored by Sebastien Petitdemange's avatar Sebastien Petitdemange Committed by Emmanuel Papillon
Browse files

camera: added an generic entry in the kmap config

parent 6e9759a6
......@@ -544,6 +544,31 @@ def _add_detectors(
)
chain.add(lima_master, eiger_roi_counters)
# generic camera
l_camera = kmap_dict.get('camera',[])
for camera_params in l_camera:
device = camera_params['device']
if device.name in enabled_device_name:
detectors_2d.add(device)
extra_latency = camera_params.get('extra_latency',0)
cam_expo_time = expo_time - device.proxy.latency_time - latency_time - extra_latency
lima_master = LimaAcquisitionMaster(
device,
acq_nb_frames=nb_points,
acq_trigger_mode="EXTERNAL_TRIGGER_MULTI",
acq_expo_time=cam_expo_time,
prepare_once=True,
start_once=True,
)
lima_master.add_counter(device.image)
chain.add(top_master, lima_master)
roi_counters = device.counter_groups.roi_counters
if roi_counters:
device_roi_counters = IntegratingCounterAcquisitionSlave(
roi_counters, npoints=nb_points, count_time=expo_time
)
chain.add(lima_master, device_roi_counters)
# vlm 1 and 2
save_flag = True
for cam_name in vlms_cameras_name:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment