# Trigger Animation by Dummy Timer

**URL:** <https://forum.realdash.net/t/trigger-animation-by-dummy-timer/298>\
**Category:** Bugs and troubleshooting\
**Created:** [January 7, 2020, 3:30pm UTC](https://forum.realdash.net/t/trigger-animation-by-dummy-timer/298 "2020-01-07T15:30:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![cel\_turbo](https://forum.realdash.net/user_avatar/forum.realdash.net/cel_turbo/32/9_2.png) [@cel\_turbo](https://forum.realdash.net/u/cel_turbo)\
**Post date:** [January 7, 2020, 3:30pm UTC](https://forum.realdash.net/t/trigger-animation-by-dummy-timer/298/1 "2020-01-07T15:30:14Z")

</div>

I am trying to activate animations through Dummy timer in xml file, but it doesn’t work.  
  
  
Tks

---

<div class="post-metadata">

**Author:** ![realdashdev](https://forum.realdash.net/user_avatar/forum.realdash.net/realdashdev/32/6_2.png) [@realdashdev](https://forum.realdash.net/u/realdashdev)\
**Post date:** [January 7, 2020, 4:23pm UTC](https://forum.realdash.net/t/trigger-animation-by-dummy-timer/298/2 "2020-01-07T16:23:18Z")

</div>

Pls share your XML file, I can take a look.

---

<div class="post-metadata">

**Author:** ![cel\_turbo](https://forum.realdash.net/user_avatar/forum.realdash.net/cel_turbo/32/9_2.png) [@cel\_turbo](https://forum.realdash.net/u/cel_turbo)\
**Post date:** [January 8, 2020, 12:28am UTC](https://forum.realdash.net/t/trigger-animation-by-dummy-timer/298/3 "2020-01-08T00:28:22Z")

</div>

Sometimes it works, but most of the time it doesn’t work.

```plaintext
<?xml version="1.0" encoding="utf-8"?>
<RealDash>

<animations>

<animation name="Move_para_o_Centro" type="morph" target="Rpm Gauge" end="0.330729126930237,0.234259366989136,0.669270873069763,0.765740633010864" duration="3.00" easing="BackOut"></animation>

</animations>

<triggers>
<trigger name="Move RPM to center" condition="larger" variable="Dummy timer 01" tolerance="5.00" reset="0.00" cooldown="0.00">
<actions>

<action name="Move_para_o_Centro"></action>

</actions>
</trigger>
</triggers>
</RealDash>

```

---

<div class="post-metadata">

**Author:** ![cel\_turbo](https://forum.realdash.net/user_avatar/forum.realdash.net/cel_turbo/32/9_2.png) [@cel\_turbo](https://forum.realdash.net/u/cel_turbo)\
**Post date:** [January 8, 2020, 1:07am UTC](https://forum.realdash.net/t/trigger-animation-by-dummy-timer/298/4 "2020-01-08T01:07:05Z")

</div>

Sometimes IMPORT does not take the file.  
I think there should be some confirmation of file capture.

---

<div class="post-metadata">

**Author:** ![CoTECH](https://forum.realdash.net/user_avatar/forum.realdash.net/cotech/32/8_2.png) [@CoTECH](https://forum.realdash.net/u/CoTECH)\
**Post date:** [January 8, 2020, 5:52am UTC](https://forum.realdash.net/t/trigger-animation-by-dummy-timer/298/5 "2020-01-08T05:52:22Z")

</div>

I am also a supporter of the fact that there would be confirmation of the successful addition of the animation file.

---

<div class="post-metadata">

**Author:** ![realdashdev](https://forum.realdash.net/user_avatar/forum.realdash.net/realdashdev/32/6_2.png) [@realdashdev](https://forum.realdash.net/u/realdashdev)\
**Post date:** [January 8, 2020, 8:04am UTC](https://forum.realdash.net/t/trigger-animation-by-dummy-timer/298/6 "2020-01-08T08:04:36Z")

</div>

Good idea, I will add a toast message confirming that animation file has been loaded successful.

---

<div class="post-metadata">

**Author:** ![realdashdev](https://forum.realdash.net/user_avatar/forum.realdash.net/realdashdev/32/6_2.png) [@realdashdev](https://forum.realdash.net/u/realdashdev)\
**Post date:** [January 8, 2020, 9:08am UTC](https://forum.realdash.net/t/trigger-animation-by-dummy-timer/298/7 "2020-01-08T09:08:27Z")

</div>

I think I found the problem. Try setting the trigger reset=“5”.

The trigger reset value in XML is ‘reverse’ of its condition. So your trigger will fire when dummy timer 01 is larger than 5, and is reset (can fire) when its smaller or equal to 5. Your previous value to reset the trigger was 0, so trigger is reset (ready to fire) when dummy timer 01 is smaller or equal to 0. During the boot, dummy timers have already ran for a second or so, and trigger is unable to reset itself.

I also made a fix for dummy timers will not start updating until dash is completely loaded to avoid same confusion later.

---

<div class="post-metadata">

**Author:** ![cel\_turbo](https://forum.realdash.net/user_avatar/forum.realdash.net/cel_turbo/32/9_2.png) [@cel\_turbo](https://forum.realdash.net/u/cel_turbo)\
**Post date:** [January 9, 2020, 1:13pm UTC](https://forum.realdash.net/t/trigger-animation-by-dummy-timer/298/8 "2020-01-09T13:13:46Z")

</div>

> [@](#):
>
> I think I found the problem. Try setting the trigger reset=“5”.
> 
> The trigger reset value in XML is ‘reverse’ of its condition. So your trigger will fire when dummy timer 01 is larger than 5, and is reset (can fire) when its smaller or equal to 5. Your previous value to reset the trigger was 0, so trigger is reset (ready to fire) when dummy timer 01 is smaller or equal to 0. During the boot, dummy timers have already ran for a second or so, and trigger is unable to reset itself.
> 
> I also made a fix for dummy timers will not start updating until dash is completely loaded to avoid same confusion later.

Grateful, it worked. 😃
