TSPD-ADQ EPICS device support  1.2.0
ADQAIChannel Class Reference

This class handles channel specific parameters and pushes acquired data to appropriate data PVs. More...

#include <ADQAIChannel.h>

Public Member Functions

 ADQAIChannel (const std::string &name, nds::Node &parentNode, int32_t channelNum, ADQInterface *&adqInterface, nds::PVDelegateIn< std::string > logMsgPV)
 ADQAIChannel class constructor. More...
 
void setInputRange (const timespec &pTimestamp, const double &pValue)
 Sets the channel's input range.
 
void getInputRange (timespec *pTimestamp, double *pValue)
 Gets the channel's input range.
 
void setDcBias (const timespec &pTimestamp, const int32_t &pValue)
 Sets the channel's DC bias.
 
void getDcBias (timespec *pTimestamp, int32_t *pValue)
 Gets the channel's DC bias.
 
void setChanDec (const timespec &pTimestamp, const int32_t &pValue)
 Sets the channel's sample decimation.
 
void getChanDec (timespec *pTimestamp, int32_t *pValue)
 Gets the channel's sample decimation.
 
void setState (nds::state_t newState)
 Sets a new state to the ADQAIChannel class' state machine.
 
void readData (short *rawData, int32_t sampleCnt)
 This method passes the acquired data to appropriate data PV.
 
void getDataPV (timespec *pTimestamp, std::vector< int32_t > *pValue)
 This is a dummy method held by the data PV for appropriate work in NDS3.
 
void commitChanges (bool calledFromDaqThread=false)
 This method processes changes are applied to channel specific parameters. More...
 

Public Attributes

int32_t m_channelNum
 Number of channel.
 

Detailed Description

This class handles channel specific parameters and pushes acquired data to appropriate data PVs.

Constructor & Destructor Documentation

◆ ADQAIChannel()

ADQAIChannel::ADQAIChannel ( const std::string &  name,
nds::Node &  parentNode,
int32_t  channelNum,
ADQInterface *&  adqInterface,
nds::PVDelegateIn< std::string >  logMsgPV 
)

ADQAIChannel class constructor.

Parameters
namea name with which this class will register its child node.
parentNodea name of a parent node to which this class' node is a child.
channelNuma number of channel which a constructed class represents.
adqInterfacea pointer to the ADQ API interface created in the ADQDevice class.
logMsgPVprocess variable for sending the log messages (shared with the ADQAIChannelGroup class).

Member Function Documentation

◆ commitChanges()

ADQAIChannel::commitChanges ( bool  calledFromDaqThread = false)

This method processes changes are applied to channel specific parameters.

Parameters
calledFromDaqThreada flag that prevents this function to be called when set to false.

The documentation for this class was generated from the following files: