Trace Settings
Trace settings allows you to manipulate the vertical and horizontal scale of a trace waveform.
Trace Volts/Division
The volts per division for a given net trace sets the vertical scale for the trace waveform.
Set Volts/Div to 1V/division
~ lager analog I2C.SDA trace --voltdiv 1 --dut 1

Set Volts/Div to 1V/division
~ lager analog I2C.SDA trace --voltdiv 2 --dut 1

Or via Python...
set_voltdiv_1v.py
from lager import Net, NetType
sck = Net.get('I2C.SCK',
type=NetType.Analog,
setup_function=setup_nets,
teardown_function=teardown_nets)
sck.trace_settings.set_volts_per_div(1)
sck.enable()
set_voltdiv_2v.py
from lager import Net, NetType
sck = Net.get('I2C.SCK',
type=NetType.Analog,
setup_function=setup_nets,
teardown_function=teardown_nets)
sck.trace_settings.set_volts_per_div(2)
sck.enable()
Trace Volt Offset
The volt offset adjusts the vertical offset for the trace waveform.
Set Volt Offset to 1V
~ lager analog I2C.SDA trace --voltoffset 1 --dut 1

Set Volt Offset to -2V
~ lager analog I2C.SDA trace --voltoffset -2 --dut 1

Or via Python...
set_voltoffset_1v.py
from lager import Net, NetType
sck = Net.get('I2C.SCK',
type=NetType.Analog,
setup_function=setup_nets,
teardown_function=teardown_nets)
sck.trace_settings.set_volt_offset(1)
sck.enable()
set_voltoffset_m2v.py
from lager import Net, NetType
sck = Net.get('I2C.SCK',
type=NetType.Analog,
setup_function=setup_nets,
teardown_function=teardown_nets)
sck.trace_settings.set_volt_offset(-2)
sck.enable()
Trace Seconds/Division
The time per division for a given net trace sets the horizontal scale for the trace waveform.
Set Time/Div to 10µs
~ lager analog I2C.SDA trace --timediv .00001 --dut 1

Set Time/Div to 100µs
~ lager analog I2C.SDA trace --timediv .0001 --dut 1

Or via Python...
set_timediv_10us.py
from lager import Net, NetType
sck = Net.get('I2C.SCK',
type=NetType.Analog,
setup_function=setup_nets,
teardown_function=teardown_nets)
sck.trace_settings.set_time_per_div(.00001)
sck.enable()
set_timediv_100us.py
from lager import Net, NetType
sck = Net.get('I2C.SCK',
type=NetType.Analog,
setup_function=setup_nets,
teardown_function=teardown_nets)
sck.trace_settings.set_time_per_div(.0001)
sck.enable()
Trace Time Offset
The time offset adjusts the horizontal offset for the trace waveform.
Set Time Offset to 50µs
~ lager analog I2C.SDA trace --timeoffset .00005 --dut 1

Set Time Offset to -20µs
~ lager analog I2C.SDA trace --timeoffset -.00002 --dut 1

Or via Python...
set_timeoffset_50us.py
from lager import Net, NetType
sck = Net.get('I2C.SCK',
type=NetType.Analog,
setup_function=setup_nets,
teardown_function=teardown_nets)
sck.trace_settings.set_time_offset(.00005)
sck.enable()
set_timeoffset_m20us.py
from lager import Net, NetType
sck = Net.get('I2C.SCK',
type=NetType.Analog,
setup_function=setup_nets,
teardown_function=teardown_nets)
sck.trace_settings.set_time_offset(-.00002)
sck.enable()