Pulse Trigger

Pulse triggers are used to capture pulse waveforms based on the pulse width. A capture can be triggered if the pulse width is greater than a minumum width, less than a maximum width, or between a minimum and maximum width.

Pulse Boundary

Minimum Width

This sets a minimum width the pulse must be to trigger a waveform capture.

set_pulse_min_width.py
 from lager import Net, NetType

 pw_led = Net.get('PWM_LED',
         type=NetType.Analog,
         setup_function=setup_nets,
         teardown_function=teardown_nets)

 pw_led.trigger_settings.pulse.set_trigger_on_pulse_greater_than_width(0.0001) #100µs
Set Pulse Minimum Width
 ~  lager analog PWM_LED trigger pulse --trigger-on gt --lower .0001 --dut 1

Maximum Width

This sets a maximum width the pulse must be to trigger a waveform capture.

set_pulse_max_width.py
 from lager import Net, NetType

 pw_led = Net.get('PWM_LED',
         type=NetType.Analog,
         setup_function=setup_nets,
         teardown_function=teardown_nets)

 pw_led.trigger_settings.pulse.set_trigger_on_pulse_less_than_width(0.001) #1000µs
Set Pulse Maximum Width
 ~  lager analog PWM_LED trigger pulse --trigger-on lt --upper .0001 --dut 1

Minimum And Maximum Width

This sets both a minimum and maximum pulse width that must be met for a waveform to be captured.

set_pulse_minmax_width.py
 from lager import Net, NetType

 pw_led = Net.get('PWM_LED',
         type=NetType.Analog,
         setup_function=setup_nets,
         teardown_function=teardown_nets)

 pw_led.trigger_settings.pulse.set_trigger_on_pulse_less_than_greater_than(max_pulse_width=0.001, min_pulse_width=0.0001) #1000µs - 100µs
Set Pulse Minimum Maximum Width
 ~  lager analog PWM_LED trigger pulse --trigger-on gtlt --upper .0001 --lower .001 --dut 1

Level

The Level parameter sets the minimum voltage level a pulse must reach in order to trigger a waveform capture.

set_pulse_level.py
 from lager import Net, NetType

 pw_led = Net.get('PWM_LED',
         type=NetType.Analog,
         setup_function=setup_nets,
         teardown_function=teardown_nets)

 pw_led.trigger_settings.pulse.set_level(1.8)
Set Pulse Voltage Level
 ~  lager analog PWM_LED trigger pulse --level 1.8 --dut 1

Source

set_pulse_trigger_sources.py
from lager import Net, NetType

pwm_led = Net.get('PWM_LED',
         type=NetType.Analog,
         setup_function=setup_nets,
         teardown_function=teardown_nets)

pwm_led.trigger_settings.pulse.set_source(pwm_led)
Set Pulse Trigger Sources
 ~  lager analog PWM_LED trigger pulse --source PWM_LED --dut 1