nidas v1.2.3
AlicatSDI.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 ** 2013, 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
27#ifndef _nidas_dynld_raf_alicatsdi_h
28#define _nidas_dynld_raf_alicatsdi_h
29
33
35
36namespace nidas { namespace dynld { namespace raf {
37
38using namespace nidas::core;
39
44{
45
46public:
47 AlicatSDI();
48 ~AlicatSDI();
49
53 void open(int flags);
54
58 void validate();
59
60 void close();
61
62 void derivedDataNotify(const nidas::core:: DerivedDataReader * s);
63
64
65protected:
71 float computeFlow();
72 void sendFlow(float flow);
73 virtual Sample * nextSample(); //returns sample
74 //virtual Sample * readSample(); //returns sample
75
80
84 std::vector<float> _tas;
86 float *_tasWeight;
87
88 // Ambient Temp and Statuc Press from DerivedDataReader
89 float _at, _ps;
90
91 // Ambient Temp and Statuc Press from SDI
92 float _P_SDI;
93 float _T_SDI;
94
96
98
99 static const float Tstd;
100
101private:
102
105
108
109};
110
111}}} // namespace nidas namespace dynld namespace raf
112#endif
Interface of a DerivedDataClient of the DerivedDataReader.
Definition DerivedDataClient.h:37
Interface to a data sample.
Definition Sample.h:190
Support for a sensor that is sending packets on a TCP socket, a UDP socket, a Bluetooth RF Comm socke...
Definition SerialSensor.h:65
Alicat Flow Controller, used for the SDI.
Definition AlicatSDI.h:44
~AlicatSDI()
Definition AlicatSDI.cc:51
void validate()
read XML for specific parameters.
Definition AlicatSDI.cc:57
float _Qfac
Definition AlicatSDI.h:97
std::vector< float > _tas
Use a vector as a circular buffer.
Definition AlicatSDI.h:84
float computeFlow()
Send the ambient temperature up to the VCSEL.
Definition AlicatSDI.cc:190
AlicatSDI(const AlicatSDI &)
No copying.
float _ps
Definition AlicatSDI.h:89
void close()
close my associated device.
Definition AlicatSDI.cc:160
int _Qmin
Definition AlicatSDI.h:95
float _T_SDI
Definition AlicatSDI.h:93
void open(int flags)
open the sensor and perform any intialization to the instrument.
Definition AlicatSDI.cc:106
static const float Tstd
Definition AlicatSDI.h:99
float _P_SDI
Definition AlicatSDI.h:92
virtual Sample * nextSample()
Extract the next sample from the buffer.
Definition AlicatSDI.cc:221
int _tasIdx
Definition AlicatSDI.h:85
int _nTASav
maintain a running average of tas.
Definition AlicatSDI.h:79
int _Qmax
Definition AlicatSDI.h:95
AlicatSDI()
Definition AlicatSDI.cc:43
float _at
Definition AlicatSDI.h:89
void derivedDataNotify(const nidas::core::DerivedDataReader *s)
Method called on a DerivedDataClient by the DerivedDataReader thread when a new packet of derived dat...
Definition AlicatSDI.cc:168
float * _tasWeight
Definition AlicatSDI.h:86
void sendFlow(float flow)
Definition AlicatSDI.cc:213
float _Q_VOL_OFFSET
Definition AlicatSDI.h:97
AlicatSDI & operator=(const AlicatSDI &)
No copying.
The essential core classes of nidas.
Definition A2DConverter.h:31
Root namespace for the NCAR In-Situ Data Acquisition Software.
Definition A2DConverter.h:31