This class handles channel specific parameters and pushes acquired data to appropriate data PVs.
More...
#include <ADQAIChannel.h>
|
| 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...
|
|
This class handles channel specific parameters and pushes acquired data to appropriate data PVs.
◆ ADQAIChannel()
ADQAIChannel::ADQAIChannel |
( |
const std::string & |
name, |
|
|
nds::Node & |
parentNode, |
|
|
int32_t |
channelNum, |
|
|
ADQInterface *& |
adqInterface, |
|
|
nds::PVDelegateIn< std::string > |
logMsgPV |
|
) |
| |
ADQAIChannel class constructor.
- Parameters
-
name | a name with which this class will register its child node. |
parentNode | a name of a parent node to which this class' node is a child. |
channelNum | a number of channel which a constructed class represents. |
adqInterface | a pointer to the ADQ API interface created in the ADQDevice class. |
logMsgPV | process variable for sending the log messages (shared with the ADQAIChannelGroup class). |
◆ commitChanges()
ADQAIChannel::commitChanges |
( |
bool |
calledFromDaqThread = false | ) |
|
This method processes changes are applied to channel specific parameters.
- Parameters
-
calledFromDaqThread | a flag that prevents this function to be called when set to false. |
The documentation for this class was generated from the following files: