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

_INST_VISA_INFO_ pattern? #123

Open
jondoesntgit opened this issue Oct 23, 2020 · 1 comment
Open

_INST_VISA_INFO_ pattern? #123

jondoesntgit opened this issue Oct 23, 2020 · 1 comment

Comments

@jondoesntgit
Copy link
Contributor

When I run inst._rsrc.query('*IDN?'), I get the following string: Newport 8008 v2.22m B222. How do I write the _INST_VISA_INFO_ string?

@natezb
Copy link
Contributor

natezb commented Oct 24, 2020

Your best bet is probably to implement _check_visa_support() in your module. You can look at some other drivers to see how it's used; one example is wavemeters.burleigh. You then usually should add _INST_PRIORITY to indicate the driver's priority, i.e. how early in the list of drivers it should be imported and tested.

This isn't a great solution, but it should work. Since manufacturers often don't follow the SCPI spec when it comes to the IDN query, maybe we should add some more flexibility to how you can test against IDNs.

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

2 participants