This commit is contained in:
2024-03-04 21:30:23 +01:00
parent e7d90c550a
commit 16f1795e32
9 changed files with 160 additions and 47 deletions

View File

@@ -202,6 +202,22 @@ void ecmcDAQDataArray::initAsyn() {
return;
}
int ecmcDAQDataArray::validate() {
if(dataElementCount_==0) {
throw std::runtime_error("Error: DAQ-Array element count 0");
}
if(channelCounter_==0) {
throw std::runtime_error("Error: DAQ-Array channel count 0");
}
for(std::vector<ecmcDAQDataChannel*>::iterator pDataCh = dataChannels_.begin(); pDataCh != dataChannels_.end(); ++pDataCh) {
if(!(*pDataCh)) {
throw std::runtime_error( "Channel empty..");
}
(*pDataCh)->validate();
}
return 0;
}
size_t ecmcDAQDataArray::getArraySize() {
return totalElementCount_;
}