Hi,
I need to plot the values dynamaically with the timestamp.
I am reading a value from a .txt file and have to plot the values every 5 seconds with timestamp as my x-axis and the double value from .txt file as y axis.
The logging happens in the .txt file continuously.I need to pick up the data from the log(.txt file) and plot with time
Can some one help me?
Dynamic Plotting
-
- Posts: 513
- Joined: Wed Sep 12, 2007 3:18 pm
Re: Dynamic Plotting
Use a WatchService to see file modifications, as shown here, and a SwingWorker to update the chart's dataset, as shown here. The listening chart will update itself in response.
Re: Dynamic Plotting
Hey thanks