| /cvi/RedPitaya/sockserv/daq.c |
|---|
| 108,7 → 108,9 |
| fprintf(stderr, "Rp api init failed!\n"); |
| } |
| rp_AcqReset(); |
| rp_AcqSetDecimation(decimation); |
| const int rpdecimation[6]={RP_DEC_1 ,RP_DEC_8 ,RP_DEC_64, |
| RP_DEC_1024 ,RP_DEC_8192 ,RP_DEC_65536 }; |
| rp_AcqSetDecimation(rpdecimation[decimation%6]); |
| const int c[2] = {RP_CH_1, RP_CH_2}; |
| rp_AcqSetTriggerLevel(c[0],threshold_voltage); //Trig level is set in Volts while in SCPI |
| rp_AcqSetTriggerLevel(c[1],threshold_voltage); |