#14 Login and monitor variable

Unlicense
nobody
None
2020-02-08
2020-02-08
Ingo
No
# login
    onlineapp = online.create_online_application(app)
    try:
        onlineapp.login(OnlineChangeOption.Try, True)
    except:
        print("Error: compile error")
        return False

    # run program
    onlineapp.start()

    # wait until project finishes
    for timeout in range(10):
        system.delay(1000)
        xready = onlineapp.read_value("PRG_RUNTEST.xReady")
        if str(xready) == "TRUE":
            break
    # check for error
    xerror = onlineapp.read_value("PRG_RUNTEST.xError")

Discussion


Log in to post a comment.