frappy_psi.mercury: communication needs latin-1 encoding

this means also StringType(isUTF8=True)
This commit is contained in:
2026-02-13 10:38:10 +01:00
parent 1ea8aad20c
commit f563999a9e

View File

@@ -64,6 +64,11 @@ fast_slow = Mapped(ON=0, OFF=1) # maps OIs slow=ON/fast=OFF to sample_rate.slow
class IO(StringIO): class IO(StringIO):
identification = [('*IDN?', r'IDN:OXFORD INSTRUMENTS:*')] identification = [('*IDN?', r'IDN:OXFORD INSTRUMENTS:*')]
timeout = 5 timeout = 5
encoding = 'latin1'
@Command(StringType(), result=StringType(isUTF8=True))
def communicate(self, cmd, noreply=False):
return super().communicate(cmd, noreply)
class MercuryChannel(HasIO): class MercuryChannel(HasIO):