Files
x12sa-eiger/script/local.py
gac-x12sa a2d3e9c79f Closedown
2022-12-23 16:00:40 +01:00

25 lines
868 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")
#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