get_meter_value
Read the current frequency, period, totalize count, or voltage from an oscilloscope's built-in counter or DVM, returning the value with its unit and measurement source. Enable the meter first with configure_meter to get a reading.
Instructions
Read the current frequency counter or digital voltmeter value with its unit.
kind is "counter" or "dvm". The unit depends on the mode, so value is returned together with the mode that produced it and the matching unit: Hz for frequency, s for period, counts for totalize, and V for every dvm mode. A reading the instrument cannot produce is returned as null.
The meter's settings come back alongside the value: value is null while enabled is false, because a meter that is off has no reading to give, and source says what is being measured. Turn the meter on with configure_meter first.
The counter needs a few seconds to settle after it is enabled: it reads 0 or null for roughly the first three seconds even on a live signal, and only then starts returning the frequency. Wait about three seconds after enabling before trusting the reading, and treat a null or 0 right after configure_meter as "not settled yet" rather than as no signal.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes |