Skip to content

fix: add model-specific AFG31K USB IDs - #598

Merged
nfelt14 merged 9 commits into
tektronix:mainfrom
sanmaxdev:fix/afg31052-usbtmc-model-id
Jul 7, 2026
Merged

nfelt14 merged 9 commits into
tektronix:mainfrom
sanmaxdev:fix/afg31052-usbtmc-model-id

Conversation

@sanmaxdev

@sanmaxdev sanmaxdev commented Jun 27, 2026 •

Copy link
Copy Markdown
Contributor

fix: add model-specific AFG31K USB IDs

Proposed changes

Keeps AFG31K as the family driver and adds model-specific AFG31K driver mappings for USBTMC resource generation where the USB product IDs differ.

Addresses #597

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Functionality update (non-breaking change which updates or changes existing functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • CI/CD update (an update to the CI/CD workflows, scripts, and/or configurations)
  • Documentation update (an update to enhance the user experience when reading through the docs)

Checklist

  • I have followed the guidelines in the CONTRIBUTING document
  • I have signed the CLA
  • I have checked to ensure there aren't other open Pull Requests for the same update/change
  • I have created (or updated) an Issue to track the status of this update/change and updated the link in this PR description (see above in the Proposed changes section) using the wording Addresses #<issue_number>
  • I have performed a self-review of my code
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • Basic linting passes locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have added necessary documentation (if appropriate)
  • I have updated the Changelog with a brief description of my changes

Validation:

  • python3 -m pytest tests/test_config_parser.py tests/test_helpers.py tests/test_afgs.py tests/test_all_device_drivers.py -q --no-cov
  • python3 -m pytest tests -q --no-cov
  • python3 -m ruff check src/tm_devices/helpers/constants_and_dataclasses.py src/tm_devices/helpers/enums.py src/tm_devices/helpers/functions.py src/tm_devices/drivers/_device_driver_mapping.py src/tm_devices/drivers/__init__.py src/tm_devices/drivers/afgs/afg31k.py tests/test_config_parser.py tests/test_helpers.py tests/test_afgs.py tests/test_all_device_drivers.py
  • python3 -m ruff format --check src/tm_devices/helpers/constants_and_dataclasses.py src/tm_devices/helpers/enums.py src/tm_devices/helpers/functions.py src/tm_devices/drivers/_device_driver_mapping.py src/tm_devices/drivers/__init__.py src/tm_devices/drivers/afgs/afg31k.py tests/test_config_parser.py tests/test_helpers.py tests/test_afgs.py tests/test_all_device_drivers.py
  • git diff --check

@sanmaxdev

Copy link
Copy Markdown
Contributor Author

Thanks for the review. I updated this to change the existing AFG31K USBTMC lookup directly and removed the model-specific lookup override plus the selection logic change.

Validation:

  • python3 -m pytest tests/test_config_parser.py tests/test_helpers.py -q --no-cov
  • python3 -m pytest tests -q --no-cov
  • python3 -m ruff check src/tm_devices/helpers/constants_and_dataclasses.py tests/test_config_parser.py
  • python3 -m ruff format --check src/tm_devices/helpers/constants_and_dataclasses.py tests/test_config_parser.py
  • git diff --check

@sanmaxdev
sanmaxdev force-pushed the fix/afg31052-usbtmc-model-id branch from 98d8b88 to 2070eca Compare June 27, 2026 17:32
@sanmaxdev sanmaxdev changed the title fix: correct AFG31052 USBTMC model ID fix: add model-specific AFG31K USB IDs Jul 1, 2026
@sanmaxdev

Copy link
Copy Markdown
Contributor Author

Thanks for checking those IDs. I reworked this to keep AFG31K as the family driver and added model-specific mappings for the USBTMC IDs that differ.

Updated:

  • model-specific entries for AFG31051, AFG31052, and AFG31252
  • driver/model mapping and exports
  • USBTMC lookup and reverse VISA detection tests
  • README, changelog, and simulated device coverage

Verification:

  • python3 -m pytest tests/test_config_parser.py tests/test_helpers.py tests/test_afgs.py tests/test_all_device_drivers.py -q --no-cov
  • python3 -m pytest tests -q --no-cov
  • python3 -m ruff check src/tm_devices/helpers/constants_and_dataclasses.py src/tm_devices/helpers/enums.py src/tm_devices/helpers/functions.py src/tm_devices/drivers/_device_driver_mapping.py src/tm_devices/drivers/__init__.py src/tm_devices/drivers/afgs/afg31k.py tests/test_config_parser.py tests/test_helpers.py tests/test_afgs.py tests/test_all_device_drivers.py
  • python3 -m ruff format --check src/tm_devices/helpers/constants_and_dataclasses.py src/tm_devices/helpers/enums.py src/tm_devices/helpers/functions.py src/tm_devices/drivers/_device_driver_mapping.py src/tm_devices/drivers/__init__.py src/tm_devices/drivers/afgs/afg31k.py tests/test_config_parser.py tests/test_helpers.py tests/test_afgs.py tests/test_all_device_drivers.py
  • git diff --check

Comment thread src/tm_devices/drivers/afgs/afg31k.py Resolved
Comment thread src/tm_devices/drivers/__init__.py Resolved
Comment thread src/tm_devices/helpers/enums.py Resolved
Comment thread src/tm_devices/helpers/functions.py Resolved
Comment thread tests/test_afgs.py Resolved
Comment thread README.md Resolved
Comment thread src/tm_devices/drivers/afgs/afg31k.py Resolved
@sanmaxdev

Copy link
Copy Markdown
Contributor Author

Thanks, added @family_base_class to both AFG31K and AFG3K. Verified with:\n\npython -m pytest tests/test_tm_devices.py::test_driver_has_family_base_class -q

@nfelt14
nfelt14 self-requested a review July 2, 2026 15:01
@nfelt14

nfelt14 commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Thanks, added @family_base_class to both AFG31K and AFG3K. Verified with:\n\npython -m pytest tests/test_tm_devices.py::test_driver_has_family_base_class -q

I forgot to mention, you need to remove the family base class decorator from the AFG class

@nfelt14 nfelt14 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to run the all the tests locally using tox run -e tests to verify they all pass

@sanmaxdev

Copy link
Copy Markdown
Contributor Author

Thanks, fixed. I removed @family_base_class from the generic AFG base while keeping it on AFG3K and AFG31K.\n\nVerification:\n- python -m pytest tests/test_tm_devices.py::test_driver_has_family_base_class tests/test_tm_devices.py::test_family_base_class_inheritance -q\n- uvx tox run -e tests

@sanmaxdev

Copy link
Copy Markdown
Contributor Author

Fixed the CI lint failure from the example still importing the old non-public AFG31K symbol. Updated it to use AFG31052.\n\nVerification:\n- python -m pylint examples/miscellaneous/adding_devices_with_env_var.py\n- python -m pytest tests/test_tm_devices.py::test_driver_has_family_base_class tests/test_tm_devices.py::test_family_base_class_inheritance -q\n- git diff --check

@sanmaxdev
sanmaxdev force-pushed the fix/afg31052-usbtmc-model-id branch from 1e90d04 to 4820372 Compare July 3, 2026 11:07
@sanmaxdev

Copy link
Copy Markdown
Contributor Author

Thanks for the review. I rebased this on current main and kept the AFG31K model classes with the family base decorators in place.

Validation:

  • python3 -m pytest tests/test_config_parser.py tests/test_helpers.py tests/test_all_device_drivers.py -q --no-cov
  • python3 -m ruff check src/tm_devices/drivers/afgs/afg31k.py src/tm_devices/drivers/afgs/afg3k.py src/tm_devices/helpers/constants_and_dataclasses.py src/tm_devices/helpers/enums.py src/tm_devices/drivers/_device_driver_mapping.py tests/test_config_parser.py tests/test_helpers.py tests/test_all_device_drivers.py
  • python3 -m ruff format --check src/tm_devices/drivers/afgs/afg31k.py src/tm_devices/drivers/afgs/afg3k.py src/tm_devices/helpers/constants_and_dataclasses.py src/tm_devices/helpers/enums.py src/tm_devices/drivers/_device_driver_mapping.py tests/test_config_parser.py tests/test_helpers.py tests/test_all_device_drivers.py
  • git diff --check

@sanmaxdev

Copy link
Copy Markdown
Contributor Author

Ran the requested test environment:

  • tox run -e tests passed

No code changes in this follow-up.

@sanmaxdev

Copy link
Copy Markdown
Contributor Author

Ran tox run -e tests: 840 passed, 2 deselected.

No code changes from this verification pass.

@sanmaxdev

Copy link
Copy Markdown
Contributor Author

Ran the requested full test command on the PR branch:

  • tox run -e tests (840 passed, 2 deselected)
  • git diff --check

No code changes from this verification pass.

@codecov

codecov Bot commented Jul 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (26694cc) to head (0a58d4a).
⚠️ Report is 15 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #598   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          166       166           
  Lines         4841      4864   +23     
  Branches       437       437           
=========================================
+ Hits          4841      4864   +23     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

ldantek
ldantek previously approved these changes Jul 6, 2026

@nfelt14 nfelt14 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add the missing ones from this list?

31021 | 0x0355
31022 | 0x0356
31051 | 0x0357
31052 | 0x0358
31101 | 0x0359
31102 | 0x035A
31151 | 0x035B
31152 | 0x035C
31251 | 0x035D
31252 | 0x035E

@sanmaxdev

Copy link
Copy Markdown
Contributor Author

Added the remaining AFG31K USBTMC product IDs and coverage for forward and reverse resource-expression mapping.

Verification:

  • python3 -m pytest tests/test_config_parser.py::test_get_visa_resource_expression tests/test_helpers.py::test_detect_visa_resource_expression -q --no-cov
  • python3 -m pytest tests/test_config_parser.py tests/test_helpers.py tests/test_all_device_drivers.py -q --no-cov
  • tox run -e tests (854 passed, 2 deselected)
  • python3 -m ruff check src/tm_devices/helpers/constants_and_dataclasses.py tests/test_config_parser.py tests/test_helpers.py
  • python3 -m ruff format --check src/tm_devices/helpers/constants_and_dataclasses.py tests/test_config_parser.py tests/test_helpers.py
  • git diff --check

Comment thread CHANGELOG.md Resolved
@sanmaxdev

Copy link
Copy Markdown
Contributor Author

Moved the AFG31K changelog entry under ### Added as requested.

Verification:

  • SKIP=pyroma,poetry-lock,poetry-audit pre-commit run --files CHANGELOG.md
  • git diff --check

@github-actions

github-actions Bot commented Jul 7, 2026 •

Copy link
Copy Markdown

Breaking API Changes

src/tm_devices/helpers/enums.py:0: SupportedModels.AFG31K:
Public object was removed

src/tm_devices/drivers/__init__.py:0: AFG31K:
Public object was removed

src/tm_devices/helpers/constants_and_dataclasses.py:982: USB_MODEL_ID_LOOKUP:
Attribute value was changed:
  Old: MappingProxyType({SupportedModels.MDO3: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x052C'), SupportedModels.MDO3K: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0408'), SupportedModels.MSO2: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0105'), SupportedModels.MSO2KB: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x03A4'), SupportedModels.MSO4: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0527'), SupportedModels.MSO4B: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0527'), SupportedModels.MSO5: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0522'), SupportedModels.MSO5B: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0522'), SupportedModels.MSO5LP: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0529'), SupportedModels.MSO6: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0528'), SupportedModels.MSO6B: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0530'), SupportedModels.LPD6: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x052F'), SupportedModels.DPO7AX: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0532'), SupportedModels.AFG3K: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0345'), SupportedModels.AFG31K: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x035E'), SupportedModels.SMU2450: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2450'), SupportedModels.SMU2460: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2460'), SupportedModels.SMU2461: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2461'), SupportedModels.SMU2470: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2470'), SupportedModels.SMU2601A: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2601'), SupportedModels.SMU2602A: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2602'), SupportedModels.SMU2604A: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2604'), SupportedModels.SMU2611A: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2611'), SupportedModels.SMU2612A: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2612'), SupportedModels.SMU2614A: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2614'), SupportedModels.SMU2634A: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2634'), SupportedModels.SMU2635A: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2635'), SupportedModels.SMU2636A: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2636'), SupportedModels.SMU2601B: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2601'), SupportedModels.SMU2602B: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2602'), SupportedModels.SMU2604B: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2604'), SupportedModels.SMU2606B: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2606'), SupportedModels.SMU2611B: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2611'), SupportedModels.SMU2612B: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2612'), SupportedModels.SMU2614B: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2614'), SupportedModels.SMU2634B: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2634'), SupportedModels.SMU2635B: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2635'), SupportedModels.SMU2636B: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2636'), SupportedModels.PSU2200: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2200'), SupportedModels.PSU2220: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2220'), SupportedModels.PSU2230: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2230'), SupportedModels.PSU2231: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2231'), SupportedModels.PSU2231A: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2231'), SupportedModels.PSU2280: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2280'), SupportedModels.PSU2281: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2281'), SupportedModels.AWG5200: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0503'), SupportedModels.AWG70KA: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0503'), SupportedModels.AWG70KB: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0503'), SupportedModels.SS3706A: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x3706'), SupportedModels.MP5103: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x5103')})
  New: MappingProxyType({SupportedModels.MDO3: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x052C'), SupportedModels.MDO3K: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0408'), SupportedModels.MSO2: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0105'), SupportedModels.MSO2KB: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x03A4'), SupportedModels.MSO4: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0527'), SupportedModels.MSO4B: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0527'), SupportedModels.MSO5: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0522'), SupportedModels.MSO5B: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0522'), SupportedModels.MSO5LP: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0529'), SupportedModels.MSO6: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0528'), SupportedModels.MSO6B: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0530'), SupportedModels.LPD6: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x052F'), SupportedModels.DPO7AX: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0532'), SupportedModels.AFG3K: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0345'), SupportedModels.AFG31021: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0355'), SupportedModels.AFG31022: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0356'), SupportedModels.AFG31051: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0357'), SupportedModels.AFG31052: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0358'), SupportedModels.AFG31101: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0359'), SupportedModels.AFG31102: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x035A'), SupportedModels.AFG31151: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x035B'), SupportedModels.AFG31152: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x035C'), SupportedModels.AFG31251: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x035D'), SupportedModels.AFG31252: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x035E'), SupportedModels.SMU2450: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2450'), SupportedModels.SMU2460: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2460'), SupportedModels.SMU2461: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2461'), SupportedModels.SMU2470: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2470'), SupportedModels.SMU2601A: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2601'), SupportedModels.SMU2602A: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2602'), SupportedModels.SMU2604A: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2604'), SupportedModels.SMU2611A: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2611'), SupportedModels.SMU2612A: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2612'), SupportedModels.SMU2614A: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2614'), SupportedModels.SMU2634A: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2634'), SupportedModels.SMU2635A: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2635'), SupportedModels.SMU2636A: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2636'), SupportedModels.SMU2601B: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2601'), SupportedModels.SMU2602B: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2602'), SupportedModels.SMU2604B: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2604'), SupportedModels.SMU2606B: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2606'), SupportedModels.SMU2611B: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2611'), SupportedModels.SMU2612B: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2612'), SupportedModels.SMU2614B: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2614'), SupportedModels.SMU2634B: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2634'), SupportedModels.SMU2635B: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2635'), SupportedModels.SMU2636B: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2636'), SupportedModels.PSU2200: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2200'), SupportedModels.PSU2220: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2220'), SupportedModels.PSU2230: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2230'), SupportedModels.PSU2231: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2231'), SupportedModels.PSU2231A: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2231'), SupportedModels.PSU2280: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2280'), SupportedModels.PSU2281: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x2281'), SupportedModels.AWG5200: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0503'), SupportedModels.AWG70KA: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0503'), SupportedModels.AWG70KB: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x0503'), SupportedModels.SS3706A: USBTMCConfiguration(vendor_id=KEITHLEY_USBTMC_VENDOR_ID, model_id='0x3706'), SupportedModels.MP5103: USBTMCConfiguration(vendor_id=TEKTRONIX_USBTMC_VENDOR_ID, model_id='0x5103')})

