Slow controls for medium scale physics experiments written in Erlang/OTP