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

Hello, I have existing code that looks like this:


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

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

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:

public static final Property<DeadbandMode> HistoricalDeadbandMode = new BasicProperty<>(

OK thanks Kevin, I’ll take a look

@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.

The LegacyTagPropUpgrader specifically upgrades the InterpolationMode prop into historicalDeadbandStyle:

            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.

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

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

@PGriffith, 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.

1 Like

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

1 Like

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?



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.

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 :+1: