B2B
version 1.0.0 class documentation
dday ( ACO )
Generated on 2015-12-17T15:28:17+01:00


Introduction

Explain the purpose of this class

HTML part of introduction


Table of Contents

Interface

   [Back to top]

Device Interface

   [Back to top]

Setting Properties

   [Back to top]

Init

   [Back to top]

Control property, used to initialize the device with default values from the device instantiation file

AttributesValue
multiplexedfalse
partial-settingtrue
typesetting
visibilityoperational

Reset

   [Back to top]

Control property, used to reset the device while keeping the persistent data.

AttributesValue
multiplexedfalse
partial-settingtrue
typesetting
visibilityoperational

Setting

   [Back to top]

Used for setting hardware parameters for controlling the device.

AttributesValue
multiplexedtrue
partial-settingtrue
typesetting
visibilityoperational

Value-ItemsDirectionTypeScalarityDescription
modeINOUTB2B_MODEcustom-type-scalar
frequencyINOUTdoublescalarRevolution frequency
frequency_maxOUTdoublescalar
frequency_minOUTdoublescalar
convertLSAtoDDSINOUTboolscalarConvert LSA frequency values to true DDS frequency values. Set to true unless an exceptional case
harmonicNumberINOUTint32_tscalarHarmonic number at RF cavity
harmonicNumber_maxOUTint32_tscalar
harmonicNumber_minOUTint32_tscalar
triggerOffsetINOUTint32_tscalarOffset for kicker trigger, reasonable values are +/- the revolution time in the extraction ring
bucketNumberINOUTint32_tscalarEXT: extraction starts at this bucket number, required if extraction ring is larger than injection ring. INJ: injection starts at this bucket number, required if injection ring is larger than extraction ring
bucketNumber_maxOUTint32_tscalar
bucketNumber_minOUTint32_tscalar
phaseDifferenceINOUTint32_tscalarPhase difference between h=1 Group DDS for injection and extraction, reasonable values are +/- the revolution time in the extraction ring
fineTuneINOUTboolscalarUseful when extraction ring is larger than injection ring; enhances precision
multiBeatTuneINOUTboolscalarUseful with short beating periods; enhances precision but takes more time (multiple beating periods
sidExtRingINOUTint32_tscalarInjection ring only: must match SID of extraction ring

Min-Value-ItemsDirectionTypeScalarityDescription
frequency_minOUTdoublescalar
harmonicNumber_minOUTint32_tscalar
bucketNumber_minOUTint32_tscalar

Max-Value-ItemsDirectionTypeScalarityDescription
frequency_maxOUTdoublescalar
harmonicNumber_maxOUTint32_tscalar
bucketNumber_maxOUTint32_tscalar

DebugMode

   [Back to top]

AttributesValue
multiplexedfalse
partial-settingfalse
typesetting
visibilitydevelopment

Value-ItemsDirectionTypeScalarityDescription
DebugModeINOUTboolscalar

Power

   [Back to top]

Used to turn the power of a device on or off.

AttributesValue
multiplexedfalse
partial-settingtrue
typesetting
visibilityoperational

Value-ItemsDirectionTypeScalarityDescription
powerINOUTDEVICE_POWERcustom-type-scalar

Acquisition Properties

   [Back to top]

Status

   [Back to top]

Used to display the (cycle independent) overall status of the device.Detailed status information may be additionally added to this property.

AttributesValue
cycle-boundfalse
partial-settingfalse
typeacquisition
visibilityoperational

Value-ItemsDirectionTypeScalarityDescription
statusOUTDEVICE_STATUScustom-type-scalar
detailedStatusOUTboolarrayDetailed status should consist of an array of boolean values considered as detailed status information as well as acorresponding string array containing keys to illustrate the meaning of the detailed status information.
detailedStatus_labelsOUTchararray2DLabels of detailed status bits.
detailedStatus_severityOUTDETAILED_STATUS_SEVERITYcustom-type-arraySeverities of the detailed status bits
powerStateOUTDEVICE_POWER_STATEcustom-type-scalarPower state of the device (ON, OFF)
controlOUTDEVICE_CONTROLcustom-type-scalar
interlockOUTboolscalarInterlock state of the device
opReadyOUTboolscalarContains the devices state regarding operation
modulesReadyOUTboolscalarContains the devices module state
error_codesOUTint32_tarray
error_messagesOUTchararray2D
error_timestampsOUTint64_tarray
error_cycle_namesOUTchararray2D

ModuleStatus

   [Back to top]

Gives detailed information on the state of 3rd party hardware and software components which are required to operate the device.

AttributesValue
cycle-boundfalse
partial-settingfalse
typeacquisition
visibilityoperational

Value-ItemsDirectionTypeScalarityDescription
moduleStatusOUTMODULE_STATUScustom-type-array
moduleStatus_labelsOUTchararray2D

Acquisition

   [Back to top]

Used for returning acquisition data which is retrieved from the hardware.

AttributesValue
cycle-boundtrue
partial-settingfalse
typeacquisition
visibilityoperational

Value-ItemsDirectionTypeScalarityDescription
stateOUTint32_tscalar
nBadStateOUTint32_tscalar
nBadStatusOUTint32_tscalar
statusArrayOUTint64_tscalar
nTransfersOUTint32_tscalar
processIndexOUTint32_tscalar
sequenceIndexOUTint32_tscalar
chainIndexOUTint32_tscalar
eventNumberOUTint32_tscalar
timingGroupIDOUTint32_tscalar
acquisitionStampOUTint64_tscalar
eventStampOUTint64_tscalar
processStartStampOUTint64_tscalar
sequenceStartStampOUTint64_tscalar
chainStartStampOUTint64_tscalar

Version

   [Back to top]

Returns the current software and hardware versions of a piece of equipment.

AttributesValue
cycle-boundfalse
partial-settingfalse
typeacquisition
visibilityoperational

Value-ItemsDirectionTypeScalarityDescription
classVersionOUTchararray
deployUnitVersionOUTchararray
fesaVersionOUTchararray
firmwareVersionOUTchararray
b2blibraryVersionOUTchararray

Global Interface

   [Back to top]

Setting Properties

   [Back to top]

DiagnosticSetting

   [Back to top]

Generic property which allows to diagnose any FESA classes

AttributesValue
multiplexedfalse
partial-settingfalse
typesetting
visibilityexpert

Value-ItemsDirectionTypeScalarityDescription
requestStateINboolscalar

Acquisition Properties

   [Back to top]

DeviceDescription

   [Back to top]

AttributesValue
cycle-boundfalse
partial-settingfalse
typeacquisition
visibilityoperational

Value-ItemsDirectionTypeScalarityDescription
deviceNameTimingReceiverOUTchararray
propertyNamesOUTchararray2D
deviceNamesOUTchararray2D
globalDeviceNameOUTchararray
hostOUTchararray

Subset Interface

   [Back to top]

B2B_INJ

   [Back to top]
Properties
Init
Reset
Setting
Power
Status
ModuleStatus
Acquisition
Version

B2B_EXT

   [Back to top]
Properties
Init
Reset
Setting
Power
Status
ModuleStatus
Acquisition
Version

Data

   [Back to top]

Device Data

   [Back to top]

Configuration

   [Back to top]

NameTypeDescription
machineTypeB2B_TYPE
maspEmitterEnabledbool
detailedStatus_labelschar
detailedStatus_severityDETAILED_STATUS_SEVERITY
moduleStatus_labelschar
subsetchar

Acquisition

   [Back to top]

NameTypeDescription
firmwareVersionint32_t
acq_stateint32_t
nBadStateint32_t
nBadStatusint32_t
nTransfersint32_t
statusArrayint64_t
acq_seq_extint32_t
acq_group_extint32_t
acq_modeint32_t
acq_h1_extdouble
acq_h1_injdouble
acq_tbeatdouble
controlDEVICE_CONTROL
powerStateDEVICE_POWER_STATE
statusDEVICE_STATUS
interlockbool
opReadybool
modulesReadybool
detailedStatusbool
moduleStatusMODULE_STATUS
acquisitionContextGSI_ACQ_CONTEXT
error_collectionGSI_ERROR

Setting

   [Back to top]

NameTypeDescription
operationModeB2B_MODE
freqdouble
convert_lsa_to_ddsbool
harmonic_numberint32_t
trigger_offsetint32_t
bucket_numberint32_t
phaseint32_t
finetunebool
multibeattunebool
sid_extint32_t
powerDEVICE_POWER

Global Data

   [Back to top]

Configuration

   [Back to top]

NameTypeDescription
deviceNameFirmwarecharEtherbone device name for firmware interface
deviceNameTimingReceiverchar

Acquisition

   [Back to top]

None

Setting

   [Back to top]

None

Custom Types

   [Back to top]

NameType
DIAG_TOPICcustom-types
DEVICE_STATUScustom-types
DEVICE_POWER_STATEcustom-types
DEVICE_POWERcustom-types
DEVICE_CONTROLcustom-types
TOL_CHECK_MODEcustom-types
AQN_STATUScustom-types
GSI_ERRORcustom-types
GSI_ACQ_CONTEXTcustom-types
MAX_ERROR_MESSAGE_LENGTHcustom-types
MAX_NUMBER_OF_ERROR_MESSAGEScustom-types
MAX_CYCLE_NAME_LENGTHcustom-types
MAX_VERSION_NAME_LENGTHcustom-types
MAX_DETAILED_STATUS_LABEL_LENGTHcustom-types
DETAILED_STATUS_SIZEcustom-types
DETAILED_STATUS_SEVERITYcustom-types
MODULE_STATUScustom-types
MAX_MODULE_STATUS_LABEL_LENGTHcustom-types
MODULE_STATUS_SIZEcustom-types
B2B_MODEcustom-types
B2B_TYPEcustom-types
MAX_FREQUENCYcustom-types
MIN_FREQUENCYcustom-types
MAX_HARMONIC_NUMBERcustom-types
MIN_HARMONIC_NUMBERcustom-types
MAX_BUCKET_NUMBERcustom-types
MIN_BUCKET_NUMBERcustom-types
DEVICE_NAME_LENGTHcustom-types

Struct and Enumeration Data

   [Back to top]

GSI_ERROR

   [Back to top]
NameScalarityTypeSizeDescription
error_stringarraycharMAX_ERROR_MESSAGE_LENGTH
error_codescalarint32_t
error_timestampscalarint64_t
error_cycle_namearraycharMAX_CYCLE_NAME_LENGTH

GSI_ACQ_CONTEXT

   [Back to top]
NameScalarityTypeSizeDescription
processIndexscalarint32_tUsed in order to index process-multiplexed data
sequenceIndexscalarint32_tUsed in order to index sequence-multiplexed data
chainIndexscalarint32_tRefers to a specific beam production chain
eventNumberscalarint32_tThe number of the event describes it's type
timingGroupIDscalarint32_tID of the timing group for which the event is relevant
acquisitionStampscalarint64_tThe acquisition stamp is used to indicate when a measurement was done
eventStampscalarint64_tThe event stamp is used to indicate when WhiteRabbit event was triggered on the Timing Receiver
processStartStampscalarint64_tThe process start stamp indicates when the first event of the current process was triggered
sequenceStartStampscalarint64_tThe sequence start stamp indicates when the first event of the current sequence was triggered
chainStartStampscalarint64_tThe chain start stamp indicates when the first event of the current chain was triggered

DEVICE_STATUS

   [Back to top]
SymbolValueAccess
UNKNOWN0RW
OK1RW
WARNING2RW
ERROR3RW

DEVICE_POWER_STATE

   [Back to top]
SymbolValueAccess
UNKNOWN0RW
ON1RW
OFF2RW
STANDBY3RW
POWER_DOWN4RW
POWER_UP5RW

DEVICE_POWER

   [Back to top]
SymbolValueAccess
ON1RW
OFF2RW

DEVICE_CONTROL

   [Back to top]
SymbolValueAccess
REMOTE0RW
LOCAL1RW

TOL_CHECK_MODE

   [Back to top]
SymbolValueAccess
ABS0RO
REL1RO

DETAILED_STATUS_SEVERITY

   [Back to top]
SymbolValueAccess
INFO0RO
WARNING_ON_FALSE1RO
ERROR_ON_FALSE2RO

MODULE_STATUS

   [Back to top]
SymbolValueAccess
UNKNOWN0RO
OK1RO
WARNING2RO
ERROR3RO
NOT_AVAILABLE4RO

B2B_MODE

   [Back to top]
SymbolValueAccess
OFF0RW
EVT_KICK_START1RW
B2EXTRACTION2RW
B2COASTING_BEAM3RW
B2BUCKET4RW

B2B_TYPE

   [Back to top]
SymbolValueAccess
EXT0RW
INJ1RW

AQN_STATUS

   [Back to top]

bit-enum-32bits

BitName
b0NOT_OK
b1BAD_QUALITY
b2DIFFERENT_FROM_SETTING
b3OUT_OF_RANGE
b4BUSY
b5TIMEOUT
b6bit6_is_reserved_for_later_usage
b7bit7_is_reserved_for_later_usage
b8bit8_is_reserved_for_later_usage
b9bit9_is_reserved_for_later_usage
b10bit10_is_reserved_for_later_usage
b11bit11_is_reserved_for_later_usage
b12bit12_is_reserved_for_later_usage
b13bit13_is_reserved_for_later_usage
b14bit14_is_reserved_for_later_usage
b15bit15_is_reserved_for_later_usage
b16bit_16_and_higher_can_be_used_by_the_class_developer

Constants

   [Back to top]

NameTypeValue
MAX_ERROR_MESSAGE_LENGTHuint32_t256

NameTypeValue
MAX_NUMBER_OF_ERROR_MESSAGESuint32_t16

NameTypeValue
MAX_CYCLE_NAME_LENGTHuint32_t256

NameTypeValue
MAX_VERSION_NAME_LENGTHuint32_t256

NameTypeValue
MAX_DETAILED_STATUS_LABEL_LENGTHuint32_t30

NameTypeValue
DETAILED_STATUS_SIZEuint32_t3

NameTypeValue
MAX_MODULE_STATUS_LABEL_LENGTHuint32_t30

NameTypeValue
MODULE_STATUS_SIZEuint32_t3

NameTypeValue
MAX_FREQUENCYdouble4e6

NameTypeValue
MIN_FREQUENCYdouble4e4

NameTypeValue
MAX_HARMONIC_NUMBERint32_t255

NameTypeValue
MIN_HARMONIC_NUMBERint32_t1

NameTypeValue
MAX_BUCKET_NUMBERint32_t99

NameTypeValue
MIN_BUCKET_NUMBERint32_t-99

NameTypeValue
DEVICE_NAME_LENGTHuint32_t128