11-21-2010 06:02 PM - edited 11-21-2010 06:03 PM
Hi
I've spent quite some time on this and really could use some help please. I've looked at the real time plot in help, searched the forum, but the examples don't have enough similarity for me to modify from.
The attached vi is a waveform chart (with bars) which I am using to show a single value read from a text file. The value in the text file will update once every half hour (from a datalogger), for a total of 10 hours (20 values)
I would like to see each point plotted on the chart from left to right with a spacing in between. The value in the text file will increase (never decrease) so the resultant plot of bars would look like a staircase (albiet with different step heights). The process will continue with a small break in between file update periods and therefore previous data points (bars) need to be kept (and available by slider, which I can code easily enough).
Would somebody show me how this might be acheived?
Thanks in anticipation
Ray
Solved! Go to Solution.
11-21-2010 06:58 PM
It is very late here in UK, I was just going to sleep! So forgive me if this is totally wrong, but I have had a go.....
Michael
11-21-2010 07:11 PM
Thanks RiversDaddy
it looks good. I'll give it a good test and let you know.
My best approach was to save each new arriving data point into the text file with append, and then redraw all the points to the chart. Seemed a bit messy to me and smacked of bad coding form.
Thanks again
Ray
11-22-2010 03:50 AM
Hi Ray,
Here are a couple of examples.
The first - Bar chart mod - uses a feed back node to see if an item has been added to the data file.
You might consider using a graph as in the second example - Bar Graph. With a graph you can change the number of data points by redimensioning the waveform array. In this example a shift register is used to allow only inserting new values in the array.
steve
11-24-2010 07:20 PM
Hi Steve
Both solutions are more than suitable for me, but I like the idea of using the shift reigsters, so I'm going to build the second style into my applications.
Thanks mate....really appreciate your assistance.
regards
Ray