Better loss-of-lock-detection + relocking
For example to prevent autolock from starting when adjusting laser current manually.
Currently the check boxes are not visible when the lock is running. Threshold should also be adjustable.
- [x] Ability to change "Watch Lock" while lock is running
- [ ] Relock if a signal is not within a certain range
- [ ] Control signal
- [ ] Error signal
- [ ] Use DC spectroscopy signal
- [ ] Second input
- [ ] Option to enable low pass filter
Very simple way to see if lock is lost is to check whether the control signal rails at its maximum (maybe making this user configurable). Only catches some cases but is a very simple indicator.
Another potential issue to maybe keep in mind: There is also the case where there is no DC signal, i.e. when directly feeding in an error signal (offset locks) without demodulation. Also, the offset frequency might be changed in some setups (frequency jumps), i.e. a rapid change in the control signal is expected and is also not a good indicator for loss-of-lock. Specifically for this case a railing control signal (or non-zero error signal over an extended time) might be a good indicator.
Some other suggestions/ideas:
- In the case that the output rails it might be a good to change the status from "locked" to something else. Useful for offset locks with an "infinite" capture range.
- Initiating a relock from a TTL signal might also be useful
- Add user configurable "cooldown" time before attempting relock, maybe maximum number off attempts