WIP
This commit is contained in:
@@ -139,50 +139,53 @@ gfcam:
|
|||||||
readoutPriority: monitored
|
readoutPriority: monitored
|
||||||
softwareTrigger: true
|
softwareTrigger: true
|
||||||
|
|
||||||
gfdaq:
|
# gfdaq:
|
||||||
description: GigaFrost stdDAQ client
|
# description: GigaFrost stdDAQ client
|
||||||
deviceClass: tomcat_bec.devices.StdDaqClient
|
# deviceClass: tomcat_bec.devices.StdDaqClient
|
||||||
deviceConfig:
|
|
||||||
ws_url: 'ws://129.129.95.111:8080'
|
|
||||||
rest_url: 'http://129.129.95.111:5000'
|
|
||||||
data_source_name: 'gfcam'
|
|
||||||
deviceTags:
|
|
||||||
- std-daq
|
|
||||||
- gfcam
|
|
||||||
enabled: false
|
|
||||||
onFailure: buffer
|
|
||||||
readOnly: false
|
|
||||||
readoutPriority: monitored
|
|
||||||
softwareTrigger: false
|
|
||||||
|
|
||||||
gf_stream0:
|
|
||||||
description: stdDAQ preview (2 every 555)
|
|
||||||
deviceClass: tomcat_bec.devices.StdDaqPreviewDetector
|
|
||||||
deviceConfig:
|
|
||||||
url: 'tcp://129.129.95.111:20000'
|
|
||||||
deviceTags:
|
|
||||||
- std-daq
|
|
||||||
- gfcam
|
|
||||||
enabled: false
|
|
||||||
onFailure: buffer
|
|
||||||
readOnly: false
|
|
||||||
readoutPriority: monitored
|
|
||||||
softwareTrigger: false
|
|
||||||
|
|
||||||
# pcocam:
|
|
||||||
# description: PCO.edge camera client
|
|
||||||
# deviceClass: tomcat_bec.devices.PcoEdge5M
|
|
||||||
# deviceConfig:
|
# deviceConfig:
|
||||||
# prefix: 'X02DA-CCDCAM2:'
|
# ws_url: 'ws://129.129.95.111:8080'
|
||||||
|
# rest_url: 'http://129.129.95.111:5000'
|
||||||
|
# data_source_name: 'gfcam'
|
||||||
# deviceTags:
|
# deviceTags:
|
||||||
# - camera
|
# - std-daq
|
||||||
# - trigger
|
# - gfcam
|
||||||
# - pcocam
|
# enabled: false
|
||||||
# enabled: true
|
|
||||||
# onFailure: buffer
|
# onFailure: buffer
|
||||||
# readOnly: false
|
# readOnly: false
|
||||||
# readoutPriority: monitored
|
# readoutPriority: monitored
|
||||||
# softwareTrigger: true
|
# softwareTrigger: false
|
||||||
|
|
||||||
|
# gf_stream0:
|
||||||
|
# description: stdDAQ preview (2 every 555)
|
||||||
|
# deviceClass: tomcat_bec.devices.StdDaqPreviewDetector
|
||||||
|
# deviceConfig:
|
||||||
|
# url: 'tcp://129.129.95.111:20000'
|
||||||
|
# deviceTags:
|
||||||
|
# - std-daq
|
||||||
|
# - gfcam
|
||||||
|
# enabled: false
|
||||||
|
# onFailure: buffer
|
||||||
|
# readOnly: false
|
||||||
|
# readoutPriority: monitored
|
||||||
|
# softwareTrigger: false
|
||||||
|
|
||||||
|
pcocam:
|
||||||
|
description: PCO.edge camera client
|
||||||
|
deviceClass: tomcat_bec.devices.PcoEdge5M
|
||||||
|
deviceConfig:
|
||||||
|
prefix: 'X02DA-CCDCAM2:'
|
||||||
|
std_daq_live: 'tcp://129.129.95.111:20010'
|
||||||
|
std_daq_ws: 'ws://129.129.95.111:8081'
|
||||||
|
std_daq_rest: 'http://129.129.95.111:5010'
|
||||||
|
deviceTags:
|
||||||
|
- camera
|
||||||
|
- trigger
|
||||||
|
- pcocam
|
||||||
|
enabled: true
|
||||||
|
onFailure: buffer
|
||||||
|
readOnly: false
|
||||||
|
readoutPriority: monitored
|
||||||
|
softwareTrigger: true
|
||||||
|
|
||||||
# pcodaq:
|
# pcodaq:
|
||||||
# description: GigaFrost stdDAQ client
|
# description: GigaFrost stdDAQ client
|
||||||
@@ -199,16 +202,16 @@ gf_stream0:
|
|||||||
# readoutPriority: monitored
|
# readoutPriority: monitored
|
||||||
# softwareTrigger: false
|
# softwareTrigger: false
|
||||||
|
|
||||||
pco_stream0:
|
# pco_stream0:
|
||||||
description: stdDAQ preview (2 every 555)
|
# description: stdDAQ preview (2 every 555)
|
||||||
deviceClass: tomcat_bec.devices.StdDaqPreviewDetector
|
# deviceClass: tomcat_bec.devices.StdDaqPreviewDetector
|
||||||
deviceConfig:
|
# deviceConfig:
|
||||||
url: 'tcp://129.129.95.111:20010'
|
# url: 'tcp://129.129.95.111:20010'
|
||||||
deviceTags:
|
# deviceTags:
|
||||||
- std-daq
|
# - std-daq
|
||||||
- pcocam
|
# - pcocam
|
||||||
enabled: true
|
# enabled: true
|
||||||
onFailure: buffer
|
# onFailure: buffer
|
||||||
readOnly: false
|
# readOnly: false
|
||||||
readoutPriority: monitored
|
# readoutPriority: monitored
|
||||||
softwareTrigger: false
|
# softwareTrigger: false
|
||||||
|
|||||||
@@ -306,10 +306,10 @@ class StdDaqClient:
|
|||||||
msg_timestamp = time.time()
|
msg_timestamp = time.time()
|
||||||
except TimeoutError:
|
except TimeoutError:
|
||||||
continue
|
continue
|
||||||
except WebSocketException as ex:
|
except WebSocketException:
|
||||||
# content = traceback.format_exc()
|
content = traceback.format_exc()
|
||||||
# TODO: ConnectionCloserError is expected to happen on every reconfiguration
|
# TODO: this is expected to happen on every reconfiguration
|
||||||
logger.warning(f"Websocket connection closed unexpectedly: {ex}")
|
logger.warning(f"Websocket connection closed unexpectedly: {content}")
|
||||||
self.wait_for_connection()
|
self.wait_for_connection()
|
||||||
continue
|
continue
|
||||||
msg = json.loads(msg)
|
msg = json.loads(msg)
|
||||||
|
|||||||
Reference in New Issue
Block a user