-
Notifications
You must be signed in to change notification settings - Fork 95
Description
Trend displays shall be capable of showing historical data. And today only the BOY Data Browser widget is able to do that, not the XY Graph widget.
But we have a use case that requires to extend the XY Graph widget.We are designing faceplates for our main components - valves, pumps, electrical breakers... A faceplate is typically a tab container with a tab for monitors, a tab for trends and a tab for controls. A macro is used to make it configurable and reusable for different components/PV names. That is why we plan to use the XY Graph widget in the trends tab as we can configure the PV names with the macro. Defining a plt file for each valve, pump or breaker and use the macro to define the plt file name will be too much work. That is why we would like to extend the XY Graph to historic data.
A new “behaviour” property could be added in order to specify the time span on a XY Graph widget:
Time Span (time_span): time span in seconds for historical data.
When no time_span value is found in the OPI, time_span = 0 is the default in
order to open existing OPI files without changing previous behaviour - i.e. no historic data plotted.
Another new “behaviour” properties need to be added in order to specify the data
sources:
Use Default plt Data Sources (plt_data_sources): if yes, the URL of the
data sources are the ones defined for the data browser ordered by KEY.
If no, a new entry field is shown in each Trace properties to specify the URL of
the data source:
Archive Data Source (archive_data_source): URL of the data source
The idea is to reuse the plugin org.csstudio.archive.reader to access archived data in general as it is done in the data browser.