add while loop to read_data in vna.py
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Control program for the Red Pitaya vector network analyzer
# Copyright (C) 2016 Pavel Demin
@@ -192,6 +192,7 @@ class VNA(QMainWindow, Ui_VNA):
self.dutSweep.setEnabled(True)
def read_data(self):
+ while(self.socket.bytesAvailable() > 0):
if not self.reading:
self.socket.readAll()
return
