g+
g+ Communities
Argonne National Laboratory

Experimental Physics and
Industrial Control System

2012  <20132014  Index 2012  <20132014 
<== Date ==> <== Thread ==>

Subject: RE: [EpicsQt-2] How to generate a QELog messages
From: Andrew Rhyder <Andrew.Rhyder@synchrotron.org.au>
To: Emmanuel Mayssat <emayssat@outlook.com>, "qti-talk@aps.anl.gov" <qti-talk@aps.anl.gov>
Date: Mon, 18 Mar 2013 12:19:41 +1100

Hi Emmanuel

 

<<< What is its primary purpose? (QELog widget) >>>

The (current) purpose of the QELog widget is to provide a way for other QE widgets to log messages for the user to see. QE widgets will log messages like failed to connect to a PV. The QELogin widget will log user level changes such as moving from 'user' to 'scientist'.

 

 

<<<  Can I create my custom log message (without programming)? >>>

How would you like to do this? From your own custom widgets? If so, the mechanism all QE widgets use for sending a message to QELog widgets is available to use within your own custom widgets.

The intention is that just dropping a QELog widget onto a form is all you need to do for that QELog widget to catch and list any messages from other QE widgets (or your own widgets using the QE message mechanism). By default the QELog widget catches messages from QE widgets in the same form, or from sub forms. Different (and potentially more complex) configurations can be set up by fiddling with the messageFormFilter and messageSourceFilter properties. The latest documentation includes a large section on logging using the QELog widget.

 

Go to http://sourceforge.net/projects/epicsqt/files/documentation/

And download QE_QEGuiAndUserInterfaceDesign.pdf

 

NOTE, the documentation on the QELog widget itself is incomplete, but starting on page 8 (20/2/2013 version) there is a good section called 'Logging' under 'Tips and Tricks' which explains how to use the QELog widget (with pictures!)

 

 

<<< Can I save the logged message in a file? >>>

The QELog widget has a 'Save' button which allows you to save the current messages to a file. Or do you mean automatically streaming messages to a file as they arrive?

 

 

<<< Can I create a log entry if a PV goes above a threshold? >>>

Not at the moment. This would be very easy to add if the threshold you are interested in is an PV limit. Currently most QE widgets act on a status change (for example, change colour if HIHI). I could easily include a standard property to optionally log status changes. Would that help you?

 

 

I hope all this helps.

Regards

Andrew

 

 

 

From: qti-talk-bounces@aps.anl.gov [mailto:qti-talk-bounces@aps.anl.gov] On Behalf Of Emmanuel Mayssat
Sent: Saturday, 16 March 2013 5:10 AM
To: qti-talk@aps.anl.gov
Subject: [EpicsQt-2] How to generate a QELog messages

 

I am looking at the excellent epicsqt framework.
Everyone on this list should really have a look at it!

I am looking at the QELog widget.
What is its primary purpose?
Can I create my custom log message (without programming)?
Can I save the logged message in a file?
(Ideally in my couchdb REST interface logbook !!)
Can I create a log entry if a PV goes above a threshold?

I am still going through the docs, but this framework is too good to not talk about ;-)

--
Emmanuel







SUPPLIERS: As of 1 January 2013, the Australian Synchrotron Company Ltd has changed its business name. However, the trading name will remain Australian Synchrotron.
Please address all quotations and invoices to: Synchrotron Light Source Australia Pty Ltd (SLSA), ABN: 18 159 468 256

References:
[EpicsQt-2] How to generate a QELog messages Emmanuel Mayssat

Navigate by Date:
Prev: [EpicsQt-2] How to generate a QELog messages Emmanuel Mayssat
Next: RE: How to generate a QELog messages? And misc Andrew C. Starritt
Index: 2012  <20132014 
Navigate by Thread:
Prev: [EpicsQt-2] How to generate a QELog messages Emmanuel Mayssat
Next: RE: How to generate a QELog messages? And misc Andrew C. Starritt
Index: 2012  <20132014 
ANJ, 17 Mar 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·