04-03-2012 10:55 AM
I wish NI would pay attention to how the graphs work (and don't work).
I wanted to use a strip chart, but it doesn't work (NI has acknowledged a bug).
So, I tried using a waveform graph, but It doesn't work. (NI has acknowledged a bug)
So, I'm building my own strip-chart mechanism, using my own history buffer and a WaveForm graph.
But, the blooming grid lines don't seem to work.
I want the data to plot point 0 at the right side, point 1 just to the left of that, etc. with increasing indexes advancing toward the left.
I want the x-axis width fixed (unchanging).
This keeps "Now" at the right side always (unlike a regular strip chart which has to "fill up" before "now" is at the right. That's great.
But it won't draw the grid lines.
I have AUTOSCALE X turned OFF.
I set the X SCALE.MINIMUM to -100 (the width in samples that I want)
I set the X SCALE.MAXIMUM to 0
I set the X SCALE.MULTIPLIER to -1 (which points the data in the leftward direction).
I have the X SCALE.INVERTED = FALSE
I set the X SCALE.INCREMENT to 10 (I want 10 divisions across, not whatever LV feels like)
It plots the data the way I want, but It draws one and only one grid line, at -90.
If I change INCREMENT to -10, no change.
If I change INCREMENT to 1, it draws one and only one grid line at -99.
Am I missing something, or is this yet another LV bug?
Do I really have to build my own array of marker values ?
Blog for (mostly LabVIEW) programmers: Tips And Tricks
04-05-2012 12:09 AM
Hi CoastalMaineBird,
The good news is NI R&D does take CAR reports seriously. As you are aware, the Strip Chart issue was reported to R&D (# CAR 336743). It will be fixed in LabVIEW 2012. It looks like the issue with the waveform graph has also been acknowledged.
Thanks for the screen shots of your code. Can you post the VI to expedite further investigation?
Regards,
Andrew S.
04-05-2012 10:19 AM - edited 04-05-2012 10:20 AM
Blog for (mostly LabVIEW) programmers: Tips And Tricks
04-05-2012 10:26 AM
More info: this is on LV 2010.
More info: If you load that VI and runs it as it is, it fails, just as I show.
If you change the MULTIPLIER constant from -1 to -2, it works fine (draws multiple gridlines)
If you change it BACK to -1, it still works fine.
???
Blog for (mostly LabVIEW) programmers: Tips And Tricks
04-05-2012 10:35 AM
More info: If you change the MULTIPLIER from -1 to -2 and run again, it works fine ONCE.
Run it again and it fails.
Change it back to -1 and run again, it works fine ONCE.
Run it again and it fails.
It doesn't seem to matter whether I set the multiplier before or after setting the min/max.
???
Blog for (mostly LabVIEW) programmers: Tips And Tricks
04-08-2012 08:18 PM
CoastalMaineBird,
Thank you for all the details regarding the possible bug. I was able to duplicate your results both with your VI and by building the VI from scratch. I'm glad you were able to find a work around by inserting your own markers. I will have to continue to research to determine whether or not this is intended behavior or if there is another way to get it to work as desired. I will keep you updated as I find more information.
Best Regards,
Andrew S.
05-04-2012 04:29 PM
CoastalMaineBird,
I simplified the VI as much as possible to pinpoint the problem by reducing the VI property node to XScale.Increment and XScale.Multiplier. This is indeed a bug and was reported to R&D (# 352337) for further investigation. The description was filed as "X Axis Grid Lines Disappear with Negative X Scale Multiplier and X Scale Increment".
Thanks again for the feedback.
Best Regards,
Andrew S.