Cursor
Manually placing cursors on a captured waveform is a convenient way to take ad-hoc point to point measurements.
Set Cursor Position
This allows you to specify the (x,y) coordinate of the cursor bar over a waveform.
Set Cursor A
from lager import Net, NetType
sck = Net.get('I2C.SCK',
type=NetType.Analog,
setup_function=setup_nets,
teardown_function=teardown_nets)
sck.cursor.set_a(x=10,y=42)
~ lager analog I2C.SCK cursor set-a --x 10 --y 42 --dut 1
Set Cursor B
from lager import Net, NetType
sck = Net.get('I2C.SCK',
type=NetType.Analog,
setup_function=setup_nets,
teardown_function=teardown_nets)
sck.cursor.set_b(x=42,y=10)
~ lager analog I2C.SCK cursor set-b --x 42 --y 10 --dut 1
Move Cursor Position
This allows you to shift the cursor relative to its current position.
Move Cursor A
from lager import Net, NetType
sck = Net.get('I2C.SCK',
type=NetType.Analog,
setup_function=setup_nets,
teardown_function=teardown_nets)
sck.cursor.move_a(x_del=10,y_del=42)
~ lager analog I2C.SCK cursor move-a --del-x 10 --del-y 42 --dut 1
Move Cursor B
from lager import Net, NetType
sck = Net.get('I2C.SCK',
type=NetType.Analog,
setup_function=setup_nets,
teardown_function=teardown_nets)
sck.cursor.move_b(x_del=42,y_del=10)
~ lager analog I2C.SCK cursor move-b --del-x 42 --del-y 10 --dut 1