Using LabVIEW 2009:
I put a waveform chart on my front panel and found the context help to be empty. The block diagram context help has a connection diagram but not much more. It suggests the example Charts.vi which a directory search could not find. I also looked in labView help but found little.
Could you recommend a location to get some info on charts? In particular is there a way to have the strip chart show new data at mid-screen instead of the right edge?
Solved! Go to Solution.
The Charts.vi example can be found in C:\Program Files\National Instruments\LabVIEW 2009\examples\general\graphs\charts.llb library.
Some information about waveform charts could be found in this NI article.
But I can't provide a solution for the update in the middle of the chart, sorry. Maybe some more advanced members of the forum will help you.
Getting a chart to start in the middle is actually a bit more complicated than it sounds. There would be a couple of ways to do it, but all of them involve a bit of hacking.
1- Resize plot area, add a flat box decoration on the right (done in example below). The plot area will only go to the middle, so it will look like its updating in the middle. The only downside is that the XScale only goes to the middle of the plot. We could work to create some sort of dummy indicator so that looks like it went all the way, but it wouldnt' be the whole thing.
2- Pad the end of your data with 0, nonsense data and have it plot that. A graph would probably work better for this.
3- Do it with an X control- more complicated than regular controls, but believe it would be possible.
Before we dive too deep into this, I was wondering why you would want to do this?
Thanks for the posts Marti.
The only reason I wanted to do this is visual appeal. The grids are streaming right to left and to me it seems visually appealing to have the new points start in the middle rather than from the right edge. When new data arrives from the right edge I subconsciously think "What's further to the right, am I seeing the whole thing?". On the other hand I guess it seems foolish to waste half a display.
BTW, is there a way to make the chart background white instead of black?