fdhwlib  2.0.25
KaSubrack Class Reference

#include <kasubrack.h>

Inheritance diagram for KaSubrack:
SubrackBase

List of all members.

Public Member Functions

Public Attributes


Detailed Description

Implementation of the register model for the KARTIN DAQ logic.

Definition at line 56 of file kasubrack.h.


Constructor & Destructor Documentation

KaSubrack::KaSubrack ( const char *  inifile,
int  mode = 0 
)

Member Function Documentation

int KaSubrack::checkActualTime ( long int *  tDiff,
long int *  tDiffEye,
int *  tMeas,
int *  tPhase,
long int *  tDiffGps = 0,
int  id = 0,
int  n = 1 
)

Compare the PC clock and the hardware clock of all connected telescopes.This function is an extension for more than one telescope connected in PBUS_IP mode.

Parameters:
tDiffThe difference t(Hardware) - t(MirrorPC) in seconds.
tDiffEyeThe difference t(MirrorPC) - t(EyePC) in seconds.
tMeasThe measurement point in ms relative to the last second strobe
tPhaseThe phase in ms between the GPS time of the hardware and the NTP time of the EyePC: t(Hardware) - t(EyePC) t is the time of the second strobe in each case.
tDiffGpsDifference of the gps clock Two values: oncode time and auger counter
idNumber of the telescope to test. 0 (default) is the actual telescope
nNumber of telescopes to analyse If n > 1 you need to provide a array for the first argument (tDiff).
Returns:
Status of the function. + 0 failed, > 0 success == number of miliseconds of the last test.
void KaSubrack::configure ( )

Re-configure Flt and Slt FPGA The system should return the same after power-on.

void KaSubrack::reset ( )

Reset subrack, clear all register.

unsigned long KaSubrack::setActualTime ( int  slot = -1)

Synchronize the actual time of the system with the local PC clock.

To set the correct value of the second, the function waits 300ms after the next second change. Then the UTC second counter ist converted to GPS seconds second counter is written. The hardware will set this value with the next second strobe. Finally the function checks, whether it was possible to finish the operation within one second.

Returns:
The second since beginning of GPS time when the crate was synchronized. A value of zero indicates that the setting failed. Repeat the function.

Member Data Documentation

Definition at line 123 of file kasubrack.h.

Number of units in unitList.

Definition at line 131 of file kasubrack.h.

Definition at line 120 of file kasubrack.h.

Definition at line 124 of file kasubrack.h.

Definition at line 121 of file kasubrack.h.

FEunit* KaSubrack::unitList[KA_MAX_UNITS]

List of searchable units in the fluorescence detector electronic.

Definition at line 128 of file kasubrack.h.


The documentation for this class was generated from the following file: