EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Waveform Records
From: "Chestnut, Ronald P." <[email protected]>
To: <[email protected]>
Cc: David Dudley <[email protected]>
Date: Thu, 4 Sep 2008 14:07:42 -0700
All the display managers, the older DM and MEDM (or the related DM2K) as well as EDM have widgets for displaying waveforms. With EDM it is the X-Y Graph, which can plot multiple traces. It connects to a SUBARRY, an ARRAY, or a COMPRESS record as an array input.

The below snippet is from an EDM file (.edl):

# (X-Y Graph)
object xyGraphClass
beginObjectProperties
major 4
minor 3
release 0
# Geometry
x 0
y 15
w 1235
h 740
# Appearance
graphTitle "Luminosity"
fgColor index 2
bgColor index 14
gridColor index 12
font "helvetica-medium-r-24.0"
# Operating Modes
plotMode "plotLastNPts"
nPts 1
updateTimerMs 1000
resetMode "ifZero"
# X axis properties
showXAxis
xAxisSrc "fromUser"
xMin -10
xMax 0
xAxisTimeFormat "dateTime"
xLabelIntervals 10
xMinorsPerMajor 1
xShowLabelGrid
xShowMajorGrid
# Y axis properties
showYAxis
yAxisSrc "AutoScale"
yMin 0.4
yMax 0.5
yLabelIntervals 10
yMajorsPerLabel 1
yMinorsPerMajor 1
yShowLabelGrid
yAxisPrecision 4
# Y2 axis properties
y2AxisSrc "fromUser"
y2Min 0.4
y2Max 0.5
# Trace Properties
numTraces 1
xPv {
  0 "PB60:LUM:10MIN"
}
yPv {
  0 "PB60:LUM:COMP"
}
plotUpdateMode {
  0 "y"
}
plotColor {
  0 index 35
}
endObjectProperties


Hope this answers a remaining question of yours.

Ron Chestnut

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Andrew Johnson
Sent: Thursday, September 04, 2008 12:56 PM
To: [email protected]
Cc: David Dudley
Subject: Re: Waveform Records

On Thursday 04 September 2008 13:35:23 Dalesio, Leo wrote:
> connect an AI record to a circular buffer record (or maybe this 
> functionality was absorbed into another record) not sure.

That record type is the "compress" record, which reads values in through its INP field and stores them in an array (accessible as its VAL field) of NSAM doubles.  You may have to set ALG to "Circular Buffer".  There's a compress record in the makeBaseApp example template that you could play with.

More detail is on the Wiki here (use the 3-13 version since the 3-14 page has some missing images):
  http://www.aps.anl.gov/epics/wiki/index.php/RRM_3-13_Compression

> you can also hook an AI into a histogram record if you are looking for 
> outlier instances.
>
> I am pretty sure that medm and edm view arrays. don't recall how.

EDM should have a graph widget that you can point at the VAL field of a compress record to plot the stored history, or at a waveform record if you extend your device support to read the whole array in from the PLC.  You could also install StripTool and do the data collection on a workstation, but then you have to leave it running continuously or have it plugged into a data archiver to see historical information.

HTH,

- Andrew
-- 
Talk is cheap. Show me the code. -- Linus Torvalds


References:
Waveform Records David Dudley
RE: Waveform Records David Dudley
RE: Waveform Records Dalesio, Leo
Re: Waveform Records Andrew Johnson

Navigate by Date:
Prev: Re: sseq link problem on Linux Andrew Johnson
Next: RE: sseq link problem on Linux Shepherd, EL (Emma)
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Waveform Records Andrew Johnson
Next: RE: Waveform Records Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·