Comments (2)
Hmm.. I'm not sure about this. @Marcus10110 is there an expected behavior here?
from python-saleae.
There is nothing in the software to guarantee that the sample rates are sorted, but in general, I would expect them to be sorted from analog slowest to analog fastest. (this implies digital fastest to digital slowest, but due to complex FPGA requirements, you will find frequent exceptions to this)
It's possible that analog sample rates are always sorted from fastest to slowest.
Basically, for any given performance setting (which directly relates to USB throughput) the available sample rates try to offer a trade off between digital and analog sample rates. (i.e. trade analog bandwidth for digital bandwidth, and vice versa)
I would update set_sample_rate_by_minimum to scan all performance options, and every sample rate option. I would ignore sorting and check every option, while tracking the lowest analog & digital pair that satisfies the requirement.
if you would like to select exactly the slowest sample rate for a given requirement, the USB bit rate can be calculated like this:
ADC width = 12 bits for Logic 8, Pro 8 and Pro 16.
ADC width = 8 bits for logic 4.
Bandwidth (bits per second) = (digital_sample_rate * digital_channel_count) + (analog_sample_rate * analog_channel_count * adc_width).
That's the exact USB bandwidth requirement for any sample rate combination. There is no additional overhead. The lower the bandwidth, the higher the reliability for long duration captures. (this really only affects the original Logic and Logic 4, and only on poor-performance host controllers)
from python-saleae.
Related Issues (20)
- Error using export2 HOT 3
- Add parameter to launch_logic allowing the caller to specify path HOT 4
- export_analyzer returns before csv file is completed HOT 3
- Random CommandNAKedError occurrence during "capture_to_file(log_file)" call HOT 3
- Implement get_sample_rate HOT 2
- erratic behavior after calling get_analyzer HOT 8
- enum34 should not be required above Python 3.4 HOT 2
- Path manipulation doesn't work when Logic is running on different OS than the Python module HOT 1
- get_analyzers raises IndexError HOT 4
- is_analyzer_complete raising self.CommandNAKedError when using custom analyzer HOT 1
- Windows str.replace not implemented properly HOT 3
- Implement several missing methods.
- get_capture_range throws ValueError HOT 1
- Export data to a python container HOT 2
- How to use this library with the new logic 2 HOT 1
- Is there a way to get ACK when the capture starts HOT 1
- AttributeError: partially initialized module 'saleae' has no attribute 'Saleae' (most likely due to a circular import) HOT 1
- Getting a type error while executing the launch_logic method HOT 1
- Saleae Init function doesn't take logic_path variable HOT 1
- Logic 2 Automation Interface - Feedback Request HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-saleae.