# Alarm pipline configuration

**URL:** <https://forum.inductiveautomation.com/t/alarm-pipline-configuration/22199>\
**Category:** Ignition\
**Created:** [January 29, 2019, 6:03pm UTC](https://forum.inductiveautomation.com/t/alarm-pipline-configuration/22199 "2019-01-29T18:03:03Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex.cordova.ee](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@alex.cordova.ee](https://forum.inductiveautomation.com/u/alex.cordova.ee)\
**Post date:** [January 29, 2019, 6:03pm UTC](https://forum.inductiveautomation.com/t/alarm-pipline-configuration/22199/1 "2019-01-29T18:03:03Z")

</div>

Is there a way to write to tag on alarm pipline?  
Also when I activate alarm, after maybe a minute it drops on its own, even if it is left on.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/7a959f67e1845ec11214ad1122f56e28bb9b9c01.png)

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/b42c64af84f840a0b7129a1e31ded521cbfbc9f3.png)

---

<div class="post-metadata">

**Author:** ![jgooding](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@jgooding](https://forum.inductiveautomation.com/u/jgooding)\
**Post date:** [January 29, 2019, 6:32pm UTC](https://forum.inductiveautomation.com/t/alarm-pipline-configuration/22199/2 "2019-01-29T18:32:31Z")

</div>

The pipeline is generic. So to write to a tag would be a little confusing. If you want to automatically clear the alarm condition do that back in the tag setup. My thoughts when I did this for my application.

---

<div class="post-metadata">

**Author:** ![alex.cordova.ee](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@alex.cordova.ee](https://forum.inductiveautomation.com/u/alex.cordova.ee)\
**Post date:** [January 29, 2019, 6:36pm UTC](https://forum.inductiveautomation.com/t/alarm-pipline-configuration/22199/3 "2019-01-29T18:36:50Z")

</div>

reason was to turn on a alarm banner.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/f/fbfefa1ab2f1a92ec2f8c2b0222d751d5b522364.jpeg)

This is the main screen. When it turns red from having any alarm in that system, it will turn red and they go to that screen.

Also still not sure why alarm drops

---

<div class="post-metadata">

**Author:** ![alex.cordova.ee](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@alex.cordova.ee](https://forum.inductiveautomation.com/u/alex.cordova.ee)\
**Post date:** [January 29, 2019, 8:41pm UTC](https://forum.inductiveautomation.com/t/alarm-pipline-configuration/22199/4 "2019-01-29T20:41:53Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/2efbf6d8f7f53d0f4b15ceaeeaa2084d35ee0ac2.png)

looking in user manual, it looks like i can use script to write to tags. but when i use the example it does not work, email notification goes OK, but tag does not change

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/031494b5ab8478e2e7d760bc97103d8c832e16fa.png)

---

<div class="post-metadata">

**Author:** ![alex.cordova.ee](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@alex.cordova.ee](https://forum.inductiveautomation.com/u/alex.cordova.ee)\
**Post date:** [January 30, 2019, 12:59am UTC](https://forum.inductiveautomation.com/t/alarm-pipline-configuration/22199/5 "2019-01-30T00:59:49Z")

</div>

I have searched all the forum, I believe it might have something to do with path. I tried the following bellow.  
Not sure if default is generic and referring to project name.

system.tag.write("[default]SCADA/Fenceline Air Monitors/Fence Line Alarm Banner",true)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 30, 2019, 4:39pm UTC](https://forum.inductiveautomation.com/t/alarm-pipline-configuration/22199/6 "2019-01-30T16:39:56Z")

</div>

> [@alex.cordova.ee](#):
>
> I have searched all the forum, I believe it might have something to do with path. I tried the following bellow.  
> Not sure if default is generic and referring to project name.
> 
> `system.tag.write("[default]SCADA/Fenceline Air Monitors/Fence Line Alarm Banner",true)`

`[default]` is a reference to a particular realtime tag provider. When you're writing a script in the "client" scope (ie, executed from a button press in a Vision client) you will always be executing that script from within a certain project. Each project, in turn, can define a default tag provider. Somewhat confusingly, the single realtime tag provider that Ignition creates _for you_ is also called `default` - but there's nothing actually different about it (if you want to, you can create more realtime tag providers on the gateway webpage).

In the alarm pipeline, you need to specify a tag provider name because tags (and alarms, and alarm pipelines) all execute "globally" - they don't reside in a particular "project", and therefore have no default tag provider. So, yes - "qualifying" your tag path with `[default]` (assuming you're on a fairly standard installation and haven't customized your tag providers) should be the correct solution.

---

<div class="post-metadata">

**Author:** ![alex.cordova.ee](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@alex.cordova.ee](https://forum.inductiveautomation.com/u/alex.cordova.ee)\
**Post date:** [January 30, 2019, 10:49pm UTC](https://forum.inductiveautomation.com/t/alarm-pipline-configuration/22199/7 "2019-01-30T22:49:54Z")

</div>

Thank you for the info. But it still does not change the tag to true. So I am not sure what is wrong. I did check the real time tag provider and it had two. System and default. So what else can I check? I am assume that I can see the tag change in the project as I execute the alarm. I know it is working because on the splitter block i have a notification that sends a email and that works.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 30, 2019, 10:54pm UTC](https://forum.inductiveautomation.com/t/alarm-pipline-configuration/22199/8 "2019-01-30T22:54:50Z")

</div>

Consider using [system.tag.writeSynchronous()](https://docs.inductiveautomation.com/display/DOC79/system.tag.writeSynchronous) inside a `try ... except` block, and logging any exception.

---

<div class="post-metadata">

**Author:** ![Paul.Scott](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul.scott/32/4578_2.png) [@Paul.Scott](https://forum.inductiveautomation.com/u/Paul.Scott)\
**Post date:** [January 31, 2019, 12:36am UTC](https://forum.inductiveautomation.com/t/alarm-pipline-configuration/22199/9 "2019-01-31T00:36:31Z")

</div>

> [@alex.cordova.ee](#):
>
> But it still does not change the tag to true

You would have to check the Gateway Console for errors: **Gateway** \> **Status** section \> **Diagnostics** \> **Logs** (alternatively, you could head over to the Alarm Pipelines page under the status section).

Somewhat related, you have a syntax error. The value you're writing should be `True` with a capital `T` (keyword in Python representing a boolean true value).

---

<div class="post-metadata">

**Author:** ![alex.cordova.ee](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@alex.cordova.ee](https://forum.inductiveautomation.com/u/alex.cordova.ee)\
**Post date:** [February 1, 2019, 7:33pm UTC](https://forum.inductiveautomation.com/t/alarm-pipline-configuration/22199/10 "2019-02-01T19:33:07Z")

</div>

Ok, not sure what happen but it worked. So what i just noticed is it left it true, any way to make it back to false when alarm drops out ?

---

<div class="post-metadata">

**Author:** ![alex.cordova.ee](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@alex.cordova.ee](https://forum.inductiveautomation.com/u/alex.cordova.ee)\
**Post date:** [February 1, 2019, 9:59pm UTC](https://forum.inductiveautomation.com/t/alarm-pipline-configuration/22199/11 "2019-02-01T21:59:44Z")

</div>

tried other script, but I am not sure if there is a way, since pipe line is not active, it will not give script to write it back to false. i guess I might need to do this on on gateway script to write it back to false.
