09-19-2019 11:09 AM
Hi,
I am working from on an application that has twenty plots (on different scales) but the user can only view five plots at one time. The user can select which parameter to display but the problem is real time value of 'new' parameter is appended to plotted values of old/replaced parameter. I would like to plot all values of new parameter since the application started and then continue plotting the real time values without clearing the chart. Any suggestion on how to save/retrieve history data would be helpful? Should I use waveform datatype
thanks
Solved! Go to Solution.
09-19-2019 11:16 AM
Have you considered the "Plot Visablity Checkbox"?
Alternatively you can maintain the history of all in a Fixed length lossy queue holding all of the data as Waveform Datatypes.
The chart will automatically wipe out the history when the names (WF Attribute >>>NI_Channel_Name) change.
So when user select a different set, grab the history for the selected channels throw it at the Chart >>> History and then proceed to append updates.
Ben
09-19-2019 11:57 AM
Thanks for the reply. Visibilty checkboxes might not be suitable as the number of plots is expected to increase to 200
09-19-2019 12:10 PM
You could hide the visibility checkboxes on your chart, but use your own selection method to programmatically enable which plots are visible.
09-19-2019 01:28 PM
@Nustian wrote:
Thanks for the reply. Visibilty checkboxes might not be suitable as the number of plots is expected to increase to 200
Then use the other option I suggested about a lossy queue to hold the data...
I just delivered an app two weeks ago that used that approach...
Disclaimer:
The Lossy queue was on one of 180 cRIOs
But the rest of the game was the same.
Ben