Hi all,
We are setting up a new experiment with labscript and I was curious if any has any experience or advice on implementing these features:
1. Post-compilation channel algebra. After processing the sequence file into a list of values at different times, I'd like to perform simple algebraic operations on pairs of channels. With magnetic field control, one typically thinks in terms of the Helmholtz and anti-Hemholtz components, but physically one physically controls the current through an upper and lower coil separately. Thus, it would be nice to write a sequence in terms of the sum and difference of the upper and lower analog current setpoints. It seems this operation should be simple to implement after the sequence has been compiled, but I'm not sure where to insert it.
2. Post-compilation user-defined safety checks: In a similar vein, we have some digital values that should never both be high at the same time. We will obviously try to avoid writing programs that would do this, but I was also interested in implementing a post-compilation check to ensure nobody does it by accident. As above, the check itself is simple but I'm not sure where the best place/manner it insert it would be.
If anyone has experience with these things, or if I'm missing obvious preexisting functionality, advice would be greatly appreciated!
Best,
Henry
(Chin lab at UChicago)