Hi,
It seems that exporting I2S data with the script always lead to the following issue:
$ python saleae_cli.py --capture-duration 1 --export-analyzers "." --capture-count 1 INFO:saleae.saleae:Connected. exporting analyzer I2S / PCM to .\0_I2S / PCM.csv Traceback (most recent call last): File "C:\Users\06ducepth12\OneDrive - MSA The Safety Company\Desktop\Saleae\python-saleae-cli\saleae_cli.py", line 60, in <module> s.export_analyzer(analyzer[1], save_path) File "C:\Users\06ducepth12\AppData\Local\Programs\Python\Python310\lib\site-packages\saleae\saleae.py", line 1123, in export_analyzer resp = self._finish() File "C:\Users\06ducepth12\AppData\Local\Programs\Python\Python310\lib\site-packages\saleae\saleae.py", line 242, in _finish ret = self._cmd(', '.join(self._to_send)) File "C:\Users\06ducepth12\AppData\Local\Programs\Python\Python310\lib\site-packages\saleae\saleae.py", line 275, in _cmd ret = self._recv(expect_nak=expect_nak) File "C:\Users\06ducepth12\AppData\Local\Programs\Python\Python310\lib\site-packages\saleae\saleae.py", line 266, in _recv raise self.CommandNAKedError saleae.saleae.Saleae.CommandNAKedError
I guess that the issue is due to the '/' in 'I2S / PCM'. When hardcoding the output file within the script with something like "output.csv", it works fine.
Thanks for the job!
Hi,
It seems that exporting I2S data with the script always lead to the following issue:
$ python saleae_cli.py --capture-duration 1 --export-analyzers "." --capture-count 1 INFO:saleae.saleae:Connected. exporting analyzer I2S / PCM to .\0_I2S / PCM.csv Traceback (most recent call last): File "C:\Users\06ducepth12\OneDrive - MSA The Safety Company\Desktop\Saleae\python-saleae-cli\saleae_cli.py", line 60, in <module> s.export_analyzer(analyzer[1], save_path) File "C:\Users\06ducepth12\AppData\Local\Programs\Python\Python310\lib\site-packages\saleae\saleae.py", line 1123, in export_analyzer resp = self._finish() File "C:\Users\06ducepth12\AppData\Local\Programs\Python\Python310\lib\site-packages\saleae\saleae.py", line 242, in _finish ret = self._cmd(', '.join(self._to_send)) File "C:\Users\06ducepth12\AppData\Local\Programs\Python\Python310\lib\site-packages\saleae\saleae.py", line 275, in _cmd ret = self._recv(expect_nak=expect_nak) File "C:\Users\06ducepth12\AppData\Local\Programs\Python\Python310\lib\site-packages\saleae\saleae.py", line 266, in _recv raise self.CommandNAKedError saleae.saleae.Saleae.CommandNAKedErrorI guess that the issue is due to the '/' in 'I2S / PCM'. When hardcoding the output file within the script with something like "output.csv", it works fine.
Thanks for the job!