How to use the nifgen.TriggerMode.STEPPED function in nifgen

To help you get started, we’ve selected a few nifgen examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ni / nimi-python / src / nifgen / system_tests / test_system_nifgen.py View on Github external
def test_reset_device(session):
    default_trigger_mode = session.trigger_mode
    assert default_trigger_mode == nifgen.TriggerMode.CONTINUOUS
    session.trigger_mode = nifgen.TriggerMode.STEPPED
    non_default_trigger_mode = nifgen.TriggerMode.STEPPED
    assert non_default_trigger_mode == nifgen.TriggerMode.STEPPED
    session.reset_device()
    assert session.trigger_mode == nifgen.TriggerMode.CONTINUOUS
github ni / nimi-python / src / nifgen / system_tests / test_system_nifgen.py View on Github external
def test_reset_device(session):
    default_trigger_mode = session.trigger_mode
    assert default_trigger_mode == nifgen.TriggerMode.CONTINUOUS
    session.trigger_mode = nifgen.TriggerMode.STEPPED
    non_default_trigger_mode = nifgen.TriggerMode.STEPPED
    assert non_default_trigger_mode == nifgen.TriggerMode.STEPPED
    session.reset_device()
    assert session.trigger_mode == nifgen.TriggerMode.CONTINUOUS
github ni / nimi-python / src / nifgen / system_tests / test_system_nifgen.py View on Github external
def test_reset_device(session):
    default_trigger_mode = session.trigger_mode
    assert default_trigger_mode == nifgen.TriggerMode.CONTINUOUS
    session.trigger_mode = nifgen.TriggerMode.STEPPED
    non_default_trigger_mode = nifgen.TriggerMode.STEPPED
    assert non_default_trigger_mode == nifgen.TriggerMode.STEPPED
    session.reset_device()
    assert session.trigger_mode == nifgen.TriggerMode.CONTINUOUS