# Analyser for quadrature encoder

**URL:** <https://discuss.saleae.com/t/analyser-for-quadrature-encoder/2556>\
**Category:** Extensions\
**Created:** [November 24, 2023, 6:55am UTC](https://discuss.saleae.com/t/analyser-for-quadrature-encoder/2556 "2023-11-24T06:55:22Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![BitBob](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/bitbob/32/2292_2.png) [@BitBob](https://discuss.saleae.com/u/BitBob)\
**Post date:** [December 13, 2023, 3:28pm UTC](https://discuss.saleae.com/t/analyser-for-quadrature-encoder/2556/23 "2023-12-13T15:28:10Z")

</div>

@wolfgang.kopp –

Here’s my working draft implementation ( v0.0.1 😉 ):  
[Quadrature\_Encoder\_v0.0.1.zip](https://discuss.saleae.com/uploads/short-url/qEdr07xeBGWRj7khxOXB83Mr2g2.zip) (3.4 KB)

… and how it was applied to your capture file (re-saved w/ LLA + HLA added):  
[Session01\_6moves-HLA.sal](https://discuss.saleae.com/uploads/short-url/2vFgcn3eFbk4EQUnZ9NV7PJCsCn.sal) (77.3 KB)

Note: it was based on a ‘locally installed’ HLA (on Windows), from the directory path:

```auto
C:\temp\saleae\Quadrature_Encoder

```

Note: you must be using a new enough version of Logic 2 software that [has the **‘Dual edge’** support added](https://github.com/saleae/simple-parallel-analyzer/commit/d304fbe0a717795c220cdb5afdc274c9afe26cf7) in the **Simple Parallel LLA**. It looks like this was merged into Logic 2 release as of [v2.4.4](https://ideas.saleae.com/f/changelog/), that was released in Jan, 2023.

Also, for anyone on any other supported platform (MacOS / Linux), the save file probably won’t work unless you remove/add the HLA and install it in your own local filesystem path.

For more information, see: [Upvoty](https://ideas.saleae.com/b/feature-requests/identify-extension-by-name-and-not-by-path-of-extensionjson-file/)  
(this is a technical constraint on official/published HLA’s, too)

**Disclaimer:** this is truly a quick draft implementation – no guarantees it would work for anything, other than a basic example of an HLA running on top of the Simple Parallel LLA ( **download & use at your own risk** ); please follow-up if it actually works well for you, or if it is actually worth uploading/publishing vs. demo/example only.

**Edit:**  
This draft also has implemented a workaround for displaying ‘0’ on the bubble text, as per other support discussion:

> [@HLA bubble text doesn't display zero (0) value?](https://discuss.saleae.com/t/hla-bubble-text-doesnt-display-zero-0-value/2587):
>
> While experimenting with high-level analyzer (HLA) for quadrature decoder (see [other thread](https://discuss.saleae.com/t/analyser-for-quadrature-encoder/2556)), I noticed that a zero value didn’t display in the bubble text of my draft HLA: as the zero value (0) was in the scaled\_position data – see Data table view: (Note: original thread only had position column showing, while technically scaled\_position is output) Some snippets from the analyzer python script: The result\_types definition: result\_types = { 'QuadEncoder': { …

(depending on final feedback on that thread – might want to tweak that solution as well)

---

_[View the full topic](https://discuss.saleae.com/t/analyser-for-quadrature-encoder/2556)._
