|
@@ -78,6 +78,8 @@ if len(sys.argv) <= 1:
|
78
|
78
|
elif sys.argv[1].lower() not in ["png", "bmp", "csv"]:
|
79
|
79
|
print_help()
|
80
|
80
|
print "This file type is not supported: ", sys.argv[1]
|
|
81
|
+ print
|
|
82
|
+ print_running_Python_versions()
|
81
|
83
|
sys.exit("ERROR")
|
82
|
84
|
|
83
|
85
|
file_format = sys.argv[1].lower()
|
|
@@ -112,6 +114,8 @@ if instrument_id == "command error":
|
112
|
114
|
print instrument_id
|
113
|
115
|
print "Check the oscilloscope settings."
|
114
|
116
|
print "Utility -> IO Setting -> RemoteIO -> LAN must be ON"
|
|
117
|
+ print
|
|
118
|
+ print_running_Python_versions()
|
115
|
119
|
sys.exit("ERROR")
|
116
|
120
|
|
117
|
121
|
# Check if instrument is indeed a Rigol DS1000Z series
|
|
@@ -120,6 +124,8 @@ if (id_fields[company] != "RIGOL TECHNOLOGIES") or \
|
120
|
124
|
(id_fields[model][:3] != "DS1") or (id_fields[model][-1] != "Z"):
|
121
|
125
|
print
|
122
|
126
|
print "ERROR: No Rigol from series DS1000Z found at ", IP_DS1104Z
|
|
127
|
+ print
|
|
128
|
+ print_running_Python_versions()
|
123
|
129
|
sys.exit("ERROR")
|
124
|
130
|
|
125
|
131
|
print "Instrument ID:",
|
|
@@ -207,6 +213,8 @@ elif file_format == "csv":
|
207
|
213
|
if stop_point == 0:
|
208
|
214
|
data_available = False
|
209
|
215
|
print "ERROR: Stop data point index lower then start data point index"
|
|
216
|
+ print
|
|
217
|
+ print_running_Python_versions()
|
210
|
218
|
sys.exit("ERROR")
|
211
|
219
|
elif stop_point < n1:
|
212
|
220
|
break
|