[Kst] [Bug 101825] New: event monitor: control log output

Nicolas Brisset nicolas.brisset at eurocopter.com
Fri Mar 18 17:35:14 CET 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=101825         
           Summary: event monitor: control log output
           Product: kst
           Version: unspecified
          Platform: unspecified
        OS/Version: Solaris
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: kst kde org
        ReportedBy: nicolas.brisset eurocopter com


Version:           1.1.0_devel (using KDE 3.3.1, compiled sources)
Compiler:          gcc version 3.4.1
OS:                SunOS (sun4u) release 5.8

It would be nice to have control over what gets logged (or sent as arguments to a script as asked for in bug #101823) when an event is triggered.

To give an example of something I would like to be able to do, imagine I have curves 1 through 5 plotted, corresponding to vectors VAR1 to VAR5 plotted against vector TIME. If I define an event as "VAR1>10.0", I would like to be able to log the *TIME* values corresponding to this event and possibly values of other variables as the event begins/ends. I don't know how to do this now as I have no control as to what is logged. Maybe providing a format string with one or more expressions in the same syntax as equations would be feasible ? 
There is another related thing I am unsure about: is it possible to have access to the current sample number when the event triggers (it seems to be logged by the elog extension) and to access vector elements in the current parser ? That would be required to log e.g. the value of TIME when "VAR1>10.0" triggers. In the end, for this example I imagine a format string like:
"Event: VAR1 above limit ! VAR1 = {[VAR1( )]}, TIME = {[TIME( )]}, deviation = {[VAR1( )] - [VAR1-Mean]}"

The syntax can be different and there may be a different way to do this, but I hope you get the idea...


More information about the Kst mailing list