Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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 @@ Valid subsections within a version are:

Things to be included in the next release go here.

### Fixed

- Fixed a bug in `set_function_properties` in the drivers for the internal AFG of the TekScope that could cause the offset value to change after setting impedance.

---

## v3.1.9 (2025-04-03)
Expand Down
4 changes: 2 additions & 2 deletions src/tm_devices/drivers/scopes/tekscope/tekscope.py
Original file line number Diff line number Diff line change
Expand Up @@ -1071,8 +1071,6 @@ def set_function_properties( # noqa: PLR0913 # pyright: ignore[reportIncompati
# Generate the waveform from the Internal AFG
# Frequency
self.set_frequency(frequency)
# Offset
self.set_offset(offset)
# Function
self.set_function(function)
# Duty Cycle
Expand All @@ -1085,6 +1083,8 @@ def set_function_properties( # noqa: PLR0913 # pyright: ignore[reportIncompati
self.set_impedance(termination)
# Amplitude, needs to be after termination so that the amplitude is properly adjusted
self.set_amplitude(amplitude)
# Offset, needs to be after termination so that the offset is properly adjusted
self.set_offset(offset)

def set_amplitude(self, value: float, absolute_tolerance: float = 0) -> None:
"""Set the amplitude on the internal AFG.
Expand Down
Loading