Not clear what are you up to. Please post your project (File-> Create workspace bundle-> minimal) and/or sensor type/specs to have better response.
If detection of the peak value of the analog pulse is what you need, than look into Cypress Application Note AN60321:
It will guide you how to capture peak amplitude of pulses (code provided). All you need then is to digitize it with ADC.