The idea so far is to just create two simple series(es) and then use an analysis block to sum the two together, plotting all three data sources. Idea not yet complete, this is just as far as I've gotten today. Project does not build, yet.
Commented out code related to the summing analysis block. Removed one of the realtime models, only one is necessary! Now, two series are plotted with identical models. Project builds and runs.
Created new analysis block class. The idea is to use a process variable as a source and use the AB to store a specific number of data points for the PV. Here is my first draft of the AB class--STRealtimeModelAB.
Changed the pv control variable to a strict process variable, for use as a data source.
Added new instance of STRealtimeModel to STWidget, no arguments (so invalid). But, the project builds and runs okay!
Added arguments to STRealtimeModelAB instance in STWidget, and an appropriate data source. There is a problem with what happens in the analysis block class when the input source updates--this code is commented out right now and the project builds and runs.
Added ability to set the number of data points saved in the analysis block via public slot.
Removed some unnecessary for loops in some of the methods of STRealtimeModelAB: only one datasource will ever be accepted.
Filled in the body of STRealtimeModelAB::value(...) so it doesn't return just zero. :)