fdhwlib
2.0.25
|
#include <kasubrack.h>
Implementation of the register model for the KARTIN DAQ logic.
Definition at line 56 of file kasubrack.h.
KaSubrack::KaSubrack | ( | const char * | inifile, |
int | mode = 0 |
||
) |
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.
tDiff | The difference t(Hardware) - t(MirrorPC) in seconds. |
tDiffEye | The difference t(MirrorPC) - t(EyePC) in seconds. |
tMeas | The measurement point in ms relative to the last second strobe |
tPhase | The 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. |
tDiffGps | Difference of the gps clock Two values: oncode time and auger counter |
id | Number of the telescope to test. 0 (default) is the actual telescope |
n | Number of telescopes to analyse If n > 1 you need to provide a array for the first argument (tDiff). |
void KaSubrack::configure | ( | ) |
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.
KaFlt* KaSubrack::flt[20] |
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.
KaFlt* KaSubrack::theFlt[20] |
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.