Skip to content
Snippets Groups Projects
Verified Commit f519acb2 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Fix timings of ADC readouts to be at centre of dwell times

parent 1d177ebe
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,7 @@ function ADC(; resolution=nothing, dwell_time=nothing, time_to_center=nothing, c ...@@ -48,7 +48,7 @@ function ADC(; resolution=nothing, dwell_time=nothing, time_to_center=nothing, c
return res return res
end end
readout_times(adc::ADC) = range(0, duration(adc), Int(nsamples(adc))) readout_times(adc::ADC) = ((1:Int(nsamples(adc))) .- 0.5) .* dwell_time(adc)
oversample(adc::ADC) = adc.oversample oversample(adc::ADC) = adc.oversample
nsamples(adc::ADC) = resolution(adc) * oversample(adc) nsamples(adc::ADC) = resolution(adc) * oversample(adc)
dwell_time(adc::ADC) = adc.dwell_time dwell_time(adc::ADC) = adc.dwell_time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment