forked from awendt/pyrelacs
27 lines
492 B
Python
27 lines
492 B
Python
import time
|
|
|
|
import uldaq
|
|
from IPython import embed
|
|
from pyrelacs.repros.repos import MccDac
|
|
from pyrelacs.util.logging import config_logging
|
|
import numpy as np
|
|
|
|
log = config_logging()
|
|
|
|
|
|
class Attenuator(MccDac):
|
|
def __init__(self) -> None:
|
|
super().__init__()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
SAMPLERATE = 40_000.0
|
|
DURATION = 5
|
|
AMPLITUDE = 1
|
|
SINFREQ = 1
|
|
|
|
att = Attenuator()
|
|
# att.set_attenuation_level(db_channel1=5, db_channel2=5)
|
|
|
|
att.check_attenuator()
|