diff --git a/src/components/readouts/ADCs.jl b/src/components/readouts/ADCs.jl index f1be9cea81b1d5bf004e12db532965d9780c9465..15ba354658c1d8e3b8d98f1d7fa04b88c2b95084 100644 --- a/src/components/readouts/ADCs.jl +++ b/src/components/readouts/ADCs.jl @@ -52,7 +52,7 @@ readout_times(adc::ADC) = ((1:Int(nsamples(adc))) .- 0.5) .* dwell_time(adc) oversample(adc::ADC) = adc.oversample nsamples(adc::ADC) = resolution(adc) * oversample(adc) dwell_time(adc::ADC) = adc.dwell_time -duration(adc::ADC) = (nsamples(adc)-1) * dwell_time(adc) +duration(adc::ADC) = nsamples(adc) * dwell_time(adc) time_to_center(adc::ADC) = adc.time_to_center effective_time(adc::ADC) = time_to_center(adc) resolution(adc::ADC) = adc.resolution