Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel

Class XtcIterator

This class is not like its C++ counterpart pdsdata/xtc/XtcIterator. It implements true Python iterator interface, the return type for the iterator is xtc.Xtc. Typical use of this class is like this:

Code Block
none
none
    if xtcObj.contains == xtc.TypeId.Type.Id_Xtc:
        for subXtc in xtc.XtcIterator(xtcObj):
            ..................

    # which is identical to this
    if xtcObj.contains == xtc.TypeId.Type.Id_Xtc:
        for subXtc in xtcObj.payload():
            ..................

    # and also identical to this
    if xtcObj.contains == xtc.TypeId.Type.Id_Xtc:
        for subXtc in xtcObj:
            ..................

Construction

Usage: iter = xtc.XtcIterator(xtcObj)

Arguments:

  • xtcObj – XTC object whose contains type is Id_Xtc, otherwise an exception will be thrown.

...

Module _pdsdata.acqiris

This module contains classes corresponding to those in C++ pdsdata/acqiris package.

Panel

Class ConfigV1

Python wrapper for pdsdata/acqiris/ConfigV1 class.


Construction

This class cannot be instantiated directly, methods of other classes return instances of this type.


Method nbrConvertersPerChannel()

Usage: num = cfg.nbrConvertersPerChannel()

Returns integer number.


Method channelMask()

Usage: mask = cfg.channelMask()

Returns integer number.


Method nbrChannels()

Usage: num = cfg.nbrChannels()

Returns integer number.


Method nbrBanks()

Usage: num = cfg.nbrBanks()

Returns integer number.


Method horiz()

Usage: hconfig = cfg.horiz()

Returns object of acqiris.HorizV1 type.


Method trig()

Usage: trig = cfg.trig()

Returns object of acqiris.TrigV1 type.


Method vert()

Usage: vconfig = cfg.vert(channel)

Returns object of acqiris.VertV1 type.

Arguments:

  • channel – channel number