# Python logic2 Extension add method

**URL:** <https://discuss.saleae.com/t/python-logic2-extension-add-method/2727>\
**Category:** Uncategorized\
**Created:** [February 19, 2024, 4:38am UTC](https://discuss.saleae.com/t/python-logic2-extension-add-method/2727 "2024-02-19T04:38:29Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [February 23, 2024, 12:43am UTC](https://discuss.saleae.com/t/python-logic2-extension-add-method/2727/4 "2024-02-23T00:43:16Z")

</div>

@sooseok.sim1 Thanks for confirming that. You can refer to the example in another forum post below.

> [@Automation API - High Level Analyzer](https://discuss.saleae.com/t/automation-api-high-level-analyzer/2238/2):
>
> Took me a long time and it was the silliest thing. My solution: hla = capture.add\_high\_level\_analyzer(extension\_directory=os.path.join(os.getcwd(), f'SPI\_ADC\_HLA'), name='SPI\_ADC\_HLA', input\_analyzer=spi\_analyzer, settings=None) It would be really helpful if Saleae team could provide examples for their automation API. Could have saved some time.

Hope that helps!

---

_[View the full topic](https://discuss.saleae.com/t/python-logic2-extension-add-method/2727)._
