An automatic electronic apparatus for generating and recording a ramp stimulus for analgesia testing