Comments (16)
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.
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.
Yes, I purposely pulled the library this week to be sure I was up to date (version 1.2.0.1).
from daqhats.
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.
Sure, I can install in another python venv...
from daqhats.
I will run some tests then let you know when you can try it.
from daqhats.
Sounds good! Thanks!
from daqhats.
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.
Awesome, thanks. I'm running it overnight on the dev branch.
from daqhats.
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.
Running on the updated dev branch now...
from daqhats.
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.
Thanks, I have not seen an error either.
from daqhats.
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.
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.
This version is released now.
from daqhats.
Related Issues (20)
- MCC172 examples C data_logger HOT 5
- phantom voltage spikes in buffer mcc118 HOT 2
- I can not save data to log file when using 2 mcc172 with 4 sensor HOT 1
- Insallation issue HOT 4
- Adding channels to data logger example HOT 6
- Unequal sample numbers using multiple hats HOT 5
- Hardware overruns? HOT 2
- MCC152 dio_config_write_dict(item, value_dict) fails HOT 1
- Running program in Docker container can't get HAT devices. HOT 1
- I want to use the MCC118 with different sampling rates per channel. HOT 3
- Running MCC 128 with a BananaPi M2 Zero HOT 8
- MCC172 ID SD and ID SC not available to access EEPROM HOT 2
- chan_string is too small line 214 in daqhats_utils.h HOT 1
- Bug with Continuous scanning with external clock HOT 5
- Library does not work on Raspberry Pi 5 HOT 3
- Problem installing from ./setup.sh HOT 45
- Suggestion of improvements in doc/install HOT 2
- I2C 1 Not Detected HOT 3
- MCC128 on RPi5: Fluctuation in number of samples returned by a_in_scan_start() and a_in_scan_read() HOT 6
- No module named 'daqhats_utils' HOT 2
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 daqhats.