To achieve functionality similar to Process Explorer, the Trend Configurator control can be used:
This control is not listed in the toolbox by default, but can be added to the toolbox:
And then select the TrendConfigurator control:
The control will now appear under the “Data” section of the Toolbox:
Using the Trend Configurator:
The Trend Configurator can be used either directly with the MAPS database, or with a custom database.
In this article we will discuss how to use the Trend Configurator with a custom database.
Step 1 – Set up the database:
A database is required to identify the tags which will be available to the Trend Configurator. This database require only one table. The structure of the table is very simple and contains only two columns: ID and TagName
This database will provide us with the list of tags we are interested in.
[This database can be in Microsoft SQL Server, Oracle, Access etc.]
Once the database have been created, we need to create an OleDB datasource connection:
Step 2 – Create the Graphic Form
Create a graphic form and place a Linechart on the form:
Make sure there are no existing pens configured on the trend. If there are, first remove them.
After the series have been removed, the dialog should look like this (then just click “Finish”):
Place the TrendConfigurator control on the Graphic Form and configure it:
In this article we will not be configuring it via MAPS, so we choose “Custom”, and select the relevant Adroit data source and also select the associated Linechart.
Step 3 – Link the database to the TrendConfigurator control
Lastly we need to link the database to provide the names of the tags within the TrendConfigurator control. For this we can simply drag and drop the table on to the “Penlist” property of the TrendConfigurator Control. :
If the “Penlist” property is not available, select “Customize” and choose the “Penlist” property. Another dialog will appear, click “Finish”.
Step 4 - Putting it all together
The last step is to save the form and run it! Remember to click on “Refresh” to load a set or new configuration.