fdhwlib
2.0.25
|
#include <tsbackgroundreader.h>
Readout the background data from the electronics and send the data to the recorder running at the eyepc.
The background reader is started in a separate process from the pbusdaemon or directly on the same machine. The background loop will run until the connection to the server is lost.
Definition at line 51 of file tsbackgroundreader.h.
TsBackgroundReader::TsBackgroundReader | ( | ) |
TsBackgroundReader::~TsBackgroundReader | ( | ) |
int TsBackgroundReader::connect | ( | std::string | ipaddr, |
int | port = BGLOOP_PORT |
||
) |
void TsBackgroundReader::disconnect | ( | ) |
void TsBackgroundReader::getParameter | ( | int | telId, |
FILE * | fout = 0 |
||
) |
Request the samping parameter from the server.
telId | Id of the telescope that is read out by this class. |
fout | Output stream |
void TsBackgroundReader::record | ( | bool | interactive = 0 | ) |
Record the backgrounmd data and send it to the server recording all the records from all connected teescopes.
void TsBackgroundReader::setParameter | ( | FILE * | fout = 0 , |
float | tSample = 5.0 , |
||
int | select = 0 , |
||
int | telescope = 0 |
||
) |
Set manually the parameter for the background loop.
This is useful if the background loop should run without connection to the recorder process.
int TsBackgroundReader::shutdown | ( | ) |
Shutdown server.
void TsBackgroundReader::wait | ( | keyboard * | kb = 0 | ) |
Wait for the next sample time.
The 'q' pressed at the keyboard will stop the waiting and set the running-flag to false.
bool TsBackgroundReader::connected [private] |
Definition at line 95 of file tsbackgroundreader.h.
FILE* TsBackgroundReader::fout [private] |
Definition at line 93 of file tsbackgroundreader.h.
std::string TsBackgroundReader::ipaddr [private] |
Definition at line 109 of file tsbackgroundreader.h.
int TsBackgroundReader::port [private] |
Definition at line 111 of file tsbackgroundreader.h.
bool TsBackgroundReader::running [private] |
Definition at line 98 of file tsbackgroundreader.h.
int TsBackgroundReader::select [private] |
Definition at line 105 of file tsbackgroundreader.h.
SimpleSocket* TsBackgroundReader::sock [private] |
Definition at line 96 of file tsbackgroundreader.h.
int TsBackgroundReader::telescope [private] |
Definition at line 107 of file tsbackgroundreader.h.
procDuration TsBackgroundReader::tRef [private] |
Definition at line 101 of file tsbackgroundreader.h.
float TsBackgroundReader::tSample [private] |
Definition at line 103 of file tsbackgroundreader.h.