Via a pulse generator, a trigger signal is generated. The trigger signal indicates one or more stimulation pulses are about to be delivered, or is being delivered, to a patient. The trigger signal is sent to a measurement instrument. Via the pulse generator, the one or more stimulation pulses are generated. The one or more stimulation pulses are delivered to the patient. With the measurement instrument and in response to the trigger signal, one or more action potentials are measured. The one or more action potentials are produced by the patient in response to the one or more stimulation pulses.