TSPD-ADQ EPICS device support
1.2.0
|
Go to the documentation of this file.
30 ADQAIChannel(
const std::string& name, nds::Node& parentNode, int32_t channelNum, ADQInterface*& adqInterface, nds::PVDelegateIn<std::string> logMsgPV);
40 void setInputRange(
const timespec& pTimestamp,
const double& pValue);
50 void setDcBias(
const timespec& pTimestamp,
const int32_t& pValue);
55 void getDcBias(timespec* pTimestamp, int32_t* pValue);
60 void setChanDec(
const timespec& pTimestamp,
const int32_t& pValue);
65 void getChanDec(timespec* pTimestamp, int32_t* pValue);
70 void setState(nds::state_t newState);
75 void readData(
short* rawData, int32_t sampleCnt);
80 void getDataPV(timespec* pTimestamp, std::vector<int32_t>* pValue);
91 nds::StateMachine m_stateMachine;
93 ADQInterface* m_adqInterface;
96 bool m_inputRangeChanged;
102 bool m_chanDecChanged;
104 std::vector<int32_t> m_data;
113 bool allowChange(
const nds::state_t,
const nds::state_t,
const nds::state_t);
115 nds::PVDelegateIn<std::string> m_logMsgPV;
116 nds::PVDelegateIn<double> m_inputRangePV;
117 nds::PVDelegateIn<int32_t> m_dcBiasPV;
118 nds::PVDelegateIn<int32_t> m_chanDecPV;
119 nds::PVDelegateIn<std::vector<int32_t>> m_dataPV;
int32_t m_channelNum
Number of channel.
Definition: ADQAIChannel.h:35
void setInputRange(const timespec &pTimestamp, const double &pValue)
Sets the channel's input range.
Definition: ADQAIChannel.cpp:80
This class handles channel specific parameters and pushes acquired data to appropriate data PVs.
Definition: ADQAIChannel.h:19
void getInputRange(timespec *pTimestamp, double *pValue)
Gets the channel's input range.
Definition: ADQAIChannel.cpp:88
void getDcBias(timespec *pTimestamp, int32_t *pValue)
Gets the channel's DC bias.
Definition: ADQAIChannel.cpp:102
ADQAIChannel(const std::string &name, nds::Node &parentNode, int32_t channelNum, ADQInterface *&adqInterface, nds::PVDelegateIn< std::string > logMsgPV)
ADQAIChannel class constructor.
Definition: ADQAIChannel.cpp:21
void readData(short *rawData, int32_t sampleCnt)
This method passes the acquired data to appropriate data PV.
Definition: ADQAIChannel.cpp:302
void setDcBias(const timespec &pTimestamp, const int32_t &pValue)
Sets the channel's DC bias.
Definition: ADQAIChannel.cpp:94
void setState(nds::state_t newState)
Sets a new state to the ADQAIChannel class' state machine.
Definition: ADQAIChannel.cpp:259
void getDataPV(timespec *pTimestamp, std::vector< int32_t > *pValue)
This is a dummy method held by the data PV for appropriate work in NDS3.
Definition: ADQAIChannel.cpp:293
void getChanDec(timespec *pTimestamp, int32_t *pValue)
Gets the channel's sample decimation.
Definition: ADQAIChannel.cpp:116
void setChanDec(const timespec &pTimestamp, const int32_t &pValue)
Sets the channel's sample decimation.
Definition: ADQAIChannel.cpp:108
void commitChanges(bool calledFromDaqThread=false)
This method processes changes are applied to channel specific parameters.
Definition: ADQAIChannel.cpp:125