diff --git a/dev/test_mb_2024_4_mux_2024.py b/dev/test_mb_2024_4_mux_2024.py index d243e1de40a344b148760c530d218c4e5cb5949d..259ac9b7f747ce210ceae5c687d22ea5c7ed4b3e 100644 --- a/dev/test_mb_2024_4_mux_2024.py +++ b/dev/test_mb_2024_4_mux_2024.py @@ -8,8 +8,8 @@ import logging from ohmpi.config import HARDWARE_CONFIG stand_alone = False -part_of_hardware_system = True -within_ohmpi = False +part_of_hardware_system = False +within_ohmpi = True # Stand alone if stand_alone: @@ -105,12 +105,12 @@ if within_ohmpi: # k._hw.switch_mux([A, B, M, N], state='off') # print(f'OhmPiHardware 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.load_sequence('sequences/9991_GRAD_16_s1_a1.txt') - k.run_sequence(tx_volt=5., injection_duration=1., nb_stack=2, duty_cycle=0.5) + # k.load_sequence('sequences/9991_GRAD_16_s1_a1.txt') + # k.run_sequence(tx_volt=5., injection_duration=1., nb_stack=2, duty_cycle=0.5) print('using OhmPi') - #d = k.run_measurement([A, B, M, N], injection_duration=1., nb_stack=2, duty_cycle=0.5) + d = k.run_measurement([A, B, M, N], injection_duration=1., nb_stack=2, duty_cycle=0.5) # print(d) - # k._hw._plot_readings() + k._hw._plot_readings() print(f'OhmPiHardware: Resistance: {k._hw.last_resistance() :.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') # k._hw._plot_readings(save_fig=False)