Skip to content

Commit

Permalink
fix: Update a few comments to have better wording. (#85)
Browse files Browse the repository at this point in the history
* fix: Update a few comments to have better wording.

* ci: Update the dependabot config to group all package updates into a single PR.
  • Loading branch information
nfelt14 authored Nov 6, 2023
1 parent 24ccf20 commit 3ad8547
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
10 changes: 8 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,21 @@ updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
interval: weekly
groups:
gh-actions-dependencies:
patterns: ['*']
labels: [gh-actions, dependencies]
commit-message:
prefix: gh-actions
include: scope
- package-ecosystem: pip
directory: /
schedule:
interval: monthly
interval: weekly
groups:
python-dependencies:
patterns: ['*']
labels: [python, dependencies]
commit-message:
prefix: python-deps
Expand Down
6 changes: 3 additions & 3 deletions examples/scopes/tekscope/get_acquisition_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# Creating Scope driver object by providing ip address.
scope: MSO6B = device_manager.add_scope("127.0.0.1") # pyright: ignore[reportGeneralTypeIssues]

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

# Set channel 1 vertical scale to 10mV
Expand All @@ -26,7 +26,7 @@
# Set horizontal position to 100
scope.commands.horizontal.position.write(10)

# Set trigger type to Edge
# Set trigger type to Edge
scope.commands.trigger.a.type.write("EDGE")

# Acquisition setup
Expand All @@ -40,7 +40,7 @@
scope.commands.measurement.meas[1].source.write("CH1")
scope.commands.measurement.meas[2].source.write("CH1")

# Get the measurements values
# Get the measurement values
scope.commands.acquire.state.write("ON")

if int(scope.commands.opc.query()) == 1:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""An example of adding dpojet measurements and plots."""

from tm_devices import DeviceManager
from tm_devices.drivers import MSO70KDX
from tm_devices.helpers import PYVISA_PY_BACKEND
Expand All @@ -24,13 +23,13 @@
# CLear all measurements
scope.commands.dpojet.clearallmeas.write()

# Add few DPOJET measurements
# Add a few DPOJET measurements
scope.commands.dpojet.addmeas.write("Period")
scope.commands.dpojet.addmeas.write("Pduty")
scope.commands.dpojet.addmeas.write("RiseTime")
scope.commands.dpojet.addmeas.write("acrms")

# Add few DPOJET plots for these measurements
# Add a few DPOJET plots for the measurements
scope.commands.dpojet.addplot.write("spectrum, MEAS1")
scope.commands.dpojet.addplot.write("dataarray, MEAS2")
scope.commands.dpojet.addplot.write("TimeTrend, MEAS3")
Expand Down

0 comments on commit 3ad8547

Please sign in to comment.