R&S RTB2000 oscilloscope driver - driver and trigger #1050
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have created a driver for the R&S RTB2000 and RTB2 oscilloscope. Both analog and digital channels are supported. The external trigger and line trigger, as well as the function generator, can be used.
The trigger dialogs were created in separate files, as inserting them into the existing triggers would have made them confusing.
It was tested on a Raspberry Pi 500 with the latest Raspberry Pi OS (Debian 13, arm64) and an R&S RTB2004 with firmware v3.000.
Unfortunately, the measurement curves are displayed incorrectly; presumably, the GPU is not powerful enough.
I am not a C++ programmer and copied most of the code from other drivers and adapted or expanded it as best I could.
Modified files:
scopehal/CMakeLists.txt
scopehal/scopehal.cpp
scopehal/RSRTB2kOscilloscope.cpp
scopehal/RSRTB2kOscilloscope.h
scopehal/RSRTB2kEdgeTrigger.cpp
scopehal/RSRTB2kEdgeTrigger.h
scopehal/RSRTB2kLineTrigger.cpp
scopehal/RSRTB2kLineTrigger.h
scopehal/RSRTB2kRiseTimeTrigger.cpp
scopehal/RSRTB2kRiseTimeTrigger.h
scopehal/RSRTB2kRuntTrigger.cpp
scopehal/RSRTB2kRuntTrigger.h
scopehal/RSRTB2kTimeoutTrigger.cpp
scopehal/RSRTB2kTimeoutTrigger.h
scopehal/RSRTB2kVideoTrigger.cpp
scopehal/RSRTB2kVideoTrigger.h
scopehal/RSRTB2kWidthTrigger.cpp
scopehal/RSRTB2kWidthTrigger.h
Screenshot: https://www.dreisiebner.at/ngscopeclient-rtb2k-driver.png