I'm writing a graphical application for picoscope 2204 so that it can be used on Linux. At the moment I'm using fast streaming with the callback function where you get access to the overviewBuffers datastructure. I want to display the samples from the overviewBuffers "live" graphically in my application.
According to the following code example that was given in another post in the forum, there are 2 buffers for every channel, max and min.
Maybe I'm missing something that is obvious but I'm wondering why there are 2 buffers for each channel?
Also how should I display the samples from these two buffers (as coming from one channel) in my application? In what order are the samples collected in the two buffers and in what order should I read from them?
memcpy(g_display.buffer_max_a + (g_NumberOfSamples - nValues), overviewBuffers, nValues * sizeof(short));
memcpy(g_display.buffer_min_a + (g_NumberOfSamples - nValues), overviewBuffers, nValues * sizeof(short));
Thanks for your help.
Best regards, Emil