# Combining DONE Pulses Into a Single Output

**URL:** https://forum.xod.io/t/combining-done-pulses-into-a-single-output/2212
**Category:** Uncategorized
**Created:** [May 6, 2019, 6:06pm UTC](https://forum.xod.io/t/combining-done-pulses-into-a-single-output/2212 "2019-05-06T18:06:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jmwright](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/jmwright/32/1252_2.png) [@jmwright](https://forum.xod.io/u/jmwright)
#### Post date: [May 6, 2019, 6:06pm UTC](https://forum.xod.io/t/combining-done-pulses-into-a-single-output/2212/1 "2019-05-06T18:06:18Z")

</div>

I’m just getting started with XOD, and have created a patch that homes 4 servos to their center positions. I want to use that patch in another one, and want my DONE terminal to only pulse when all 4 servos (via rotate-slow blocks) have given their DONE pulses. I found the ANY block that will output a pulse if any of the inputs are pulsed, but what I want seems like it should be called ALL or something. I can’t find anything that works this way though. Any help would be appreciated.

 ![Screenshot_2019-05-06_14-02-33](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/1/1b1737df8c41a16a29aee4f1f59bfa4adef65f27.png)

---

<div class="post-metadata">

### Author: ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)
#### Post date: [May 6, 2019, 7:13pm UTC](https://forum.xod.io/t/combining-done-pulses-into-a-single-output/2212/2 "2019-05-06T19:13:11Z")

</div>

Look it [Need join-pulses node (eventually)](https://forum.xod.io/t/need-join-pulses-node-eventually/1715)

---

<div class="post-metadata">

### Author: ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)
#### Post date: [May 6, 2019, 8:30pm UTC](https://forum.xod.io/t/combining-done-pulses-into-a-single-output/2212/3 "2019-05-06T20:30:15Z")

</div>

This should work:  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/a/a5c6ec5619c70f659fe3dd3f1233bd6adce9c408.png)

It uses flip-flops to determine which pulses have been received. RST will start a new round of collecting pulses. OUT will only be true if each variadic (IN#) has received a pulse. The “-” input pin is for internal use only & should never be linked to anything or set to anything besides the default “true”. Code will be needed outside this patch to reset after it fires (a defer node linking the OUT pin to the RST pin would be one option if it should immediately reset each time it fires).

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)
#### Post date: [May 8, 2019, 8:40pm UTC](https://forum.xod.io/t/combining-done-pulses-into-a-single-output/2212/4 "2019-05-08T20:40:17Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
