Hi Ben,
Thank You for your feed back. What I did from now is that, as you said, we know that we will have this attenuation, later on we will test a batch of boards and setup some good limits for the amplitude of the pulses.
Now what I did, is keep testing the main purpose of the code , make a count of the 16 pulses and check for the average peak value of all the pulses. And keep developing the rest of the tests.
Regards,
Jorge