LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY graph plots not appearing

Hi all, got a weird one for you. I have a DAQ application that's using an XY graph (multiplot, array of clusters) for post-test data viewing. I load and parse the data from a file into waveforms, then load it into a subVI via an SPSV (WFM array). I pass a reference(strict) from the front panel XY graph into the subVI and use several property nodes in the subVI to change the FP's graph. I can switch the X-axis between time and position successfully, and I can also apply one of two different filters at a time, plus display the unfiltered data simultaneously.

 

All of this is working correctly, the problem is that every once in a while, some of the plots don't appear on the FP graph. I have to go to the plot legend, click on the plot properties box (which will be black) the select Common Plots -> Line Plot in order to make the missing plot appear.

 

I have ZERO idea why this is happening. The only property node I'm using that's associated with the plot legend (not that I know this has anything to do with the problem) is programmatically making the legend visible (or not), setting the plot color, updating the number of rows, and setting the plot names. I've tried setting the plot visible property to TRUE on this node, no luck. Tried Ignore Attributes TRUE and FALSE, no luck.

 

Again, all the plots I select to be displayed show up in the plot legend with the correct name, and once I select the plot type manually, the color is correct as well.

 

Any ideas? Is there a property to set the plot type that I'm missing?

 

HELP!

 

Oh, this is all written in LV 2011, by the way.

0 Kudos
Message 1 of 5
(4,504 Views)

Does the amount of plots being displayed change?

If you configure the way two plots should appear and then feed in three signals, the third extra signal will use default display properties.

 

When you set a plot's display properties (such as 'Plot.Visible') you need to make sure it is the active plot you're working on.

activeplot.pngEach property is applied in order top to bottom so you don't need a separate property node to set the active plot.

 

It's a bit hard to guess without a vi to look at. Those are just a couple of guesses based on your description. 

 

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
0 Kudos
Message 2 of 5
(4,488 Views)

Please post your code (or the relevant pieces).  It sounds like you have a race condition, but without the code, we don't know.

0 Kudos
Message 3 of 5
(4,470 Views)

Hi. I have a similar problem. There is a XY-graph in DAQ-application. Plot Legend has dimensions (2,2) and I can not ask others in any way. Breakage occurred when I run the application on the screen with another resolution.
Any ideas?

Download All
0 Kudos
Message 4 of 5
(4,425 Views)

I don't know why you think your problem is similar to the ones listed above except that they both relate to graphs.

 

Your problem is that the front panel is messed up and the different parts of your controls are spread all over.  (Open the navigation window and you will see that you are so far zoomed out, you can't see anything.)  Your plot legend has a position at 20808 (far to the right of your origin.)  Your graph position itself is around -12000.  (Far to the right of the origin.)

 

You can right to the plot legend and graph position property nodes to bring them closer together and to the origin.  But I'd think you'd be better off just starting over on a new VI since other things seem to be messed up with the legend size.

0 Kudos
Message 5 of 5
(4,413 Views)