ppannuto / python-saleae

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

create is_logic_running method #45

Closed proto3 closed 5 years ago

proto3 commented 5 years ago

I'm in a case where I need to know if Logic was running before I try to launch it. If Logic was running, my program will let it run when it terminate. Otherwise it would kill Logic after use to let the system in the same state as found.

proto3 commented 5 years ago

I finally added a _list_logic_candidates function to factorize code between kill_logic and is_logic_running. Currently the way how Logic software is found does not work for me, the Logic process is called 'Main' on my system. So I assume _list_logic_candidates will change again and having it in one place is cleaner.

ppannuto commented 5 years ago

Thanks for this! Sorry I lost track of it and let it sit for a while :/