I've tried out the example C programs and played a little bit around.
My goal is to measure, how much a program slows down, if I runs multiple at once. At first I started the following one:
Code: Select all
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "redpitaya/rp.h"
int main (int argc, char **argv) {
// Initialization of API
if (rp_Init() != RP_OK) {
fprintf(stderr, "Red Pitaya API init failed!\n");
return EXIT_FAILURE;
}
rp_DpinSetDirection(RP_DIO1_N, RP_OUT);
while (1){
rp_DpinSetState(RP_DIO1_N, RP_HIGH);
rp_DpinSetState(RP_DIO1_N, RP_LOW);
}
// Releasing resources
rp_Release();
return EXIT_SUCCESS;
}
Code: Select all
LD_LIBRARY_PATH=/opt/redpitaya/lib ./<DIO1_P> &
LD_LIBRARY_PATH=/opt/redpitaya/lib ./<DIO1_N> &
But in my case only DIO1_N toggles its state and DIO1_P remains high.
Thanks in advance