How to use the nifgen.TriggerMode.CONTINUOUS 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_frequency_list(session):
    session.output_mode = nifgen.OutputMode.FREQ_LIST
    duration_array = [0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01]
    frequency_array = [1000, 100900, 200800, 300700, 400600, 500500, 600400, 700300, 800200, 900100]
    waveform_handle = session.create_freq_list(nifgen.Waveform.SQUARE, frequency_array, duration_array)
    session.configure_freq_list(waveform_handle, 2.0, 0, 0)
    session.trigger_mode = nifgen.TriggerMode.CONTINUOUS
    session.output_enabled = True
    assert session.func_waveform == nifgen.Waveform.SQUARE
    assert session.func_amplitude == 2.0
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