g+
g+ Communities
Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: RE: How to generate a QELog messages? And misc
From: "Andrew C. Starritt" <Andrew.Starritt@synchrotron.org.au>
To: "emmanuel_mayssat@lynceantech.com" <emmanuel_mayssat@lynceantech.com>, "qti-talk@aps.anl.gov" <qti-talk@aps.anl.gov>
Date: Mon, 18 Mar 2013 12:47:36 +1100
Hi Emmanuel,

> For the QEStripTool, can I plot PVs with different scale (that's the case
> with the standard striptool, the displayed scale is one for the pv you
> selected)

Not yet, but I do aim to add a means to scale the chart to a particular PV, either
its LOPR/HOPR range or the currently buffered/ploted data range of values.

It is also my intension to add the capability to allow each PV to be plotted with
different scale. The scaling would be a basic linear scaling (y = m.x + c).
This is very usefully when ploting items with vastly different ranges on the sme chart.
As with the chart range, this scaling will be able to be set manually, or
based on the LOPR/HOPR values of the PV, or based on the current set of buffered/ploted values.

> I see that 10+ PV can be plotted on the same QEStripTool.
> That's great, but most of the time I only have a couple.
> Is there a way to remove the empty pv name holders?

Again not yet, but do intend to include a means to do this.


Regards
--
Andrew Starritt | Principal Controls Engineer | Australian Synchrotron
p: (03) 8540 4164 | f: (03) 8540 4200
andrew.starritt@synchrotron.org.au | www.synchrotron.org.au
800 Blackburn Road, Clayton, Victoria 3168

> -----Original Message-----
> From: Andrew Rhyder
> Sent: Monday, 18 March 2013 12:07 PM
> To: emmanuel_mayssat@lynceantech.com
> Cc: Andrew C. Starritt
> Subject: RE: How to generate a QELog messages? And misc
>
> Hi Emmanuel
>
> <<< What is its primary purpose? >>>
> 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?
>
>
> <<<For the QEStripTool,...>
> I will forward your email to Andy Starritt who produced the
> QEStripChart for his comments on your questions regarding that widget.
>
>
> <<<Can I integrate QEForms in a standard Qt application?>>>
> Yes. All QE widgets can be used within your own application, either
> created programmatically, or in a standard .ui form.
> You don't need to place QE widgets within a QEForm widget but QEForm
> widgets do provide the following functionality you may find desirable:
> - Their contents is loaded at run time from a .ui file specified in the
> uifile property.
> - They have variableSubstitutions property which is used to pass macro
> substitutions down to all QE widgets in the form.
> - Because of their ability to manage macro substitutions, QEForms can
> be used as sub forms where the same form is used for multiple sub forms
> with different macro substitutions for each.
>
> A good example of the use of a QEForm in an application is the QEGui
> application (the main display application for the epicsqt framework,
> and included in the framework project source). It creates main windows
> and uses QEForm widgets to load the required .ui files at run time.
>
>
> <<< Are you familiar with ADT (array display tool)? >>>
> No. A quick look at it makes me think we already have some of the bits
> required for a similar tool. The QEPlot widget can present a set of
> EPICS waveform records. It is based on the QWT toolkit which provides
> most of the functionality I see while browsing the ADT reference manual
> ( log scales, markers, lines, bars, grid, max/min).
> Are you volunteering to write QEArrayDisplayTool?!! If so, I can put
> together the doco explaining how the framework can be used to produce
> new QE widgets.
>
>
>
> By the way, there is one recent change to the QEGui application (the
> epicsqt display manager) regarding all the widgets I have been talking
> about here (QELog, QEStripChart, QELogin) and one other (PVProperties).
> All these widgets were produced with the intention of users dropping
> them into user interfaces as required. They still work exactly like
> this, but recently we have added options to the QEGui 'File' menu which
> opens windows simply containing one of these widgets. It has proved
> very handy to bring up a strip chart window, a PV properties windows, a
> user login window, or a logging window as stand-alone functions as well
> as embedding them within our GUIs. (PVs can then be dragged onto them)
>
> I hope all this helps.
> Regards
> Andrew
>
>
>
>
> -----Original Message-----
> From: emmanuel_mayssat@lynceantech.com
> [mailto:emmanuel_mayssat@lynceantech.com]
> Sent: Saturday, 16 March 2013 11:34 AM
> To: Andrew Rhyder
> Cc: Emmanuel Mayssat
> Subject: How to generate a QELog messages? And misc
>
> 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?
>
> For the QEStripTool, can I plot PVs with different scale (that's the
> case
> with the standard striptool, the displayed scale is one for the pv you
> selected)
> I see that 10+ PV can be plotted on the same QEStripTool.
> That's great, but most of the time I only have a couple.
> Is there a way to remove the empty pv name holders?
>
> Can I integrate QEForms in a standard Qt application?
> I assume this should be no problem since the CA connection is build in
> the
> widget, right?
>
> Your framework is awesome!
>
> PS: Are you familiar with ADT (array display tool)?
> it is commonly used to plot the orbits and golden path.
> It is a widget that plots several Analog Inputs (positions) and connect
> them with line.
> is there a way to do that?
> I am still reading your doc.
>
> --
> 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


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


Navigate by Date:
Prev: RE: [EpicsQt-2] How to generate a QELog messages Andrew Rhyder
Next: EPICS QT 2.3 Zenon Szalata
Index: 2012  <20132014 
Navigate by Thread:
Prev: RE: [EpicsQt-2] How to generate a QELog messages Andrew Rhyder
Next: EPICS QT 2.3 Zenon Szalata
Index: 2012  <20132014 
ANJ, 18 Mar 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·