Open dhunganaanish opened 1 year ago
Model: keysight 33600A waveform generator Communication: USB
Code: from future import print_function import pyvisa from keysight_33600a import keysight_33600a pyvisa.log_to_screen() rm = pyvisa.ResourceManager('@py') rm.list_resources() inst = rm.open_resource('USB0::0x0957::0x5707::MY53803283::INSTR') print(inst.query("*IDN?"))
Result:
2022-11-04 10:45:48,535 - pyvisa - DEBUG - SerialSession was correctly imported.
2022-11-04 10:45:48,637 - pyvisa - DEBUG - USBSession and USBRawSession were correctly imported.
2022-11-04 10:45:48,646 - pyvisa - DEBUG - TCPIPSession was correctly imported.
2022-11-04 10:45:48,650 - pyvisa - DEBUG - GPIBSession was not imported No module named 'gpib'.
2022-11-04 10:45:48,650 - pyvisa - DEBUG - Created library wrapper for py
2022-11-04 10:45:48,650 - pyvisa - DEBUG - Created ResourceManager with session 3281506
2022-11-04 10:45:48,683 - pyvisa - DEBUG - USB0::0x0957::0x5707::MY53803283::0::INSTR - opening ...
Traceback (most recent call last):
File "C:\Users\aanis\OneDrive\Documents\python\frequency_sweep\keysight_33600a_sr830.py", line 7, in
Instrument details
Output of
pyvisa-info