Skip to content

Scope: Counter can show the trace's frequency when it counts no edges #172

Done

Description

@fletto2

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 a frequency from the counter overlay (and the FC readout) for a fast signal the scope clearly
shows, instead of "no signal".

Feed a 20 MHz sine into CH1: the trace and the f readout show 20 MHz, but the counter overlay says
"no signal". The hardware counter counts the trigger comparator's edges, and with a small sine at
20 MHz the comparator often never switches, so the count is a Clean zero. That is correct for the
counter, but on the screen it reads as a contradiction: the signal is right there. A reviewer ran
into exactly this on camera and took it as the counter being broken.

Proposed solution

An option in the Frequency counter section (Analyze > Display), next to Counter, Readings averaged
and Clock correction: "No edges counted", with the choices "No signal" (default, exactly today's
behaviour) and "Trace f (~)".

With "Trace f ()", when the count is a Clean reading of no edges at all, the overlay and the FC
cell show the record's own frequency instead, marked "
" like an approximate readout, with the f
readout's 2-3 digits: "20.0MHz~". It only stands in when all of these hold:

  • the count is valid, Clean, 0 Hz and saw no edges (not Changing, not Uncertain, not one stray edge);
  • the record's f comes from its edges (not from the spectrum, which can be an alias);
  • the record was sampled at 80 MS/s or more (full rate; the 360 MHz profile runs the ADC at 90 MS/s);
  • the record was captured from 1 s before the count began to about 3 s after it ended (the
    longest gap between two counts plus CounterCheck::SlackMs), so a HOLD or Single record from
    earlier never stands in for a live count, and the value doesn't flicker between counts.

No clock correction is applied to it (it isn't a count), and SCPI keeps reporting the raw count.

In the theme JSON it would be plot.counter.estimate (0/1): missing reads as 0, and it is written
only when 1, so saved files stay the same for everyone who doesn't turn it on.

Related, and there with the option Off too: with Readings averaged 3 or 10, a count of no edges
goes into the overlay's mean, so when a signal stops being counted the overlay shows a falling
value with full digits (20 MHz, then 17.14286MHz and lower) for up to ten cycles before "no signal". The
branch restarts the mean on a count of none, as it does on an unsettled one.

I have this on a branch against 0.21.19 (one commit) and can open it as a PR if you want it. Happy
to rename the row or the key, or to leave it to you if you'd rather do it another way.

Alternatives

Adding an f readout to the footer shows the trace's frequency today, but the counter overlay next
to it still says "no signal", which is what people notice. Moving the trigger level into the
waveform helps when the comparator can switch at all; at 20 MHz with a small amplitude it often
can't.

Devices

  • ZT703S
  • ZT706S

Activity

  1. bve commented on Nov 26, 2026

    @bve
    Owner

    Included in the OpenOSC 0.22.0 pre-release.

    The frequency counter now offers No edges counted → Trace f (~). The option displays an estimate from waveform edges in the overlay and FC cell when the comparator counts zero edges. I checked an approximately 20 MHz display estimate with a raw count of zero over SCPI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions