31 lines
992 B
Python
31 lines
992 B
Python
###################################################################################################
|
|
# Deployment specific global definitions - executed after startup.py
|
|
###################################################################################################
|
|
import org.zeromq.ZMQ as ZMQ
|
|
import requests
|
|
|
|
# Definitions
|
|
#DETECTOR_ADDRESS = "tcp://localhost:1234"
|
|
DETECTOR_ADDRESS = "tcp://xbl-daq-28:15000"
|
|
DETECTOR_ADDRESS = "tcp://10.30.40.211:15000"
|
|
DETECTOR_ADDRESS = "tcp://129.129.95.40:15000"
|
|
DETECTOR_IMAGE_MODULO = 1
|
|
|
|
# Devices
|
|
|
|
#Array10 scripted
|
|
#run("devices/Array10")
|
|
run("devices/Detector")
|
|
run("devices/StdDaq")
|
|
|
|
#Array10 in plugin
|
|
#Array10 = get_context().getClassByName("Array10")
|
|
|
|
add_device(Array10("eiger", DETECTOR_ADDRESS, ZMQ.SUB), True)
|
|
add_device(eiger.devMatrix, True)
|
|
add_device(RegisterMatrixSource("image", eiger.devMatrix), True)
|
|
eiger.devMatrix.modulo = DETECTOR_IMAGE_MODULO
|
|
|
|
|
|
add_device(Detector("detector"), True)
|
|
add_device(StdDaq("std_daq"), True) |