Skip to content

Commit

Permalink
Updated the get_acquisition_data example to select source for the mea…
Browse files Browse the repository at this point in the history
…surement. (tektronix#187)

* Update get_acquisition_data.py to select different sources for measurements.

Signed-off-by: Shashank P <[email protected]>

* Update CHANGELOG.md

Update to Changed from Fixed in description of commit.

Co-authored-by: Nicholas Felt <[email protected]>
Signed-off-by: Shashank P <[email protected]>

---------

Signed-off-by: Shashank P <[email protected]>
Co-authored-by: Nicholas Felt <[email protected]>
Signed-off-by: Nicholas Felt <[email protected]>
  • Loading branch information
u625355 and nfelt14 committed May 2, 2024
1 parent f603e27 commit 141e3c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
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.

### Changed

- 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

0 comments on commit 141e3c5

Please sign in to comment.