# Dynamic Scaling for Tags?

**URL:** <https://forum.inductiveautomation.com/t/dynamic-scaling-for-tags/97754>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [October 24, 2024, 8:51pm UTC](https://forum.inductiveautomation.com/t/dynamic-scaling-for-tags/97754 "2024-10-24T20:51:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Estera\_Cioroch](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/estera_cioroch/32/59889_2.png) [@Estera\_Cioroch](https://forum.inductiveautomation.com/u/Estera_Cioroch)\
**Post date:** [October 24, 2024, 8:51pm UTC](https://forum.inductiveautomation.com/t/dynamic-scaling-for-tags/97754/1 "2024-10-24T20:51:57Z")

</div>

A SCADA in development is designed to pull data off of an OIT that provides dynamic decimal point placement and dynamic scaling for a limited number of tags. We've been able to achieve the dynamic decimal points using expressions, but the scaling seems more complicated. The only place I can see to control tag scaling is on the tag itself, where no bindings exist. Is there a work around, or some information I may be missing? I am not seeing anything in the help manual or forum, so any ideas would be appreciated!

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [October 25, 2024, 6:36pm UTC](https://forum.inductiveautomation.com/t/dynamic-scaling-for-tags/97754/2 "2024-10-25T18:36:49Z")

</div>

If you're already using an expression binding you should be able to do your scaling manually in there. Hopefully you've made those tags as part of a UDT. Ideally you would have some parameters to the UDT that would determine the scaling.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [October 25, 2024, 7:04pm UTC](https://forum.inductiveautomation.com/t/dynamic-scaling-for-tags/97754/3 "2024-10-25T19:04:12Z")

</div>

> [@Estera\_Cioroch](#):
>
> We've been able to achieve the dynamic decimal points using expressions

Technically, this is scaling. You're just always using multiples of 10.

An expression such as this would do the trick. (Linear Scaling):

```python
{originalValue} * ({scaledMax} - {scaledMin}) / ({inputMax} - {inputMin}) + {scaledMin} - ({inputMin} * ({scaledMax} - {scaledMin}) / ({inputMax} - {inputMin}))

```

Alternatively, you can use system.tag.writeBlocking() to write to the scaling parameters of a tag:

```python
#assuming a Linear Scaled Mode
tagPaths = ["path/to/your/tag.scaledLow","path/to/your/tag.scaledHigh"]
system.tag.writeBlocking(tagPatsh,[0,100])

```
