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,
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
Hello Nils,
thanks for feedback!
The maximum sample rate is limited by the ADC subsystem. It's 159 kS/s (15
cycles @ 2.4 MHz + safety buffer) for a single step (channel). It neither
matters if you operate in RB or MM mode, nor if you use FB or C compilers.
For me, writing C examples is