DMelt:Plots/Real-Time Data

From HandWiki
Limitted access. First login to DataMelt if you are a full DataMelt member. Then login to HandWiki as a user.


Showing real-time data

All canvas can be used to show data updated in real time. As example, we show how to display a random points, updating the data every 100 ms. Note that we use the method "clearData()", which reloads data container but does not change its graphical attributes. A slower method is "clearAll()" which reloads graphical attributes of the canvas.


The output is shown here:

DMelt example: Histogram filled in real time from a stream of data




You can also use a lighter canvas, "SPlot", which is much simpler and requires less resources.


DataMelt has a special canvas called jhplot.HPlotRT jhplot.HPlotRT which is designed to show data in real time and fast dynamic rendering. Look at this code:

The output image is below:

DMelt example: Showing real-time data using traces