LabJackPython
LabJackPython copied to clipboard
Optimize u3 process stream data
Optimization of U3.process_stream_data by using list comprehensions. The new version is roughly 4x faster, which allows sampling at 50 kHz on a Raspberry Pi 4.
Thanks. I'll look at this at some point to evaluate and test.
Thanks for contributing and the speed up. We merged in the code and made some changes as it didn't handle some stream settings correctly.
Glad I could help. We sometimes use Labjack on Raspberry Pi for long duration tests, so good performance on Pi is important for us.