# Range\_measurement API python

**URL:** https://discuss.saleae.com/t/range-measurement-api-python/2528
**Category:** Uncategorized
**Created:** [November 6, 2023, 2:01pm UTC](https://discuss.saleae.com/t/range-measurement-api-python/2528 "2023-11-06T14:01:08Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![khulan.bayarsaikhan](https://avatars.discourse-cdn.com/v4/letter/k/c4cdca/32.png) [@khulan.bayarsaikhan](https://discuss.saleae.com/u/khulan.bayarsaikhan)
#### Post date: [November 6, 2023, 2:01pm UTC](https://discuss.saleae.com/t/range-measurement-api-python/2528/1 "2023-11-06T14:01:08Z")

</div>

Hi,  
I have installed pip install logic2-automation Salaea package and want to use extension clock\_stats.py. This feature requires from saleae.range\_measurements import DigitalMeasurer. However Salaea python package does not contain package for range\_measurements. I get error ModuleNotFoundError: No module named ‘saleae.range\_measurements’ Where do I get from saleae.range\_measurements implementation.

Thanks and Best  
Khulan

---

<div class="post-metadata">

### Author: ![huffman](https://avatars.discourse-cdn.com/v4/letter/h/71e660/32.png) [@huffman](https://discuss.saleae.com/u/huffman)
#### Post date: [November 6, 2023, 5:41pm UTC](https://discuss.saleae.com/t/range-measurement-api-python/2528/2 "2023-11-06T17:41:21Z")

</div>

Hi @khulan.bayarsaikhan ,

> I have installed pip install logic2-automation Salaea package and want to use extension clock\_stats.py.

Sorry for the confusion - the logic2-automation python API is separate from our measurements API. The measurements API is only accessible from a script running within the Logic 2 application.

If you are looking to use the clock stats measurement directly, without modifications, you can install it from the Extensions Marketplace:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/saleae/original/2X/8/816445d5ddceae9710c3054adb4ed61a4cddb887.png)

* * *

If you want to use a modified clock\_stats.py, you will need to load the extension from within Logic.

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/saleae/original/2X/d/d25506508b98027ccccbdf2f65fb0eec4019e9a5.png)

The documentation for extensions (HLAs and Measurements) is available at [https://support.saleae.com/extensions/extensions-quickstart](https://support.saleae.com/extensions/extensions-quickstart)

Hope that helps, and let me know if you have any other questions,

Ryan

---

<div class="post-metadata">

### Author: ![khulan.bayarsaikhan](https://avatars.discourse-cdn.com/v4/letter/k/c4cdca/32.png) [@khulan.bayarsaikhan](https://discuss.saleae.com/u/khulan.bayarsaikhan)
#### Post date: [November 7, 2023, 9:19am UTC](https://discuss.saleae.com/t/range-measurement-api-python/2528/3 "2023-11-07T09:19:34Z")

</div>

Hi Ryan,

This extension is installed. However, it is not listed on python pip package, which I need for automation.

Best regards  
Khulan

---

<div class="post-metadata">

### Author: ![huffman](https://avatars.discourse-cdn.com/v4/letter/h/71e660/32.png) [@huffman](https://discuss.saleae.com/u/huffman)
#### Post date: [November 7, 2023, 4:18pm UTC](https://discuss.saleae.com/t/range-measurement-api-python/2528/4 "2023-11-07T16:18:17Z")

</div>

Unfortunately measurements are not available from the automation API. If you can provide more information about your use-case I can try to offer alternatives.

Ryan

---

<div class="post-metadata">

### Author: ![sura.al-fuqaha](https://avatars.discourse-cdn.com/v4/letter/s/ecd19e/32.png) [@sura.al-fuqaha](https://discuss.saleae.com/u/sura.al-fuqaha)
#### Post date: [May 19, 2025, 5:17pm UTC](https://discuss.saleae.com/t/range-measurement-api-python/2528/5 "2025-05-19T17:17:02Z")

</div>

Hello i would like to see if there’s any update regarding this issue as im facing something similar

---

<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: [May 20, 2025, 10:23pm UTC](https://discuss.saleae.com/t/range-measurement-api-python/2528/6 "2025-05-20T22:23:51Z")

</div>

@sura.al-fuqaha Measurements via our Automation API is currently not available. However, we’re tracking this request in the link below! I’ve added a comment for you to track your need for this as well.

> **[Read Measurement (and Extensions) via Automation API - Logic 2 - Ideas and...](https://ideas.saleae.com/b/feature-requests/read-measurement-and-extensions-via-socket-api/)**
>
> It would be very useful to be able to access common measurement (1.x) and measurement extension (2.x) parameters via the socket API. File I/O is a bottleneck and it would be great to avoid writing then reading and post-processing data for simple...