Link to workflow run

@github-actions

github-actions Bot commented Jul 7, 2026 •

Copy link
Copy Markdown

Test Results (macos)

path passed subtotal
tests/test_abstract_device_expect_esr.py 1 1
tests/test_afgs.py 2 2
tests/test_alias_dict.py 1 1
tests/test_all_device_drivers.py 112 112
tests/test_alternative_connection_addresses.py 19 19
tests/test_awgs.py 4 4
tests/test_config_parser.py 50 50
tests/test_device_manager.py 18 18
tests/test_devices_legacy_tsp_ieee_cmds.py 3 3
tests/test_extension_mixin.py 1 1
tests/test_generate_waveform.py 6 6
tests/test_helpers.py 94 94
tests/test_ieee_scpi_cmds.py 1 1
tests/test_logging.py 4 4
tests/test_mainframe.py 13 13
tests/test_margin_testers.py 5 5
tests/test_pi_device.py 1 1
tests/test_psu.py 1 1
tests/test_rest_api_device.py 10 10
tests/test_schema.py 7 7
tests/test_scopes.py 10 10
tests/test_singleton.py 1 1
tests/test_smu.py 4 4
tests/test_ss.py 1 1
tests/test_tm_devices.py 471 471
tests/test_unsupported_device_type.py 1 1
tests/test_verification_functions.py 13 13
TOTAL 854 854

