charkster / keysight_33600a

Python class to control Keysight 33600a function generator instrument.
MIT License
0 stars 0 forks source link

Two USB were found #3

Open dhunganaanish opened 2 years ago

dhunganaanish commented 2 years ago

File "C:\Users\aanis\anaconda3\lib\site-packages\pyvisa_py\protocols\usbtmc.py", line 202, in init raise ValueError( ValueError: 2 devices found:

charkster commented 2 years ago

@dhunganaanish make sure that you are passing the proper pyvisa instrument handle for your instrument when you run rm.open_resource('your_instrument_handle_here'). To get a list of all your connected lab instruments, use get_instrument_dict(). This creates a dictionary of the *IDN response and the pyvisa handle. If you have two Keysight 33600a function generator instruments connected at the same time, you would need two instances of the keysight_33600a modules (with the proper pyvisa handles).