Hello! I've been using Ignition for a few weeks, and I am still learning. I have an HMI with a main window that contains sensors (UDT). When you click on each sensor, a popup opens displaying the sensor's information, such status, alarms, etc.
The sensors get their data from a database, and I want to configure the sensors to record history using the database. At the same time, I want to include a dynamic EasyChart in the popup that displays the sensor's value. For example, if I click on sensor 1, the popup will show the historical data of that sensor.
I created transaction groups, but I can't add all sensors in one transaction group, so I created one transaction group for each sensor, the problem is that I can't do it dynamically.
This is probably a job for the Tag Historian, so all the database operations are standardized. Vision's EasyChart tagPens
are relatively easy to configure (with a cell update binding) to display tag history for a dynamically chosen pen.
I tried binding the Tag Pens in the chart configuration, but when I bind a tag history to it, I have the error:
ignition Error getting component property Easy Chart.tagPens Message: Column 'name' doesn't exist in this dataset.
I don't have a lot of knowledge on datasets. Do I create a column on the dataset? And how?
Thanks for the help btw!!!
The simplest path would be to define one historian pen on the EasyChart the usual way. Name, color, units, whatever. Then, use a cell binding to change the tag path of that pen on the fly. (Cell bindings cannot create rows or columns in datasets, only update specific cells.)