oh hi sorry, my code should say SEISMIC.DAT casn you change it in your version?
here is a specimen set of inputs and the corresponding answer for you to try.
no of measurements to use for short time power = 2 samples
no of measurements to use for long time power = 5 samples
the threshold value = 1.5
the output should be similar to this
no event at time 0.04
event at time 0.05
no event at time 0.06
no event at time 0.07 and so on, thats just a sample. please test this if you don't mind. thanks for your help, your great!