For measurements like this the SDK will usually include some utilities to send the same data over and over on a port.
Otoh, at 5Gbps, a sample rate of "just" 10GS/s would be sufficient (barely).
I rather suspect the oscilloscope is capable of 1TS/s equivalent time sampling, but that mode wasn't used.