Repository navigation
Description
One request
- This request describes one feature or improvement, or changes that belong to the same feature.
Area
Scope
What do you want to do?
Read the frequency and period of a fast signal at a fast timebase. At 10 ns/div a 20 MHz signal
puts about two periods in the window. The readouts need four periods or more for a frequency of
their own, so f and T read --, and WAV:MEAS? returns NAN for them. The hardware counter has
19.996 MHz for the same signal at the same moment (FC, MEAS:FCNT?). This came from our ZT703S
tester, who zooms in on edges and wants the readouts to keep showing f there.
Proposed solution
An option in Analyze → Measurements, under Measure over: "Short window f/T", Off or
From the counter. Off is the default and is exactly today's behaviour.
With From the counter, f and T that the window can't resolve come from the settled hardware count,
and only when:
- the window holds fewer than four periods of that count;
- the count is settled (
CounterReading::settled(): not Uncertain or Changing); - the count is the latest one, up to about 3 s before the record (the longest gap between two
counts, with the other channel idle). A count more than 0.5 s older than the record is marked
~, since the signal may have changed since. A HOLD or STOP record of an earlier moment keeps
--.
A count that is settled but not Clean (Filtered or Unverified) is shown with ~, like a frequency
from the spectrum. A record that has its own f keeps it. Duty can't come from a count and stays --.
WAV:MEAS? applies the same rule. Its frequency_source field then reads CNT, or CNT? for a
count that isn't Clean. With the option Off, the reply never contains CNT, as today.
In settings.json it would be scope.measure_short_window_counter, next to measure_basis. A
missing key means Off, the key is written only when On, and a non-bool value rejects the file like
its neighbours. The field is a bool in ReadoutSelection's padding after basis, so neither
ReadoutSelection (36 B) nor Preferences (632 B) grows.
I have this on a branch against 0.21.19 (one commit, about 100 lines with README and
SCPI_DESKTOP.md) and can open it as a PR if you want it. Our fork has shipped it to a ZT703S tester
since our test build 44 (there without the option, always on). Happy to change the name or place of
the row, or to leave it to you if you'd rather do it another way.
Alternatives
Turn on the counter overlay (FC) and read the frequency there, or switch to a slower timebase to
read f and then back. Benchtop scopes usually fall back to their counter or a longer record for
the frequency measurement when the screen holds too few cycles.
Devices
- ZT703S
- ZT706S
Activity
bve commentedon Nov 26, 2026
Included in the OpenOSC 0.22.0 pre-release.
Analyze → Measurements → Short window f/T can use a recent settled count for frequency and period when the selected window is too short. The option defaults to Off. WAV:MEAS? reports CNT or CNT? when the hardware count supplies the value.