07-23-2005 04:41 AM
07-23-2005 02:57 PM
Ok,
The thing to keep in mind is that charts and graphs are for displaying fundamentally different kinds of data.
A chart is for displaying data that is being read slowly--think old mechanical strip chart recorders. This kind of data is not really a "waveform", but just a collection of readings because there is no implied timing between one sample and the next. (Which as we will see below pretty well defines your data.) In fact, if you stop an application using a strip chart and then restart it, the data from the 2nd run gets appended to the data that's still there from the 1st run.
07-23-2005 04:23 PM
07-23-2005 08:26 PM
07-24-2005 01:35 AM
07-24-2005 01:58 PM
I just downloaded the last code I posted to make sure I sent the right thing, but I did so I guess I have no idea what more you are wanting. The code I last posted does exactly what you are asking for:
07-25-2005 06:30 AM
07-25-2005 07:48 AM
Please see reply #71 in this thread on beer fermentaion
http://forums.ni.com/ni/board/message?board.id=170&message.id=133303#M133303
In my modification of CC's code I demonstrate how the WDT can be used with a chart to plot the actul times of the readings.
There are two restriction in using the WDT in a chart.
1) New data can not be older than the newest point already dispalayed.
2) Changing the number of plots wipes out the chart and it starts over.
Ben
07-25-2005 09:37 AM
But your code rises some questions:
Thanks,
Soroush
07-25-2005 10:01 AM
Please look at Beer monitor2.VI located in the llb I pointed at.
It does not use shift registers and does use a chart.
SORRY!
Ben