Commit 92a94ad8 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Uses bias in test

Showing with 5 additions and 1 deletion
+5 -1
......@@ -48,7 +48,11 @@ if within_ohmpi:
k._hw.switch_mux([1, 4, 2, 3], state='on')
k._hw.vab_square_wave(12,1)
k._hw.switch_mux([1, 4, 2, 3], state='off')
print(f'Resistance: {k._hw.last_rho :.2f}, dev. {k._hw.last_dev:.2f} %')
k._hw.calibrate_rx_bias() # electrodes 1 4 2 3 should be connected to a reference circuit
k._hw.switch_mux([1, 4, 2, 3], state='on')
k._hw.vab_square_wave(12,1)
k._hw.switch_mux([1, 4, 2, 3], state='off')
print(f'Resistance: {k._hw.last_rho :.2f} ohm, dev. {k._hw.last_dev:.2f} %, rx bias: {k._hw.rx._bias:.2f} ohm')
k._hw._plot_readings()
plot_exec_log('ohmpi/logs/exec.log')
change_config('../configs/config_default.py', verbose=False)
\ No newline at end of file
Supports Markdown
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