countCheck

class countCheck : public kotekan::Stage

Stage that checks for acquisition re-start.

This stage finds the unix time at the start of the acquisition from the FPGA counts and the current unix time, using the telescope tick length (seq_length_nsec). It stores this value and checks each frame to look for changes. If the initial time changes by more than ‘start_time_tolerance’ (default=3) seconds, the stage raises SIGTERM.

Buffers

  • in_buf The buffer whose fpga count will be checked. Supports metadata types that provide timing information: VisMetadata, N2Metadata, HFBMetadata, BeamMetadata, and chordMetadata.

Author

Mateus A Fandino

Param start_time_tolerance:

int. Tolerance for the start time error in seconds. Default is 3.

Public Functions

countCheck(kotekan::Config &config, const std::string &unique_name, kotekan::bufferContainer &buffer_container)
virtual void main_thread() override