const unsigned int samples_per_block =
min(asamples_per_block, lsamples_per_block);
+ const auto context = session_.device_manager().context();
while (!interrupt_ && sample_count_) {
progress_updated();
min((uint64_t)samples_per_block, sample_count_);
try {
- const auto context = session_.device_manager().context();
-
for (unsigned int i = 0; i < achannel_list.size(); i++) {
shared_ptr<sigrok::Channel> achannel = (achannel_list.at(i))->channel();
shared_ptr<data::AnalogSegment> asegment = asegment_list.at(i);
units_stored_ = unit_count_ - (sample_count_ >> progress_scale);
}
+ auto dfend = context->create_end_packet();
+ const string ldata_str = output_->receive(dfend);
+ if (output_stream_.is_open())
+ output_stream_ << ldata_str;
+
// Zeroing the progress variables indicates completion
units_stored_ = unit_count_ = 0;