ppannuto / python-saleae

Python library to control a Saleae Logic Analyzer
Apache License 2.0
124 stars 55 forks source link

Pull request - adding support for analyzer exporting. #10

Closed Marcus10110 closed 8 years ago

Marcus10110 commented 8 years ago

To export an analyzer's protocol results, the analyzer must be finished processing. Analyzers are accessed by an analyzer index, which is returned from the function get_analyzers. Those indexes are not guaranteed to be sequential or start at one. The export location must exist, and the path must be absolute. ~/ home directory shortcuts will not work. Neither will %APPDATA% style variables.

The general process for exporting an analyzer: capture data. wait for capture to finish processing. call get_analyzers, record index of interest wait in loop for analyzer to finish processing (call is_analyzer_complete with index) call export_analyzer with the analyzer index and the parth

ppannuto commented 8 years ago

I added a quick check in 120fea8 so that export will wait for processing to finish by default, as this feels like it's mostly likely what people will usually want.

ppannuto commented 8 years ago

@Marcus10110 I also just added you as a collaborator so you should be able to commit stuff like this directly in the future :)