aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2022-01-03 22:15:55 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2022-01-03 22:15:55 -0500
commitba486c43ce8d933cc0a53533e8feb680b7d47741 (patch)
tree07db6ea2400a29040fc5cf7444cbb85b5072248a
parent5e11dca37af4f6400ddb268fce4960a767871941 (diff)
downloadpyExpControl-ba486c43ce8d933cc0a53533e8feb680b7d47741.tar.gz
pyExpControl-ba486c43ce8d933cc0a53533e8feb680b7d47741.zip
added tracking of error_signal_response_to_eit_detuning and B_control_voltage_to_eit_detuning
-rw-r--r--examples/lock_eit.py18
1 files changed, 16 insertions, 2 deletions
diff --git a/examples/lock_eit.py b/examples/lock_eit.py
index 7a3a846..f14713c 100644
--- a/examples/lock_eit.py
+++ b/examples/lock_eit.py
@@ -309,6 +309,16 @@ async def main():
apparatus.state = None
apparatus.runStatus = False
+ error_signal_response_to_eit_detuning = BasicInstrument(device_nickname='.'.join([app_nickname, 'error_signal_response_to_eit_detuning']), tsdb_ingester=tsdb_ingester)
+ error_signal_response_to_eit_detuning.deviceProperties = ['conversion_factor', 'unit']
+ error_signal_response_to_eit_detuning.unit = 'V_per_Hz'
+ ai['error_signal_response_to_eit_detuning']=error_signal_response_to_eit_detuning
+
+ B_control_voltage_to_eit_detuning = BasicInstrument(device_nickname='.'.join([app_nickname, 'B_control_voltage_to_eit_detuning']), tsdb_ingester=tsdb_ingester)
+ B_control_voltage_to_eit_detuning.deviceProperties = ['conversion_factor', 'unit']
+ B_control_voltage_to_eit_detuning.unit = 'Hz_per_V'
+ ai['B_control_voltage_to_eit_detuning'] = B_control_voltage_to_eit_detuning
+
SweepSpan = 10000
ai['rfgen'].stopFrequencySweep()
@@ -331,10 +341,14 @@ async def main():
await initial_lock_to_eit(apparatus, extra_tags=extra_tags)
lockin_slope= await calibratingLockin(apparatus, extra_tags=extra_tags)
- extra_tags.update( {'error_signal_response_to_eit_detuning_in_V_per_Hz' : lockin_slope } )
+ ai['error_signal_response_to_eit_detuning'].conversion_factor = lockin_slope
+ instruments_config.container = getConfig(apparatus)
+ instruments_config.display_container_dictionary()
B_response= await responseToChangeOfBfieldControlVoltage(apparatus, extra_tags=extra_tags)
- extra_tags.update( {'EIT_shift_to_B_control_Voltage_in_Hz_per_V' : B_response } )
+ ai['B_control_voltage_to_eit_detuning'].conversion_factor = lockin_slope
+ instruments_config.container = getConfig(apparatus)
+ instruments_config.display_container_dictionary()
# await sweepRFPower(apparatus, extra_tags=extra_tags, rfPowerList=rfPowerList)