Beispiel #1
0
def BTN_PSA2_CLR_clicked(ser, state):
    if (state):
        spcom(ser, b'PSA2 CLR  1\r\n')
    else:
        spcom(ser, b'PSA2 CLR  0\r\n')
Beispiel #2
0
def BTN_PSA2_BAL_clicked(ser, state):
    if (state):
        spcom(ser, b'PSA2 BAL  1\r\n')
    else:
        spcom(ser, b'PSA2 BAL  0\r\n')
Beispiel #3
0
def BTN_PSA1_IN_clicked(ser, state):
    if (state):
        spcom(ser, b'PSA1 IN   1\r\n')
    else:
        spcom(ser, b'PSA1 IN   0\r\n')
Beispiel #4
0
def setManual(ser):
    spcom(ser, b'SET MANUAL\r\n')
Beispiel #5
0
def BTN_PSA2_PRO_clicked(ser, state):
    if (state):
        spcom(ser, b'PSA2 PRO  1\r\n')
    else:
        spcom(ser, b'PSA2 PRO  0\r\n')
Beispiel #6
0
def BTN_COL2_IN_clicked(ser, state):
    if (state):
        spcom(ser, b'COL2 IN   1\r\n')
    else:
        spcom(ser, b'COL2 IN   0\r\n')
Beispiel #7
0
def btn_C_2_clicked():
    spcom(b'C2\r\n')
Beispiel #8
0
def btn_C_7_clicked():
    spcom(b'C7\r\n')
Beispiel #9
0
def btn_C_8_clicked():
    spcom(b'C8\r\n')
Beispiel #10
0
def btn_C_6_clicked():
    spcom(b'C6\r\n')
Beispiel #11
0
def btn_C_0_clicked(ser, state):
    # print(state)
    if (state):
        spcom(ser, b'C00\r\n')
    else:
        spcom(ser, b'C01\r\n')
Beispiel #12
0
def btn_C_5_clicked():
    spcom(b'C5\r\n')
Beispiel #13
0
def btn_C_4_clicked():
    spcom(b'C4\r\n')
Beispiel #14
0
def btn_C_3_clicked():
    spcom(b'C3\r\n')
Beispiel #15
0
def BTN_PROD_OUT_clicked(ser, state):
    # print("prod_out")
    if (state):
        spcom(ser, b'PROD OUT  1\r\n')
    else:
        spcom(ser, b'PROD OUT  0\r\n')
Beispiel #16
0
def btn_C_9_clicked():
    spcom(b'C9\r\n')
Beispiel #17
0
def BTN_PROD_PSA2_clicked(ser, state):
    if (state):
        spcom(ser, b'PROD PSA2 1\r\n')
    else:
        spcom(ser, b'PROD PSA2 0\r\n')
Beispiel #18
0
def setAutorepeat(ser):
    spcom(ser, b'SET REPEAT\r\n')
Beispiel #19
0
def setAutostart(ser):
    spcom(ser, b'SET START\r\n')
Beispiel #20
0
def btn_C_1_clicked(ser, state):
    # spcom(b'C1\r\n')
    if (state):
        spcom(ser, b'C10\r\n')
    else:
        spcom(ser, b'C11\r\n')