02-08-2010 04:51 PM
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?
thanks,
jvh
Solved! Go to Solution.
02-08-2010 05:03 PM - edited 02-08-2010 05:04 PM
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.
02-09-2010 06:46 AM
Much obliged!
jvh
02-09-2010 12:00 PM
Hi,
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?
Regards,
02-09-2010 12:24 PM
JVH,
This VI has that dummy indicator and looks much better.
02-09-2010 12:38 PM
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?
Thanks again,
jvh
02-09-2010 01:28 PM - edited 02-09-2010 01:29 PM
02-09-2010 01:32 PM
02-10-2010 09:41 AM
02-10-2010 02:07 PM
Dennis Knutson wrote:
Or just use the paintbrush tool on the front panel.
Do you mean the one in the tools palette?