# 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:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sooseok.sim1](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@sooseok.sim1](https://discuss.saleae.com/u/sooseok.sim1)\
**Post date:** [February 19, 2024, 4:38am UTC](https://discuss.saleae.com/t/python-logic2-extension-add-method/2727/1 "2024-02-19T04:38:29Z")

</div>

Hi.  
I used the python logic2 API.  
I installed the Extension I2C transaction.  
I want to save the .sal with I2C Transaction waveform file with python.  
Can you share the example python file or method?

Thank you for your support

---

<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 20, 2024, 1:13am UTC](https://discuss.saleae.com/t/python-logic2-extension-add-method/2727/2 "2024-02-20T01:13:34Z")

</div>

@sooseok.sim1 Sorry for the trouble with that. Can you explain the specific issue you are running into? For example, are you running into the issue described below upon opening a saved capture file that contains an HLA?

> [@Failed to create analyzer](https://discuss.saleae.com/t/failed-to-create-analyzer/2015):
>
> We just published our first HLA, “Parade Technologies TrueTouch Protocols”. When I receive a SAL file from another user, that also had our HLA installed (from the Saleae marketplace), and try to open it I get an error. Failed to create analyzer “Parade Technologies”; it is not currently installed. Since we both have the HLA installed from the marketplace I was expecting the HLA to show up with out any errors. One thing I find strange about the error is that the string in quotes matches the …

---

<div class="post-metadata">

**Author:** ![sooseok.sim1](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@sooseok.sim1](https://discuss.saleae.com/u/sooseok.sim1)\
**Post date:** [February 22, 2024, 3:31am UTC](https://discuss.saleae.com/t/python-logic2-extension-add-method/2727/3 "2024-02-22T03:31:26Z")

</div>

Thank you for your feedback.  
this is not issue.  
I’m not famillar with the Extention for saving the .sal with python logic2.  
I want to know the method. the I2C transaction method.  
I want to save the .sal file that is included with I2C Transaction wave form.

---

<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!
