code for looking at pulser/gain stability