nidas v1.2.3
ParoSci_202BG_T.h
Go to the documentation of this file.
1// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4; -*-
2// vim: set shiftwidth=4 softtabstop=4 expandtab:
3/*
4 ********************************************************************
5 ** NIDAS: NCAR In-situ Data Acquistion Software
6 **
7 ** 2008, Copyright University Corporation for Atmospheric Research
8 **
9 ** This program is free software; you can redistribute it and/or modify
10 ** it under the terms of the GNU General Public License as published by
11 ** the Free Software Foundation; either version 2 of the License, or
12 ** (at your option) any later version.
13 **
14 ** This program is distributed in the hope that it will be useful,
15 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ** GNU General Public License for more details.
18 **
19 ** The LICENSE.txt file accompanying this software contains
20 ** a copy of the GNU General Public License. If it is not found,
21 ** write to the Free Software Foundation, Inc.,
22 ** 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 **
24 ********************************************************************
25*/
26#ifndef NIDAS_DYNLD_PAROSCI_202BG_T_h
27#define NIDAS_DYNLD_PAROSCI_202BG_T_h
28
29#include "DSC_FreqCounter.h"
31
32using namespace nidas::core;
33
34namespace nidas { namespace dynld {
35
36class ParoSci_202BG_P;
37
44
45public:
46
48
52 void init();
53
58 bool process(const Sample*,std::list<const Sample*>& result)
59 throw();
60
66 float getPeriodUsec(dsm_time_t tt);
67
68
69private:
70
74 void readParams(const std::list<const Parameter*>& params);
75
77
79
81
83
85
87
90
93
94};
95
96}} // namespace nidas namespace dynld
97
98#endif
A class for reading ASCII files containing a time series of calibration data.
Definition CalFile.h:166
Interface to a data sample.
Definition Sample.h:190
Sensor support for a frequency counter device.
Definition DSC_FreqCounter.h:47
Support for reading a calibration file for a ParoScientific 202BG sensor.
Definition ParoSci_202BG_Calibration.h:40
Sensor support for a ParoScientific 202BG pressure sensor connected to a Diamond Systems GPIO-MM card...
Definition ParoSci_202BG_P.h:43
Sensor support for a ParoScientific 202BG temperature sensor connected to a Diamond Systems GPIO-MM c...
Definition ParoSci_202BG_T.h:43
void readParams(const std::list< const Parameter * > &params)
Definition ParoSci_202BG_T.cc:48
float getPeriodUsec(dsm_time_t tt)
Get the most recent period in microseconds of the input signal.
Definition ParoSci_202BG_T.cc:83
dsm_time_t _lastSampleTime
Definition ParoSci_202BG_T.h:78
ParoSci_202BG_T(const ParoSci_202BG_T &)
No copying.
ParoSci_202BG_P * _presSensor
Definition ParoSci_202BG_T.h:82
void init()
Definition ParoSci_202BG_T.cc:67
float _periodUsec
Definition ParoSci_202BG_T.h:76
ParoSci_202BG_T & operator=(const ParoSci_202BG_T &)
No assignment.
bool process(const Sample *, std::list< const Sample * > &result)
Process a raw sample, which in this case means convert the counts and elapsed ticks into a frequency.
Definition ParoSci_202BG_T.cc:90
nidas::core::CalFile * _calfile
Definition ParoSci_202BG_T.h:86
dsm_sample_id_t _presSensorId
Definition ParoSci_202BG_T.h:80
ParoSci_202BG_T()
Definition ParoSci_202BG_T.cc:40
ParoSci_202BG_Calibration _calibrator
Definition ParoSci_202BG_T.h:84
The essential core classes of nidas.
Definition A2DConverter.h:31
long long dsm_time_t
Posix time in microseconds, the number of non-leap microseconds since 1970 Jan 1 00:00 UTC.
Definition Sample.h:62
unsigned int dsm_sample_id_t
Definition Sample.h:64
Root namespace for the NCAR In-Situ Data Acquisition Software.
Definition A2DConverter.h:31