# IA Module (adding digital alarm question)

**URL:** <https://forum.inductiveautomation.com/t/ia-module-adding-digital-alarm-question/5417>\
**Category:** 3rd Party Modules\
**Created:** [November 13, 2012, 8:52pm UTC](https://forum.inductiveautomation.com/t/ia-module-adding-digital-alarm-question/5417 "2012-11-13T20:52:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rcorkern](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@rcorkern](https://forum.inductiveautomation.com/u/rcorkern)\
**Post date:** [November 13, 2012, 8:52pm UTC](https://forum.inductiveautomation.com/t/ia-module-adding-digital-alarm-question/5417/1 "2012-11-13T20:52:55Z")

</div>

I’m using the following (via IA module) to create a digital alarm:

New optional argument for addTag and editTag called alarmList that is a string. Here is an example of adding a tag with a digital alarm:

Code:  
system.tag.addTag(parentPath="", name=“N7\_0”, tagType=“OPC”, dataType=“Int4”, attributes={“OPCServer”:“Ignition OPC-UA Server”, “OPCItemPath”:"[MLX]N7:0", “AlertMode”:1, “AlertDisplayPath”:“Machine A”, “AlertNotes”:“Notes for the alert”, “AlertAckMode”:2}, alarmList=“Out of Range;Medium;1.0;1.0;0;;;0.0;SEC$”)

What string/command would I use so that the “Driver” get automatically populated with the default? Right now it stays blank until we open the alarm and select it.  
Thanks

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/5c4efdf28803aec2a79002dea34a894a6db71c14.PNG)

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [November 13, 2012, 8:57pm UTC](https://forum.inductiveautomation.com/t/ia-module-adding-digital-alarm-question/5417/2 "2012-11-13T20:57:41Z")

</div>

The driver name is part of the attributes. So do the following:`system.tag.addTag(parentPath="", name="N7_0", tagType="OPC", dataType="Int4", attributes={"OPCServer":"Ignition OPC-UA Server", "OPCItemPath":"[MLX]N7:0", "AlertMode":1, "AlertDisplayPath":"Machine A", "AlertNotes":"Notes for the alert", "AlertAckMode":2, "DriverName":"SomeDriverName"}, alarmList="Out of Range;Medium;1.0;1.0;0;;;0.0;SEC$")`Notice “DriverName”:“SomeDriverName” in the attributes list.

---

<div class="post-metadata">

**Author:** ![rcorkern](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@rcorkern](https://forum.inductiveautomation.com/u/rcorkern)\
**Post date:** [November 13, 2012, 10:16pm UTC](https://forum.inductiveautomation.com/t/ia-module-adding-digital-alarm-question/5417/3 "2012-11-13T22:16:18Z")

</div>

cool. thanks Travis
