Pulse Count

Forum for discussing PicoScope version 6 (non-automotive version)
Post Reply
jpoleto
Newbie
Posts: 0
Joined: Wed Mar 12, 2014 6:29 pm

Pulse Count

Post by jpoleto »

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.

Hitesh

Re: Pulse Count

Post by Hitesh »

Hi jpoleto,

Which device are you using?

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:

http://www.picotech.com/support/topic13207.html

I hope this helps.

Best wishes,

jpoleto
Newbie
Posts: 0
Joined: Wed Mar 12, 2014 6:29 pm

Re: Pulse Count

Post by jpoleto »

Hitesh,

I am using a Picoscope 4424.

Unfortunately I do not have access to Matlab.

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

Hitesh

Re: Pulse Count

Post by Hitesh »

Hi John,

There is a Software Development Kit available for the PicoScope 4424 available from our software download pages:

http://www.picotech.com/software.html

In step 1, select the PicoScope 4424, and in step 2, please select the option for the 'Software Development Kit'

This contains USB drivers, dlls, a Programmer's Guide and examples for languages such as C, C#, Excel and LabVIEW.

I have updated the feature enhancement request for a Pulse Count feature.

Regards,

Eva zhou
Newbie
Posts: 0
Joined: Mon Jul 21, 2014 8:29 am

Re: Pulse Count

Post by Eva zhou »

Hi Hitesh,

Have you added pulse count feature into the latest version of PicoScope 6? where? Recently, we have the same need too.


best regards

Eva

Hitesh

Re: Pulse Count

Post by Hitesh »

Hi Eva,

Unfortunately, PicoScope 6 does not have a Pulse Count feature but I have added your enquiry to the feature request.

Thanks,

Patrick Hall
Newbie
Posts: 0
Joined: Mon Jun 23, 2014 11:54 am

Re: Pulse Count

Post by Patrick Hall »

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).
Best Regards,
Patrick

Hitesh

Re: Pulse Count

Post by Hitesh »

Hi Patrick,

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.

Regards,

diwmond
Newbie
Posts: 0
Joined: Tue Mar 24, 2015 11:22 am

Re: Pulse Count

Post by diwmond »

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.

that1guy
Newbie
Posts: 0
Joined: Tue Jul 14, 2015 9:22 pm

Re: Pulse Count

Post by that1guy »

+1 for a pulse count feature.
It's very useful, especially when dealing with encoders.

IMHO, the picoscope software developers should look at all the measurements possible on a Agilent MSOX scope and aim for feature parity.

Hitesh, is this feature going to be added to the next version ... picoscope 7?

Hitesh

Re: Pulse Count

Post by Hitesh »

Hi that1guy,

I've added your comment to the feature request for our Development Team.

If you have any further information about your application please post here or e-mail support@picotech.com and we can pass the information on.

Thanks,

Phil_S
User
User
Posts: 2
Joined: Mon Nov 30, 2015 10:49 am

Re: Pulse Count

Post by Phil_S »

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.

Thanks
Phil_S (Pico 2205A)

Hitesh

Re: Pulse Count

Post by Hitesh »

Hi Phil_S,

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:



Hope this helps,

jpoleto
Newbie
Posts: 0
Joined: Wed Mar 12, 2014 6:29 pm

Re: Pulse Count

Post by jpoleto »

Has there been any development on the pulse counting feature? Is there a beta version of the software which includes this feature?

-John

Martyn
Site Admin
Site Admin
Posts: 4491
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Pulse Count

Post by Martyn »

The Beta software now has edge counting.
Martyn
Technical Support Manager

Post Reply