# Trends with Memory Tags

**URL:** <https://forum.inductiveautomation.com/t/trends-with-memory-tags/14969>\
**Category:** Ignition\
**Created:** [August 2, 2017, 8:33pm UTC](https://forum.inductiveautomation.com/t/trends-with-memory-tags/14969 "2017-08-02T20:33:21Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![richard040693](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@richard040693](https://forum.inductiveautomation.com/u/richard040693)\
**Post date:** [August 2, 2017, 8:33pm UTC](https://forum.inductiveautomation.com/t/trends-with-memory-tags/14969/1 "2017-08-02T20:33:21Z")

</div>

I need to make a Realtime Trend with a memory tag. I don´t have date base to save data, so I only have the memory tags. The Easy Chart needs HistoricalTags, so I can´t use it. I don´t know how do it.

---

<div class="post-metadata">

**Author:** ![zacslade](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacslade/32/3587_2.png) [@zacslade](https://forum.inductiveautomation.com/u/zacslade)\
**Post date:** [August 3, 2017, 1:27am UTC](https://forum.inductiveautomation.com/t/trends-with-memory-tags/14969/2 "2017-08-03T01:27:17Z")

</div>

In the property editor, make sure the filter (funnel icon with a letter next to it) is set to “All”. Then, find the “Chart Mode” property in the “Behavior” section of the Easy Chart properties. Changing chart mode to “Realtime” will enable it to show realtime data.

---

<div class="post-metadata">

**Author:** ![richard040693](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@richard040693](https://forum.inductiveautomation.com/u/richard040693)\
**Post date:** [August 3, 2017, 3:12pm UTC](https://forum.inductiveautomation.com/t/trends-with-memory-tags/14969/3 "2017-08-03T15:12:24Z")

</div>

Thanks! I already did, but I can´t view nothing. The Easy Chart doesn´t draw the tag.

---

<div class="post-metadata">

**Author:** ![zacslade](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacslade/32/3587_2.png) [@zacslade](https://forum.inductiveautomation.com/u/zacslade)\
**Post date:** [August 3, 2017, 3:25pm UTC](https://forum.inductiveautomation.com/t/trends-with-memory-tags/14969/4 "2017-08-03T15:25:42Z")

</div>

That’s weird. Did you make sure the date and the axis min/max were set to good values? You’ll probably want to bind the end-date to the current time (if you didn’t already)…

---

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://forum.inductiveautomation.com/u/chi)\
**Post date:** [August 4, 2017, 7:57pm UTC](https://forum.inductiveautomation.com/t/trends-with-memory-tags/14969/5 "2017-08-04T19:57:45Z")

</div>

There is no simple way to store tag history without a database, and to show a trend you need a history. Have you seen this post: [http://forum.inductiveautomation.com/t/install-a-sql-database-system-in-ignition-in-30-seconds/14858](http://forum.inductiveautomation.com/t/install-a-sql-database-system-in-ignition-in-30-seconds/14858)?  
Might be an easy way to show your trend.

---

<div class="post-metadata">

**Author:** ![jaguirre](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@jaguirre](https://forum.inductiveautomation.com/u/jaguirre)\
**Post date:** [August 7, 2017, 10:14pm UTC](https://forum.inductiveautomation.com/t/trends-with-memory-tags/14969/6 "2017-08-07T22:14:51Z")

</div>

use a litle database, (like mysql, or similar) just the necesary to create all your charts.

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [August 7, 2017, 11:17pm UTC](https://forum.inductiveautomation.com/t/trends-with-memory-tags/14969/7 "2017-08-07T23:17:38Z")

</div>

It would take a fair amount of work to whip something up (though I feel like its been done a few times before), but conceivably you could use scripting to build up a dataset in memory, and then feed that to a chart (note: the classic chart, which operates on standard datasets, would probably be a better choice).

You could probably create a template like:

- Internal property per tag, bound to the tag value
- Property change scripts that look at those properties and then append data to the dataset on a classic chart
- Some logic to limit it to a certain number of rows or time so you don’t end up running out of client memory.

Good luck.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [August 8, 2017, 6:18pm UTC](https://forum.inductiveautomation.com/t/trends-with-memory-tags/14969/8 "2017-08-08T18:18:19Z")

</div>

I you just want to generate a time-series dataset in memory, look at the [recorder()](https://www.automation-pros.com/simaids/doc/expression.recorder.html) function in the [Simulation Aids module](https://www.automation-pros.com/modulesales.html).

---

<div class="post-metadata">

**Author:** ![MP-SysEng](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mp-syseng/32/3828_2.png) [@MP-SysEng](https://forum.inductiveautomation.com/u/MP-SysEng)\
**Post date:** [August 15, 2017, 1:28pm UTC](https://forum.inductiveautomation.com/t/trends-with-memory-tags/14969/9 "2017-08-15T13:28:20Z")

</div>

I agree with chi - was also going to recommend looking at the free database module which comes with a free database from @nmudge. Quick video overview(s) and if it works in your environment then you have all you need 😁

---

<div class="post-metadata">

**Author:** ![pdixon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pdixon/32/6899_2.png) [@pdixon](https://forum.inductiveautomation.com/u/pdixon)\
**Post date:** [January 31, 2019, 5:21am UTC](https://forum.inductiveautomation.com/t/trends-with-memory-tags/14969/10 "2019-01-31T05:21:12Z")

</div>

In effect, what this means is that Ignition does not have realtime trending? You can only trend historized data? What is the purpose of the Chart Mode ‘Realtime’? Why does it let you create a realtime trend and drag a tag onto it if it doesn’t work?

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [January 31, 2019, 6:33am UTC](https://forum.inductiveautomation.com/t/trends-with-memory-tags/14969/11 "2019-01-31T06:33:50Z")

</div>

Realtime mode on the chart just means it shows a moving window ending now. You can set things up to drag tags onto charts, but you need to store history for the tags before they’ll work. @pturmel’s and @chi’s suggestions above are a couple options.

I have done a script to record a few values in a dataset (and trim it when data gets too old) before as @Colby.Clegg mentions above. It’s not hard to do, and gives a third option that’s easy to use in the classic chart (_not_ EasyChart) if you don’t want to use any third-party modules, Historian, or SQL Connector.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 31, 2019, 12:34pm UTC](https://forum.inductiveautomation.com/t/trends-with-memory-tags/14969/12 "2019-01-31T12:34:03Z")

</div>

If you don’t want to record to the database, consider the [recorder()](https://www.automation-pros.com/simaids/doc/expression.recorder.html) expression function in [Simulation Aids](https://inductiveautomation.com/moduleshowcase/module/automation-professionals-llc-simulation-aids).

---

<div class="post-metadata">

**Author:** ![Arnaud\_Declerck](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/arnaud_declerck/32/44872_2.png) [@Arnaud\_Declerck](https://forum.inductiveautomation.com/u/Arnaud_Declerck)\
**Post date:** [February 21, 2023, 2:31pm UTC](https://forum.inductiveautomation.com/t/trends-with-memory-tags/14969/13 "2023-02-21T14:31:19Z")

</div>

Hi @pturmel,

I've download your simulation project but i cannot find an example of that recorder function.  
Could you maybe show me where to find it.

Is this function also compatible with perspective ?

Regards
