another issue for you: As the INF (or -1) command does not work in for "rp_GenBurstRepetitions" or "SOUR1:BURS:NOR" scpi (cf. viewtopic.php?f=14&t=1475), I try to use bust mode with an external trigger working on DIO0. An external generator is connect to DIO0 and triggers the burst at a frequency FB. Here is the generator setup in c:
Code: Select all
rp_GenReset();
rp_GenMode(RP_CH_1, RP_GEN_MODE_BURST);
rp_GenWaveform(RP_CH_1, RP_WAVEFORM_SINE);
rp_GenFreq(RP_CH_1, 5000000);
rp_GenBurstCount(RP_CH_1, 1);
rp_GenBurstRepetitions(RP_CH_1, 1);
rp_GenAmp(RP_CH_1, 0.5);
rp_GenBurstPeriod(RP_CH_1, 100);
rp_GenTriggerSource(RP_CH_1, RP_GEN_TRIG_SRC_EXT_PE);
usleep(100);
rp_GenOutEnable(RP_CH_1);