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
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
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 =
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
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
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