Link to workflow run

@github-actions

github-actions Bot commented Jul 7, 2026 •

Copy link
Copy Markdown

Test Results (ubuntu)

path passed subtotal
tests/test_abstract_device_expect_esr.py 1 1
tests/test_afgs.py 2 2
tests/test_alias_dict.py 1 1
tests/test_all_device_drivers.py 112 112
tests/test_alternative_connection_addresses.py 19 19
tests/test_awgs.py 4 4
tests/test_config_parser.py 50 50
tests/test_device_manager.py 18 18
tests/test_devices_legacy_tsp_ieee_cmds.py 3 3
tests/test_extension_mixin.py 1 1
tests/test_generate_waveform.py 6 6
tests/test_helpers.py 94 94
tests/test_ieee_scpi_cmds.py 1 1
tests/test_logging.py 4 4
tests/test_mainframe.py 13 13
tests/test_margin_testers.py 5 5
tests/test_pi_device.py 1 1
tests/test_psu.py 1 1
tests/test_rest_api_device.py 10 10
tests/test_schema.py 7 7
tests/test_scopes.py 10 10
tests/test_singleton.py 1 1
tests/test_smu.py 4 4
tests/test_ss.py 1 1
tests/test_tm_devices.py 471 471
tests/test_unsupported_device_type.py 1 1
tests/test_verification_functions.py 13 13
TOTAL 854 854

