Frame Library (Fr)
User's Manual
VIR-MAN-LAP-5400-103
Version 6.09
October 01, 2003


Summary:

Introduction
A quick tour of the Library: The examples
The Frame Utilities: FrCopy, FrDump and FrCheck
Reference Part
 
Library control FrAdcData FrSimData
Frame Handling FrDetector FrSimEvent
Input File: FrFileI FrEvent FrStatData
Output File: FrFileO FrHistory FrSummary
File checksum FrMsg FrTable
Error Handling FrProcData FrVect
FrSerData
The Matlab interface
The ROOT interface
The Octave interface
The Frame Library Installation
Library Changes

Introduction

The C structures used by The Frame Library


A quick tour of the Library: the examples

Many examples are provided with the frame library in the directory src. They have been designed to test the various parts of the library and are good starting points for a new program. The Files are:


The Frame Utilities: FrCopy, FrDump and FrCheck

To copy a (set of) frame(s): FrCopy

To dump frames: FrDump

To check a  frame file: FrCheck


Reference Part

 
Library control FrAdcData FrSimEvent
Frame Handling FrDetector FrStatData
Input File: FrFileI FrHistory FrSummary
Output File: FrFileO FrMsg FrTable
File checksum FrProcData FrEvent
Error Handling FrSerData FrVect
FrSimData

Library control

The Frame library do not need any initialization. However, you can change some of the default parameters using the following function or you can access to some information.

FrLibIni

FrLibSetLvl

FrLibVersion

FrLibVersionF

Frame Handling

 
FrameCompress, FrameMerge FrameReshape
FrameCopy, FrameRead, FrameTagXXX,
FrameDump, FrameReadN, FrameUntagXXX,
FrameDumpToBuf FrameReadRecycle FrameWrite
FrameExpand, FrameReadT FrameWriteToBuf
FrameFree, FrameReadTAdc, FrameRemoveUntaggedData
FrameGetV FrameReadFromBuf Back to summary

FrameCompress

FrameCopy

FrameDump

FrameDumpToBuf

FrameExpand

FrameFree

FrameGetV

FrameMerge

FrameNew

FrameRead

FrameReadN

FrameReadRecycle

FrameReadT

FrameReadTAdc, FrameReadTProc, FrameReadTSer, FrameReadTSim

FrameReadFromBuf

FrameReshapeNew, Add, End

  • Remark: The copy utility is a convenient way to change the frame size.
  • Example: See the file exampleReshape.c
  • FrameTagXXX with XXX=Adc, Ser, Sim, Sum, Proc, Trig

    void    FrameTag     (FrameH *frame, char *tag);
    void    FrameTagAdc  (FrameH *frame, char *tag);
    void    FrameTagProc (FrameH *frame, char *tag);
    void    FrameTagSer  (FrameH *frame, char *tag);
    void    FrameTagSim  (FrameH *frame, char *tag);
    void    FrameTagSum  (FrameH *frame, char *tag);
    void    FrameTagTrig (FrameH *frame, char *tag);
    void FrameTagAdc(myframe, "Lr* SaDb2")
    will keep from the frame myframe the SaDb2 ADC and all ADC with a name starting with Lr.
  • The function FrameTag call all the other function. It performed a 'global tag'
  • Remarks:
  • FrameUntagXXX with XXX=Adc, Ser, Sim, Sum, Proc, Trig

    FrameRemoveUntaggedData

    FrameWrite

    FrameWriteToBuf


    FrAdcData:  ADC's data manipulation

    FrAdcDataDecimate FrAdcDataDump FrAdcDataFind FrAdcDataFree FrAdcDataGetV FrAdcDataNew and FrAdcDataNewF FrAdcDataReadT FrAdcDataSetDataValid, ..SetFShift, ...SetTOffset


    FrDetector

  • void        FrDetectorDump (FrDetector *detector, FILE *fp, int debugLvl); Dump a detector structure.
  • FrDetector *FrDetectorNew (char *name); Allocate a detector structure
  • void        FrDetectorFree (FrDetector *detector); Free a detector structure and associated data.

  • FrEvent


    Input File: FrFileI

    FrFileIDump

    FrFileIEnd: close a input file

    FrFileIGetV:

    FrFileIGetVAdc, FrFileIGetSim, FrFileIGetProc:

    FrFileIGetXXXNames:

    FrFileIGetFrameInfo:

    FrFileIGetEventInfo and SimEventInfo:

    FrFileOPutV

    From Version 6.06 to Version 6.07 (May 24, 2003)

    Thanks to Bruce Allen, Fabrice Beauville, Frederique Marion, Gabriele Vedovato and Didier Verkindt for suggestions, finding and reporting problems and bugs. Most files written with version 3.40 and higher can be read with version 6.07

    From Version 6.07 to Version 6.08 (August 28, 2003)

    Thanks to Bruce, Allen, Marie-Anne Bizouard, Jolien Creighton, Vladimir Dergachev, Sam Finn, Gianluca Maria Guidi, Alain Masserot,  Andre Merzky, Peter Shawhan, Andrea Vicere for suggestions, finding and reporting problems and bugs. Most files written with version 3.40 and higher can be read with version 6.08

    From Version 6.08 to Version 6.09 (October 01, 2003)

    Thanks to Marie-Anne Bizouard, Frederique Marion and Eric Chassande-Mottin for suggestions, finding and reporting problems and bugs.
  • Bug fixes:
  • The wild card selection "tag*" was not selecting the name "tag".
  • FrCListBldAdc, FrCListBldSer: a bug which was producing crash on Linux when channel names had too different length.
  • FrFileIGetFrameInfo: there was a segmentation fault if the information requested was not starting at the file beginning.
  • Update octave/saveadc and saveproc to be compatible with octave-2.1.50.

  •  

     

    Most files written with version 3.40 and higher can be read with version 6.09