Closed sdshlanta closed 7 months ago
The commit history of this PR got slightly messy as I pulled the state of origin
master
after #159 was merged.
It looks like the pyvisa
interface has been around for a very long time, so instead of all of these try/except blocks, let's just make a clean break and migrate to using pyvisa
directly.
Dealt with in b577632b85015bc830283f3b315c4013260e8f91
Modern versions of
PyVisa
no longer import asvisa
and import aspyvisa
.This PR adds support for the new import style while maintaining comparability with the old version by detecting if
import visa
throws anImportError
and then attemptingimport pyvisa as visa
.