# Generate a new channel based on data from other channels

**URL:** <https://discuss.saleae.com/t/generate-a-new-channel-based-on-data-from-other-channels/653>\
**Category:** Extensions\
**Created:** [July 31, 2020, 12:17pm UTC](https://discuss.saleae.com/t/generate-a-new-channel-based-on-data-from-other-channels/653 "2020-07-31T12:17:56Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![rei\_vilo](https://avatars.discourse-cdn.com/v4/letter/r/0ea827/32.png) [@rei\_vilo](https://discuss.saleae.com/u/rei_vilo)\
**Post date:** [July 31, 2020, 12:17pm UTC](https://discuss.saleae.com/t/generate-a-new-channel-based-on-data-from-other-channels/653/1 "2020-07-31T12:17:57Z")

</div>

Please refer to the [post below](https://discuss.saleae.com/t/generate-a-new-channel-based-on-data-from-other-channels/653/5) for a more comprehensive description.

* * *

I’m recording the PWM signal sent to a stepper motor controller.

In this implementation, PWM duty cycle remains stable at ~50% but frequency changes from 127 to 500 Hz. `Channel 0` captures steps and `Channel 1` the direction.

 ![Capture d’écran (2)](https://canada1.discourse-cdn.com/flex030/uploads/saleae/original/1X/265822c1da00b7667131dceb2da38d3a713e8461.png)

 ![Capture d’écran (3)](https://canada1.discourse-cdn.com/flex030/uploads/saleae/original/1X/59622a6b8e16c78d8764fe6fec6367de2245639e.png)

I would like to display the frequency in an additional channel, for example as an analog measure just below. How to perform that?

Below is a mock-up with `Frequency (Hz)` corresponding to `Channel 0`.

 ![Capture 2020-07-31 à 14.11.11](https://canada1.discourse-cdn.com/flex030/uploads/saleae/original/1X/aa5bbb4fc928248096a963a8aa61673a40002745.png)

I’ve recorded the trace: [Session 0 - PWM.sal](https://discuss.saleae.com/uploads/short-url/vLEsQwznMLCRZ0BCkL3qmtb3L9r.sal) (28.4 KB)

Similar question if frequency remains constant but duty cycle changes.

Thank you!

---

_[View the full topic](https://discuss.saleae.com/t/generate-a-new-channel-based-on-data-from-other-channels/653)._
