Commit c98efb0a authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Changes the way R and R_std are computed taking sp into account

Showing with 2 additions and 2 deletions
+2 -2
...@@ -54,7 +54,7 @@ if within_ohmpi: ...@@ -54,7 +54,7 @@ if within_ohmpi:
k._hw.switch_mux([A, B, M, N], state='off') k._hw.switch_mux([A, B, M, N], state='off')
k._hw.calibrate_rx_bias() # electrodes 1 4 2 3 should be connected to a reference circuit k._hw.calibrate_rx_bias() # electrodes 1 4 2 3 should be connected to a reference circuit
#k._hw.rx._bias = -1.38 #k._hw.rx._bias = -1.38
# print(f'Resistance: {k._hw.last_rho :.2f} ohm, dev. {k._hw.last_dev:.2f} %, rx bias: {k._hw.rx._bias:.2f} mV') print(f'Resistance: {k._hw.last_rho :.2f} ohm, dev. {k._hw.last_dev:.2f} %, rx bias: {k._hw.rx._bias:.2f} mV')
# k._hw._plot_readings() # k._hw._plot_readings()
A, B, M, N = (28, 25, 27, 26) A, B, M, N = (28, 25, 27, 26)
k._hw.switch_mux([A, B, M, N], state='on') k._hw.switch_mux([A, B, M, N], state='on')
...@@ -66,7 +66,7 @@ if within_ohmpi: ...@@ -66,7 +66,7 @@ if within_ohmpi:
d = k.run_measurement([A, B, M, N], injection_duration=.5, nb_stack=3) d = k.run_measurement([A, B, M, N], injection_duration=.5, nb_stack=3)
print(d) print(d)
# k._hw._plot_readings() # k._hw._plot_readings()
print(f'OhmPiHardware: Resistance: {k._hw.last_rho :.2f} ohm, dev. {k._hw.last_dev:.2f} %, rx bias: {k._hw.rx._bias:.2f} mV') print(f'OhmPiHardware: Resistance: {k._hw.last_rho :.2f} ohm, dev. {k._hw.last_dev:.2f} %, sp: {k._hw.sp:.2f} mV, rx bias: {k._hw.rx._bias:.2f} mV')
print(f'OhmPi: Resistance: {d["R [ohm]"] :.2f} ohm, dev. {d["R_std [%]"]:.2f} %, rx bias: {k._hw.rx._bias:.2f} mV') print(f'OhmPi: Resistance: {d["R [ohm]"] :.2f} ohm, dev. {d["R_std [%]"]:.2f} %, rx bias: {k._hw.rx._bias:.2f} mV')
k._hw._plot_readings(save_fig=False) k._hw._plot_readings(save_fig=False)
# plot_exec_log('ohmpi/logs/exec.log') # plot_exec_log('ohmpi/logs/exec.log')
......
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