Difference: AtfBpmNewLogBook_20111017_ArchiveLoad (1 vs. 4)

Revision 416 Apr 2012 - webmanip_5foldt2nt_2esh

Line: 1 to 1
 
META TOPICPARENT name="AtfBpmNewLogBook"

Archive Loader

Line: 40 to 40
 -->

Changed:
<
<
META FILEATTACHMENT attachment="archivetplot.png" attr="h" comment="" date="1318943324" name="archivetplot.png" path="archivetplot.png" size="65456" stream="archivetplot.png" user="Public.FrancisCullinan" version="1"
META FILEATTACHMENT attachment="archivesplot.png" attr="h" comment="" date="1318943387" name="archivesplot.png" path="archivesplot.png" size="57525" stream="archivesplot.png" user="Public.FrancisCullinan" version="1"
>
>
META FILEATTACHMENT attachment="archivetplot.png" attr="h" comment="" date="1318943324" name="archivetplot.png" path="archivetplot.png" size="65456" stream="archivetplot.png" user="Public.FrankieCullinan" version="1"
META FILEATTACHMENT attachment="archivesplot.png" attr="h" comment="" date="1318943387" name="archivesplot.png" path="archivesplot.png" size="57525" stream="archivesplot.png" user="Public.FrankieCullinan" version="1"

Revision 319 Oct 2011 - FrancisCullinan

Line: 1 to 1
 
META TOPICPARENT name="AtfBpmNewLogBook"

Archive Loader

Line: 27 to 27
 
  • ArchiveLoad.spacePlot([list of PVs]): Plots a list of process variables against BPM number
    archivesplot.png
Changed:
<
<
Next: data cuts
>
>

Cutting and Smoothing

The class includes a 'cutData' function that will cut pulses from all stored variables according to a list of conditions and a 'smooth' function that will smooth all stored variables according to a given window (default is moving average (flat window)).

 

Revision 218 Oct 2011 - FrancisCullinan

Line: 1 to 1
 
META TOPICPARENT name="AtfBpmNewLogBook"

Archive Loader

Changed:
<
<
Class used to load archived Bpm data
>
>
Class used to load archived Bpm data initialised using
 
Changed:
<
<
class ArchiveLoad(filename='')
>
>
ArchiveLoad(filename='')
  If the filename is left empty, the most recent archived file (that is not the current one) will be loaded.
Changed:
<
<
When a process variable is loaded from the archive, it will be stored as a class variable in the form 'Archiver_fjc.ArchiveLoad.[PV]_[bpmname]' for the case of a single BPM or 'Archiver_fjc.ArchiveLoad.[PV]' for the case of all BPMs. Process variables can be loaded using the following class methods:
>
>
Process variables can be loaded using the following class methods:
 
Changed:
<
<
  • ArchiveLoad.get(bpmname,var): loads a single variable for one BPM
  • ArchiveLoad.getAll(bpmname,var): loads a single variable for all BPMs
  • ArchiveLoad.get(bpmname,var): loads all variables listed in the global variable ArchiveLoad.pvals for a single BPM
  • ArchiveLoad.getAllVars(bpmname): loads all variables listed in the global variable ArchiveLoad.pvals for all BPM
>
>

'PV' is the name of a process variable (eg. cbpm:xi, cbpm:rms) and 'bpmname' is the name of a BPM (eq. QD10X, QM16FF).

When a process variable is loaded for all BPMs it will be stored as a class variable in the form 'Archiver_fjc.ArchiveLoad.[pvname]' for the case of all BPMs where 'pvname' is the part of the process variable name that would come after 'cbpm:'. In the case of a single BPM, it will be stored in the form 'Archiver_fjc.ArchiveLoad.[pvname]_[bpmname]'. To get 'pvname' from the full name of the process variable, a static method ArchiveLoad.getName(PV) exists.

 
Added:
>
>

Plotting

 
Added:
>
>
The class also includes plotting methods:
 
Added:
>
>
  • ArchiveLoad.timePlot([list of PVs]): Plots a list of process variables against time on the same axes
    archivetplot.png
  • ArchiveLoad.spacePlot([list of PVs]): Plots a list of process variables against BPM number
    archivesplot.png
 
Added:
>
>
Next: data cuts

 
Added:
>
>
META FILEATTACHMENT attachment="archivetplot.png" attr="h" comment="" date="1318943324" name="archivetplot.png" path="archivetplot.png" size="65456" stream="archivetplot.png" user="Public.FrancisCullinan" version="1"
META FILEATTACHMENT attachment="archivesplot.png" attr="h" comment="" date="1318943387" name="archivesplot.png" path="archivesplot.png" size="57525" stream="archivesplot.png" user="Public.FrancisCullinan" version="1"

Revision 118 Oct 2011 - FrancisCullinan

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="AtfBpmNewLogBook"

Archive Loader

Class used to load archived Bpm data

class Archiver_fjc.ArchiveLoad(filename='')

If the filename is left empty, the most recent archived file (that is not the current one) will be loaded.

When a process variable is loaded from the archive, it will be stored as a class variable in the form 'Archiver_fjc.ArchiveLoad.[PV]_[bpmname]' for the case of a single BPM or 'Archiver_fjc.ArchiveLoad.[PV]' for the case of all BPMs. Process variables can be loaded using the following class methods:

  • Archiver_fjc.ArchiveLoad.get(bpmname,var): loads a single variable for one BPM
  • Archiver_fjc.ArchiveLoad.getAll(bpmname,var): loads a single variable for all BPMs
  • Archiver_fjc.ArchiveLoad.get(bpmname,var): loads all variables listed in the global variable Archiver_fjc.ArchiveLoad.pvals for a single BPM
  • Archiver_fjc.ArchiveLoad.getAllVars(bpmname): loads all variables listed in the global variable Archiver_fjc.ArchiveLoad.pvals for all BPM

<--

Settings just to customise this page

-->
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding RHUL Physics Department TWiki? Send feedback