detect max interval between flanks

Forum for discussing PicoScope version 6 (non-automotive version)
Post Reply
bennog
Advanced User
Advanced User
Posts: 78
Joined: Mon Nov 26, 2012 9:16 am
Location: Netherlands

detect max interval between flanks

Post by bennog »

I have a bit toggle on the output of a uController and want to know what the longtest time is a Interrupt is keeping the main loop from toggling the output (As measurement worst case scenario)

Is there a automatic way to do this.
I had high hopes for Measurement "Cycle Time" but the min/max/avg give all the same times.
Also "Duty Cycle" is no help.

http://www.ans-net.nl/picotech/20201023 ... gle.psdata

Benno

Gerry
PICO STAFF
PICO STAFF
Posts: 923
Joined: Mon Aug 11, 2014 11:14 am

Re: detect max interval between flanks

Post by Gerry »

Hi Benno,

Do you have an example pointing out the toggle period with measurement rulers so that we can see what you are trying to measure with auto meausurements?

Regards,

Gerry
Gerry
Technical Specialist

bennog
Advanced User
Advanced User
Posts: 78
Joined: Mon Nov 26, 2012 9:16 am
Location: Netherlands

Re: detect max interval between flanks

Post by bennog »

in the example .psdata from the first post

the times below so max low time or max high time.

Benno
Attachments
2020-10-26_13-38-47.png
2020-10-26_13-38-11.png

Gerry
PICO STAFF
PICO STAFF
Posts: 923
Joined: Mon Aug 11, 2014 11:14 am

Re: detect max interval between flanks

Post by Gerry »

Hi Benno,

I don't know what degree of automation you need, but you can use Deep Measure to find the largest high pulse width, as shown in the image and data file below:
Deep Measure of largest high Pulse width.psdata
(55.67 KiB) Downloaded 46 times
Largest high pulse width.png

After running deep measure you click on the 'High pulse width heading' to sort the column as largest from top to bottom, and then click on the first value in the column to make the display jump to the largest pulse high.

Unfortunately, there is no automation command for exporting Deep measurements (as the updating of the automation commands stopped before Deep Measure was introduced). As I mentioned on another post, you may be able to find a Windows automation tool that suits your needs (allows you to automate mouse movements and clicks) that you can then run from a batch file (last time I looked there was 'Mouse Controller'). So you could set up the Mouse clicks to run on a single click if you just want to view the maximum. Alternatively, if you want to log a number of maximums to view later, you could set up the mouse clicks to export a CSV file, so that you can then import it into Excel and find your max with a Macro or VBA routine.

Regards,

Gerry
Gerry
Technical Specialist

bennog
Advanced User
Advanced User
Posts: 78
Joined: Mon Nov 26, 2012 9:16 am
Location: Netherlands

Re: detect max interval between flanks

Post by bennog »

Thanks that was the solution deep measure.

Benno

Post Reply