Hi Alexander Glasner,
 
No problem,Thanks for your patient for me. Actually, the problem now seems more simple. What i should do is only make the peak and lowest point form anglog signal correpond to every peak value from the counter, as it shows in the picture. I will think about how to cancel the shift between these two sginals.  
 
best regards
Laiiiiiiiiii