Analog value sampler and logger