@@ -202,13 +202,8 @@ def capture_for_time(self, filename, time_ms, samplerate="200k"):
202
202
samplerate: the sample-rate of the capture
203
203
204
204
Returns:
205
- The capture as a list containing dict's with fields:
206
- {
207
- "time": sample time (us),
208
- "channel_name_1": Sample value for channel 1,
209
- "channel_name_2": Sample value for channel 2,
210
- ...
211
- }
205
+ The capture as a list containing dict's with fields "Time"
206
+ and the channel names
212
207
213
208
Raises:
214
209
OSError() if the subprocess returned with non-zero return-code
@@ -228,13 +223,8 @@ def capture_samples(self, filename, samples, samplerate="200k"):
228
223
samplerate: the sample-rate of the capture
229
224
230
225
Returns:
231
- The capture as a list containing dict's with fields:
232
- {
233
- "time": sample time (us),
234
- "channel_name_1": Sample value for channel 1,
235
- "channel_name_2": Sample value for channel 2,
236
- ...
237
- }
226
+ The capture as a list containing dict's with fields "Time"
227
+ and the channel names
238
228
"""
239
229
return self ._capture_blocking (filename , ["--samples" , str (samples )], samplerate )
240
230
@@ -248,13 +238,8 @@ def stop(self):
248
238
containing the samples.
249
239
250
240
Returns:
251
- The capture as a list containing dict's with fields:
252
- {
253
- "time": sample time (us),
254
- "channel_name_1": Sample value for channel 1,
255
- "channel_name_2": Sample value for channel 2,
256
- ...
257
- }
241
+ The capture as a list containing dict's with fields "Time"
242
+ and the channel names
258
243
259
244
Raises:
260
245
RuntimeError() if capture has not been started
0 commit comments