I managed to get the scope to open via serial by adding the code below to one of our ps4000a examples-
Code: Select all
p_serial = ctypes.create_string_buffer(b"JO259/0994") # create a buffer containing a NUL terminated string
print("Passing a NULL terminated string-")
print(repr(p_serial.raw))
print("With a size of (bytes)-")
print(ctypes.sizeof(p_serial))
status["openunit"] = ps.ps4000aOpenUnit(ctypes.byref(chandle), p_serial )