# Is there a "pulseIn" node?

**URL:** <https://forum.xod.io/t/is-there-a-pulsein-node/631>\
**Category:** Uncategorized\
**Created:** [April 2, 2018, 7:09pm UTC](https://forum.xod.io/t/is-there-a-pulsein-node/631 "2018-04-02T19:09:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jammer134](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jammer134](https://forum.xod.io/u/jammer134)\
**Post date:** [April 2, 2018, 7:09pm UTC](https://forum.xod.io/t/is-there-a-pulsein-node/631/1 "2018-04-02T19:09:23Z")

</div>

I’m new to XOD and I’m trying to find an equivalent to the Arudino “pulseIn” function found here…

[Arduino Reference: pulseIn()](https://www.arduino.cc/reference/en/language/functions/advanced-io/pulsein/)

I have used the Arduino “pulseIn” function flawlessly many times on my own projects, but I can’t seem to find a node that does the same thing. I use “pulseIn” to measure IR signals (a 38KHz carrier frequency signal modulated by the data being transmitted) from Laser Tag equipment.

Thanks in advance!

---

<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:** [April 3, 2018, 2:31pm UTC](https://forum.xod.io/t/is-there-a-pulsein-node/631/2 "2018-04-03T14:31:20Z")

</div>

It should be easy enough to build one, but it will require C++ code. The node for ultrasonic range finder uses while loops to simulate the pusleIn command if you want an example of how that can be done.

There is also the gweimer/ir-remote library for reading IR codes, but I only have the keyestudio IR to test it with. It requires manually installing the IRRemote header files included with the library.
