Skip to content

Python script that returns a dictionary of all SCPI instruments detected

License

Notifications You must be signed in to change notification settings

charkster/get_instrument_dict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

get_instrument_dict

Python script that returns a dictionary of all SCPI instruments detected

Requirements:

pip3 install pyvisa pyvisa-py pyusb

Keys are the *IDN? query result and the values are the VISA resource name. Printing the dictionary is a quick way to display all connected instruments and list their associated resource name.

The following script will only list all resources. It is more useful to also include the instrument name.

import pyvisa

rm = pyvisa.ResourceManager()

print(rm.list_resources())

I use this dictionary for many different purposes in my bench automation.

About

Python script that returns a dictionary of all SCPI instruments detected

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages