Printing the trend

This is the main technical forum for discussing problems that were encountered by users while developing PROMOTIC applications, and their possible solutions.

Printing the trend

Postby minder » Mon 19. Aug 2019 14:18:06

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...
minder
 
Posts: 6
Joined: Tue 13. Feb 2018 20:35:53

Re: Printing the trend

Postby Tomáš Bräuer » Thu 22. Aug 2019 8:24:16

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.
Tomáš Bräuer
Administrátor
 
Posts: 153
Joined: Thu 13. Dec 2012 9:13:13

Re: Printing the trend

Postby minder » Mon 26. Aug 2019 19:14:32

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?
Attachments
panel_20190815_21 29 33.png
panel_20190815_21 29 33.png (48.1 KiB) Viewed 10406 times
panel_20190826_20 55 11.png
panel_20190826_20 55 11.png (41.67 KiB) Viewed 10406 times
minder
 
Posts: 6
Joined: Tue 13. Feb 2018 20:35:53


Return to I don't know how to...

Who is online

Users browsing this forum: No registered users and 1 guest

cron