Git Product home page Git Product logo

Comments (9)

credentiality avatar credentiality commented on May 1, 2024

from prudaq.

 avatar commented on May 1, 2024

Thanks for the answer! I think i will try the older one first...

from prudaq.

 avatar commented on May 1, 2024

Can I start and stop the sampling by pull P9_25 low/high?
Is that the right way to do it?

from prudaq.

credentiality avatar credentiality commented on May 1, 2024

from prudaq.

 avatar commented on May 1, 2024

Actually the firmware should stop sampling. So it should start and stop sampling from within my c++ programm. Not shure whether there is a file somewhere I can echo to? ( maybe /sys/devices/virtual/misc/beaglelogic/state ? )
Thanks a lot for your advice!

from prudaq.

credentiality avatar credentiality commented on May 1, 2024

from prudaq.

 avatar commented on May 1, 2024

Yes, you are right! On the beagleLogic-github page there is a description of the sysfs-attributes (https://github.com/abhishek-kakkar/BeagleLogic/wiki/sysfs-attributes-Reference) and there it says at 'triggerflags':
"If data is not removed fast enough as it arrieved, it may be overwritten. Kernel logs can reveal where the overrun had occurred."
So I randomly tryed the dmesg-command and the nice thing is: it does not only inform you about an overun: every time you read from /dev/beaglelogic
(hexdump -d /dev/beaglelogic |head , or dd if=/dev/beaglelogic of=myfile.bin bs=1M count=64) , dmesg says "capture started with ..." and when the read is finished dmesg says "capture session ended".
So to stop sampling pulling P9_25 high is not necessary. You can simply start and stop reading from /dev/beaglelogic.
Thank you for the advice!

(Btw, the /sys/devices/virtual/misc/beaglelogic/state attribute is for testing purposes only)

from prudaq.

 avatar commented on May 1, 2024

This project is so cool =D

PRU1 waits for a rising or falling edge of the ADC-clock , than samples the ADC output pins. (The pru1 assembler code is also very interesting)
So am I correct in assuming that the beagleLogic samplerate-parameter is actually without function for the PRUDAQ project?

from prudaq.

credentiality avatar credentiality commented on May 1, 2024

from prudaq.

Related Issues (8)

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.