QuTech-Delft / QMI

Quantum Measurement Infrastructure
Other
14 stars 4 forks source link

Make PicoScope3403 also to accept sample times of 1 and 2 ns, and correct docstrings. #67

Closed heevasti closed 9 months ago

heevasti commented 9 months ago

Description =========== The PicoScope3403 driver does not currently accept time-base values 0 and 1, respectively representing sampling intervals of 1ns and 2ns. The minimum accepted currently is time-base 2 with sampling interval of 4ns. Also, the number of samples is calculated as number_samples = int(time_span / time_base) which makes it impossible for time-base 0. The scientists would find it more intuitive to be able to give the sampling interval as an input, instead of time-base, anyhow. So, we should change the method definition for acquire_by_trigger_and_get_data to use sampling interval instead of time-base as input.

Further remark is that the method descriptions for time_base in the other methods show transformation of "(time_base+1) * 12.5 ns", which is not correct for this model (but for model 4824 instead). These docstring errors need to be fixed as well.

Changes needed:

In acquire_by_trigger_and_get_data:

Modules to be created


N/A

Modules to be modified


qmi.instruments.picoscope.picoscope3403

Tests to be created/updated


tests.instruments.picoscope.test_picoscope3403

Documentation to be updated


Hardware


PicoScope3403 model. Preferably with 4 channels.