Beamline setup
Created by: marcus-oscarsson
Good evening,
(PLEASE NOTE: Make sure to merge the fixes #203 and logging_fixes #204 before merging this !)
Sorry for this somewhat late PR, it took some time to get the things in order on the beamline. In anyways we have done the wiring to connect resolution, transmission, energy and fast shutter to actual hardware. Its been tested here at ID 30a3 during the afternoon. We also took the opportunity to improve some of the internal API's (using the states defined by the abstract motor object). And also, of course squishing some bugs :).
The value changes/updates are now sent over the hwr namespace removing some unnecessary code. We experienced some problems with the code in socketIO.js in the handler:
socketHWR.on('Motors', (record) => {
We didn't receive any updates if that code was running so we commented it and replaced it with a console.log. We noticed that you already had commented out big parts of that code, did you experience something similar ?
The beamstop and safety shutter still remain to be done, I will try to finish them this evening or tomorrow morning. I wanted share the current work done to ease the integration work for you guys. The safety-shutter and beamstop are very similar to the fast-shutter so it should be fairly fast to finish up.
Regards, Marcus and Matias