source: hvcontrol/src/HVMonitor.cc@ 39

Last change on this file since 39 was 14, checked in by lstark, 16 years ago
first version of hvcontrol added
File size: 586 bytes
Line 
1
2/********************************************************************\
3
4 Name: HVMonitor.cc
5
6 Created by: Sebastian Commichau, November 2008
7 commichau@phys.ethz.ch
8
9 Actions: Monitor HV board status
10
11\********************************************************************/
12
13#include "HVMonitor.h"
14
15
16void HVMonitor(ProcessIO *m) {
17
18 siginterrupt(SIGUSR1, true);
19
20 while (!m->status->Exit) {
21
22 if (!m->status->Stop)
23 m->Monitor();
24
25 usleep((unsigned long)floor(1000000./(m->hv->GetNumberOfBoards()*m->status->fStatusRefreshRate)));
26 }
27
28}
Note: See TracBrowser for help on using the repository browser.