fossasia / pslab-python

Python Library for PSLab Desktop: https://pslab.io
GNU General Public License v3.0
1.62k stars 227 forks source link

Improve initial states detection in logic analyzer #177

Closed bessman closed 3 years ago

bessman commented 3 years ago

The logic analyzer's get_initial_states method sometimes returns incorrect states. This happens when the capture starts very close (within a few hundred nanoseconds) of an edge. This change makes incorrect state detection much less common. It is still possible that the initial states are incorrect, especially for high frequency signals (> 1 MHz).