27#ifndef NIDAS_DYNLD_RAF_PSI9116_SENSOR_H
28#define NIDAS_DYNLD_RAF_PSI9116_SENSOR_H
32namespace nidas {
namespace dynld {
namespace raf {
57 bool process(
const Sample* samp,std::list<const Sample*>& results);
74 void executeXmlRpc(XmlRpc::XmlRpcValue& params, XmlRpc::XmlRpcValue& result);
78 std::string
sendCommand(
const std::string& cmd,
int readlen = 0);
Implementation of support for a sensor which generates character output.
Definition CharacterSensor.h:46
An interface to an IO device.
Definition IODevice.h:42
Interface to a data sample.
Definition Sample.h:190
Support for sampling a PSI 9116 pressure scanner from EsterLine Pressure Systems.
Definition PSI9116_Sensor.h:43
SampleT< float > * _firstPrevious
Definition PSI9116_Sensor.h:108
size_t _outOfSequence
Definition PSI9116_Sensor.h:98
void stopPurge()
Set valve position back to RUN from PURGE, then restart data streams.
Definition PSI9116_Sensor.cc:205
SampleT< float > * _secondPrevious
Definition PSI9116_Sensor.h:108
~PSI9116_Sensor()
Definition PSI9116_Sensor.h:49
void stopStreams()
Definition PSI9116_Sensor.cc:118
void validate()
Implementation of DSMSensor::validate for a Character Sensor.
Definition PSI9116_Sensor.cc:213
int _nPrevSampVals
Definition PSI9116_Sensor.h:109
int _nchannels
Number of sampled channels.
Definition PSI9116_Sensor.h:85
void startStreams()
Definition PSI9116_Sensor.cc:112
bool _partialSecond
Definition PSI9116_Sensor.h:107
union nidas::dynld::raf::PSI9116_Sensor::flip _prevPartial
bool _gotOne
Definition PSI9116_Sensor.h:110
float _psiConvert
Conversion factor to apply to PSI data.
Definition PSI9116_Sensor.h:94
dsm_sample_id_t _sampleId
Definition PSI9116_Sensor.h:87
bool _partialFirst
Definition PSI9116_Sensor.h:107
void open(int flags)
Open the sensor device port for real-time sampling.
Definition PSI9116_Sensor.cc:144
bool process(const Sample *samp, std::list< const Sample * > &results)
Process a raw sample, which in this case means do a sscanf on the character string contents,...
Definition PSI9116_Sensor.cc:249
std::string sendCommand(const std::string &cmd, int readlen=0)
Definition PSI9116_Sensor.cc:64
int _msecPeriod
Definition PSI9116_Sensor.h:80
void executeXmlRpc(XmlRpc::XmlRpcValue ¶ms, XmlRpc::XmlRpcValue &result)
Method invoked when the DSMEngineIntf XmlRpcServer receives a "SensorAction" request,...
Definition PSI9116_Sensor.cc:463
IODevice * buildIODevice()
Creates an IODevice depending on the device name prefix: name prefix type of IODevice inet: TCPSocket...
Definition PSI9116_Sensor.cc:56
PSI9116_Sensor(const PSI9116_Sensor &)
No copying.
void startPurge()
Stop data streams, set valve position to PURGE.
Definition PSI9116_Sensor.cc:196
unsigned int _sequenceNumber
Definition PSI9116_Sensor.h:96
PSI9116_Sensor()
Definition PSI9116_Sensor.cc:47
int _prevPartNBytes
Definition PSI9116_Sensor.h:111
PSI9116_Sensor & operator=(const PSI9116_Sensor &)
No assignment.
The essential core classes of nidas.
Definition A2DConverter.h:31
unsigned int dsm_sample_id_t
Definition Sample.h:64
Root namespace for the NCAR In-Situ Data Acquisition Software.
Definition A2DConverter.h:31
Definition PSI9116_Sensor.h:102
unsigned int lval
Definition PSI9116_Sensor.h:103
char bytes[4]
Definition PSI9116_Sensor.h:105
float fval
Definition PSI9116_Sensor.h:104