From d2cc18f02ba808100f43a387ae6d8ee535685633 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Mon, 3 Jan 2022 22:22:04 -0500 Subject: removet getBCurrent it is inside lock and log loop --- examples/lock_eit.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'examples/lock_eit.py') diff --git a/examples/lock_eit.py b/examples/lock_eit.py index f14713c..b0c6e59 100644 --- a/examples/lock_eit.py +++ b/examples/lock_eit.py @@ -161,8 +161,6 @@ async def calibratingLockin(apparatus, extra_tags={}): logger.info(f'dE = {dE}') logger.info(f'lockin error signal slope = {slope} V/Hz') - apparatus.getBCurrent(); # this automatically logs value to TSDB - return float(slope) async def responseToChangeOfBfieldControlVoltage(apparatus, extra_tags={}): @@ -176,7 +174,6 @@ async def responseToChangeOfBfieldControlVoltage(apparatus, extra_tags={}): apparatus.gui_log.setTraces( initLog(extra_tags=extra_tags) ) dV = 0.01 ai['lockin'].AuxOut1=dV - apparatus.getBCurrent(); # this automatically logs value to TSDB # initial lock ai['pid'].setEnable(True) @@ -191,7 +188,6 @@ async def responseToChangeOfBfieldControlVoltage(apparatus, extra_tags={}): ) fr0 = ai['rfgen'].getFreqFixed() - apparatus.getBCurrent(); # this automatically logs value to TSDB # this is for the money lock ai['lockin'].AuxOut1=0 @@ -211,8 +207,6 @@ async def responseToChangeOfBfieldControlVoltage(apparatus, extra_tags={}): logger.info(f'df = {df}') logger.info(f'response to magnetic control voltage = {slope} Hz/V') - apparatus.getBCurrent(); # this automatically logs value to TSDB - # relock to default state ai['lockin'].AuxOut1=0 ai['pid'].setEnable(True) -- cgit v1.2.3