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

pyserial not able to reinitialize MIO1.04 after first execution #204

Open
dschuechter opened this issue Jul 25, 2023 · 0 comments
Open

pyserial not able to reinitialize MIO1.04 after first execution #204

dschuechter opened this issue Jul 25, 2023 · 0 comments

Comments

@dschuechter
Copy link
Contributor

If I rerun a script that initializes the MIO card 1.04 the error
pyvisa.errors.VisaIOError: VI_ERROR_RSRC_NFOUND (-1073807343): Insufficient location information or the requested device or resource is not present in the system.
occurs.

This error will stay until the MIO is resetted. A workaround is to reset the USB device whenever the MIO gets initialized. This can be done by:

from usb.core import find as finddev
class MIO(Dut):
    dev = finddev(idVendor=0x5312, idProduct=0x0200)
    dev.reset()
  ...

Other attempts like closing the device after the script finished did not work.

A real world example is given here.

This problem might be due to the ongoing development of basil and deprecation of this legacy hardware or missing backwards compatibility checks.

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

No branches or pull requests

1 participant