<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Does the ppk2 average the high sampling rate when using its low sampling rate?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98079/does-the-ppk2-average-the-high-sampling-rate-when-using-its-low-sampling-rate</link><description>Hi, 
 There is another thread with this exact question, but I don&amp;#39;t understand the answer, and the thread is locked. 
 This is the PPK2 measuring at 1 sample per second. 
 I start up a high-consumption device, which starts basically instantly, and the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Apr 2023 12:04:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98079/does-the-ppk2-average-the-high-sampling-rate-when-using-its-low-sampling-rate" /><item><title>RE: Does the ppk2 average the high sampling rate when using its low sampling rate?</title><link>https://devzone.nordicsemi.com/thread/420233?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2023 12:04:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bf351ad-4f7a-4bf8-bc77-d7db24fee5f5</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Sorry, I guess that wasn&amp;#39;t very clear. Can you provide the .ppk files (they can be exported from the app and uploaded in a .zip file to DevZone) of your application starting up at I.E. 1 sample/sec and 1000 samples per sec. for example where it should be easy to see the difference in timing.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;UPDATE:&amp;nbsp;&lt;/strong&gt;More exactly what our developer wants you to do. Repeat the experiment with both sampling frequencies and also at higher or even full frequency and use the same window selected (also use SHIFT+LEFT CLICK and DRAG as shown in the UI) in order to correlate the different measurements might help us decide if this is in fact a bug or just a fluke.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does the ppk2 average the high sampling rate when using its low sampling rate?</title><link>https://devzone.nordicsemi.com/thread/419962?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2023 12:50:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba0e762b-4c44-4b70-98ba-3c5b0436f1b4</guid><dc:creator>douglas.malnati</dc:creator><description>&lt;p&gt;Hi, thanks for the update!&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/98079/does-the-ppk2-average-the-high-sampling-rate-when-using-its-low-sampling-rate/419949"]Do you think you can upload&amp;nbsp;the same data set under different sampling conditions in the same time window and provide some calculations so we can be sure that we&amp;#39;re seeing this on the same measurements?[/quote]
