示例#1
0
def _scope_init(addr: str) -> Oscilloscope:
    scope = Oscilloscope(addr)
    scope.write("XY_DISPLAY ON; ACQUIRE_WAY SAMPLING")
    time.sleep(0.2)
    scope.write("TIME_DIV 10US")
    scope.write("GRID_DISPLAY OFF")
    time.sleep(0.2)
    for channel in range(1, 3):
        scope.write(f"BANDWIDTH_LIMIT C{channel}, ON")
        scope.write(f"C{channel}:VOLT_DIV {SCOPE_LEVEL_FULL}")
    scope.write("MENU OFF")
    return scope
示例#2
0
def _init_oscilloscope(addr):
    scope = Oscilloscope(addr)
    scope.write("XY_DISPLAY ON; ACQUIRE_WAY SAMPLING")
    time.sleep(0.2)
    scope.write("TIME_DIV 50US")
    scope.write("GRID_DISPLAY OFF")
    time.sleep(0.2)
    for channel in range(1, 3):
        scope.write(f"BANDWIDTH_LIMIT C{channel}, ON")
        scope.write(f"C{channel}:VOLT_DIV 0.05")
    scope.write("MENU OFF")