Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of TimeStampedProcessVariables #2213

Closed
shroffk opened this issue Apr 12, 2022 · 2 comments
Closed

Use of TimeStampedProcessVariables #2213

shroffk opened this issue Apr 12, 2022 · 2 comments

Comments

@shroffk
Copy link
Member

shroffk commented Apr 12, 2022

In the core data type along side the ProcessVariable there is another type TimeStampedProcessVariable this was intended for use where the selection would carry a pv name along with a point of time... a pv in a save set snapshot or a alarm log message or alarm leaf.

When opening other application it might be useful to open them with both the pv names and timestamps. The most immediate usecase is the databrowser... instead of opening it with a selected pv from the alarm log and the current time, it might be useful to open the databrowser around to the time of the alarm log message.

@kasemir
Copy link
Collaborator

kasemir commented Apr 12, 2022

What do you suggest for "around the time"?

Using saved point in time plus/minus the org.csstudio.trends.databrowser3/time_span setting?
Or have a dedicated preference for that time span?
Or change TimeStampedProcessVariable from having just a point in time to holding a start..end time range?

@shroffk
Copy link
Member Author

shroffk commented Apr 12, 2022

| Using saved point in time plus/minus the org.csstudio.trends.databrowser3/time_span setting?

I have used this

instance.getModel().setTimerange(
                    TimeRelativeInterval.of(start.get().minus(time_span.dividedBy(2)),
                                            end.get().plus(time_span.dividedBy(2))));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants