1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 <2013> 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 <2013> 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Relative time in XY graph |
From: | Bruce Hill <[email protected]> |
To: | [email protected] |
Date: | Fri, 17 May 2013 12:37:01 -0700 |
Hi Himanshu, The waveform PV has a single timestamp, which generally is the time when the array was last modified. When you display the waveform using EDM's xyGraph, you make the waveform be the Y PV. If the X PV is not used, xyGraph will plot one point for each value in your waveform array, and the X axis will just be the array index. One option would be for you to provide a 2nd array for the X PV and fill it with the time values for each value in your waveform. The best way I know how to create the time array would be with the aSub record, but maybe other EPICS user's may have other ways to do that. The xyGraph widget also has a Time option for the X Axis, but in my experience this only works for scalar PV's. With a scalar PV, each update of the PV value also updates the timestamp, and xyGraph can show those timestamps as either relative durations in seconds from the time the graph is opened, or as a time/date string. Hope this helps! - Bruce On 5/15/2013 1:58 AM, Himanshu Tyagi
wrote:
|