Giter Club home page Giter Club logo

Comments (5)

ppannuto avatar ppannuto commented on September 28, 2024

It's a misleading function name, carried over from the Saleae API docs. When your capture finishes, capture_start will return, but this probably isn't the desired behavior in most cases. I have literally one script using this stuff right now, so feel free to change to a more sane API and I'll update my side.

from python-saleae.

aschulm avatar aschulm commented on September 28, 2024

Well my bigger concern is the fact that your documentation says that command should return immediately and it doesn't. You also already have the "capture_start_and_wait_for_finished" which does the blocking start.

I found the non-blocking start useful.

My plan is to just add a wait_for_ack parameter to _cmd()

from python-saleae.

ppannuto avatar ppannuto commented on September 28, 2024

Huh. Clearly I thought about that and it doesn't behave as expected. A bit
distracted today, sorry for the misinformation before.

Will saleae eventually send an ack for the capture / will this lead to an
out-of-band ack at some point we have to deal with?

On Wed, Sep 9, 2015 at 4:31 PM Aaron Schulman [email protected]
wrote:

Well my bigger concern is the fact that your documentation says that
command should return immediately and it doesn't. You also already have the
"capture_start_and_wait_for_finished" which does the blocking start.

I found the non-blocking start useful.

My plan is to just add a wait_for_ack parameter to _cmd()


Reply to this email directly or view it on GitHub
#3 (comment)
.

from python-saleae.

aschulm avatar aschulm commented on September 28, 2024

No, capture never returns an ACK.

"Socket Command: capture
This command starts a capture. It will return NAK if an error occurs. Example:
capture"

from python-saleae.

aschulm avatar aschulm commented on September 28, 2024

I decided to add a wait_for_ack parameter to _cmd() with a default of True, and I only modified the capture_start() _cmd() call to not wait for ack.

from python-saleae.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.