set_timebase
Set the left- and right-hand span for the time axis. Units are seconds relative to the trigger point.Parameters
number required
Time from the trigger point to the left of screen. This may be negative (trigger on-screen) or positive (trigger off the left of screen).
units: Seconds number required
Time from the trigger point to the right of screen.
units: Seconds number
Requested maximum frame length. The subsequent calls to `get_data` will return frames with as close to this many points as possible without going over. Achievable frame lengths depend on the specific timebase and hardware version, so the user code should be written to work with frame lengths that change when the timebase changes.
default: 1024allowed values:128, 256, 512, 1024, 2048, 4096, 8192, 16384units: points boolean
Disable all implicit conversions and coercions.
default: trueParameter conversion
The t1 and t2 parameters are converted to offset=-(t1+t2)/2 and span=(t2-t1) before sending to the Moku. Any error messages that occur due to values being out of range will refer to the value of the offset or span. If out of range values are given with strict=False then the returned t1 and t2 values will be recalculated based on the coerced offset and span values.
# Examples
# Sample response
{
"t1": -0.001,
"t2": 0.001
}
1
2
3
4
2
3
4