ppannuto / python-saleae

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

Error using export2 #48

Closed dmills3 closed 5 years ago

dmills3 commented 5 years ago

The logic analyzer generate the following error when using the exprot_data2 with a file name and digital_channels selected.

Exporting data [ /home/build/ob_logic/Source/LogicWindow_Automation.cpp; SocketExportData2; 2319 ] export2 command error: unable to parse any selected channels. Make sure you are using the new format: 1 ANALOG, 2 DIGITAL, etc [ /home/build/ob_logic/Source/LogicWindow_Automation.cpp; SocketExportData2; 2526 ]

The error seems to indicate a newer commad format. What version of saleae does the python-saleae support?

dmills3 commented 5 years ago

I capture the command.

DEBUG:saleae.saleae:Send >EXPORT_DATA2, /home/dmills3/xxxxxx.csv, SPECIFIC_CHANNELS, DIGITAL_ONLY, 0 DIGITAL, 1 DIGITAL, 2 DIGITAL, 3 DIGITAL, 8 DIGITAL, 9 DIGITAL, 10 DIGITAL, 11 DIGITAL, 12 DIGITAL, 13 DIGITAL, 14 DIGITAL, 15 DIGITAL, ALL_TIME, CSV, HEADERS, COMMA, TIME_STAMP, COMBINED, HEX, ROW_PER_CHANGE<

dmills3 commented 5 years ago

Also the analyser was not connected.

dmills3 commented 5 years ago

Once I enable access to the device the export worked.