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.
Updated version using Python 3.9 and latest PyVisa and NumPy
The code is updated with more function and robust interaction with the scope.
To use you should update to latest pyvisa (py -m pip install pyvisa)
Install latest numpy in same manner
Download PyDSA from the repo and off you go!
*Changelog Rossi, KK1L January & July 2021
Python 3.9 update...syntax, call format changes, functions
More robust scope communication
On screen progress feedback
Warning if scope is not triggered (used to crash)
Warning if input signal is clipping at scope
Can read from channel 1 or channel 2
Peak detect information and marker on waveform
Added autoscaling
Scaling change and offset works for all waves on the screen
Can store up to 7 waveforms on the screen
Most actions can be done while acquiring
Added clear function which removes all waves and resets averaging/max-hold
Scale is accurate in dBm after calibration *Previously the absolute level was arbitrary, but relatively accurate *"Calibrate" is manual operation to adjust peak for a known dBm value *Use a sine wave of known magnitude and adjust the calibration factor for the right reading Note: It is on my list to make this automatic.
Added autocalibration. Use a known amplitude sine wave and autocal will match to the dBm you enter