Trigger Coupling

Coupling allows the user to couple the triggering to the DC, AC, low frequency, or high frequency portions of the waveform.

DC

set_coupling_to_dc.py
 from lager import Net, NetType, TriggerStatus

 sck = Net.get('I2C.SCK',
         type=NetType.Analog,
         setup_function=setup_nets,
         teardown_function=teardown_nets)

 sck.trigger_settings.set_coupling_DC()

AC

set_coupling_to_ac.py
 from lager import Net, NetType, TriggerStatus

 sck = Net.get('I2C.SCK',
         type=NetType.Analog,
         setup_function=setup_nets,
         teardown_function=teardown_nets)

 sck.trigger_settings.set_coupling_AC()

Reject Low Frequency

set_coupling_to_low_freq_reject.py
 from lager import Net, NetType, TriggerStatus

 sck = Net.get('I2C.SCK',
         type=NetType.Analog,
         setup_function=setup_nets,
         teardown_function=teardown_nets)

 sck.trigger_settings.set_coupling_low_freq_reject()

Reject High Frequency

set_coupling_to_high_freq_reject.py
 from lager import Net, NetType, TriggerStatus

 sck = Net.get('I2C.SCK',
         type=NetType.Analog,
         setup_function=setup_nets,
         teardown_function=teardown_nets)

 sck.trigger_settings.set_coupling_high_freq_reject()

Note

Setting the coupling via the CLI requires you to also set the trigger type.

Set Coupling Via the CLI
~  lager analog I2C.SDA trigger edge --coupling dc --dut 1