Skip to content

Conversation

@michaelc12qe
Copy link
Contributor

Also:

  • Improve regex to take negative numbers when necessary
  • For multiline telnet message, write once and read all lines, instead of asking multiple times and filling the buffer
  • Fix typo in _set_modulation_frequency

Thanks to Colin Dietrich for help with these changes

This addresses the error in #393 for a Valon 5015, however I don't have a Valon 5019 to test with.
I think that this improves on PR #338 (the part modifying the Valon), which has a change which successfully clears the error, however it does not clear the IO buffers correctly, so if you were to successively run the Valon5015.status and Valon5015.id get commands, you would see the wrong output.

Tested on a Valon 5015 running FW 2.0a which is the latest at time of writing (https://www.valontechnology.com/5015users/5015.htm)

Also:
- Improve regex to take negative numbers when necessary
- For multiline telnet message, write once and read all lines, instead
  of asking multiple times and filling the buffer
- Fix typo in _set_modulation_frequency

Thanks to Colin Dietrich for help with these changes
@jenshnielsen jenshnielsen changed the title Fix VI_ERROR_INV_MASK bug when flushing buffer Valon: Fix VI_ERROR_INV_MASK bug when flushing buffer Mar 6, 2025
@codecov
Copy link

codecov bot commented Mar 6, 2025

Codecov Report

Attention: Patch coverage is 0% with 27 lines in your changes missing coverage. Please review.

Project coverage is 10.49%. Comparing base (087e5f4) to head (09c63a1).
Report is 102 commits behind head on main.

Files with missing lines Patch % Lines
...qcodes_contrib_drivers/drivers/Valon/Valon_5015.py 0.00% 27 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #416   +/-   ##
=======================================
  Coverage   10.48%   10.49%           
=======================================
  Files         138      138           
  Lines       18380    18367   -13     
=======================================
  Hits         1928     1928           
+ Misses      16452    16439   -13     

☔ View full report in Codecov by Sentry.
📢 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.

@jenshnielsen
Copy link
Collaborator

@paniash any chance you can verify if this resolves your issue in #393

Copy link
Collaborator

@jenshnielsen jenshnielsen left a comment

Choose a reason for hiding this comment

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

Changes looks good. Will just wait to see if it can be verified.

@jenshnielsen jenshnielsen added this pull request to the merge queue Mar 31, 2025
Merged via the queue into QCoDeS:main with commit ca2b07a Mar 31, 2025
9 of 10 checks passed
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.

2 participants