# \[refactor-14335\]Ignition 8 equivalent of TagProp.InterpolationMode

**URL:** <https://forum.inductiveautomation.com/t/refactor-14335-ignition-8-equivalent-of-tagprop-interpolationmode/26183>\
**Category:** Module Development\
**Tags:** ignition80\
**Created:** [June 29, 2019, 10:30pm UTC](https://forum.inductiveautomation.com/t/refactor-14335-ignition-8-equivalent-of-tagprop-interpolationmode/26183 "2019-06-29T22:30:35Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpderbec](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@mpderbec](https://forum.inductiveautomation.com/u/mpderbec)\
**Post date:** [June 29, 2019, 10:30pm UTC](https://forum.inductiveautomation.com/t/refactor-14335-ignition-8-equivalent-of-tagprop-interpolationmode/26183/1 "2019-06-29T22:30:36Z")

</div>

Hello, I have existing code that looks like this:

```auto
tag.getAttribute(TagProp.InterpolationMode).getValue();

```

where Tag is an old-style Ignition 7 Tag object.

There is no InterpolationMode in WellKnownTagProps, I’m wondering how to retrieve this now?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [June 29, 2019, 10:40pm UTC](https://forum.inductiveautomation.com/t/refactor-14335-ignition-8-equivalent-of-tagprop-interpolationmode/26183/2 "2019-06-29T22:40:42Z")

</div>

Hmm. I _think_ this prop is now `HistoricalDeadbandMode`, and that its definition got moved to the tag history module… which would make it hard to access for you.

Maybe you can define your own copy of the Property and try calling `getAttribute` with it:

```auto
public static final Property<DeadbandMode> HistoricalDeadbandMode = new BasicProperty<>(
    "historicalDeadbandMode",
    com.inductiveautomation.ignition.common.sqltags.model.types.DeadbandMode.class,
    com.inductiveautomation.ignition.common.sqltags.model.types.DeadbandMode.Absolute
);

```

---

<div class="post-metadata">

**Author:** ![mpderbec](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@mpderbec](https://forum.inductiveautomation.com/u/mpderbec)\
**Post date:** [June 30, 2019, 12:33am UTC](https://forum.inductiveautomation.com/t/refactor-14335-ignition-8-equivalent-of-tagprop-interpolationmode/26183/3 "2019-06-30T00:33:18Z")

</div>

OK thanks Kevin, I’ll take a look

---

<div class="post-metadata">

**Author:** ![mpderbec](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@mpderbec](https://forum.inductiveautomation.com/u/mpderbec)\
**Post date:** [July 1, 2019, 1:28am UTC](https://forum.inductiveautomation.com/t/refactor-14335-ignition-8-equivalent-of-tagprop-interpolationmode/26183/4 "2019-07-01T01:28:51Z")

</div>

@Kevin.Herron I don’t think that’s it. In the Ignition 7 Designer, this property was shown in the UI as **Value Mode** , and there was also a different separate concept called **Historical Deadband Mode**.

So it seems to me that the concept of Value Mode has just been dropped, because you can’t specify it anywhere. Any chance you could confirm that with your development team? It’s an important concept so I’d be surprised if there isn’t an equivalent in Ignition 8.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/165df22af5c9dc3367c74efc7dcb73b25a8d115e.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 1, 2019, 3:52pm UTC](https://forum.inductiveautomation.com/t/refactor-14335-ignition-8-equivalent-of-tagprop-interpolationmode/26183/5 "2019-07-01T15:52:11Z")

</div>

The `LegacyTagPropUpgrader` specifically upgrades the InterpolationMode prop into `historicalDeadbandStyle`:

```java
        registerPropertyUpgrader(TagProp.InterpolationMode,
            new BasicPropertyUpgrader(
                new BasicProperty<>("historicalDeadbandStyle", InterpolationMode.class, InterpolationMode.Auto)));

```

Which is now defined in `com.inductiveautomation.gateway.tags.history.actor.TagHistoryProps`, rather than in common tag properties.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [July 1, 2019, 3:56pm UTC](https://forum.inductiveautomation.com/t/refactor-14335-ignition-8-equivalent-of-tagprop-interpolationmode/26183/6 "2019-07-01T15:56:43Z")

</div>

Oops, I read the wrong prop… they’re right next to each other!

---

<div class="post-metadata">

**Author:** ![mpderbec](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@mpderbec](https://forum.inductiveautomation.com/u/mpderbec)\
**Post date:** [July 1, 2019, 4:01pm UTC](https://forum.inductiveautomation.com/t/refactor-14335-ignition-8-equivalent-of-tagprop-interpolationmode/26183/7 "2019-07-01T16:01:17Z")

</div>

@Kevin.Herron I did a face palm as well, I should have clicked on **Deadband Style** to see what its values were.

@paul-griffith, `com.inductiveautomation.gateway.tags.history.actor.TagHistoryProps` does not appear to be accessible in the Ignition SDK. I’ll just do `new BasicProperty<>("historicalDeadbandStyle", InterpolationMode.class, InterpolationMode.Auto)` for now but it might make sense to expose those `TagHistoryProps` in the SDK so that code like mine doesn’t proliferate and make it harder for you guys to control.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 1, 2019, 4:10pm UTC](https://forum.inductiveautomation.com/t/refactor-14335-ignition-8-equivalent-of-tagprop-interpolationmode/26183/8 "2019-07-01T16:10:18Z")

</div>

I’ll make a ticket, no reason (I can think of) those shouldn’t be available in the SDK.

---

<div class="post-metadata">

**Author:** ![BenKearney](https://avatars.discourse-cdn.com/v4/letter/b/b19c9b/32.png) [@BenKearney](https://forum.inductiveautomation.com/u/BenKearney)\
**Post date:** [June 13, 2020, 2:36pm UTC](https://forum.inductiveautomation.com/t/refactor-14335-ignition-8-equivalent-of-tagprop-interpolationmode/26183/9 "2020-06-13T14:36:08Z")

</div>

Was this ever resolved? I’ve need to create discrete float tags in my module, but can’t figure out how to change the historical deadband style to discrete using .set() on my TagConfiguration object.

I also need to get access to set the rest of these history properties in my module. I didn’t fully understand the discussion above, but it looks like the history options have been abstracted into another class. How can I create a custom set of these properties and assign them to a new tag?

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/735d8a0f1a4cc0b3970a517c9fdb5657c3a06865.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 15, 2020, 3:37pm UTC](https://forum.inductiveautomation.com/t/refactor-14335-ignition-8-equivalent-of-tagprop-interpolationmode/26183/10 "2020-06-15T15:37:37Z")

</div>

Add a dependency in your module to the `com.inductiveautomation.taghistorian` module, and you should be able to use `com.inductiveautomation.gateway.tags.history.actor.TagHistoryProps` directly in your code. When this was first posted, module dependencies didn’t allow for multiple parents.

---

<div class="post-metadata">

**Author:** ![BenKearney](https://avatars.discourse-cdn.com/v4/letter/b/b19c9b/32.png) [@BenKearney](https://forum.inductiveautomation.com/u/BenKearney)\
**Post date:** [June 15, 2020, 11:48pm UTC](https://forum.inductiveautomation.com/t/refactor-14335-ignition-8-equivalent-of-tagprop-interpolationmode/26183/11 "2020-06-15T23:48:17Z")

</div>

> [@paul-griffith](#):
>
> com.inductiveautomation.gateway.tags.history.actor.TagHistoryProps

Ah thanks! I was trying to import com.inductiveautomation.gateway.tags.history.actor.TagHistoryProps without knowing I needed the dependency. I'll give it a shot 👍
