36 lines
1.2 KiB
Python
36 lines
1.2 KiB
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_ADDRESS = "tcp://192.168.10.224:33333"
|
|
DETECTOR_ADDRESS = "tcp://xbl-daq-28:33333"
|
|
|
|
DETECTOR_IMAGE_MODULO = 1
|
|
|
|
STD_DAQ_ADDRESS = "http://127.0.0.1:5000"
|
|
|
|
# Devices
|
|
|
|
#Array10 scripted
|
|
#run("devices/Array10")
|
|
run("devices/Detector")
|
|
run("devices/StdDaq")
|
|
|
|
#Array10 in plugin
|
|
#Array10 = get_context().getClassByName("Array10")
|
|
|
|
add_device(Array10("stream", DETECTOR_ADDRESS , ZMQ.SUB), True)
|
|
add_device(stream.devMatrix, True)
|
|
add_device(RegisterMatrixSource("image", stream.devMatrix), True)
|
|
stream.devMatrix.modulo = DETECTOR_IMAGE_MODULO
|
|
|
|
|
|
add_device(Detector("detector", STD_DAQ_ADDRESS, True), True)
|
|
add_device(StdDaq("std_daq", STD_DAQ_ADDRESS, True), True) |