Link to workflow run

@github-actions

github-actions Bot commented Jul 7, 2026 •

Copy link
Copy Markdown

Test Results (windows)

path passed subtotal
tests\test_abstract_device_expect_esr.py 1 1
tests\test_afgs.py 2 2
tests\test_alias_dict.py 1 1
tests\test_all_device_drivers.py 112 112
tests\test_alternative_connection_addresses.py 19 19
tests\test_awgs.py 4 4
tests\test_config_parser.py 50 50
tests\test_device_manager.py 18 18
tests\test_devices_legacy_tsp_ieee_cmds.py 3 3
tests\test_extension_mixin.py 1 1
tests\test_generate_waveform.py 6 6
tests\test_helpers.py 94 94
tests\test_ieee_scpi_cmds.py 1 1
tests\test_logging.py 4 4
tests\test_mainframe.py 13 13
tests\test_margin_testers.py 5 5
tests\test_pi_device.py 1 1
tests\test_psu.py 1 1
tests\test_rest_api_device.py 10 10
tests\test_schema.py 7 7
tests\test_scopes.py 10 10
tests\test_singleton.py 1 1
tests\test_smu.py 4 4
tests\test_ss.py 1 1
tests\test_tm_devices.py 471 471
tests\test_unsupported_device_type.py 1 1
tests\test_verification_functions.py 13 13
TOTAL 854 854

Link to workflow run

@nfelt14
nfelt14 merged commit a8b929c into tektronix:main Jul 7, 2026
64 checks passed
@sanmaxdev
sanmaxdev deleted the fix/afg31052-usbtmc-model-id branch July 7, 2026 20:09

This branch was previously deployed

1 inactive deployment
package-build — 0a58d4af Deployed Jul 7, 2026 by sanmaxdev via package-build / Build package #1852
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants