Fetching data works..

This commit is contained in:
2024-03-04 17:13:23 +01:00
parent 760c2d786b
commit 9b1987eaf0
3 changed files with 30 additions and 38 deletions

View File

@@ -154,12 +154,11 @@ void ecmcDAQDataArray::execute() {
if(!enablePlugin_) {
return;
}
int first = 1;
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()
int first = 1;
for(int i = 0 ; i < (*pDataCh)->getDataElementCount(); i++) {
first = 1;
for(size_t i = 0 ; i < (*pDataCh)->getDataElementCount(); i++) {
buffer_[index]=(*pDataCh)->getData(first);
first = 0;
}