&lt;p&gt;I&amp;#39;m not sure what you mean by that.&lt;/p&gt;
&lt;p&gt;In the images above, I showed two different sampling rates for the event of a device turning on.&amp;nbsp; My questions were around how the &amp;quot;average&amp;quot; values were calculated given the timeframes and sampling rates stated.&lt;/p&gt;
&lt;p&gt;What are you looking for?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Doug&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does the ppk2 average the high sampling rate when using its low sampling rate?</title><link>https://devzone.nordicsemi.com/thread/419949?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2023 12:27:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ae2c75c-ef96-40ee-8298-c42bd3e6b949</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;So I got a hold of a person involved in writing the averaging algorithm, and here&amp;#39;s what they have to say (paraphrasing):&lt;/p&gt;
&lt;p&gt;It is a simple rolling average that does not use buffers.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We have tested the averaging extensively so that it provides the same average value below the chart for a given selected window for the same datasets within a reasonable error margin.&lt;/p&gt;
&lt;p&gt;Do you think you can upload&amp;nbsp;the same data set under different sampling conditions in the same time window and provide some calculations so we can be sure that we&amp;#39;re seeing this on the same measurements?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does the ppk2 average the high sampling rate when using its low sampling rate?</title><link>https://devzone.nordicsemi.com/thread/419906?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2023 09:19:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e5b4c40-9fb2-4bac-a667-40a5681de0a3</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Just wanted to give you an update. We&amp;#39;re struggling to find the right person to answer this correctly. I&amp;#39;ll let you know when I find a good answer to this.&lt;/p&gt;
&lt;p&gt;Again, thank you for your patience!&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does the ppk2 average the high sampling rate when using its low sampling rate?</title><link>https://devzone.nordicsemi.com/thread/419387?ContentTypeID=1</link><pubDate>Thu, 06 Apr 2023 12:50:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abf3805d-d6d4-455b-83a2-ad932a520050</guid><dc:creator>douglas.malnati</dc:creator><description>&lt;p&gt;Ok thanks, happy holidays!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does the ppk2 average the high sampling rate when using its low sampling rate?</title><link>https://devzone.nordicsemi.com/thread/418752?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2023 07:12:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db2bdb28-96ba-42f5-acb0-7d5ce15ad8c0</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Doug&lt;/p&gt;
&lt;p&gt;Just wanted to let you know that I&amp;#39;ve forwarded this question internally as well, but we&amp;#39;re now in the Easter holiday here in Norway, so we&amp;#39;re short on staff and delayed replies must be expected. I can&amp;#39;t guarantee any updates on this before Tuesday April 11th. Thank you for your patience!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does the ppk2 average the high sampling rate when using its low sampling rate?</title><link>https://devzone.nordicsemi.com/thread/418319?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2023 13:02:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18ecb657-2bfb-4355-81de-1f8f5450b9fc</guid><dc:creator>douglas.malnati</dc:creator><description>&lt;p&gt;Hi Simon, thanks for looking into that!&lt;/p&gt;
&lt;p&gt;Not sure I understand how the described approach leads to the first graph I showed though.&lt;/p&gt;
&lt;p&gt;Here, at 1 sample per second, I see it takes more than 3 seconds for my current measurement to rise from ~8mA to ~25mA.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:227px;max-width:413px;" height="227" src="https://devzone.nordicsemi.com/resized-image/__size/826x454/__key/communityserver-discussions-components-files/4/pastedimage1680181048087v4.png" width="413" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;However, I know, from a high-speed measurement, that the rise time is less than 1 second.&lt;/p&gt;
&lt;p&gt;So that means, in the 1-sample-per-second graph:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;the first plotted rise point used some of the rise in its average&lt;/li&gt;
&lt;li&gt;the second plotted &lt;span&gt;rise point used some of the rise in its average&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;the third plotted&amp;nbsp;&lt;span&gt;rise point used some of the rise in its average&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;How can that be?&lt;/p&gt;
&lt;p&gt;If each point takes into consideration 100,000 samples, and the device takes 100,000 samples per second, then each of the plotted points&amp;nbsp; couldn&amp;#39;t have seen the rise in their window.&lt;/p&gt;
&lt;p&gt;Or do the 1-sample-per-second plot points use overlapping data from one another?&lt;/p&gt;
&lt;p&gt;And did you find out about how the rolling window is centered?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Doug&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does the ppk2 average the high sampling rate when using its low sampling rate?</title><link>https://devzone.nordicsemi.com/thread/418203?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2023 05:41:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2eafe7fa-7925-440a-8a14-393169487e24</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Sorry about the late reply, I got an update from the devs on this yesterday, and we&amp;#39;re using Simple Moving Average to calculate the samples on the fly in the Power Profiler:&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/pc-nrfconnect-ppk/blob/7d175d9da2a43582de82ce370e75b65ea4236d6b/src/actions/deviceActions.ts#L274-L291"&gt;https://github.com/NordicSemiconductor/pc-nrfconnect-ppk/blob/7d175d9da2a43582de82ce370e75b65ea4236d6b/src/actions/deviceActions.ts#L274-L291&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For 1 sample/sec for example, we use Simple Moving Average on 100 000 samples before returning the averaged values, for 10 samples/sec we do it on 10 000 samples, and so on. So the difference could indeed be quite big.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does the ppk2 average the high sampling rate when using its low sampling rate?</title><link>https://devzone.nordicsemi.com/thread/417443?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2023 13:58:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88a0a2d9-9fe6-4aac-b046-16fb789d46ee</guid><dc:creator>douglas.malnati</dc:creator><description>&lt;p&gt;Thank you Simonr.&lt;/p&gt;
&lt;p&gt;I had seen the advanced settings, and did increase the size.&amp;nbsp; Very useful.&lt;/p&gt;
&lt;p&gt;My primary concern is not the duration of capture, though, but to understand how the averaging works (all my questions above, really).&amp;nbsp; Please let me know when you find out!&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does the ppk2 average the high sampling rate when using its low sampling rate?</title><link>https://devzone.nordicsemi.com/thread/417442?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2023 13:55:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35358a18-5381-4fa5-9de7-fad314c5b2f8</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The Power profiler app does indeed average the 100 000 samples per second into the resolution of your choosing. I&amp;#39;ve asked the developers for details on how exactly the averaging is done, and I&amp;#39;ll get back to you when I hear from them.&lt;/p&gt;
&lt;p&gt;An alternative to get larger logs at higher sample rates is to open the advanced settings with &lt;strong&gt;SHIFT+Ctrl+Alt+A&lt;/strong&gt;&amp;nbsp;when you&amp;#39;ve opened the PPK2 and increase the sampling buffer size to get higher sampling rates for longer times.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does the ppk2 average the high sampling rate when using its low sampling rate?</title><link>https://devzone.nordicsemi.com/thread/417262?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2023 01:30:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c86f4032-5b6d-4470-a101-6b68a58c34a1</guid><dc:creator>douglas.malnati</dc:creator><description>&lt;p&gt;Ah I also wanted to understand how the &amp;quot;average&amp;quot; and &amp;quot;max&amp;quot; values were calculated, once I understand the windowing.&lt;/p&gt;
&lt;p&gt;Based on some toying around, the &amp;quot;max&amp;quot; appears to be the max of the actual plotted values.&amp;nbsp; The average I&amp;#39;m less clear on.&amp;nbsp; Would it be the average of all the values in the rolling window?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>