There are a number of ways to export data using the Saleae Logic https://www.saleae.com/. They have an article about it here.
The two programs provided will produce the text representation of the exported data, depending on how you have exported it. Output will be shown on stdout/console.
The code will parse csv data in ASCII only format that is exported via Analyzers->Async Serial->Export as text/csv file
Time [s],Value,Parity Error,Framing Error
0.062163420000000,b,,
The code will parse csv data in ASCII only format that is exported via Decoded Protocols->Export search results
Time [s], Analyzer Name, Decoded Protocol Result
0.062163420000000,Async Serial,b
-
The following replacements happen:
string.replace("' '",' ') string.replace('\\n','\n') string.replace('\\r','\r') string.replace('\\t','\t') string.replace('COMMA',',')
- Saleae Logic will export hex values as strings (e.g., '1' for 0x01) so keep this in mind if you find such items.