'positioner-response-topic': "/topic/org.eclipse.scanning.response.positioner.topic", } # Used to maintain reference to the same request. This is used by the server example to determine # the correct ScannablePositioner to use for the move request. This is why a SET command must be # sent before a GET command. unique_id = str(uuid.uuid4()) handlers = {'position-response-topic':MonitorHandler(), 'positioner-response-topic':MonitorHandler(), 'positioner-request-topic':MonitorHandler(), } conn = create_connection() set_handlers(conn, handlers) subscribe_all(conn, conn_dict, handlers) set_message_1 = {'@type':'PositionerRequest', 'positionType':'SET', 'position': { 'values':{'T':290}, 'indices':{'T':0}, 'stepIndex': -1, 'dimensionNames':[['T']], }, 'uniqueId': unique_id }
'position-response-topic': "/topic/org.eclipse.scanning.request.position.topic", 'xcen-submission-queue': "/queue/dataacq.xcen.SUBMISSION_QUEUE", 'xcen-status-queue': "/queue/dataacq.xcen.STATUS_QUEUE", 'xcen-status-topic': "/topic/dataacq.xcen.STATUS_TOPIC", 'scanning-submission-queue': "/queue/org.eclipse.scanning.submission.queue", 'scanning-status-queue': "/queue/org.eclipse.scanning.status.set", 'scanning-status-topic': "/topic/org.eclipse.scanning.status.topic", } handlers = { 'device-response-topic': MonitorHandler(), 'device-request-topic': MonitorHandler(), 'positioner-request-topic': MonitorHandler(), 'positioner-response-topic': MonitorHandler(), 'position-response-topic': MonitorHandler(), # Remember, subscribing to the queues will consume the messages. # 'xcen-submission-queue':MonitorHandler(), # 'xcen-status-queue':MonitorHandler(), 'xcen-status-topic': MonitorHandler(), } conn = create_connection() set_handlers(conn, handlers) subscribe_all(conn, conn_dict, handlers) raw_input()