diff --git a/drivers/Spectrum-MI40xxSeries/Spectrum-MI40xxSeries.cpp b/drivers/Spectrum-MI40xxSeries/Spectrum-MI40xxSeries.cpp index a94bb15..5cf8b88 100644 --- a/drivers/Spectrum-MI40xxSeries/Spectrum-MI40xxSeries.cpp +++ b/drivers/Spectrum-MI40xxSeries/Spectrum-MI40xxSeries.cpp @@ -369,7 +369,7 @@ void SpectrumMI40xxSeries::collect_config_recursive(state_sequent& exp, Spectrum fprintf(stderr, "state is shorter than acquisition time %e time required, %e state time\n", gating_time, a_state->length); #endif // update the state length if it's shorter than the gate. this is usually due to rounding to 10 ns for the pulseblaster - if (ceil(1e8*(a_state->length))/1e8 < time_required) { // + 3.0f/settings.samplefreq + if (ceil(1e8*(a_state->length + 3.0f/settings.samplefreq))/1e8 < time_required) { // std::stringstream parameter_inf; parameter_inf << "state is (" << inputs.front()->samples << " samples, " << settings.samplefreq << " sampling rate, " << time_required << " time required, " << a_state->length << " state time)" << std::endl; throw ADC_exception(parameter_inf.str());