-
Notifications
You must be signed in to change notification settings - Fork 95
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
Add a widget to display the timestamp of a PV #3235
Comments
@shroffk How about a formula function to support for example
It would turn the timestamp of a VType into a string like It could support an optional second formatting parameter:
Ideally, the formatting uses some new syntax that's different from anything anybody has ever seen before. |
The boring option would have the advantage of expanding the EPICS user base from just the cool kids to the general nerd population. |
lol...This is depressingly funny. However, we have two options... do we use the formatters used in Phoebus. or strftime I am leaning towards just using the Phoebus ones since the are used in other formulas too... like the archiver datasource ( aa:// ) |
Sadly, Googlefight is nothing more than a wikipedia entry, https://en.wikipedia.org/wiki/Googlefight Still, my gut feeling suggests that python is more popular than EPICS, so that would certainly find a larger audience. I don't mean to say that the popular vote is necessarily the best, but going with the masses it is obviously an easy choice. |
.. and python has But yes, the TImestmapFormats are nice as well. |
Currently, you can give any format that DateTimeFormatter accepts |
Issue #3235 a formula to extract and format timestamp from pv values
Handled by #3239, using Text Update widget with
|
Some users at ISIS have requested the ability to have the timestamp of a PV displayed on a Phoebus screen.
This could be useful to for screens displaying the latest data from the scan of an invasive diagnostic monitor. The user will imediately see date/time of the last scan without having to hover their mouse over an indicator or another work around.
Current ways to acheive this:
pva://example:pv/timeStamp/secondsPastEpoch
, format it, then write it to aloc://
PV. This adds the overhead of creating and running scripts and adds complexity.A native widget would be much simpler for users and creators of displays. It would also make it possible to add a preference for the timestamp format in the Phoebus preferences making all timestamps consistent and more readable.
The text was updated successfully, but these errors were encountered: