# MAI Binding trouble

**URL:** <https://forum.inductiveautomation.com/t/mai-binding-trouble/17382>\
**Category:** Ignition\
**Created:** [March 15, 2018, 9:28pm UTC](https://forum.inductiveautomation.com/t/mai-binding-trouble/17382 "2018-03-15T21:28:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrogers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mrogers/32/4110_2.png) [@mrogers](https://forum.inductiveautomation.com/u/mrogers)\
**Post date:** [March 15, 2018, 9:28pm UTC](https://forum.inductiveautomation.com/t/mai-binding-trouble/17382/1 "2018-03-15T21:28:55Z")

</div>

I’m trying to create a sort of automatic Moving Analog Indicator and if you’ve worked with them, then you know that pretty much for all non-range high, range low and process values you can just delete the number in there, making the field effectively blank, then the MAI will ignore it. So you don’t have to set a setpoint value, high alarm, etc.I’m trying to bind these fields to essentially a script, where that script decides if the value should be overridden and given a blank value. However, it seems like no matter how I try to make the expression work it will populate with a 0, instead of being blank.

I’ve tried an expression just equal to ‘’, I’ve tried a completely blank expression, I’ve tried runscript("’’") (thats two double quotes surrounding two single quotes), and a couple more things I can’t remember right now.

I just want to write a blank value here… Any ideas? I know I can (because this was my previous method) just use scripting to assign these fields to blank values in a script but that was causing a slowdown for me so I’m trying to use more expression-based than script based things where I can.

Edit: I’d still like to know if theres a way to do this, but I just came across a hacky but working-so-far solution. For things like high alarm, desired high etc if I want to ignore it I’ll just set the value really high, or really negative for low things.

---

<div class="post-metadata">

**Author:** ![Brian](https://avatars.discourse-cdn.com/v4/letter/b/97f17d/32.png) [@Brian](https://forum.inductiveautomation.com/u/Brian)\
**Post date:** [March 15, 2018, 10:09pm UTC](https://forum.inductiveautomation.com/t/mai-binding-trouble/17382/2 "2018-03-15T22:09:39Z")

</div>

If you are trying to set the value from a script, you might try setting it to the keyword ‘None’. That’s how Jython indicates a null value. I don’t recall the keyword for the expression syntax, if that’s how you are setting it though.

---

<div class="post-metadata">

**Author:** ![Brian](https://avatars.discourse-cdn.com/v4/letter/b/97f17d/32.png) [@Brian](https://forum.inductiveautomation.com/u/Brian)\
**Post date:** [March 15, 2018, 10:19pm UTC](https://forum.inductiveautomation.com/t/mai-binding-trouble/17382/3 "2018-03-15T22:19:23Z")

</div>

Here's a thread discussing a similar problem to yours. Looks like setting to either None or Null was the answer for them.

> [@Help with Moving Analog Indicator](http://forum.inductiveautomation.com/t/help-with-moving-analog-indicator/11489/3):
>
> 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:** ![mrogers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mrogers/32/4110_2.png) [@mrogers](https://forum.inductiveautomation.com/u/mrogers)\
**Post date:** [March 15, 2018, 10:26pm UTC](https://forum.inductiveautomation.com/t/mai-binding-trouble/17382/4 "2018-03-15T22:26:37Z")

</div>

Nice, thanks! That works.
