Page 1 of 1

Printing the trend

PostPosted: Mon 19. Aug 2019 14:18:06
by minder
Hello,

I did the panel with three trends: temperature, pressure and weight. Also I did automatic printing of this panel to png image when the temperature reaches 130°C and passes 25min. Everything works fine while the panel is open, when the panel is closed, it prints with empty trends. Is it possible to solve this situation? Customer wants automatic printing of trends regardless of the panel is open or not...

Re: Printing the trend

PostPosted: Thu 22. Aug 2019 8:24:16
by Tomáš Bräuer
Hello,
not sure what is the cause this behavior. You haven't mention version of Promotic.

1) If you have all panels closed, then you open panel with your 3 trends, is it empty or full of values? Does it mean that all the displayed data are pemanent somewhere else and then only displayed with the panel? Or the trended data are kept only in trend panel?
If the data are in the panel displayed imediatelly after every panel opening, the it is really problem with printing.
If you have to wait 25 minuts until the data are trended in the panel itself, then it is problem with project logic.

2) If the problem is, that the data are displayed with a little delay (eg 2s), then it will be necessary to implement some sort of delay between opening and printing.

3) If the trend are trended in application (not in panel) are they local or remote? Because remote trends (accessible via http address) suffer from delaying between request for data and obtaining remote data), the process is then asynchronous. The delay before printing would have to be applied.

Re: Printing the trend

PostPosted: Mon 26. Aug 2019 19:14:32
by minder
Hello,

the scada is existing and it made on version 8.3.26.

Usually customer is watching two main tecnological panels (not 3 trends) and they wants to print automaticaly unopened panel (3 trends). So I simply plased in timer object command: pMe.Pm("../Trends_3").Print(0, q). After printing, there is no data in trend viewers, all other numbers appears correctly. You can see the rezult in "panel_20190826_20 55 11.png"
When I open the trend panel, the trend data appears with small delay but this is not a problem. For trending I used standard object PmTrend. After printing, when the panel (3 trends) is open, trend viewers appears with data. You can see the rezult in "panel_20190815_21 29 33.png".

Maybe the problem is that the data is not loaded from storage to trend viewer when the panel is closed? Is it possible to load data by using some script in timer object?