def get_X_Y(lockin):
    """
    Get X and Y (Measure)

    args:
            lockin (pyvisa.resources.gpib.GPIBInstrument): SRS830

    returns:
            (tuple): X, Y
    """
    X, Y = lockin.query("SNAP? 1,2").split("\n")[0].split(",")
    X, Y = float(X), float(Y)
    return X, Y