I have an array of 2000 uint16_t. It is periodically filled with some fast signal captured using ADC. I want to view the entire array as an oscillogram for debug purposes. Currently I have an auxiliary USART just to dump and visualize this data. I did not find a way to feed entire array to STChart.
I have the same question! I want to plot an array with [21000] uint16_t audio datas, comming from a mic. into ADC. The array is refreshed (or filled) every 500ms via DMA. So it is 42kHz Sampling rate. When i tried to pick the right buffer in the CUBEMonitor i only can get Buffer[0] till Buffer[21000] seperatly. But i want to plot the full Buffer[0:20999] every 500ms.
If I understood well your demonstration, we need to create "artificial" x values each time we read the buffer for each value in this buffer, depending of the acquisition frequency , to "fill" the time of the period of acquisition .
So it can lead to show in the graph a value read in "reality" at 0 to be displayed "artifically" in your example at 0.499 ?
I'm asking you just to be sure i understood your need, we need to provide something useful for everybody.
Yes, that would be an option. but you could also push it back to t = 0. The plot of the array would then be delayed by half a second compared to the real time graph. I want to see values of an array in a time plot, my screenshot only displays one possible way of doing so.