# Help with Moving Analog Indicator

**URL:** <https://forum.inductiveautomation.com/t/help-with-moving-analog-indicator/11489>\
**Category:** Ignition\
**Created:** [April 11, 2016, 7:58pm UTC](https://forum.inductiveautomation.com/t/help-with-moving-analog-indicator/11489 "2016-04-11T19:58:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ellcap](https://avatars.discourse-cdn.com/v4/letter/e/a698b9/32.png) [@ellcap](https://forum.inductiveautomation.com/u/ellcap)\
**Post date:** [April 11, 2016, 7:58pm UTC](https://forum.inductiveautomation.com/t/help-with-moving-analog-indicator/11489/1 "2016-04-11T19:58:59Z")

</div>

I have the device bound to a data type that has 4 Levels of alarming.

I want the Analog Indicator only to display the HH/H/L/LL alarm if that attribute is enabled. I have a property, HighHighEN that is a bool that I can toggle if I’m using that alarm.

I can bind it directly to the High High Setpoint and it works fine, but I’m trying to figure out how to set it to Null or unused if not enabled.

Currently expression looks like:

```auto
if(({AnalogIndicator.AnalogIn::Config.HighHighEN}=True),({AnalogIndicator.AnalogIn::Config.HighHighSP}),"")
```

Thanks in advance

---

<div class="post-metadata">

**Author:** ![ellcap](https://avatars.discourse-cdn.com/v4/letter/e/a698b9/32.png) [@ellcap](https://forum.inductiveautomation.com/u/ellcap)\
**Post date:** [April 12, 2016, 3:25pm UTC](https://forum.inductiveautomation.com/t/help-with-moving-analog-indicator/11489/2 "2016-04-12T15:25:11Z")

</div>

My parentheses game is weak. This seems to work:

```auto
if ({AnalogIndicator.AnalogIn::Config.HighHighEn}=True,{AnalogIndicator.AnalogIn::Config.HighHighSP},"")
```

---

<div class="post-metadata">

**Author:** ![ellcap](https://avatars.discourse-cdn.com/v4/letter/e/a698b9/32.png) [@ellcap](https://forum.inductiveautomation.com/u/ellcap)\
**Post date:** [April 13, 2016, 9:52pm UTC](https://forum.inductiveautomation.com/t/help-with-moving-analog-indicator/11489/3 "2016-04-13T21:52:34Z")

</div>

OK so that’s still not correct, returning “” actually returns a value of 0. When you use the Indicator, if you leave the field blank, it disables the alarm. I’m just not sure what a value of blank is, as returning Null does write a 0.

---

<div class="post-metadata">

**Author:** ![WillMT10](https://avatars.discourse-cdn.com/v4/letter/w/7feea3/32.png) [@WillMT10](https://forum.inductiveautomation.com/u/WillMT10)\
**Post date:** [April 14, 2016, 12:36am UTC](https://forum.inductiveautomation.com/t/help-with-moving-analog-indicator/11489/4 "2016-04-14T00:36:14Z")

</div>

Null works for me. I put the following in a binding on the Moving Analog Indicator “High High Alarm” property:`if(0,1, Null)`This leaves the property value blank for me, not 0. You can also replace “Null” with “None”, without the quotes.

Good luck!  
-Will

---

<div class="post-metadata">

**Author:** ![ellcap](https://avatars.discourse-cdn.com/v4/letter/e/a698b9/32.png) [@ellcap](https://forum.inductiveautomation.com/u/ellcap)\
**Post date:** [April 14, 2016, 3:08pm UTC](https://forum.inductiveautomation.com/t/help-with-moving-analog-indicator/11489/5 "2016-04-14T15:08:30Z")

</div>

[quote=“WillMT10”]Null works for me. I put the following in a binding on the Moving Analog Indicator “High High Alarm” property:`if(0,1, Null)`This leaves the property value blank for me, not 0. You can also replace “Null” with “None”, without the quotes.

Good luck!  
-Will[/quote]  
Awesome. Thank you. I worked around it by taking my High Scale \*1.1 and making the High Alarm line out of range but that is a hacky coding. This is great, thanks again.
