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.
~ lager analog I2C.SDA trace --voltdiv 1 --dut 1
~ lager analog I2C.SDA trace --voltdiv 2 --dut 1
Or via Python...
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()
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.
~ lager analog I2C.SDA trace --voltoffset 1 --dut 1
~ lager analog I2C.SDA trace --voltoffset -2 --dut 1
Or via Python...
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()
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.
~ lager analog I2C.SDA trace --timediv .00001 --dut 1
~ lager analog I2C.SDA trace --timediv .0001 --dut 1
Or via Python...
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()
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.
~ lager analog I2C.SDA trace --timeoffset .00005 --dut 1
~ lager analog I2C.SDA trace --timeoffset -.00002 --dut 1
Or via Python...
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()
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()