From 4cbf2374551683829d32e148770e3d90374386c7 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Sun, 26 Dec 2021 18:57:43 -0500 Subject: scope have basic tsdb loggers --- examples/lock_eit.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/lock_eit.py b/examples/lock_eit.py index 7efa8d6..7a3951e 100644 --- a/examples/lock_eit.py +++ b/examples/lock_eit.py @@ -8,7 +8,6 @@ import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt -# import universal_tsdb as utsdb import qolab.tsdb as tsdb import asyncio import time @@ -23,6 +22,8 @@ from qolab.data import TraceSetSameX, TraceXY, Trace l = logging.getLogger('qolab.gui.web') l.setLevel(logging.INFO) +l = logging.getLogger('qolab.tsdb') +l.setLevel(logging.DEBUG) logger = logging.getLogger('Magnetometer') logger.setLevel(logging.INFO) @@ -120,7 +121,7 @@ dfB = freqDeltaMp2 - freqZero freqDeltaMm2 = freqZero - dfB; async def main(): - tsdb_client = tsdb.Client('influx', 'http://lumus.phusics.wm.edu:8428', database='qolab') + tsdb_client = tsdb.Client('influx', 'http://lumus.physics.wm.edu:8428', database='qolab') tsdb_ingester = tsdb.Ingester(tsdb_client, batch=11, measurement_prefix='VAMPIRE.HighPower') task_wp_update_loop = asyncio.create_task(update_webpage_loop(update_interval=1)) @@ -136,7 +137,7 @@ async def main(): logger.info("Accessing hardware") rm = pyvisa.ResourceManager() instr_scope=rm.open_resource('TCPIP::192.168.0.61::INSTR') - scope = SDS1104X(instr_scope) + scope = SDS1104X(instr_scope, device_nickname='scope.feedback', tsdb_ingester=tsdb_ingester) instr_rfgen=rm.open_resource('TCPIP::192.168.0.114::INSTR') rfgen = AgilentE8257D(instr_rfgen) instr_lockin=rm.open_resource('TCPIP::192.168.0.51::INSTR') -- cgit v1.2.3