# Triggering motion supervision in RobotStudio simulation

**URL:** <https://tech-community.robotics.abb.com/t/triggering-motion-supervision-in-robotstudio-simulation/10798>\
**Category:** Robot Controller\
**Tags:** motion-supervision, robotstudio\
**Created:** [July 6, 2022, 11:16pm UTC](https://tech-community.robotics.abb.com/t/triggering-motion-supervision-in-robotstudio-simulation/10798 "2022-07-06T23:16:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Psyonic](https://avatars.discourse-cdn.com/v4/letter/p/76d3ee/32.png) [@Psyonic](https://tech-community.robotics.abb.com/u/Psyonic)\
**Post date:** [July 6, 2022, 11:16pm UTC](https://tech-community.robotics.abb.com/t/triggering-motion-supervision-in-robotstudio-simulation/10798/1 "2022-07-06T23:16:39Z")

</div>

Hey All,

Does anyone know how to trigger a motion supervision event in RobotStudio to test error handling code?

Thanks

---

<div class="post-metadata">

**Author:** ![Forge\_Engineering](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/forge_engineering/32/4455_2.png) [@Forge\_Engineering](https://tech-community.robotics.abb.com/u/Forge_Engineering)\
**Post date:** [July 7, 2022, 6:06am UTC](https://tech-community.robotics.abb.com/t/triggering-motion-supervision-in-robotstudio-simulation/10798/2 "2022-07-07T06:06:58Z")

</div>

Hi Psyonic,

You can’t raise internal errors as far as I’m aware, but you can raise custom errors you have created.  
Could you trigger another error that you filter for in your error handler as well that is raised from a trap routine tied to a randomly occurring interrupt?  
The interrupt can execute a StopMove and then your error handler can perform the same recovery.

Good Luck,

Regards,

Harry

---

<div class="post-metadata">

**Author:** ![Psyonic](https://avatars.discourse-cdn.com/v4/letter/p/76d3ee/32.png) [@Psyonic](https://tech-community.robotics.abb.com/u/Psyonic)\
**Post date:** [July 7, 2022, 6:21am UTC](https://tech-community.robotics.abb.com/t/triggering-motion-supervision-in-robotstudio-simulation/10798/3 "2022-07-07T06:21:59Z")

</div>

Thanks Harry,

I’ll give that a go 🙂
