Instrumental icon indicating copy to clipboard operation
Instrumental copied to clipboard

_INST_VISA_INFO_ pattern?

Open jondoesntgit opened this issue 4 years ago • 1 comments

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?

jondoesntgit avatar Oct 23 '20 18:10 jondoesntgit

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.

natezb avatar Oct 24 '20 21:10 natezb