This commit is contained in:
2024-03-04 13:58:13 +01:00
parent 3366414ff8
commit 760c2d786b
3 changed files with 11 additions and 11 deletions

View File

@@ -158,10 +158,10 @@ void ecmcDAQDataArray::execute() {
size_t index = firstDataElementIndex_ ;
for(std::vector<ecmcDAQDataChannel*>::iterator pDataCh = dataChannels_.begin(); pDataCh != dataChannels_.end(); ++pDataCh) {
//always atleast one data item in a channel. Set "first" bit in call to getData()
buffer_[index]=(*pDataCh)->getData(1);
index++;
while(!(*pDataCh)->empty()) {
buffer_[index]=(*pDataCh)->getData(0);
int first = 1;
for(int i = 0 ; i < (*pDataCh)->getDataElementCount(); i++) {
buffer_[index]=(*pDataCh)->getData(first);
first = 0;
}
}
updateAsyn();