aboutsummaryrefslogtreecommitdiff
path: root/examples/lock_eit.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/lock_eit.py')
-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)