# Linear Scale Problem

**URL:** <https://forum.inductiveautomation.com/t/linear-scale-problem/3476>\
**Category:** Ignition\
**Created:** [October 23, 2011, 6:42am UTC](https://forum.inductiveautomation.com/t/linear-scale-problem/3476 "2011-10-23T06:42:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![miketob](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/miketob/32/5936_2.png) [@miketob](https://forum.inductiveautomation.com/u/miketob)\
**Post date:** [October 23, 2011, 6:42am UTC](https://forum.inductiveautomation.com/t/linear-scale-problem/3476/1 "2011-10-23T06:42:15Z")

</div>

Hello,  
I think the Linear Scale Component has a little problem:

When using the Indicators dataset with Style=Range everything works perfect if the Min Value of the scale is zero, but if you set the scale differently, lest say Min=50, Max=100, the indicators dont display correctly.

Another thing, perhaps I just dont know if I’m doing the right thing but I tried to set up a Cell-Update Binding with the indicators dataset, and I set the extent property of a indicator to this expression:  
{Root Container.Group.EscalaTemp.maxValue} - {Root Container.Group.EscalaTemp.minValue}

the result was only the first part {Root Container.Group.EscalaTemp.maxValue} and ignored the second part of the substraction {Root Container.Group.EscalaTemp.minValue} which is not zero.

Thanks!

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [October 25, 2011, 9:09pm UTC](https://forum.inductiveautomation.com/t/linear-scale-problem/3476/2 "2011-10-25T21:09:16Z")

</div>

Good eye - you’re right the linear scale wasn’t calculating it’s indicators correctly when the min value wasn’t zero. I’ve fixed this for 7.3.2.

I’m not sure what the other problem you mentioned was though. Perhaps you could demonstrate it on a simple window and post that exported window here so we could take a look?

---

<div class="post-metadata">

**Author:** ![miketob](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/miketob/32/5936_2.png) [@miketob](https://forum.inductiveautomation.com/u/miketob)\
**Post date:** [November 2, 2011, 12:04am UTC](https://forum.inductiveautomation.com/t/linear-scale-problem/3476/3 "2011-11-02T00:04:55Z")

</div>

Hello Carl,

Thanks for your reply.  
I’m attaching a sample window. To make it work correctly, please set minValue of the linear scale “EscalaTemp” to 0, so you can see what I tried to accomplish. Then set it to 20 and try it out again.

Also, you can see here what I mean: [screencast.com/t/u8Xyv6jqvb](http://screencast.com/t/u8Xyv6jqvb)

Thank you.  
[SampleWindow.vwin](https://us1.discourse-cdn.com/inductiveautomation/original/1X/8595921f2fece6521d325b5379c83efd452bc0c8.vwin) (12.9 KB)

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [November 17, 2011, 11:11pm UTC](https://forum.inductiveautomation.com/t/linear-scale-problem/3476/4 "2011-11-17T23:11:26Z")

</div>

Ah, I get it now. The reason that’s not working is because…it’s not supported. You weren’t supposed to put an arithmetic expression in there - just a link to a property. Anyhow, you’ll have to make dynamic properties bound to expressions to do the subtraction, and then use those in the cell-update binding.

---

<div class="post-metadata">

**Author:** ![miketob](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/miketob/32/5936_2.png) [@miketob](https://forum.inductiveautomation.com/u/miketob)\
**Post date:** [November 17, 2011, 11:15pm UTC](https://forum.inductiveautomation.com/t/linear-scale-problem/3476/5 "2011-11-17T23:15:25Z")

</div>

Thank you very much Carl.

I should have think about that solution, hehe.

Thank you!
