Repository navigation
Conversation
|
Thanks for tracking down the autorange transient. Two cases need attention.
|
3248c1c to
d316e49
Compare
|
Fixed both.
Two choices you may want to overrule:
Also, for a thermocouple the session log no longer records the previous reading a second time when a |
|
Thanks for handling HOLD and allowing placeholders through to the existing logic. On both board configurations, I confirmed that the 9.900 A range-change transient after 1.0000 A is skipped by the display path and contributes 0 C, with HOLD on or off. The same transient still records a 9.900 A maximum in Session log. For regular readings the session receives Please make Session log consume only fresh readings that passed the settling filter. The raw packet stream can continue to retain the original readings for diagnosis. Session log input |
d316e49 to
3291e87
Compare
|
Fixed. The session log now takes only a reading that passed the range-change and overload settling, the one on screen. The DMM log and the serial output still get the raw packets; for a thermocouple the DMM log writes the converted temperature, so it skips a dropped reading too (docs/DMM_SESSION_LOGGING.md says so). A host test on the real Rebased onto 0.22.2; every commit builds. When merged with #153, both change the same |
3291e87 to
a373cd1
Compare
At an AUTO range switch the chip's first reading is wrong: 0 V, or the old digits at the new range's scale (23.03 V stepping 2.2 -> 4.5 V). Seen at the 2.5 V and 25 mA switches against a lab supply. Like the settling after an Ohm overload, that reading is not shown, so the display, the statistics and the trend chart skip it; the raw stream (DMM log, serial output) keeps it. The ampere-hour charge pauses at it as at a lost reading, with nothing estimated for its interval. It is judged on the packet as sent (a thermocouple's millivolts), an overload is always shown, and never two readings in a row are dropped.
The chip's switching reading sometimes comes flagged MANUAL (2 of 20 switches on a 0.5-4.5 V sine), so the range settling let that false 0 V through as a user's range. AUTO is now taken from the reading before the change.
AUTO on the switching reading itself still counts: a run of switches where one reading comes flagged MANUAL drops the next bad one again, as entering AUTO straight into another range does.
Under the manual HOLD the range settling was off while the charge kept
integrating, so a false 9.900 A after 1.0000 A added 2.725 C that HOLD
off did not. The range settle now sees every packet and the charge's run
ends at the dropped reading in both cases. RangeSettle follows the
function and current input itself, since the session's own context stays
frozen under HOLD and a function selected then cleared it on every packet.
A placeholder ("--.--") took its decimal point for a range and was
dropped as a change, so Stable and Auto-Hold saw a stable window across
it. Only a number or an overload tells the range now; a placeholder
passes to HOLD and the statistics and leaves the range settle as it was.
The session log gets a thermocouple's shown reading, which a dropped
packet leaves at the one before: it is no longer observed twice.
The session log was fed the raw packet, so the false reading at an AUTO range change still set its maximum, its interval statistics and events. It now observes only a reading the range and overload settling let through, the one the screen shows; the DMM log keeps the raw packets.
…the CSV log The statistics resume after an AUTO range change from its second reading, the first being the false one the screen skips; the session log's note names the per-packet CSV log as the rest of the document does.
a373cd1 to
d9aa9c8
Compare
What this changes
At an AUTO range switch the chip's first reading is wrong: 0 V, or the old digits at the new range's
scale (23.03 V while stepping 2.2 → 4.5 V). That reading is no longer shown, so the display, the
statistics, the trend chart and the ampere-hour counter skip it; the raw stream (DMM log, serial
output) keeps it. The switching reading sometimes comes flagged MANUAL (2 of 20 switches on a
0.5–4.5 V sine), so AUTO is judged on the reading before the change. An overload is always shown,
and never two readings in a row are dropped.
The check runs on every packet, under the manual HOLD too, before the charge integrates it, and it
follows the function and input itself, so a function selected under HOLD is covered. Only a number
or an overload tells the range: a
--.--placeholder passes to HOLD and the statistics and leavesthe check's state alone.
The DMM session log takes only a reading that passed this settling and the overload check, the one on
screen. The DMM log and the serial output keep the raw packets; for a thermocouple the DMM log writes the
converted temperature, so it skips a dropped reading too.
Testing
pio runbuilds all four environments without new warningsOn ZT703S: ten minutes of a 0.5–4.5 V sine across the 2.5 V range, 20 range switches, no false
reading on screen; the switching reading came flagged MANUAL twice and was dropped both times.
HOLD and placeholders: host test on both boards (1.0000 A, then 9.900 A 500 ms later in the next
range: 0 C with HOLD on and off, also with HOLD on before the current function is selected;
1.0000 →
--.--→ 1.0001 keeps the placeholder; the session log's maximum stays 1.0000 A after thefalse 9.900 A); not re-run on hardware.
Checklist
0x08000000–0x0801FFFF)vendor/is unchanged, or a third-party component is updated as a whole