Commit a20ffc91 authored by Federico Vaga's avatar Federico Vaga

tst: test digital noise on 1V and 10V ranges

For the time being we can't actively change the function generator
setup, so for convenience we use a voltage setup compatible with 2
out of 3 possible voltage ranges.
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 997f3c09
......@@ -51,9 +51,8 @@ def digital_noise_report(buf, index, chan_err):
class TestAdcRegressions(object):
@pytest.mark.parametrize("vref", [PyFmcAdc100m14b4ch.ADC_CONF_100M14B4CHA_CHN_RANGE_100mV,
#PyFmcAdc100m14b4ch.ADC_CONF_100M14B4CHA_CHN_RANGE_1V,
#PyFmcAdc100m14b4ch.ADC_CONF_100M14B4CHA_CHN_RANGE_10V,
@pytest.mark.parametrize("vref", [PyFmcAdc100m14b4ch.ADC_CONF_100M14B4CHA_CHN_RANGE_1V,
PyFmcAdc100m14b4ch.ADC_CONF_100M14B4CHA_CHN_RANGE_10V,
])
@pytest.mark.parametrize("termination", [0, 1])
@pytest.mark.parametrize("nshots, post_samples", [(10, 2045), (1, 10000)])
......@@ -62,7 +61,7 @@ class TestAdcRegressions(object):
This test uses a sawtooth signal to check that the noise is between
define boundaries. If it exceed, then we have a problem.
A function generator must be configured to produce a triangle signal
(simpler to process) on all channels. Expected configuration: 2Vpp, 800kHz"""
(simpler to process) on all channels. Expected configuration: 1Vpp, 800kHz"""
for ch in range(4):
conf = PyAdcConf(PyAdcConf.ADC_CONF_TYPE_CHN, ch)
conf.value_set(PyAdcConf.ADC_CONF_CHN_TERMINATION, termination)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment