set_timebase
Configure the horizontal timebase on a Rigol oscilloscope by setting seconds per division and trigger offset to adjust waveform display timing.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale_s_div | No | Time per division in seconds | |
| offset_s | No | Trigger offset in seconds |