Skip to content

Preserve acquisition timing when resaving a digital capture - #925

Open
Bender1011001 wants to merge 1 commit into
DreamSourceLab:masterfrom
Bender1011001:fix/preserve-file-acquisition-timing
Open

Bender1011001 wants to merge 1 commit into
DreamSourceLab:masterfrom
Bender1011001:fix/preserve-file-acquisition-timing

Conversation

@Bender1011001

Copy link
Copy Markdown

Fixes #924.

On a full save of a file-backed digital capture, use the acquisition limit, signed trigger timestamp and trigger sample already loaded by the file driver. The driver returns presence flags so an explicit zero survives and a missing field uses the existing save default. Cursor-range saves and live acquisitions use the existing path.

Native application checks

Built this branch against 2e9e2c8 on Ubuntu 22.04. Used the candidate application's channel-name editor and full Save dialog, then reopened each output and exported its waveform in a fresh stock DSView 1.3.2 process.

Source Result after renaming the first input
CP2112 hardware capture Trigger remained at sample 2,000,026 and timestamp 1,629,279,844,057 ms. Both names were as expected. All 91,922,432 sampled words at 20 MHz and all exported transition positions matched the original.
Generated 4,096-sample, two-channel capture at 1 MHz Stock Save reset trigger 1,234 to zero and rewrote the timestamp. With this branch, a fresh stock reopen returned trigger 1,234 and the original 1,700,000,000,123 ms timestamp. Only the requested channel name changed among the fields and waveform checked.

The same patch on the earlier 03131dd source revision was also exercised on seven hardware recordings, omitted versus explicit-zero timing fields, a signed negative timestamp, an excerpt whose declared limit exceeded its stored samples, and a cursor-selected save. Those additional cases were run on the earlier revision.

Schildkroet added a commit to Schildkroet/DSView that referenced this pull request Dec 1, 2026
Port of upstream DSView PR DreamSourceLab#925 (issue DreamSourceLab#924): a full save of a loaded
logic capture no longer resets the trigger position or rewrites the
acquisition time. Uses SR_CONF_FILE_ACQUISITION (50009; upstream's 50008
is taken by SR_CONF_EXT_SAMPLERATE here).

Port of upstream PRs DreamSourceLab#927/DreamSourceLab#928: append to CMAKE_CXX_FLAGS instead of
overwriting it, and drop the forced -std=c++11/-std=c99.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Full save of a loaded logic capture resets its trigger position and rewrites its acquisition time

1 participant