Skip to content

Add binary capture file parser#396

Merged
azonenberg merged 16 commits intongscopeclient:masterfrom
sam210723:master
Apr 12, 2021
Merged

Add binary capture file parser#396
azonenberg merged 16 commits intongscopeclient:masterfrom
sam210723:master

Conversation

@sam210723
Copy link
Copy Markdown
Contributor

@sam210723 sam210723 commented Feb 19, 2021

This PR adds a parser for Agilent, Keysight and Rigol multi-channel binary waveform capture files.

I've added helper functions ReadFromFile(), BytesToInt(), BytesToFloat() and BytesToDouble() to make parsing the file headers easier. I don't write C++ code all that often so let me know if there's a better way to do this.

See related PR ngscopeclient/scopehal-apps#307 for changes to Import dialog.

Parser for Agilent/Keysight/Rigol binary capture files
@sam210723
Copy link
Copy Markdown
Contributor Author

Leaks everywhere, I should learn proper memory management. Thanks for having a look, I'll fix those up soon.

@azonenberg azonenberg merged commit 461ff54 into ngscopeclient:master Apr 12, 2021
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.

4 participants