diff --git a/Documentation/UserManual/SCPI_Examples/libreVNA.py b/Documentation/UserManual/SCPI_Examples/libreVNA.py index 9607183..32b9cae 100644 --- a/Documentation/UserManual/SCPI_Examples/libreVNA.py +++ b/Documentation/UserManual/SCPI_Examples/libreVNA.py @@ -82,7 +82,9 @@ class libreVNA: def cmd(self, cmd): self.sock.sendall(cmd.encode()) self.sock.send(b"\n") - self.__read_response() + resp = self.__read_response() + if len(resp) > 0: + raise Exception("Expected empty response but got "+resp) def query(self, query): self.sock.sendall(query.encode())