Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Timeout Error on Subsequent USB TMC Connections to the Oscilloscope. #104

Closed
u625355 opened this issue Nov 10, 2023 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@u625355
Copy link
Contributor

u625355 commented Nov 10, 2023

Description of the bug

Timeout Error on Subsequent USB TMC Connections to the Oscilloscope.

Affected Model: MSO 4 series Oscilloscopes.

The API behaves as expected during the initial connection; however, upon subsequent USB TMC connections to the oscilloscope, an unexpected timeout error occurs, contrasting with the behavior observed in connections through PyVisa.

Steps To Reproduce

  1. Connect the oscilloscope to the system through USB TMC connection.
  2. Create a driver object named "scope" for any of the affected models.
  3. Use the "scope" driver object query the following API:
         scope.commands.idn.query()
    
  4. Close the connection.
  5. Repeat steps 1-3, observe the error.

Environment Information

Operating System:

  • Windows 10, 64-bit

Software Version:

  • tm-devices : 0.1.24

Connection type

  • USB TMC

Additional Information

Note:
This error arises during the execution of consecutive scripts, not in the context of successive API calls.

@u625355 u625355 added the bug Something isn't working label Nov 10, 2023
@nfelt14
Copy link
Collaborator

nfelt14 commented Jan 19, 2024

This seems like it may be related to #129

@u625355
Copy link
Contributor Author

u625355 commented Mar 13, 2024

This is resolved in version of tm_devices v(1.2.1)

Ensure to use SYSTEM_DEFAULT_BACKEND_VISA as the visa library of device manager, as Py Visa-PY is not supporting USB connection.
The different connection modes and compatible visa backend are mentioned in official documentation of tm_devices.
tm_devices: Test & Measurement Device Management — tm_devices documentation (tektronix.github.io)

@u625355 u625355 closed this as completed Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants