thinkSRS / srsinst.sr860

Python instrument driver for SRS SR860 series lock-in amplifiers
MIT License
2 stars 2 forks source link

If get_info() is run before check_id(), some info fields are left blank #8

Closed abergerSRS closed 2 weeks ago

abergerSRS commented 3 weeks ago

Steps to reproduce

>>> from srsinst.sr860 import SR860
>>> import pyvisa as visa
>>> lockin = SR860('visa', 'GPIB0::4::INSTR')
>>> lockin.get_info()
{'type': 'visa', 'resource_name': 'GPIB0::4::INSTR', 'model_name': None, 'serial_number': None, 'firmware_version': None}
>>> lockin.check_id()
('SR860', '002819', 'v1.51')
>>> lockin.get_info()
{'type': 'visa', 'resource_name': 'GPIB0::4::INSTR', 'model_name': 'SR860', 'serial_number': '002819', 'firmware_version': 'v1.51'}
srsrga commented 2 weeks ago

Fixed in srsgui V.0.4.5.