pyrpl.test.test_hardware_modules package¶
Submodules¶
pyrpl.test.test_hardware_modules.test_dsp_inputs module¶
pyrpl.test.test_hardware_modules.test_na_iir module¶
-
class
pyrpl.test.test_hardware_modules.test_na_iir.
TestIir
[source]¶ Bases:
pyrpl.test.test_base.TestPyrpl
-
na_assertion
(setting, module, error_threshold=0.1, extradelay=0, relative=False, mean=False, kinds=None)[source]¶ helper function: tests if module.transfer_function is within error_threshold of the measured transfer function of the module
-
test_iircomplicated_na_generator
()[source]¶ This test defines a number of complicated IIR transfer functions and tests whether the NA response of the filter corresponds to what’s expected.
sorry for the ugly code - the test works though if there is a problem, no need to try to understand what the code does at first (rather read the iir module code): Just check the latest new CurveDB curves and for each failed test you should find a set of curves whose names indicate the failed test, whose parameters show the error between measurement and theory, and by comparing the measurement and theory curve you should be able to figure out what went wrong in the iir filter...
-
pyrpl.test.test_hardware_modules.test_pid_na_iq module¶
-
class
pyrpl.test.test_hardware_modules.test_pid_na_iq.
TestPidNaIq
[source]¶
pyrpl.test.test_hardware_modules.test_scope module¶
-
class
pyrpl.test.test_hardware_modules.test_scope.
TestScope
[source]¶ Bases:
pyrpl.test.test_base.TestPyrpl
Be carreful to stop the scope at the end of each test!!!
-
test_no_write_in_config
()[source]¶ Make sure the scope isn’t continuously writing to config file, even in running mode.
-
pyrpl.test.test_hardware_modules.test_scope_asg_ams module¶
-
class
pyrpl.test.test_hardware_modules.test_scope_asg_ams.
TestScopeAsgAms
[source]¶ Bases:
pyrpl.test.test_base.TestPyrpl
-
test_scope_pretrig_ok
()[source]¶ Make sure that pretrig_ok arrives quickly if the curve delay is set close to duration/2
-