[beagleboard] Re: libpruio (fast and easy D/A - I/O)

2014-11-10 Thread niroko89
Hey TJF, I wanted to give you a heads up on my samplecode. The performance test was right in that is was that exact performance, but I shouldn't write a program in c when I'm sleepy. The program had some functional problems which should be fixed now. However, I'll first test it with a

Re: [beagleboard] Re: libpruio (fast and easy D/A - I/O)

2014-11-07 Thread niroko89
Thanks for the feedback. I know that I'm far from a good c programmer, but I'm not that bad. From reading the book The C++ Programming Language by Bjarne Stourstrup (the maker of c++) I know a thing or two about the compiler. First of, all sizeof(...) are replace at compile time. Secondly, all

[beagleboard] Re: libpruio-0.2

2014-11-06 Thread niroko89
I've tested that code but it produces an error for me: MURX: 4294967285 config failed (failed executing Pru_Run instructions) This is the code I used #include unistd.h #include stdio.h #include ../c_wrapper/pruio.h int main(int argc, char **argv) { int n; pruIo *io =

[beagleboard] Re: libpruio-0.2

2014-11-06 Thread niroko89
Hey TJF, with 6285 ns I was only able to set the amount of samples to 1 without getting an error. With 6290 works everything fine. Here is some c samplecode for you, it keeps writing all the samples to a file in burst of 100/4 samples per writing burst. #include unistd.h #include stdio.h

[beagleboard] Re: libpruio (fast and easy D/A - I/O)

2014-11-06 Thread niroko89
Hey TJF, I've got it compiled and working. I can't yet test if the adc keeps up since I the function generator we've ordered got out of stock However I changed my code a bit so it would close the files and the whole program has a end statement. It's currently 1 channel at ~220 kS/s. I

[beagleboard] Re: libpruio-0.2

2014-10-30 Thread niroko89
Hey TJF, Nice to see the update, I really happy with the new features :) What would be the highest consistent samplerate possible with the c wrapper with 1 channel. Using the RB would be the nicest but using MM is also an option if the samplerate is higher with that. I think if I know that I