

Maybe you want to collect for example "time:", "accuracy:" or "position:" samples for your particular use case.

Of course this can be extended with more tags such as "sample:" if you want to collect many different sets of data at once. This is the pattern that the automatic data collector will look for and parse. Each time that the STM32 is grabbing a sample it outputs a string containing "sample:" followed by sample number (sequence number) and the value obtained by the ADC for that sample point. The STM32F4 program will generate 120 samples taken about half a second apart that will be plotted in the GUI using QCustomPlot. The example data that I collect in this post will come from an STM32F4-Discovery board with a potentiometer attached to one of its ADC (Analog to Digital Converter) pins. This means that if you are already making a Qt GUI for your experimental platform, adding plots is a small cost with a lot of added value. QCustomPlot creates nice looking plots and allows you to save plots in a multitude of different formats. The extension adds automatic data collection and plotting.īeing able to collect and plot data quickly and easily, and in a way that interfaces nicely with the experimental setup you are using is always nice. Here we implement an extension to the serial GUI developed in a previous blog post. Home Blog Videos Research About Privacy Policy Bo Joel Svenssonīlog (dot) joel (dot) svensson (at) gmail (dot) comĮxtending the Serial GUI with automatic data collection and plotting
