# Spectrum Analyzer Averaging in python

**URL:** <https://forum.liquidinstruments.com/t/spectrum-analyzer-averaging-in-python/1291>\
**Category:** Software & APIs\
**Created:** [September 6, 2026, 7:53pm UTC](https://forum.liquidinstruments.com/t/spectrum-analyzer-averaging-in-python/1291 "2026-09-06T19:53:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcgayer](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@tcgayer](https://forum.liquidinstruments.com/u/tcgayer)\
**Post date:** [September 6, 2026, 7:53pm UTC](https://forum.liquidinstruments.com/t/spectrum-analyzer-averaging-in-python/1291/1 "2026-09-06T19:53:24Z")

</div>

The moku app has a frame averages feature. Is there a python equivalent to this feature that won’t require me pulling data from the moku:pro multiple times and then averaging it myself? So far I’ve just seen the `target_duration` argument of the `set_averaging` which is not what I’m looking for.

---

<div class="post-metadata">

**Author:** ![Dylan](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Dylan](https://forum.liquidinstruments.com/u/Dylan)\
**Post date:** [September 8, 2026, 11:05pm UTC](https://forum.liquidinstruments.com/t/spectrum-analyzer-averaging-in-python/1291/2 "2026-09-08T23:05:58Z")

</div>

Hello @tcgayer ,

Thank you for reaching out to Liquid Instruments! We don’t have a frame averaging equivalent in the APIs yet. However, we do have a prewritten Python and MATLAB example on our [GitHub](https://github.com/liquidinstruments/moku-examples/blob/main/python-api/oscilloscope_averaging.py) that will do the same averaging that is done in the app. We currently only have this for the oscilloscope, but I was able to create an example for the Spectrum Analyzer which can be accessed at this [link](https://drive.google.com/drive/folders/1uXYoGTXZtb6EnslPBK3hE-ZbTBmBaQp6?usp=drive_link). I hope this is helpful!

-Dylan
