# Histogram mode

**URL:** <https://discuss.saleae.com/t/histogram-mode/1316>\
**Category:** Logic 2 Software\
**Created:** [December 15, 2021, 7:47pm UTC](https://discuss.saleae.com/t/histogram-mode/1316 "2021-12-15T19:47:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hfkou](https://avatars.discourse-cdn.com/v4/letter/h/59ef9b/32.png) [@hfkou](https://discuss.saleae.com/u/hfkou)\
**Post date:** [December 15, 2021, 7:47pm UTC](https://discuss.saleae.com/t/histogram-mode/1316/1 "2021-12-15T19:47:30Z")

</div>

We want to measure real-time latency and also interested in seeing its min/avg/mean/max statistical distribution.

Does logic pro 16 with latest sw support this kind of histogram mode?

---

<div class="post-metadata">

**Author:** ![timreyes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/timreyes/32/108_2.png) [@timreyes](https://discuss.saleae.com/u/timreyes)\
**Post date:** [December 15, 2021, 11:36pm UTC](https://discuss.saleae.com/t/histogram-mode/1316/2 "2021-12-15T23:36:15Z")

</div>

@hfkou Can you share an example capture file (.sal file) or image that shows the kind of latency you were interested in? Instructions are below for generating capture files.

> **[Capture & Preset File Management](https://support.saleae.com/user-guide/using-logic/saving-loading-and-exporting-data)**

We unfortunately don’t have a histogram display. If you require generating statistical time difference data between digital edges across a specified time range, and across multiple channels, then we may not have a solution for you.

However, if you require measuring the same as above, but contained within a single channel, then it could be possible via a measurement extension:

> **[Software Extensions](https://support.saleae.com/extensions)**

Our measurement extensions are currently confined to a single channel, and cannot analyze data across multiple channels (hence the limitation described above).

---

<div class="post-metadata">

**Author:** ![hfkou](https://avatars.discourse-cdn.com/v4/letter/h/59ef9b/32.png) [@hfkou](https://discuss.saleae.com/u/hfkou)\
**Post date:** [December 15, 2021, 11:54pm UTC](https://discuss.saleae.com/t/histogram-mode/1316/3 "2021-12-15T23:54:08Z")

</div>

Here is an example for latency histogram:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/saleae/original/1X/63d7bc388d399abb6b323756725b1a1003b1a403.png)  
[https://www.osadl.org/Create-a-latency-plot-from-cyclictest-hi.bash-script-for-latency-plot.0.html](https://www.osadl.org/Create-a-latency-plot-from-cyclictest-hi.bash-script-for-latency-plot.0.html)

It could be from 2 channels, like 1st channel for t0 and 2nd channel for t1, and t1 - t0 = latency. one example is to we can toggle GPIO-0 for t0 and another GPIO-1 for t1 in software, also connect these 2 GPIOs to 2 channel of logic pro 16, then the question is how to show histogram diagram for t1 - t0 = latency?

Btw, which extension can show single channel’s min/avg/max and mean/dev?

---

<div class="post-metadata">

**Author:** ![timreyes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/timreyes/32/108_2.png) [@timreyes](https://discuss.saleae.com/u/timreyes)\
**Post date:** [December 16, 2021, 1:12am UTC](https://discuss.saleae.com/t/histogram-mode/1316/4 "2021-12-16T01:12:24Z")

</div>

@hfkou For single channel mean/min/max pulse stats, you can refer to Peter’s Pulse Stats extension. This could be helpful if latency is synchronized with the rising/falling edges of a single GPIO output.

 ![Screen Shot 2021-12-15 at 8.03.38 PM](https://canada1.discourse-cdn.com/flex030/uploads/saleae/original/1X/8ff846af45fc0e87e169aecb1cb12a92699c037d.png)

We unfortunately don’t have a way of displaying this as a plot though. One feature I could see that could help is the ability to allow streaming of measurement extension data to an export file, which would allow for curve plotting via a 3rd party app. Right now, data is simply delivered as simple text.
