Example #1
0
def test_positioner_settle():
    p = SoftPositioner(name='test', egu='egu', limits=(-10, 10),
                       settle_time=0.1, timeout=10.0)
    assert p.settle_time == 0.1
    st = p.move(0.0, wait=False)
    assert st.settle_time == 0.1
    assert st.timeout == 10.0

    assert p.timeout == 10.0
    p.timeout = 20.0
    assert p.timeout == 20.0
Example #2
0
def test_positioner_settle():
    p = SoftPositioner(name='test', egu='egu', limits=(-10, 10),
                       settle_time=0.1, timeout=10.0)
    assert p.settle_time == 0.1
    st = p.move(0.0, wait=False)
    assert st.settle_time == 0.1
    assert st.timeout == 10.0

    assert p.timeout == 10.0
    p.timeout = 20.0
    assert p.timeout == 20.0