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.
The USB DrDAQ has a function to count pulses if you are using the Software Development Kit to create your own application.
If you have access to MATLAB, you export your data to MATLAB file format and use the information in the following forum post in order to find the number of rising and falling edges:
Is there an SDK that is compatible with the 4424 scope? Surely there are other customers with a similar need to count pulses. Is this capability something that the developers are working on?
Thank you for the prompt and helpful response,
John
I am certainly interested in a pulse counting feature. I use a 3425 and measure line-driver (RS-422) quadrature encoder signals to and from various pieces of equipment in addition to analog signals representing velocity and torque (Industrial Servo Drives).
Presently the quadrature signals are only measured for quality verification, but I would welcome the ability to register pulse counts in addition to the velocity and torque on the same graph (Probe A/B quadrature signal, Probe C Velocity, Probe D Torque). Preferably the pulse count function would accept Single or Dual channel inputs configurable for use as dual independent counters (either increment or decrement) or as a single quadrature counter (A Lead B: Increment, B Lead A: decrement).
I have added your comments to the feature request.
Would it be possible for you to e-mail an example data file showing your waveform capture to support@picotech.com please? This is to help get an idea of the quantity of pulses in a capture and see if measurements can help in the meantime.
We would also like to have this feature for single photon counting. Detectors gives a 6ns pulse for every photon with a 20ns deadtime, we would then like to count the number of pulses in a given time frame that exceed specified amplitude. Digital inputs on the 3000 series are perfect for this so a counting feature in software would be great.
Hello,
Can I add my interest in a pulse count feature.
My application is for pulse counting on energy meters (gas and electricity), mainly checking that the gear is working OK.
A typical pulse is a square wave, amplitude 3.3-volts, positive-going from 0-volts, duration 1-second, about 20-seconds between pulses (variable), so easily seen over the very low noise.
As these are variably spaced i.e. not a fixed frequency, the suggested workaround of taking the frequency (24.12mHz between rulers in my case) and multiplying by the delta time in seconds (1hr:5mins:44secs, or 3944 seconds) yields 95 (approx) - the physical count of the pulses was 70 - so does not work here.
As there are 300 to 400 pulses in a session, physical counting is time consuming and generally inaccurate.
I have added your comments to the feature request.
One possible workaround might be to use a Repeat trigger to capture each pulse with the buffer counter giving you the number of pulses. In the Tools -> Preferences dialogue, set the number of waveforms to the maximum (10,000).
You can then use the Alarms feature to save the data to file when the buffer becomes full and then restart the capture: