sandialabs / pyscan

Scientific Measurement Toolbox
https://pyscan.readthedocs.io/en/latest/
MIT License
4 stars 4 forks source link

List resources feat #201

Open rsbrost opened 2 weeks ago

rsbrost commented 2 weeks ago

Added new feature to streamline and improve listing and connecting to PyVISA resources.

rsbrost commented 1 week ago
rsbrost commented 6 days ago

Now get_resources() functions like this: image

rsbrost commented 6 days ago

This pull request now accounts for Andy's requested changes to keep this pull request simple for the time being (see the above implementation); however, I am pushing my alternative iteration implementing a DeviceManager class to a separate branch since it is still unclear if we will want this eventually and now we will have it for later in case we decide to choose that method instead down the road.

The DeviceManager class has the advantage of having an automatically populated resource_manager and resources_listed attribute; however, the disadvantage that these methods cannot be called to list resources independently without first creating an instance of the class.

rsbrost commented 4 days ago