Problems with instrument cluster and flock
Attempt to run:
from instrument_cluster import InstrumentCluster
instruments = InstrumentCluster(lv= 'KeysightE3633A', lv_resource= 'ASRL/dev/ttyUSBLV::INSTR', default_lv_channel = 1, hv= 'Keithley2410', hv_resource= 'ASRL/dev/ttyUSBHV::INSTR', default_hv_compliance_current= 5e-6)
instruments__enter__(no_lock=True)
instruments.lv_on(lv_channel=1, voltage=1.99, current=4.2)
At this point it hangs. I think this is the line that's causing it in instrument.py:
Line 127: fcntl.flock(self._file, fcntl.LOCK_EX)
Tried instruments.lv_on(lv_channel=1, voltage=1.99, current=4.2, no_lock=True)
but this error gets returned:
TypeError: scpi_instrument.SCPIInstrument.set() got multiple values for keyword argument 'no_lock'
Edited by Matt Joyce