Beam signals
Created by: meguiraun
sending beamPosChanged and beamInfoChanged through the socketio.
Data includes: beam_position, beam_size, shape
PS: I know ... vacation... no hurries
Merge request reports
Activity
Filter activity
165 166 try: 167 beamInfoDict = beamInfo.get_beam_info() 168 except Exception: 169 beamInfoDict = dict() 170 171 ret.update({'position': beamInfo.get_beam_position(), 172 'shape': beamInfoDict.get("shape"), 173 'size_x': beamInfoDict.get("size_x"), 174 'size_y': beamInfoDict.get("size_y") 175 }) 176 177 msg = {'Signal': signal,'Message': signal, 'Data': ret} 178 #logging.getLogger('HWR').debug('[MOTOR CALLBACK] ' + str(msg)) 179 try: 180 socketio.emit('beam_changed', msg, namespace='/hwr')
Please register or sign in to reply