Tags:
create new tag
view all tags

Archive Loader

Class used to load archived Bpm data initialised using

Archiver_fjc.ArchiveLoad(filename='')

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

Process variables can be loaded using the following class methods:

  • Archiver_fjc.ArchiveLoad.get(PV): Loads a process variable
  • Archiver_fjc.ArchiveLoad.getVars(bpmname): loads all variables listed in the global variable Archiver_fjc.ArchiveLoad.pvals for a single BPM
  • Archiver_fjc.ArchiveLoad.getAllVars(): loads all variables listed in the global variable Archiver_fjc.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 Archiver_fjc.ArchiveLoad.getName(PV) exists.

Plotting

The class also includes plotting methods:

  • Archiver_fjc.ArchiveLoad.timePlot([list of PVs]): Plots a list of process variables against time on the same axes
    archivetplot.png
  • Archiver_fjc.ArchiveLoad.spacePlot([list of PVs]): Plots a list of process variables against BPM number
    archivesplot.png

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)).

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions

Physics WebpagesRHUL WebpagesCampus Connect • Royal Holloway, University of London, Egham, Surrey TW20 0EX; Tel/Fax +44 (0)1784 434455/437520

Topic revision: r3 - 19 Oct 2011 - FrankieCullinan

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 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