Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add binary capture file parser #396

Merged
merged 16 commits into from Apr 12, 2021
Merged

Add binary capture file parser #396

merged 16 commits into from Apr 12, 2021

Conversation

sam210723
Copy link
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
scopehal/MockOscilloscope.cpp Outdated Show resolved Hide resolved
scopehal/MockOscilloscope.cpp Outdated Show resolved Hide resolved
scopehal/MockOscilloscope.cpp Outdated Show resolved Hide resolved
scopehal/MockOscilloscope.cpp Outdated Show resolved Hide resolved
scopehal/MockOscilloscope.cpp Outdated Show resolved Hide resolved
scopehal/MockOscilloscope.cpp Outdated Show resolved Hide resolved
scopehal/MockOscilloscope.cpp Outdated Show resolved Hide resolved
scopehal/MockOscilloscope.cpp Outdated Show resolved Hide resolved
@sam210723
Copy link
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.

None yet

4 participants