Skip to content

Implement EOS processing for GPIB interface#599

Merged
MatthieuDartiailh merged 6 commits into
pyvisa:mainfrom
DavidCPlatt:fix-gpib-eos-2
Jun 26, 2026
Merged

Implement EOS processing for GPIB interface#599
MatthieuDartiailh merged 6 commits into
pyvisa:mainfrom
DavidCPlatt:fix-gpib-eos-2

Conversation

@DavidCPlatt

Copy link
Copy Markdown
Contributor

Add code in GPIBsession _get_attribute and _set_attribute to map the TERMCHAR and TERMCHAR_EN attributes into the proper GPIB configuration settings.

This allows GPIB reads to work correctly, when directed at older GPIB devices which do not signal EOI at the end of their talk output, but depend on EOS character matching.

Dave Platt and others added 4 commits June 25, 2026 14:53
Add code in GPIBsession _get_attribute and _set_attribute to map
the TERMCHAR and TERMCHAR_EN attributes into the proper GPIB
configuration settings.

This allows GPIB reads to work correctly, when directed at
older GPIB devices which do not signal EOI at the end of their
talk output, but depend on EOS character matching.
@codecov

codecov Bot commented Jun 25, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 39.18%. Comparing base (06d9ee6) to head (48bf487).

Files with missing lines Patch % Lines
pyvisa_py/gpib.py 0.00% 17 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #599      +/-   ##
==========================================
- Coverage   39.29%   39.18%   -0.11%     
==========================================
  Files          27       27              
  Lines        5008     5022      +14     
  Branches      513      518       +5     
==========================================
  Hits         1968     1968              
- Misses       3014     3028      +14     
  Partials       26       26              
Flag Coverage Δ
unittests 39.18% <0.00%> (-0.11%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@MatthieuDartiailh

Copy link
Copy Markdown
Member

Please address the changelog conflicts and I will merge.

@DavidCPlatt

Copy link
Copy Markdown
Contributor Author

I've modified the USBTMC PR to have the same (final) CHANGES text as this one.

@DavidCPlatt

Copy link
Copy Markdown
Contributor Author

OK, I resolved it here in the PR, and I think it's good.

Comment thread CHANGES Outdated

@DavidCPlatt DavidCPlatt left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This looks fine - splitting the commentary along the lines of the two (albeit related) PRs makes sense. I'll remember this policy if it's relevant to any further changes.

@MatthieuDartiailh MatthieuDartiailh merged commit 28b0e88 into pyvisa:main Jun 26, 2026
16 of 18 checks passed
@DavidCPlatt DavidCPlatt deleted the fix-gpib-eos-2 branch June 26, 2026 19:07
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.

Read timeouts (EOI-related) when communicating with HP8903B audio analyzer

2 participants