set_timebase
Set the horizontal timebase (seconds per division) and trigger offset to control the oscilloscope's display window and time alignment.
Instructions
Set the horizontal timebase. scale_s_div: seconds per division (e.g. 0.001 for 1 ms/div). offset_s: shifts the display window; time_start = offset_s − 6×scale_s_div, time_end = offset_s + 6×scale_s_div. Trigger (t=0) is always a zero crossing when using edge trigger. To align the right edge to a zero crossing at time T: set offset_s = T − 6×scale_s_div. To put the trigger at the left edge of the screen: set offset_s = +6×scale_s_div. Parameter names match get_scope_state output for easy round-tripping. Returns the resulting timebase configuration. Do not call concurrently with any other rigol tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset_s | No | Trigger offset in seconds | |
| scale_s_div | No | Time per division in seconds |