I have a PXIe 5122 oscilloscope (scope) and a PXIe 5413 function generator (fgen). The fgen sends a train of pulses with a trigger at the start of each pulse configured as:
![Basjong53_1-1676557923021.png Basjong53_1-1676557923021.png](https://forums.ni.com/t5/image/serverpage/image-id/313699iE22ED0E319E1D7C7/image-size/large?v=v2&px=999)
I want the scope to measure each pulse starting from the trigger on RTSI0, so I configured it as:
![Basjong53_2-1676558096298.png Basjong53_2-1676558096298.png](https://forums.ni.com/t5/image/serverpage/image-id/313700i134D15D0D4F00091/image-size/large?v=v2&px=999)
Then I fetch each record individually in a for loop:
![Basjong53_0-1676559128742.png Basjong53_0-1676559128742.png](https://forums.ni.com/t5/image/serverpage/image-id/313704i48963FFBC402365A/image-size/large?v=v2&px=999)
This works, but not quite correctly. What happens is that the time between acquisition is exactly double the time it should take. What I think happens is that when I fetch the data, the trigger occurs at the same time, since I acquire exactly as long as the fgen pulse lasts. Then it waits for the next trigger to read the signal again.
I want that the scope is always measuring and then I just fetch the data from the buffer when it's available. How can I do that?