LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with XY Plots: Plots not following scaling, colors not changing, etc.

Hey all. I have an XY Plot that I have set to plot two seperate sets of data. I used the following help pages to create my second plot, adjus the colors of the plots, and set up the right y-scale axis.

 

http://digital.ni.com/public.nsf/allkb/049C7E362BE4270A8625756E005CC46F

http://digital.ni.com/public.nsf/allkb/C6BFD9BD5F01108C86256F8100638B29?OpenDocument

 

I have a few issues:

First, I am getting an error. Something about an invalid property value on the active plot property node. Changing the second active plot to 0 alleviates this issue, but both of the above suggest I should have a 0 and a 1.

 

Second, both of my plots are using the last color that was passed to the graph. So in the below example both plots come out red instead of one white, one red.

 

Third: I have set up two y-axes on the front panel, but when I go to run my program the larger (in individual magnitude) data set skyrockets off the screen. It seems to be following the second plot scaling... 

 

What am I doing wrong here? 

 

You don't want to have to sort through my whole program, so here is a picture of the state that processes the graph setup. I amusing LabVIEW 2010. 

 

Edit: 

 

I have also included the state that graphs my data, in case the problem is there.

Download All
0 Kudos
Message 1 of 3
(2,559 Views)

Alright, an update: I have determined that labview is plotting 1 x value and two y values as the same plot, which is why no matter what I do it affects "both" plots. I need to use the plot buffer to plot my data points every iteration of my loop. How can I convert this to two plots? I tried wiring each cluster to its own buffer, and then combining the buffers through a cluster to the XY-Plot, but it didn't take. What is the proper way to do this?

 

Thanks

0 Kudos
Message 2 of 3
(2,547 Views)

Hi Nukem

 

Here is a snippet of how you can do this, the answer was in another forum “Right click on the existing Y scale and select Duplicate Scale.  You will then have another scale which will show up in the properties dialog.  Unfortunately, this is the only way I know to create a new scale”

 

Regards

Esteban R.

xygraph.pngxygraphFrontPanel.png

0 Kudos
Message 3 of 3
(2,505 Views)