aboutsummaryrefslogtreecommitdiff
path: root/qolab
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-20 17:00:11 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-20 17:00:11 -0400
commit769e44e97a261d839a5ab0ace1aa07d807c1248b (patch)
tree20817c1f5ef2c08fdf709f307997a583740221a8 /qolab
parent6c79b95ab8727dac763f213f050c7839e51fee38 (diff)
downloadqolab-769e44e97a261d839a5ab0ace1aa07d807c1248b.tar.gz
qolab-769e44e97a261d839a5ab0ace1aa07d807c1248b.zip
added logger to the Rigol scope
Diffstat (limited to 'qolab')
-rw-r--r--qolab/hardware/scope/rigolds1054z.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/qolab/hardware/scope/rigolds1054z.py b/qolab/hardware/scope/rigolds1054z.py
index 0bed7e9..76478fd 100644
--- a/qolab/hardware/scope/rigolds1054z.py
+++ b/qolab/hardware/scope/rigolds1054z.py
@@ -10,6 +10,15 @@ import numpy as np
import scipy.signal
from pyvisa.constants import InterfaceType
from pyvisa.errors import VisaIOError
+import logging
+
+logging.basicConfig(
+ format="%(asctime)s %(levelname)8s %(name)s: %(message)s",
+ datefmt="%m/%d/%Y %H:%M:%S",
+)
+logger = logging.getLogger(__name__)
+logger.setLevel(logging.INFO)
+
class RigolDS1054z(ScopeSCPI):