Text update widget with "history" #2305
Replies: 4 comments
-
Looks like a very specific request that would be quite some work to implement and result in a widget that's only good for that one user. Existing alternatives: Archive with data browser to display traces over time, and other archive-specific ways to query the data from scripts or web pages.
If user cannot type Alarm system. If the PV indicates significant problems, maybe it's a good alarm trigger, and the alarm history is then basically what you're looking for. As soon as the widget goes beyond simply displaying a PV but "does" something, like logging the received values to a file, or correlating the data from several PVs to align them on a timeline I'd move that logic out of the display and into some service. For example, an IOC can implement a 'bucket chain' type of records where you write to some 'input' record, which then copies the value to the next in a chain of say 10 records, with a parallel chain of records that indicate time stamp. |
Beta Was this translation helpful? Give feedback.
-
Not sure I agree with "...only good for that one user". We cannot know. As for your IOC example: how is it rendered? New-line separated string? |
Beta Was this translation helpful? Give feedback.
-
For each row in that screenshot, IOC has one record for the red dot indicator, the time stamp, and the message text. Just us having several variants of that, implemented in PLC, IOC database and/or sequencer logic, suggests to me that it'll be hard to put all that into one widget with options to configure the details, but you're of course free to try. |
Beta Was this translation helpful? Give feedback.
-
With the phoebus text update widget, that would actually be a reasonable approach because you can set the widget to be 'interactive', so user can scroll, mark/copy selected text etc. |
Beta Was this translation helpful? Give feedback.
-
I have a request from a user:
A TextUpdate like widget capable of showing recent values, in a similar way as command line behavior of camonitor. This I guess would then be a text area with a scroll bar. Or maybe one could consider an extension to the TextUpdate where a "line count" property would turn it into a text area if line count > 1.
I've already pointed to alternatives like using a script that would print updates to the error log, or using the Python console. But maybe there are other options besides a new/extended widget?
Beta Was this translation helpful? Give feedback.
All reactions