I'm trying to acquire data from the ADC through an API in C.
My system works fine when I use a single channel but I would like to have a system that acquires data from both the channels when one of the two signals exceeds the triggering threshold.
The instruction:
Code: Select all
rp_AcqSetTriggerSrc(RP_TRIG_SRC_CHA_PE);
Code: Select all
rp_AcqSetTriggerSrc(RP_TRIG_SRC_CHB_PE);
What i obtain using both those functions is that I can acquire data from both the channel only when CHB is triggered, but this is not what i want. I need to acquire data also if only CHA is triggered.
Is there a solution to this problem via software or do i necessary need to use an external trigger common for the two channels?
Thanks in advance for the help.