From d5443fbf8d4f1c6131f2430ed36c176be0c029a0 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Fri, 11 Jun 2021 22:52:59 -0400 Subject: added dummy UE9 class suitable for debugging without hardware --- ue9qol.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ue9qol.py b/ue9qol.py index 2250f2b..0ce21b8 100644 --- a/ue9qol.py +++ b/ue9qol.py @@ -2,6 +2,7 @@ import sys import traceback import time # For sleep, clock, time and perf_counter from datetime import datetime +import random import u3 import u6 @@ -35,3 +36,20 @@ class UE9qol: def close(self): self.daq.close() +class UE9qolDummy: + # to be used for graphics debugging + def __init__(self, debug = False, autoOpen = True, **kargs): + # do nothing + return + + def getInputCh(self, chNum): + return random.normalvariate(chNum, 0.25) + + def setOutputCh(self, chNum=None, volts=None): + # do nothing + return + + def close(self): + # do nothing + return + -- cgit v1.2.3