Is there a built-in function to count the number of pulses in a signal (i.e. rising edges or falling edges)? I have had some luck post-processing the scope data with an excel VBA script, but this is cumbersome and does not work in real-time. The total number of sample is also limited with this method due to Excel's limit on number of rows.

My signal is essentially a square wave. It is not a strictly periodic signal- it is a quadrature encoder output waveform, so frequency varies with respect to time. Because of this, I can't use the "measure frequency and multiply by time" method.

Any suggestions other than using built-in functions of Picoscope 6 are welcome.