Giter VIP home page Giter VIP logo

Comments (16)

nwright-mcc avatar nwright-mcc commented on August 12, 2024

The return values are defined in daqhats.h, in the enum ResultCode. Which version of daqhats do you have installed? You can determine this from README.md in the daqhats directory. If it is not 1.2.0.1 or higher, pull the latest version (git pull from inside your daqhats directory) and install it (sudo ./install.sh) then try your code again. Let me know if you already have 1.2.0.1 and we can work on finding a solution.

from daqhats.

jacob-lapenna avatar jacob-lapenna commented on August 12, 2024

Also, what's interesting is after the program stops on this error, trying to restart the program produces the same error. The only way to restart the program is to restart the daqhat. I actually have to shutdown the pi, unplug it so that the daqhat powers off, and plug it back in to restart the pi and the daqhat. Simply rebooting the pi still produces the same error, the daqhat must be reset in order for it to work again.

from daqhats.

jacob-lapenna avatar jacob-lapenna commented on August 12, 2024

Yes, I purposely pulled the library this week to be sure I was up to date (version 1.2.0.1).

from daqhats.

nwright-mcc avatar nwright-mcc commented on August 12, 2024

Are you comfortable trying a development version of the library? I have seen thread sync issues on another board I am working on and have not ported those changes into the 118 yet. I can port them into a dev branch for you to try, but it would be a while before they went through our testing and were released.

from daqhats.

jacob-lapenna avatar jacob-lapenna commented on August 12, 2024

Sure, I can install in another python venv...

from daqhats.

nwright-mcc avatar nwright-mcc commented on August 12, 2024

I will run some tests then let you know when you can try it.

from daqhats.

jacob-lapenna avatar jacob-lapenna commented on August 12, 2024

Sounds good! Thanks!

from daqhats.

nwright-mcc avatar nwright-mcc commented on August 12, 2024

I have a test running here, but since this may take a while to reproduce you can try it as well. There are no changes to the python code, only the shared C library changed. You can switch to the dev branch in your existing location by running:
git checkout dev
You may need to do a git pull after the checkout to get the latest code. Run sudo ./install.sh to build and install the changes then test your code. You can switch back to the released code with:
git checkout master
Then install again.

from daqhats.

jacob-lapenna avatar jacob-lapenna commented on August 12, 2024

Awesome, thanks. I'm running it overnight on the dev branch.

from daqhats.

nwright-mcc avatar nwright-mcc commented on August 12, 2024

I have added some more changes to make the variables shared between the scan thread and read functions more robust. If you can, pull in the latest before running overnight.

from daqhats.

jacob-lapenna avatar jacob-lapenna commented on August 12, 2024

Running on the updated dev branch now...

from daqhats.

jacob-lapenna avatar jacob-lapenna commented on August 12, 2024

Still running...this is the longest I've seen it run without throwing the error...I'll keep it going for another 24 hours to be sure.

from daqhats.

nwright-mcc avatar nwright-mcc commented on August 12, 2024

Thanks, I have not seen an error either.

from daqhats.

jacob-lapenna avatar jacob-lapenna commented on August 12, 2024

Still running. Thanks for being so fast with the code updates! I'll let you close the issue with versioning notes. Great product!

from daqhats.

nwright-mcc avatar nwright-mcc commented on August 12, 2024

Thanks, I will get this fix into version 1.2.0.2. I won't close the issue until that version is released.

from daqhats.

nwright-mcc avatar nwright-mcc commented on August 12, 2024

This version is released now.

from daqhats.

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.