Adding the trend viewer

In order to view the progression of trended values it is necessary to create a new graphic panel first (the trend viewer can also be inserted into existing graphic panel, but we will not do it now). Also do not create the basic object of the PmaPanel type that must be configured fully manually. Use the preconfiguration designed for viewing trends instead:

In the editor of Pma objects, in the "/BoilerPlant/Boiler1" object create a new object: "/ Panels (PmaPanel) / Trends and graphs / Trend viewer".

After selecting this item the preconfiguration menu is displayed. Usually it is not necessary to modify anything here, just use the preset parameters. Check the "Button for Exporting the data into the CSV file" configurator and then in the "Path to the PmaTrendGroup object" configurator select the Trends object in the tree of Pma objects. You have just created a graphic panel that allows displaying the trended data in your application.

Trend viewer setting

After starting the application press the button named "Panels" located in the upper toolbar. In the open window select "Panel Trends View" and confirm. The trend viewer window opens but does not display any values at the moment because you have not defined which values are to be displayed in the viewer.

Viewer setting in the runtime mode:
This setting can be done in the development environment and in the running application (in the runtime mode). We will try the second option now:

Confirm the modifications by the "OK" button.

You have just configured the trend viewer in order to display the progression of the variable – "Temperature of boiler no. 1". You can use similar procedure in order to display the progression of other variables. At this moment you can add the "Power" variable.

After the variable is selected its settings are taken from the trend server. If you completed the parameter configuration of the variable in the development environment correctly (Displayed name, Minimum, Maximum, Unit, etc.), then it is not necessary to do it here again. Confirm the creation of a new trend. Follow the same procedure also for the "Power" variable. At this moment it would be necessary to complete this viewer configuration (variable selection) each time the trend viewer opens, therefore in the last step you will learn how to save your settings:

Press the setup button again and select the option "Save the configuration group". In the following setup window enter detailed setup description and in the field "Configuration name" enter the file name of the setup file. After confirmation the current setup of the trend viewer is saved into the defined file. Once the trend viewer panel opens, you can easily load the custom preset by presing the setup button and selecting "Load the configuration group", where you can select the desired trend viewer custom setup.

Viewer setting in the development environment:
At this situation, it would be necessary to load the trend custom setup manually each time the trend viewer is opened. In order to bypass this step it is possible to configure the trend viewer directly in the development environment, so the trend viewer opens each time with the desired setup:

Confirm all changes by pressing the button .

After this setup procedure the trend viewer always opens and displays the those values that were selected in trend viewer setup in the in the development environment. The user of the application can still load another trend viewer custom setup profile or configure and save the trend viewer differently.
PROMOTIC 9.0.23 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.