# How to find out if the program is running or not

**URL:** <https://forum.universal-robots.com/t/how-to-find-out-if-the-program-is-running-or-not/4210>\
**Category:** Robot Communication\
**Created:** [May 1, 2019, 11:28am UTC](https://forum.universal-robots.com/t/how-to-find-out-if-the-program-is-running-or-not/4210 "2019-05-01T11:28:18Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![inu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/inu/32/732_2.png) [@inu](https://forum.universal-robots.com/u/inu)\
**Post date:** [May 1, 2019, 2:29pm UTC](https://forum.universal-robots.com/t/how-to-find-out-if-the-program-is-running-or-not/4210/2 "2019-05-01T14:29:15Z")

</div>

There a a few ways to achieve this. Check out these threads:

> [@Detect program running in URCaps](https://forum.universal-robots.com/t/detect-program-running-in-urcaps/2134):
>
> I would like to detect if a program is running in URCaps to lock out user controls and properly update URCaps display status in my URCap. Any way to do this?

> [@RTDE - Read Robot State and Safety State](https://forum.universal-robots.com/t/rtde-read-robot-state-and-safety-state/1634/2):
>
> Update: A bit of an ugly solution but I created a couple of java classes and tied the external device execution while loop into discrete calls to the Dashboard server that loop in the execution program and it appears to work well. So question withdrawn, thanks for taking a look. Jerry

I’d recommend using the RTDE interface, but you are not limited to solely this method.

---

_[View the full topic](https://forum.universal-robots.com/t/how-to-find-out-if-the-program-is-running-or-not/4210)._
