Flow control
While thinking of refactoring LImA with a state machine library, I thought we could add some sort of Flow Control in Bliss that would help to reduce the risk of buffer overrun (a fatal error).
For that, we could add a new "pause" state in LImA. Bliss would pause the acquisition whenever LIma is getting close to buffer overrun (an information that LImA would provide). It sounds like pausing the scan between scan lines should be possible. Do you think that this feature could be integrated to the scan engine? Do you have other equipment that could provide this kind of feedback (i.e motor's temperature) that could require a scan pause, in other words, could this be generalized?
Alejandro suggested that we could also slow down the scan (i.e. slowing down the motors), when that makes sense.
@alejandro.homs @claustre LImA guys, what do you think?