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

Updated the get_acquisition_data example to select source for the measurement. #187

Merged
merged 3 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ ______________________________________________________________________

Things to be included in the next release go here.

### Fixed

- Updated get_acquisition_data example to select source for the measurement.

______________________________________________________________________

## v1.2.3 (2024-04-03)
Expand Down
5 changes: 4 additions & 1 deletion examples/scopes/tekscope/get_acquisition_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
# Creating Scope driver object by providing ip address.
scope: MSO6B = device_manager.add_scope("127.0.0.1")

# Turn on channel 1
# Turn on channel 1 and channel 2
scope.commands.display.waveview1.ch[1].state.write("ON")
scope.commands.display.waveview1.ch[2].state.write("ON")

# Set channel 1 vertical scale to 10mV
scope.commands.ch[1].scale.write(10e-3)
Expand All @@ -38,8 +39,10 @@
# Adding measurements
scope.commands.measurement.addmeas.write("AMPLitude")
scope.commands.measurement.addmeas.write("PK2PK")
scope.commands.measurement.addmeas.write("MAXIMUM")
scope.commands.measurement.meas[1].source.write("CH1")
scope.commands.measurement.meas[2].source.write("CH1")
scope.commands.measurement.meas[3].source.write("CH2")

# Get the measurement values
scope.commands.acquire.state.write("ON")
Expand Down
Loading